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
I know Lumen is not recommended (heck, I'd not even recommend laravel), but we had to work with it.
I managed to initially fix it by manually binding all repository classes as a singleton, but that was messy - eventually simply installing doctrine/doctrine-bundle solved the issue.
My repositories now no longer extend Doctrine\ORM\EntityRepository but the Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository from the bundle, and then we have a simple constructor in the repository;
Package version, Laravel version
Lumen v8.3.4
Expected behaviour
The ClassMetadata class gets instantiated properly
Actual behaviour
It looks like the DI tries to fill
$entityName
in this constructor;https://github.com/doctrine/orm/blob/2.14.x/lib/Doctrine/ORM/Mapping/ClassMetadata.php#L24-L27
Steps to reproduce the behaviour
Install Lumen
Follow the steps defined here; http://www.laraveldoctrine.org/docs/1.8/orm/lumen
The text was updated successfully, but these errors were encountered: