示例#1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCuentas()
 {
     return $this->hasMany(Cuenta::className(), ['idconcepto' => 'id']);
 }
示例#2
0
文件: Alumno.php 项目: sacuriom/alba2
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCuenta()
 {
     return $this->hasOne(Cuenta::className(), ['id' => 'cuenta_id']);
 }