class Model_Campaign extends \Orm\Model
{
protected static $_properties = array(
'id',
'name',
'created_at',
'updated_at'
);
protected static $_observers = array(
'Orm\Observer_CreatedAt' => array(
'events' => array('before_insert'),
'mysql_timestamp' => false,
),
'Orm\Observer_UpdatedAt' => array(
'events' => array('before_save'),
'mysql_timestamp' => false,
),
);
[code]
protected static $_observers = array(
'Orm\\Observer_UpdatedAt' => array(
'events' => array('before_save'),
'mysql_timestamp' => true,
'property' => 'updated',
),
);
So it should be settled to true or false ... ?
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!