瀏覽代碼

OrderShop : fetch eager sur $user

develop
Guillaume 3 年之前
父節點
當前提交
5b1fabdb14
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      ShopBundle/Model/OrderShop.php

+ 1
- 1
ShopBundle/Model/OrderShop.php 查看文件

@@ -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…
取消
儲存