[FLOW3-general] Get a user from the userRepository

Sergio naguib.mahfuz at gmail.com
Thu Dec 20 13:06:33 CET 2012


Good morning,

I was just trying to find a user in the userRepository by its electronic
address on flow 1.1.

I installed Party extension and everything is OK. My users extend Person
class, and I did something like this in my user controller:

$address =
$this->securityContext->getAccount()->getParty()->getPrimaryElectronicAddress()->getUsage();
$this->view->assign('users',
$this->userRepository->findByPrimaryElectronicAddress($address));

but this doesn't work.
Any help would be appreciated.

Thanks in advance,
Sergio


More information about the FLOW3-general mailing list