Skip to content

Commit

Permalink
Fixing another bug caused by recent refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 13, 2015
1 parent 81428a9 commit c43e663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/RowLockerBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function findUnlocked(Query $query, $options)
$entityClass = $this->_table->entityClass();

$nullExp = clone $exp;
$edge = new DateTimeImmutable('@'. time() - $entityClass::getLockTimeout());
$edge = new DateTimeImmutable('@'. (time() - $entityClass::getLockTimeout()));
$or = $exp->or_([
$nullExp->isNull($timeCol),
$exp->lte($timeCol, $edge, 'datetime')
Expand Down

0 comments on commit c43e663

Please sign in to comment.