예제 #1
0
 public function getAccs()
 {
     return $this->hasMany(Accounts::className(), array('parent_account_id' => 'id'));
 }
예제 #2
0
파일: Network.php 프로젝트: Nosthertus/SM
 /**
  * @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'));
 }