1. A database trigger ca be a option. 2. Fetching the row after successful update and check for copun=0; 3. afterSave call back http://book.cakephp.org/view/1053/afterSave 4. If $this->data['deals']['coupon'] == 0 before you save you know you should run the method.
On Wed, Aug 10, 2011 at 11:32 AM, abhimanyu bv <[email protected]> wrote: > The function should automatically called when coupons becomes 0. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
