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
Regenerating entities create traits fields as well (e.g: StofDoctrineExtensionsBundle Timestampable).
The problem comes from Doctrine returning metadata with reflClass bieng null in class EntityRegenerator.
Adding:
if(!$classReflection)
$classReflection = new \ReflectionClass($classMetadata->name);
In the method getMappedFieldsInEntity "fixes" the problem.
The text was updated successfully, but these errors were encountered:
Symfony version: 6.3
Maker bundle version: v1.51.1
Doctrine ORM version: 2.16.2
Regenerating entities create traits fields as well (e.g: StofDoctrineExtensionsBundle Timestampable).
The problem comes from Doctrine returning metadata with reflClass bieng null in class EntityRegenerator.
Adding:
if(!$classReflection)
$classReflection = new \ReflectionClass($classMetadata->name);
In the method getMappedFieldsInEntity "fixes" the problem.
The text was updated successfully, but these errors were encountered: