mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Doctrine\ORM\QueryBuilder::setParameter and ArrayParameterType in DBAL 4.0.0 #7329
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hanishsingla on GitHub (Feb 20, 2024).
BC Break Report
Summary
Doctrine\ORM\QueryBuilder::setParameter()needs an optional parameter for complex data types sometimes and in 3.x version, it expectsstring|int|nulland can be linked viaDoctrine\DBAL\Connectione.g.Doctrine\DBAL\Connection::PARAM_STR_ARRAY. These values used to be as int datatype and have been deprecated. Now these constants are linked toDoctrine\DBAL\ArrayParameterTypeclass. In 4.0.0 class ArrayParameterType has been converted to Enums but setParameter() is still accepting oldstring|int|nullresulting following errorMore info at https://github.com/doctrine/dbal/issues/6309
@greg0ire commented on GitHub (Feb 20, 2024):
It would be nice to have a stack trace showing the issue.
@hanishsingla commented on GitHub (Feb 20, 2024):
Code to Reproduce