-
Notifications
You must be signed in to change notification settings - Fork 22
softDelete not work #5
Comments
Its been a while since I've worked with this and I've yet to put this code to real use but I recall that that feature was designed to work with the SoftDeleteModelTrait. Hopefully you are using PHP 5.4+. Add the trait to the model and then enabled the Behavior with I have not tested all of the combinations of using the trait and behavior together. If you find the code too strange or unhelpful then perhaps just use the latest Incubator or Phalcon 2.0 code if it is included natively in the newest version. |
The |
I found this code in the phalcon forum.
I use the trait and, if coment this lines, apparently works fine, but without this feature. thanks |
Are you setting it up like this? |
yes |
Perhaps check array keys of $options. See if |
Fatal error: Call to a member function beforeSoftDelete() on array in <my_path>\Models\Behaviors\SoftDelete.php on line 90
https://github.com/perchlayer/webird/blob/master/app/phalcon/common/library/Mvc/Model/Behavior/SoftDelete.php#L90
The text was updated successfully, but these errors were encountered: