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