diff --git a/behaviors/ArrayAttributesBehavior.php b/behaviors/ArrayAttributesBehavior.php index d0e24ef..58a5e1f 100644 --- a/behaviors/ArrayAttributesBehavior.php +++ b/behaviors/ArrayAttributesBehavior.php @@ -26,7 +26,9 @@ public function events() { ActiveRecord::EVENT_AFTER_REFRESH => 'toArrays', ActiveRecord::EVENT_BEFORE_VALIDATE => 'toArrays', ActiveRecord::EVENT_BEFORE_INSERT => 'toStrings', + ActiveRecord::EVENT_AFTER_INSERT => 'toArrays', ActiveRecord::EVENT_BEFORE_UPDATE => 'toStrings', + ActiveRecord::EVENT_AFTER_UPDATE => 'toArrays', ]; }