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 counting of inverse collections with limit #1572

Merged
merged 1 commit into from
Mar 24, 2017

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Mar 23, 2017

Fixes an issue where having an inverse reference with a limit set would return the wrong number of elements when the collection isn't initialized.

@alcaeus alcaeus added the Bug label Mar 23, 2017
@alcaeus alcaeus added this to the 1.1.4 milestone Mar 23, 2017
@alcaeus alcaeus self-assigned this Mar 23, 2017
@alcaeus alcaeus requested a review from malarzm March 23, 2017 19:55
@malarzm
Copy link
Member

malarzm commented Mar 24, 2017

@alcaeus I was to click the "Merge" button but noticed that travis is not really happy, could you look into that?

@alcaeus
Copy link
Member Author

alcaeus commented Mar 24, 2017

Yeah, I'll have to check what dependency needs a bump for this to work.

/** @ODM\Id */
public $id;

/** @ODM\ReferenceMany(targetDocument=GH1572Post::class, mappedBy="blog") */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that doctrine/annotations in lowest allowed version are not happy with this

@alcaeus alcaeus force-pushed the fix-persistent-collection-count branch from e7e8ad1 to 0951974 Compare March 24, 2017 13:14
@alcaeus alcaeus merged commit 62554ce into doctrine:1.1.x Mar 24, 2017
@alcaeus alcaeus deleted the fix-persistent-collection-count branch March 24, 2017 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants