You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a DooModel property is set to null, then it is not updated in the Database
when using updateAttributes method of DooModel.php.
Following steps will reproduce the problem:
1. Set a model property to null
2. update the model using $object->updateAttributes ($modelPropertiesArray)
method.
3. Model property which is set to null is not updated in database.
Expected output:
1. If a model property is set to null, then it should be updated in the
database, e.g. set a timestamp value to null should update it in the database
and clear any value.
Possible Solution:
Line no. 2340 in DdooSqlMagic.php may be changed:
FROM
====
2340: if(isset($v) && in_array($o, $model->_fields)){
TO
===
2340: if(in_array($o, $model->_fields)){
I am using r732 of Doophp from the trunk and PHP 5.4.4-14+deb7u3.
Original issue reported on code.google.com by mohit.ch...@gmail.com on 14 Aug 2013 at 9:49
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
mohit.ch...@gmail.com
on 14 Aug 2013 at 9:49The text was updated successfully, but these errors were encountered: