/** * @inheritdoc */ public function behaviors() { return ['mediafile' => ['class' => MediafileBehavior::className(), 'name' => 'category', 'attributes' => ['thumbnail']]]; }
/** * @inheritdoc */ public function behaviors() { return ['timestamp' => ['class' => TimestampBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => 'created_at', ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at']], 'mediafile' => ['class' => MediafileBehavior::className(), 'name' => 'post', 'attributes' => ['thumbnail']]]; }
public function behaviors() { return ['mediafile' => ['class' => \pendalf89\filemanager\behaviors\MediafileBehavior::className(), 'name' => 'post', 'attributes' => ['imageurl']]]; }