mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11734] Add processing binary binding type #13228
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?
Original Pull Request: https://github.com/doctrine/orm/pull/11734
State: closed
Merged: No
Updated PR Description
Problem Statement
When using the
findBymethod in the repository with binary values as parameters, an unhandled error occurs:Unhandled match case 16.How to reproduce:
This error originates from the following code in the
BasicEntityPersisterclass:[BasicEntityPersister.php#L1930-L1941](https://github.com/doctrine/orm/blob/3.3.0/src/Persisters/Entity/BasicEntityPersister.php#L1930-L1941).
The current implementation does not handle
ParameterType::BINARYproperly, leading to unexpected behavior instead of throwing an appropriate exception or processing binary values.Actual Behavior
ParameterType::BINARY, the code fails withUnhandled match case 16.Expected Behavior
findBymethod.Changes Made in This PR
BasicEntityPersisterclass to processParameterType::BINARYcorrectly.Impact of Changes
Unhandled match case 16error for binary parameters.findBymethods.