示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccountCodes()
 {
     return $this->hasMany(AccountCode::className(), ['parent_id' => 'id']);
 }
示例#2
0
文件: Journal.php 项目: prasgema/cap
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAccount()
 {
     return $this->hasOne(AccountCode::className(), ['id' => 'account_id']);
 }