[PR #1514] check if collection is empty without loading it #9573

Closed
opened 2026-01-22 16:04:43 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/1514

State: closed
Merged: Yes


Actually isEmpty() is always loading the collection in LazyCriteriaCollection.
A lazy version should use the existing functionality of count() to check if there are no elements if the collection is not initialized.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1514 **State:** closed **Merged:** Yes --- Actually isEmpty() is always loading the collection in LazyCriteriaCollection. A lazy version should use the existing functionality of count() to check if there are no elements if the collection is not initialized.
admin added the pull-request label 2026-01-22 16:04:43 +01:00
admin closed this issue 2026-01-22 16:04:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9573