Fix user migration

This commit is contained in:
Nicolas Le Goff
2014-01-27 16:41:43 +01:00
parent 2973513519
commit 7c0d1e3d8d
16 changed files with 70 additions and 38 deletions

View File

@@ -78,11 +78,10 @@ class UserRepository extends EntityRepository
public function findRealUserByLogin($login)
{
$qb = $this->createQueryBuilder('u');
$qb->where($qb->expr()->eq('u.login', $qb->expr()->literal($login)))
->andWhere($qb->expr()->isNotNull('u.email'))
->andWhere($qb->expr()->isNull('u.modelOf'))
->andWhere($qb->expr()->eq('u.guest', $qb->expr()->literal('0')))
->andWhere($qb->expr()->eq('u.guest', $qb->expr()->literal(false)))
->andWhere($qb->expr()->eq('u.deleted', $qb->expr()->literal(false)));
return $qb->getQuery()->getOneOrNullResult();