aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Post/Entity.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-08-10 17:42:11 +0200
committerThomas Lange <code@nerdmind.de>2021-08-10 19:41:49 +0200
commite3f05b25f961e0169185acabd32566e2ae5198fe (patch)
tree8c60ddc5d558983ad3bf4b20ca643b109410082b /core/namespace/Post/Entity.php
parent49f03ac48efcce79822bed1ec40ad48bf5c6e450 (diff)
downloadblog-e3f05b25f961e0169185acabd32566e2ae5198fe.tar.gz
blog-e3f05b25f961e0169185acabd32566e2ae5198fe.tar.xz
blog-e3f05b25f961e0169185acabd32566e2ae5198fe.zip
Add a better mechanism to detect Entity changes
Implement and use a better mechanism to detect changes of attributes of the Entity objects by using a private variable which keeps track of the changed Entity attributes ("properties") via the "set" method. The "insert" and "update" method of the Repository now calls the method "getModifiedKeys" of the Entity class to get a list of properties which have been changed and builds the database query accordingly. This makes the use of "FALSE" as default value for the Entity attributes obsolete, so they have been set to the initial PHP default ("NULL").
Diffstat (limited to 'core/namespace/Post/Entity.php')
0 files changed, 0 insertions, 0 deletions