public function behaviors() { return ['UserBehavior' => ['class' => UserBehavior::className(), 'user_attribute' => 'author_id'], 'DateTimeCheckerBehavior' => ['class' => DateTimeCheckerBehavior::className(), 'attribute_name' => 'date_start'], 'DateTimeBehavior' => ['class' => DateTimeBehavior::className(), 'attributes' => [BaseActiveRecord::EVENT_BEFORE_INSERT => 'created']], 'DurationParserBehavior' => ['class' => DurationParserBehavior::className(), 'attribute_name' => 'duration_minute']]; }
public function behaviors() { return ['UserBehavior' => ['class' => UserBehavior::className()]]; }