You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…rtyInfo\DoctrineExtractor (insekticid)
This PR was submitted for the 3.4 branch but it was merged into the 2.8 branch instead (closes#25841).
Discussion
----------
[DoctrineBridge] Fix bug when indexBy is meta key in PropertyInfo\DoctrineExtractor
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass? | yes
| Fixed tickets | #25834 <!-- #-prefixed issue number(s), if any -->
| License | MIT
@dunglas could you check it?
<!--
- Bug fixes must be submitted against the lowest branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the master branch.
- Replace this comment by a description of what your PR is solving.
-->
Commits
-------
583759f PropertyInfo\DoctrineExtractor - There is bug when indexBy is meta key
There is bug when indexBy is meta key id introduced in doctrine pull
doctrine/orm#639
originally from issue
doctrine/orm#3094
doctrine/orm#1784
Buggy line is
symfony/src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php
Line 99 in 6e6ac9e
where
$typeOfField = $subMetadata->getTypeOfField($indexProperty);
returnsnull
->
$collectionKeyType = $this->getPhpType($typeOfField);
returnsnull
->
return array(new Type(null)
throwsthrow new \InvalidArgumentException(sprintf('"" is not a valid PHP type.', $builtinType));
I discoverred this bug when I attached Api Platform ApiLoader
https://github.com/api-platform/core/blob/master/src/Bridge/Symfony/Routing/ApiLoader.php#L108
The text was updated successfully, but these errors were encountered: