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