public function init() { $this->name = "Управление значениями свойств"; $this->modelShowAttribute = "value"; $this->modelClassName = CmsContentPropertyEnum::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getEnums() { return $this->hasMany(CmsContentPropertyEnum::className(), ['property_id' => 'id']); }