예제 #1
0
파일: Coa.php 프로젝트: deesoft/biz3-api
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCoas()
 {
     return $this->hasMany(Coa::className(), ['parent_id' => 'id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCoa()
 {
     return $this->hasOne(Coa::className(), ['id' => 'coa_id']);
 }