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