I really like the automatic timestamps in Laravels models that handle the created_at, updated_at and deleted_at columns of a model.
This means that this:
$user = new User();
$user->name = $this->request->getPost('name');
$user->email = $this->request->getPost('email');
$user->password = !empty($this->request->getPost('password')) ? $this->security->hash($this->request->getPost('password'), 14) : null;
$user->save();
Would generate this in the database:
id, name, email, password, created_at, updated_at, deleted_at
1, Jim, [email protected], $2a$14$ff5L9UWTw3agWhgbpcr..., 2014-03-16 16:16:27, 2014-03-16 16:16:27, NULL
How could (should) this be done in Phalcon?