Skip to content

Commit

Permalink
Update Model.php
Browse files Browse the repository at this point in the history
Turning cast for db save/update and validation inside of Model's::classToArray , will fix codeigniter4#1372 and probably codeigniter4#1359
  • Loading branch information
nowackipawel authored Oct 28, 2018
1 parent acfc5b7 commit 99a72ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public static function classToArray($data, string $dateFormat = 'datetime'): arr
{
if (method_exists($data, 'toArray'))
{
$properties = $data->toArray(true);
$properties = $data->toArray(true, false);
}
else
{
Expand Down

0 comments on commit 99a72ab

Please sign in to comment.