Hi all,
I have a class named CorpUserRememberKeyTable by Doctrine which
content is like :
public static function getInstance()
{
return Doctrine_Core::getTable('CorpUserRememberKey');
}
public function myFindOneByRememberKey($remember_key)
{
$q = $this->createQuery('rk')
->leftJoin('rk.CorpUser u')
->andWhere('rk.rememeber_key = ?', $remember_key)
->andWhere('u.is_activated = ?', true);
return $q->fetchOne();
}
in apps/frontend/lib/myUser.class.php
$user = Doctrine_Core::getTable('CorpUserRememberKey')-
>myFindOneByRememberKey($remember_key);
foreach($user as $key => $value)
{
echo ' $user->'.$key.' : '.$value.'<br />';
}
The $user object is not hydrated with CorpUser values but just with
CorpUserRememberKey.
I want to have an object with the values of de two tables. How to
proceed ?
Thx
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en