'Utilisateur', 'id_user_group' => 'Groupe' ]; } public function getPointSale() { return $this->hasOne(PointSale::class, ['id' => 'id_point_sale']); } public function populatePointSale(PointSale $pointSale): void { $this->populateFieldObject('id_point_sale', 'pointSale', $pointSale); } public function getUserGroup() { return $this->hasOne(UserGroup::class, ['id' => 'id_user_group']); } public function populateUserGroup(UserGroup $userGroup): void { $this->populateFieldObject('id_user_group', 'userGroup', $userGroup); } public function getUser() { return $this->hasOne(User::class, ['id' => 'id_user']); } public function populateUser(User $user): void { $this->populateFieldObject('id_user', 'user', $user); } }