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