Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSources()
 {
     return $this->hasMany(Sources::className(), ['user_id' => 'id']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSource()
 {
     return $this->hasOne(Sources::className(), ['id' => 'source_id']);
 }