-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching association throws "Unknown parameter type, 116 given" exception #200
Comments
I have actually revisited this and it is in fact a bug in the library. Changing every primary key from 'uuid_binary' type to 'uuid' made everything work fine again. |
I had the same issue with v2.x. Rolling back to v1 helped. Didn't notice anything in the CHANGELOG.md |
Same here with:
|
It seems it's a bug on ORM side doctrine/orm#7835 Helped rewriting |
@acelot Can you provide more details on what you mean by "helped rewriting |
FYI as its not mentined here. Error "Unknown parameter type, 116 given" is caused by #72 (released in 2.0.0) and already fixed upstream in PR doctrine/dbal#5994 . ArrayParametrType does not support BINARY type right now. After applying patch from PR everything is working as expected. |
Tbh, I am not 100% sure that this issue lies within this library, within
doctrine/orm
or withindoctrine/dbal
. Having said that, let me share my findings on what is happening to me.The project in question is based on
doctrine/orm
, which is being tested locally with thepdo_sqlite
library. I have two very basic entities with the following mapping:Plus an association class with the following definition:
I believe the entities are self-explanatory, but I will be happy to provide more context if necessary.
That being said, I am running this code inside the controller:
After which I am getting the following Exception:
After some investigation into the issue, I found out that the misterious unknown parameter 116 is 'created' here:
Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll()
Which eventually calls this (the actual line where the 116 is 'added'):
https://github.com/doctrine/orm/blob/2.14.x/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php#L1962
Does anyone have any idea why I am getting this error?
Locked versions of the libraries are:
doctrine/orm
,2.14.1
ramsey/uuid-doctrine
,2.0.0
ramsey/uuid
,4.7.3
The text was updated successfully, but these errors were encountered: