Last Updated: February 25, 2016
·
3.571K
· 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