コード例 #1
0
ファイル: Coa.php プロジェクト: deesoft/yii2-dev
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCoas()
 {
     return $this->hasMany(Coa::className(), ['parent_id' => 'id']);
 }
コード例 #2
0
ファイル: GlDetail.php プロジェクト: deesoft/yii2-dev
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCoa()
 {
     return $this->hasOne(Coa::className(), ['id' => 'coa_id']);
 }