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