Пример #1
0
 public function getAccs()
 {
     return $this->hasMany(Accounts::className(), array('parent_account_id' => 'id'));
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccounts()
 {
     return $this->hasOne(Accounts::className(), ['id' => 'accounts_id']);
 }
Пример #3
0
 public function getAccount()
 {
     return $this->hasOne(Accounts::className(), array('id' => 'account_id'));
 }