I’m trying to to AR and CDbExpression to add a designated number of seconds to a record. It always ends up setting it to the current time + $timeIncrement, not sure why other than endDate might have to be fully qualified??
Probably missing something stupid and figured having another pair of eyes would help.
$this->endDate = new CDbExpression('TIMESTAMPADD(SECOND,:seconds,endDate)', array(':seconds'=>$timeIncrement));
$this->save();