Skip to content
New issue

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

Fix isEmpty returning true if $id is not selected #305

Merged
merged 1 commit into from
Aug 10, 2023
Merged

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.

2 participants