jkp99g
Last Updated: February 25, 2016
·
3.161K
· sethunath

Forcing Eager loading in doctrine 2

manyToOne:
    country:
        targetEntity: DpCountryDetails
        joinColumn:
            name: countryID
            referencedColumnName: countryID
        nullable: true
        fetch: EAGER #Forces doctrine to eager load the related field