Ver código fonte

OrderShop : fetch eager sur $user

develop
Guillaume 3 anos atrás
pai
commit
5b1fabdb14
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      ShopBundle/Model/OrderShop.php

+ 1
- 1
ShopBundle/Model/OrderShop.php Ver arquivo

@@ -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;


Carregando…
Cancelar
Salvar