1

I am using API Platform 3.0. In my application, I have an entity that includes a 'title' field. I'm looking to sort the entities by this 'title' field in a case-insensitive manner.

I currently have the following annotation in my entity:

#[ORM\Entity]
#[ApiResource(
    order: ['title' => 'ASC'],
)]
#[GetCollection]
class MyEntity
{
    #[ORM\Column(type: 'string')]
    public string $title;
}
Xero
  • 3,951
  • 4
  • 41
  • 73
DurandA
  • 1,095
  • 1
  • 17
  • 35

0 Answers0