예제 #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']);
 }