Tag Archives: Model

Working with Associations using CakePHP

I was asked by Niraja Mulye of Packt Publishing if I would be interested in publishing an article on my blog from the book, CakePHP Application Development. Since it seems relevant to any starting out with CakePHP, I guess why not. Instead of copying and pasting what was sent, I found two articles which seemed like [...]
Posted in Uncategorized | Also tagged , , | Leave a comment

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