lazy loading with doctrine one to one mapping

前端 未结 3 2081
一向
一向 2021-02-12 20:39

I am having a hard time finding the correct result for this.

I have one to one mapping. There are two tables:

/**
* @ORM\\Table(name=\"users\")
* @ORM\\E         


        
3条回答
  •  春和景丽
    2021-02-12 21:21

    You can enable extra lazy loading of associations using fetch="EXTRA_LAZY" in your annotations.

    * @ORM\OneToOne(targetEntity="Users", inversedBy="userSetting", fetch="EXTRA_LAZY")
    

提交回复
热议问题