Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPersonels()
 {
     return $this->hasMany(Personel::className(), ['user_id' => 'id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPersonel()
 {
     return $this->hasOne(Personel::className(), ['ID' => 'personel_id']);
 }
Beispiel #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPersonels()
 {
     return $this->hasMany(Personel::className(), ['birimID' => 'DepID']);
 }