Pārlūkot izejas kodu

OrderShop : fetch eager sur $user

develop
Guillaume pirms 3 gadiem
vecāks
revīzija
5b1fabdb14
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      ShopBundle/Model/OrderShop.php

+ 1
- 1
ShopBundle/Model/OrderShop.php Parādīt failu

@@ -23,7 +23,7 @@ abstract class OrderShop extends AbstractEntity implements FilterMerchantInterfa
protected $merchant;

/**
* @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface", inversedBy="orders")
* @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface", inversedBy="orders", fetch="EAGER")
*/
protected $user;


Notiek ielāde…
Atcelt
Saglabāt