Hi, I found that running bin/console lint:container in my project (Symfony 5.1) fires an error:
[ERROR] Invalid definition for service
"a2lix_auto_form.form.manipulator.doctrine_orm_manipulator": argument 1
of "A2lix\AutoFormBundle\ObjectInfo\DoctrineORMInfo::__construct"
accepts "Doctrine\Persistence\Mapping\ClassMetadataFactory",
"Doctrine\Common\Persistence\Mapping\ClassMetadataFactory" passed.
I tried to fix it according to the error suggestion. Doctrine\Common\Persistence\* as been moved to it's own package since v2.9.0 so Doctrine\Common\Persistence\Mapping\ClassMetadataFactory is deprecated in favor of Doctrine\Persistence\Mapping\ClassMetadataFactory.
Hi, I found that running
bin/console lint:container
in my project (Symfony 5.1) fires an error:I tried to fix it according to the error suggestion.
Doctrine\Common\Persistence\*
as been moved to it's own package since v2.9.0 soDoctrine\Common\Persistence\Mapping\ClassMetadataFactory
is deprecated in favor ofDoctrine\Persistence\Mapping\ClassMetadataFactory
.I hope this is the right fix.
Thank you for your time.