public function init() { $this->name = "Управление доменами"; $this->modelShowAttribute = "domain"; $this->modelClassName = CmsSiteDomain::className(); parent::init(); }
/** * @return \yii\db\ActiveQuery */ public function getCmsSiteDomains() { return $this->hasMany(CmsSiteDomain::className(), ['site_code' => 'code']); }