Events don't work when lazy load model class

2014-11-21 Thread gonzela2006
Hi, I created an event 'Model.User.created' and attached the listener to my model as you can see below and it is working well App::uses('AppModel', 'Model'); App::uses('CakeEvent', 'Event'); class User extends AppModel { public function afterSave($created, $options = array()) { $eve

Re: Problem with creating triggers using query() and rawQuery()

2014-11-21 Thread Prashant Shah
Hi, On Fri, Nov 21, 2014 at 6:09 PM, Prashant wrote: > Hi, > > On Friday, October 17, 2014 10:18:34 AM UTC+5:30, Prashant wrote: >> >> Hi, >> >> I have verified it, it works correctly under phpMyAdmin. >> >> Regards. > > > Solved the problem. > > I had used a single script that contained both the

Re: Problem with creating triggers using query() and rawQuery()

2014-11-21 Thread Prashant
Hi, On Friday, October 17, 2014 10:18:34 AM UTC+5:30, Prashant wrote: > > Hi, > > I have verified it, it works correctly under phpMyAdmin. > > Regards. > Solved the problem. I had used a single script that contained both the create tables and triggers statements. If I separate the create trigge