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