Category: select-n-plus-1

Doctrine adds extra queries during hydration causing n+1 problem with "normal" one to one and self-referenced relations

News are related to each other using one-to-many self-referencing approach (one news is parent and can have many children). What’s more each News has got normal (non self-referenced) one to one relation with Event and Gallery . When I run…