Skip to content

Commit

Permalink
Removed Exception
Browse files Browse the repository at this point in the history
While logging out, I got an error something like `Undefined property 'user_id'`
  • Loading branch information
ojhaujjwal committed Feb 11, 2014
1 parent fbb89c5 commit efe47fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GoalioRememberMeDoctrineORM/Repository/RememberMe.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function deleteByUid($uid)
{
$qb = $this->getEntityManager()->createQueryBuilder();
$qb->delete($this->_entityName,'r')
->where('r.uid = :uid')
->where('r.user_id = :uid')
->setParameter('uid', $uid);
return $qb->getQuery()->getSingleScalarResult();
}
Expand All @@ -19,11 +19,11 @@ public function deleteByUidAndSid($uid,$sid)
{
$qb = $this->getEntityManager()->createQueryBuilder();
$qb->delete($this->_entityName,'r')
->where('r.uid = :uid')
->where('r.user_id = :uid')
->andWhere('r.sid = :sid')
->setParameter('uid', $uid)
->setParameter('sid', $sid);
return $qb->getQuery()->getSingleScalarResult();
}

}
}

0 comments on commit efe47fd

Please sign in to comment.