martin-georgiev / postgresql-for-doctrine

PostgreSQL enhancements for Doctrine. Provides support for advanced data types (json, jssnb, arrays), text search, array operators and jsonb specific functions.
https://packagist.org/packages/martin-georgiev/postgresql-for-doctrine
MIT License
345 stars 40 forks source link

InArray use ANY instead of ANY_OF #200

Closed landure closed 3 months ago

landure commented 4 months ago

MartinGeorgiev\Doctrine\ORM\Query\AST\Functions\InArray use MartinGeorgiev\Doctrine\ORM\Query\AST\Functions\Any by calling ANY as function name.

The documentation examples use ANY_OF as alias for the Any function, triggering a type error when using InArray.

Either detect the alias used for Any class (prefered), or use ANY_OF (breaking change for code already using InArray).

Thank you for your work.

martin-georgiev commented 4 months ago

Please provide code snippets to replicate the issue.

landure commented 3 months ago

My bad, i'm an idiot.