@@ -16,6 +16,7 @@ discard block |
||
| 16 | 16 | use Doctrine\ORM\EntityManager; |
| 17 | 17 | use Doctrine\ORM\Mapping; |
| 18 | 18 | use Doctrine\ORM\QueryBuilder; |
| 19 | +use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
| 19 | 20 | use Sylius\Bundle\OrderBundle\Doctrine\ORM\OrderRepository as BaseOrderRepository; |
| 20 | 21 | use Sylius\Component\Core\Model\ChannelInterface; |
| 21 | 22 | use Sylius\Component\Core\Model\CustomerInterface; |
@@ -24,7 +25,6 @@ discard block |
||
| 24 | 25 | use Sylius\Component\Core\OrderCheckoutStates; |
| 25 | 26 | use Sylius\Component\Core\OrderPaymentStates; |
| 26 | 27 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
| 27 | -use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
| 28 | 28 | |
| 29 | 29 | class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface |
| 30 | 30 | { |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | return $this->templatingEngine->renderResponse('@SyliusAdmin/Dashboard/index.html.twig', $data); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @return ChannelInterface |
|
| 88 | + */ |
|
| 86 | 89 | private function findChannelByCodeOrFindFirst(?string $channelCode): ?ChannelInterface |
| 87 | 90 | { |
| 88 | 91 | $channel = null; |