示例#1
0
文件: Movie.php 项目: syungkeaw/m
 public function getPeople()
 {
     return $this->hasMany(People::className(), ['id' => 'people_id'])->via('moviePeople');
 }
示例#2
0
 public function getPeople()
 {
     return $this->hasOne(People::className(), ['id' => 'people_id']);
 }