Sfoglia il codice sorgente

OrderShop : fetch eager sur $user

develop
Guillaume 3 anni fa
parent
commit
5b1fabdb14
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      ShopBundle/Model/OrderShop.php

+ 1
- 1
ShopBundle/Model/OrderShop.php Vedi File

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


Loading…
Annulla
Salva