summaryrefslogtreecommitdiffstats
path: root/srvs
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-09-20 18:14:08 -0400
committerMalf Furious <m@lfurio.us>2018-09-20 18:14:08 -0400
commit86f7cbade863dc89934c5a44bc6683cc3826f8a9 (patch)
tree9fb89ac3b45d0524b521dbe4785237d2a9a0a005 /srvs
parentc9f0bd92e76b63f8c6380211d309d76d5f4b8d8d (diff)
downloadscrott-86f7cbade863dc89934c5a44bc6683cc3826f8a9.tar.gz
scrott-86f7cbade863dc89934c5a44bc6683cc3826f8a9.zip
mysql: Add various default values
I was experiencing problems on Mysql proper with the way Scrott interacts with the database when forming new objects. It attempts some writeback querries before all attributes are applied to the new objects. This makes sense if you understand how many initNew and helper functions are implemented. As a convenience a function which mutates an object will also apply its changes to the database automatically. These function are used instead of directly settings PHP object properties because there are additional pieces of logic performed to ensure everything remains valid in the datamodel. As was the case for a few types of objects, cirtain functions which behave this way were being called during an object's initNew(), causing DB writebacks to occur before some other 'default-less' field had been defined for that object. This patch provides some 'not so invalid' default states for database table columns which were previously undefined. This should also mitigate some issues I may have not run unto yet.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions