public function onCreated() { parent::onCreated(); $this->unrestrictedSet('createdDateTime', DateTimeUtil::convertTimestampToDbFormatDateTime(time())); $this->unrestrictedSet('modifiedDateTime', DateTimeUtil::convertTimestampToDbFormatDateTime(time())); }