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

Update BasicEntityPersister::count() #6732

Closed
wants to merge 1 commit into from
Closed

Update BasicEntityPersister::count() #6732

wants to merge 1 commit into from

Conversation

afurculita
Copy link

@afurculita afurculita commented Sep 27, 2017

$this->entityPersister->count($this->criteria) will return a string, because it returns the result of a count query without casting.

@Ocramius
Copy link
Member

@afurculita please provide a test case. See #6550 for an example.

Also, please target master: backporting is up to us.

@afurculita
Copy link
Author

@Ocramius actually the problem is from BasicEntityPersister::count() and it is only in the versions <=2.5. It has been fixed in master. No tests have been added in master for this change. Should I still add them in 2.5?

@afurculita afurculita changed the title Update LazyCriteriaCollection.php Update BasicEntityPersister::count() Sep 27, 2017
@Ocramius
Copy link
Member

Should I still add them in 2.5?

Yes please: I do not merge stuff without tests. If a change made it through to master without a test, I will forward port the one you write there.

@Majkl578
Copy link
Contributor

This was fixed by #6818 in 2.5.

@Majkl578 Majkl578 closed this Nov 11, 2018
@Majkl578 Majkl578 assigned Majkl578 and unassigned afurculita Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants