make Model::setTimestamp() public

This commit is contained in:
Jonathan Labreuille
2016-09-07 10:26:08 +02:00
parent 4a72995bf4
commit 4ebdff49e0

View File

@@ -155,7 +155,7 @@ class Model extends \Sudzy\ValidModel {
return $duplicate;
}
private function setTimestamp() {
function setTimestamp() {
if($this->created_at === null) {
$this->set_expr('created_at', 'NOW()');
}