Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIncomes()
 {
     return $this->hasMany(Income::className(), ['type_income_id' => 'id']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIncome()
 {
     return $this->hasOne(Income::className(), ['id' => 'income_id']);
 }