Doctrine 2 ArrayCollection filter method

前端 未结 4 781
遥遥无期
遥遥无期 2020-12-02 10:46

Can I filter out results from an arrayCollection in Doctrine 2 while using lazy loading? For example,

// users = ArrayCollection with User entities containin         


        
4条回答
  •  星月不相逢
    2020-12-02 10:56

    The Collection#filter method really does eager load all members. Filtering at the SQL level will be added in doctrine 2.3.

提交回复
热议问题