Doctrine2 - How can I order by a discriminator column?

后端 未结 3 1578
攒了一身酷
攒了一身酷 2021-02-13 04:36

How should I go about ordering by a discriminator column in a doctrine repository query?

I have a pretty straight forward setup, I have different types of payment detai

3条回答
  •  清酒与你
    2021-02-13 05:14

    It seems like the simplest solution (so far) is to add another field to the base class and copy the discriminator column value.

    The aforementioned TYPE(q) works only in WHERE clause.

提交回复
热议问题