Beispiel #1
0
 public function getPeople()
 {
     return $this->hasMany(People::className(), ['id' => 'people_id'])->via('moviePeople');
 }
Beispiel #2
0
 public function getPeople()
 {
     return $this->hasOne(People::className(), ['id' => 'people_id']);
 }