コード例 #1
0
ファイル: UsersData.php プロジェクト: HejVkt/auto.only3.ru
 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
ファイル: Module.php プロジェクト: HejVkt/auto.only3.ru
 protected function initClassMap()
 {
     $this->classMap = ArrayHelper::merge([self::CLASS_ACCOUNT => Account::className()], $this->classMap);
 }