i'm getting crazy with my authentication data.
When my in my app someone logs in, my authcontroller stores the user data in the Zend_Auth storage
class AuthController extends Zend_Controller_Action
{ ...
public function loginAction()
{ ...
$userMapper = new Application_Model_UsersMapper();
$user = $userMapper->fetchById($adapter->getResultRowObject()->id);
$this->auth->getStorage()->write($user);
}
}
After this, I created a plugin to add user permitions (that are stored in the User object returned by the $userMapper) to my Acl System.
The problem is that when I call Zend_Auth->getInstance()->getIdentity(), I find only the username instead of the entire Object !