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

[NFR]: Resetting query filters for query builder #16555

Open
dz3n opened this issue Mar 19, 2024 · 1 comment
Open

[NFR]: Resetting query filters for query builder #16555

dz3n opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
new feature request Planned Feature or New Feature Request

Comments

@dz3n
Copy link

dz3n commented Mar 19, 2024

Describe the solution you'd like
In version 5.6.0 resetColumns(), resetFrom(), resetWhere(), resetGroupBy(), resetHaving(), resetOrderBy(), resetLimit(), resetFlags() were added to Phalcon\Datamapper\Query\AbstractQuery which are really useful options in certain scenarios.

Please consider adding the same methods for Phalcon\Mvc\Model\Query\Builder

@dz3n dz3n added the new feature request Planned Feature or New Feature Request label Mar 19, 2024
@niden
Copy link
Sponsor Member

niden commented Mar 20, 2024

This is going to be tough for having and where, since they use the same arrays to store the bindparams and bindtypes. The rest are easy to implement.

I need to see if I can split those two to be able to get this to work

@niden niden self-assigned this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature request Planned Feature or New Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants