Skip to content

Commit

Permalink
user field is user_is not user
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallagher committed Feb 28, 2013
1 parent 3cc838a commit 2197dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GoalioForgotPasswordDoctrineORM/Mapper/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function cleanExpiredForgotRequests($expiryTime=86400)

public function cleanPriorForgotRequests($userId)
{
$dql = sprintf("DELETE %s u WHERE u.user = %s", $this->options->getPasswordEntityClass(), $userId);
$dql = sprintf("DELETE %s u WHERE u.user_id = %s", $this->options->getPasswordEntityClass(), $userId);
$query = $this->em->createQuery($dql);
$query->getResult();
}
Expand Down

0 comments on commit 2197dcc

Please sign in to comment.