Browse Source

OrderShop : fetch eager sur $user

develop
Guillaume 3 years ago
parent
commit
5b1fabdb14
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Model/OrderShop.php

+ 1
- 1
ShopBundle/Model/OrderShop.php View 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…
Cancel
Save