public findDeveloperBy ( array $data ) : null | |
||
$data | array | |
return | null | |
public function findDeveloperBy(array $data)
{
return $this->entityManager->getRepository('Knp\\Bundle\\KnpBundlesBundle\\Entity\\Developer')->findOneBy($data);
}
/** * {@inheritdoc} */ public function refreshUser(UserInterface $user) { $refreshedUser = $this->ownerManager->findDeveloperBy(array('id' => $user->getId())); if (null === $refreshedUser) { throw new UsernameNotFoundException(sprintf('User with ID "%d" could not be reloaded.', $user->getId())); } return $refreshedUser; }