public function getSalon() { return $this->hasOne(Account::className(), ['id' => 'salon_account_id']); }
/** * @return \yii\db\ActiveQuery */ public function getAccount() { return $this->hasOne(Account::className(), ['id' => 'account_id']); }
protected function initClassMap() { $this->classMap = ArrayHelper::merge([self::CLASS_ACCOUNT => Account::className()], $this->classMap); }