atk4 / data

Data Access PHP Framework for SQL & high-latency databases
https://atk4-data.readthedocs.io
MIT License
273 stars 46 forks source link

Forbid ContainsXxx unmanaged data modification #1004

Closed mvorisek closed 2 years ago

mvorisek commented 2 years ago

closes https://github.com/atk4/data/issues/881

we forbid the hidden feature to prevent unwanted behaviour (no hooks, normalization, ...)

when the direct unmanaged data modification is really wanted, simply add a field using $m->addField() instead of $m->containsOne() (or $m->containsMany())