示例#1
0
 public function getParent()
 {
     return $this->hasOne(Parents::className(), ['id' => 'id_parents']);
 }