private function _createSession(ComPeopleDomainEntityPerson $person)
    {
        $session = $this->getService('com:application', array('session' => true))->getSession();

        $repo = $this->getService('repos:sessions.session');
        $entity = $repo->findOrAddNew(array('sessionId' => $session->getId()));
        $entity->setData(array(
            'nodeId' => (int) $person->id,
            'username' => (string) $person->username,
            'usertype' => (string) $person->usertype,
            'guest' => 0
        ));

        $session->set('person', (object) $person->getData());
    }
private function _createSession(ComPeopleDomainEntityPerson $person)
    {
        $session = $this->getService('com:application', array('session' => true))->getSession();

        $repo = $this->getService('repos:sessions.session');
        $entity = $repo->findOrAddNew(array('sessionId' => $session->getId()));
        $entity->setData(array(
            'nodeId' => (int) $person->id,
            'username' => (string) $person->username,
            'usertype' => (string) $person->usertype,
            'guest' => 0
        ));

        $session->set('person', (object) $person->getData());
    }
private function _createSession ( ComPeopleDomainEntityPerson $ person ) { $ session = $ this -> getService ( 'com:application' , array ( 'session' => true ) ) -> getSession ( ) ; $ repo = $ this -> getService ( 'repos:sessions.session' ) ; $ entity = $ repo -> findOrAddNew ( array ( 'sessionId' => $ session -> getId ( ) ) ) ; $ entity -> setData ( array ( 'nodeId' => ( int ) $ person -> id , 'username' => ( string ) $ person -> username , 'usertype' => ( string ) $ person -> usertype , 'guest' => 0 ) ) ; $ session -> set ( 'person' , ( object ) $ person -> getData ( ) ) ; }
Creates a session for the given person

@param object ComPeopleDomainEntityPerson
@return void
Creates a session for the given person