code/user/user.php
public function setProperties($properties)
    {
        parent::setProperties($properties);

        //Set the user data
        $this->getSession()->set('user', ObjectConfig::unbox($properties));

        return $this;
    }
public function setProperties($properties)
    {
        parent::setProperties($properties);

        //Set the user data
        $this->getSession()->set('user', ObjectConfig::unbox($properties));

        return $this;
    }
public function setProperties ( $ properties ) { parent :: setProperties ( $ properties ) ; //Set the user data $ this -> getSession ( ) -> set ( 'user' , ObjectConfig :: unbox ( $ properties ) ) ; return $ this ; }
Set the user properties from an array

@param  array $properties An associative array
@return User
Set the user properties from an array