I have a table called products. In product table I have 2 fields created_at
and update_at
. I don't want to change it to created
and modified
.
Without change table fields name, how can I assign that created_at field is created to get cakephp time helper auto update date ?
My entity I have tried below
protected $_accessible = [
'created_at' => $this->created,
'updated_at' => $this->modified,
];
Getting error.