cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR]: Resetting query filters for query builder

Open dz3n opened this issue 11 months ago • 1 comments

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 avatar Mar 19 '24 19:03 dz3n

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 avatar Mar 20 '24 14:03 niden