Skip to content

Relations are eagerly loaded even when set to false on OneToOne EXTRA_LAZY properties #1889

Description

@jayesbe
/**
 * @var \AppBundle\Entity\Referral $reference
 * 
 * @ApiProperty(attributes={"fetchEager": false})
 * @ORM\OneToOne(targetEntity="\AppBundle\Entity\Referral", mappedBy="referred", fetch="EXTRA_LAZY", cascade={"remove"})
 */
private $reference;

This relation is still eagerly loaded and should not be. Only happens on OneToOne from what I can see.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions