/** * @inheritdoc */ public function behaviors() { return [['class' => SluggableBehavior::className(), 'attribute' => 'title', 'immutable' => true, 'ensureUnique' => true], ['class' => TimestampBehavior::className(), 'value' => new Expression('UTC_TIMESTAMP()')], ['class' => FileBehavior::className(), 'folderName' => 'common']]; }
/** * @inheritdoc */ public function behaviors() { return [['class' => FileBehavior::className(), 'folderName' => 'example']]; }