Skip to content

Conversation

@abnegate
Copy link
Member

Now that select queries do not automatically select internal attributes, a call to $document->isEmpty() will return true if using a select query and $id was not selected.

This PR changes the empty check to check if the document has any values set instead of only checking if $id is set.

@abnegate abnegate requested a review from stnguyen90 August 10, 2023 17:50
@abnegate abnegate changed the title Fix isEmpty returning true $id is not selected Fix isEmpty returning true if $id is not selected Aug 10, 2023
@abnegate abnegate merged commit ed830ec into main Aug 10, 2023
@abnegate abnegate deleted the fix-empty-check branch November 23, 2023 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants