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
When i update to dev version i got the following error:
Expected argument of type "Doctrine\ORM\QueryBuilder", "Doctrine\ODM\MongoDB\Query\Builder" given
And this is the stack trace
Stack Trace
in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php at line 245 -
$queryBuilder = call_user_func($queryBuilder, $options['em']->getRepository($options['class']));
if (!$queryBuilder instanceof QueryBuilder) {
throw new UnexpectedTypeException($queryBuilder, 'Doctrine\ORM\QueryBuilder');
}
}
at DoctrineType ->Symfony\Bridge\Doctrine\Form\Type\{closure} (object(OptionsResolver), object(Closure))
in vendor/symfony/symfony/src/Symfony/Component/OptionsResolver/OptionsResolver.php at line 957 ......
Seems that only works with Doctrine ORM and not with Doctrine Mongo ODM
The text was updated successfully, but these errors were encountered:
This PR was squashed before being merged into the 2.7 branch (closes#14576).
Discussion
----------
[DoctrineBridge][Form] Fix BC break in DoctrineType
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #14568
| License | MIT
| Doc PR | n/a
Commits
-------
3172d73 [DoctrineBridge][Form] Fix BC break in DoctrineType
When i update to dev version i got the following error:
And this is the stack trace
Seems that only works with Doctrine ORM and not with Doctrine Mongo ODM
The text was updated successfully, but these errors were encountered: