Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Fix wrong name for $bucketAuto pipeline stage #306

Merged
merged 1 commit into from
Oct 5, 2017

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Oct 4, 2017

This fixes a rather silly copy/paste mistake on my part. I'll note that this fix technically constitutes a BC break, as we're adding a new abstract method to a class. Given the lack of bug reports and the fact that ODM 1.2 with support for the aggregation framework still hasn't hit yet, i'm willing to push the fix this way. Other option would be to have getStageName non-abstract and return $bucket in AbstractBucket and only override the method in BucketAuto.

@alcaeus alcaeus added the bug label Oct 4, 2017
@alcaeus alcaeus added this to the 1.6.1 milestone Oct 4, 2017
@alcaeus alcaeus requested review from malarzm and jmikola October 4, 2017 17:51
@alcaeus alcaeus force-pushed the fix-bucket-auto-stage-name branch from f24a0ee to 0c48134 Compare October 4, 2017 17:54
*
* @return string
*/
abstract protected function getStageName();
Copy link
Member

Choose a reason for hiding this comment

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

AbstractBucket is annotated with @internal so I wouldn't even consider this a BC break.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I missed that completely. Even better! 👍

@alcaeus alcaeus merged commit 4421aee into doctrine:master Oct 5, 2017
@alcaeus alcaeus deleted the fix-bucket-auto-stage-name branch October 5, 2017 06:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants