That's the expected behaviour: you need to have only one root of the selection, or else the paginator will not know which one is the main component, which is used to distinguish records by identifier.
On 14 Jun 2017 4:49 p.m., "Andrew Davey" <[email protected]> wrote: > i'm trying use the paginator and i keep getting this error. > > i have this setup > > Entity User > Column statuses (ManyToOne of UserStatuses) > > Entity UserStatus > User (entity) > Status (entity) > > Query: > > $builder = $this->createQueryBuilder("u"); > $builder->from("UserStatus", "us") > $builder->andWhere("us.User = user") > $builder->andWhere("us.Status = status") > > > I need to be able to filter like this with the paginator, what do i have > to change to make this work? > > > > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
