Exemplo n.º 1
0
 public function behaviors()
 {
     return [['class' => TimestampBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']]]];
 }
Exemplo n.º 2
0
Arquivo: File.php Projeto: jamezlee/v3
 public function behaviors()
 {
     return [['class' => TimestampBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => ['date_entered', 'date_updated'], ActiveRecord::EVENT_BEFORE_UPDATE => ['date_updated']]], ['class' => BlameableBehavior::className(), 'createdByAttribute' => 'user_id']];
 }
Exemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [TimestampBehavior::className()];
 }