doctrine / mongodb-odm

The Official PHP MongoDB ORM/ODM
https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/
MIT License
1.09k stars 501 forks source link

How to reset/get a part of the query ? #2170

Open VincentLanglet opened 4 years ago

VincentLanglet commented 4 years ago

Support Question

doctrine/orm Querybuilder provide the getDQLpart and resetDQLpart functions.

I found the debug function in the mongodb-odm ; in my use case, this could be use to get the sort part of my query, but I don't feel like this function is intended to be used in production. Plus I found no way to reset a part of my query.

Am I missing something or some getQueryPart and resetDQLPart could be a nice new feature ?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

VincentLanglet commented 4 years ago

These functions are still needed

malarzm commented 4 years ago

@VincentLanglet mind making a PR? We're trying to wrap up 2.1 finally and for sure won't have time in foreseeable future to take care of this idea ourselves. Happy to chat on our Slack if you'd need anything tho.

VincentLanglet commented 4 years ago

@VincentLanglet mind making a PR? We're trying to wrap up 2.1 finally and for sure won't have time in foreseeable future to take care of this idea ourselves. Happy to chat on our Slack if you'd need anything tho.

I may try when I'll find time. But I've just posted a message to avoid this issue to be closed by the bot.