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 updated doctrine/annotations (1.14.2 => 2.0.0) and suddenly got such errors
Fatal: Uncaught Doctrine\ORM\Mapping\MappingException: Class "Acme\User" is not a valid entity or mapped super class.
Also got some warnings that looked suspicious:
Warning: Attempt to read property "type" on array in /var/www/html/analytics.icis.com/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php on line 675
I'm now wondering - am I doing something wrong here? Most likely this shouldn't have broken just by updating? I'm unfortunately not accustomed with the Doctrine code base well, otherwise I wouldn't have to ask here :)
this is some legacy app which has another composer.json where doctrine/lexer v1 was still in use which was autoloaded before...... and the tokens there were of course still arrays instead of objects
I updated doctrine/annotations (1.14.2 => 2.0.0) and suddenly got such errors
Also got some warnings that looked suspicious:
After looking around a bit I could confirm that indeed https://github.com/doctrine/annotations/blob/2.0.0/lib/Doctrine/Common/Annotations/DocParser.php#L675 is an array with the key
type
and most likely that leads to$classAnnotations
being empty inDoctrine\ORM\Mapping\Driver\AnnotationDriver::loadMetadataForClass()
which throws that exception.doctrine/lexer
is installed in2.1.0
being required by other doctrine packages like this oneI'm now wondering - am I doing something wrong here? Most likely this shouldn't have broken just by updating? I'm unfortunately not accustomed with the Doctrine code base well, otherwise I wouldn't have to ask here :)
Looks like #465 is related.
Some more step debugging input in case this helps
The text was updated successfully, but these errors were encountered: