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

Removed $cmd args/properties (Mongo command character) #703

Closed
wants to merge 1 commit into from

Conversation

spujadas
Copy link

Submitting this pull request to avoid raising the MongoDB command prefix option is no longer used error when using the latest doctrine/mongodb (which deprecated $cmd in doctrine/mongodb pull request #131: doctrine/mongodb#131).

I did leave three literal $ artifacts in __construct() methods of some extending objects (\Doctrine\ODM\MongoDB\Query\Query, \Doctrine\ODM\MongoDB\Query\Expr and – even though not strictly required to make code pass unit tests – \Doctrine\ODM\MongoDB\Query\Builder), for compatibility with versions 1.0.3 and earlier of doctrine/mongodb.

Resulting code passes all unit tests (aside from Doctrine\ODM\MongoDB\Tests\Functional\DateTest::testOldDate, which produced an error before the changes and still does afterwards).

@jmikola
Copy link
Member

jmikola commented Nov 21, 2013

Thanks for the contribution, but this is actually already being removed in #565. See: 338cf06

@jmikola jmikola closed this Nov 22, 2013
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