We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EntityResult
Consider a delete where the result is the # of deleted rows.
$result = EntityResultQueryBuilder::forEntity($this->em(), Order::class, 'o') ->delete() ->where('o.lastSyncedAt < :date') ->setParameter('date', new \DateTimeImmutable('-25 years')) ->result() ->asInt() ->first() // expect int but is null ;
The query is run successfully but because of the logic in EntityResult::first(), the exception is swallowed and the $default is returned.
EntityResult::first()
$default
Todo:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider a delete where the result is the # of deleted rows.
The query is run successfully but because of the logic in
EntityResult::first()
, the exception is swallowed and the$default
is returned.Todo:
The text was updated successfully, but these errors were encountered: