The check https://github.com/doctrine/persistence/blob/43526ae63312942e5316100bb3ed589ba1aba491/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php#L181 seems to be insufficient as a transient class may have an alias defined using `ResolveTargetEntityListener`.
The check
persistence/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
Line 181 in 43526ae
seems to be insufficient as a transient class may have an alias defined using
ResolveTargetEntityListener.