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