Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Jan 17, 2026

Q A
Branch? 4.2 for bug fix
Tickets Closes #..., closes #...
License MIT
Doc PR api-platform/docs#...

Hi @soyuka ; since I'm playing with some driver-depends features like

  • Escaping Like queries
  • Case sensitivity
  • (soon) Non-ascii letters (cause i'm not sure, searching É or é gives the same result in PartialSearchFilter

I think we need running PHPUnit with Mysql/Pgsql too and not only Sqlite @soyuka

@VincentLanglet VincentLanglet marked this pull request as draft January 17, 2026 18:36
@VincentLanglet VincentLanglet force-pushed the fix/mbstring branch 4 times, most recently from fee7617 to 87a8329 Compare January 17, 2026 19:56
@VincentLanglet VincentLanglet changed the title fix(doctrine): PartialSearchFilter on non ascii letters chore: Run PHPUnit tests on Mysql and Pgsql Jan 17, 2026
}

public ?int $totalQuantity;
public int|string|null $totalQuantity;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends on the DB it's an int or a string

filter: new OrderFilter(),
property: 'createdAt',
filterContext: OrderFilterInterface::NULLS_ALWAYS_FIRST,
filterContext: ['nulls_comparison' => OrderFilterInterface::NULLS_ALWAYS_FIRST],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't correctly configured/tested ; I updated it.

filter: new OrderFilter(),
property: 'createdAt',
filterContext: OrderFilterInterface::NULLS_ALWAYS_FIRST,
filterContext: ['nulls_comparison' => OrderFilterInterface::NULLS_ALWAYS_FIRST],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: this was "tested" but in reality this is not implemented in ODM


#[Assert\Range(min: 1, max: 10)]
#[ORM\Column]
#[ORM\Column(name: '_range')]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

range is a reserved property in Mysql/Postgres

@VincentLanglet VincentLanglet marked this pull request as ready for review January 17, 2026 21:46
@VincentLanglet VincentLanglet requested a review from soyuka January 17, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant