Blog Posts under 'CakePHP'

How to turn off CakePHP Model Find Callbacks

Mon, Jun 13th 2011, 19:36

Something I had a major headache with today was the very useful callback methods in CakePHP's Model class. I was using the afterFind() method to check a record and then perform a lookup on the same table, which naturally ended up creating an infinite loop. The solution obviously was to turn off[...]