public function behaviors() { return [['class' => HasProperties::className()], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'active', 'sortOrder' => ['sort_order' => SORT_ASC, 'id' => SORT_ASC]]]; }
/** * @inheritdoc */ public function behaviors() { return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'published', 'sortOrder' => ['sort_order' => SORT_ASC, 'id' => SORT_ASC]], ['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'date_added', 'updatedAtAttribute' => 'date_modified', 'value' => new Expression('NOW()'), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => ['date_added'], ActiveRecord::EVENT_BEFORE_UPDATE => ['date_modified']]]]; }
/** * @inheritdoc */ public function behaviors() { return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'published']]; }
public function behaviors() { return [['class' => HasProperties::className()], ['class' => \devgroup\TagDependencyHelper\ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className()]]; }
/** * @inheritdoc */ public function behaviors() { return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className(), 'activeAttribute' => 'published', 'sortOrder' => ['sort_order' => SORT_ASC, 'id' => SORT_ASC]]]; }
public function behaviors() { return [['class' => HasProperties::className()], ['class' => ActiveRecordHelper::className()], ['class' => CleanRelations::className()], ['class' => Tree::className()]]; }