Tag Archives: SoftDeletableBehavior

Soft Deletable Behavior and the Model::exists() gotcha

If you ever used the Soft Deletable Behavior, you will realise that Model::del() always returns a FALSE. This is expected after knowing that the behavior intercepts the delete request by saving the deleted flag and date then returning FALSE so the actual delete don’t happen. So since I can’t rely on the returned value of Model::del(), [...]
Posted in Uncategorized | Also tagged , | Leave a comment