Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getYears()
 {
     return $this->hasMany(Year::className(), ['created_by' => 'id']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getYear0()
 {
     return $this->hasOne(Year::className(), ['id' => 'year']);
 }