示例#1
0
文件: Purse.php 项目: RStuffGit/money
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPlans()
 {
     return $this->hasMany(Plan::className(), ['purse_id' => 'id']);
 }
示例#2
0
文件: Cuenta.php 项目: villcab/HRM
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdPlan()
 {
     return $this->hasOne(Plan::className(), ['id' => 'id_plan']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPlan()
 {
     return $this->hasOne(Plan::className(), ['id' => 'plan_id']);
 }