pomm-project / ModelManager

Model Manager for the Pomm database framework.
MIT License
66 stars 27 forks source link

Projection::unsetFields() to unset several fields at once #48

Closed chanmix51 closed 3 years ago

chanmix51 commented 9 years ago

It would be nice to be able to unset several fields at once from a Projection:

$this->createProjection()->unsetFields(['field_1', 'field_2', …, 'field_N']);

Any thoughts ?

tlode commented 9 years ago

Good for some kind of dynamic approach. +1

Nevertheless, since unsetField returns $this, I would prefer calling it multiple times.

chanmix51 commented 9 years ago

That's true, the main goal of this method would be to keep the code compact yet readable.

stood commented 3 years ago

It's good for this issue plz closed :)