mindplay-dk / sql

Database framework and query builder
Other
17 stars 6 forks source link

Throw for unexpected properties #40

Open mindplay-dk opened 7 years ago

mindplay-dk commented 7 years ago

Currently, UpdateQuery::assign() will silently ignore unexpected properties.

This leads to silent bugs.

We should throw an exception for unexpected properties.

mindplay-dk commented 5 years ago

This currently affects InsertQuery::add() as well - though I'm wondering if changing that is potentially a breaking change? e.g. for sloppy code that relies on things like get_object_vars() to quickly serialize model-properties?