소스 검색

[Console] ActiveDistributionsInAdvance : problème accès session #1431

master
Guillaume Bourgeois 1 년 전
부모
커밋
161a8ff326
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      common/logic/Product/ProductPrice/Service/ProductPriceSolver.php

+ 3
- 2
common/logic/Product/ProductPrice/Service/ProductPriceSolver.php 파일 보기

@@ -9,6 +9,7 @@ use common\logic\SolverInterface;
use common\logic\User\User\Model\User;
use common\logic\User\User\Service\UserSolver;
use common\logic\User\UserGroup\Model\UserGroup;
use common\logic\User\UserGroup\Repository\UserGroupRepository;

class ProductPriceSolver extends AbstractService implements SolverInterface
{
@@ -90,7 +91,7 @@ class ProductPriceSolver extends AbstractService implements SolverInterface
{
// @TODO : trouver une solution pour hydrater autrement cette donnée
if($productPrice->id_user_group && !$productPrice->userGroup) {
$userGroup = UserGroup::searchOne(['id' => $productPrice->id_user_group]);
$userGroup = UserGroupRepository::getInstance()->findOneUserGroupById($productPrice->id_user_group);
if($userGroup) {
$productPrice->populateUserGroup($userGroup);
}
@@ -126,7 +127,7 @@ class ProductPriceSolver extends AbstractService implements SolverInterface
{
// @TODO : trouver une solution pour hydrater autrement cette donnée
if($productPrice->id_user_group && !$productPrice->userGroup) {
$userGroup = UserGroup::searchOne(['id' => $productPrice->id_user_group]);
$userGroup = UserGroupRepository::getInstance()->findOneUserGroupById($productPrice->id_user_group);
if($userGroup) {
$productPrice->populateUserGroup($userGroup);
}

Loading…
취소
저장