Class does not exist. #9468
Answered
by
greg0ire
oskarniziol
asked this question in
Support Questions
-
C:\xampp\htdocs>php test.php
PHP Fatal error: Uncaught Doctrine\Persistence\Mapping\MappingException: Class 'Ext' does not exist in C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\MappingException.php:94
Stack trace:
#0 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\RuntimeReflectionService.php(39): Doctrine\Persistence\Mapping\MappingException::nonExistingClass('Ext')
#1 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory.php(335): Doctrine\Persistence\Mapping\RuntimeReflectionService->getParentClasses('Ext')
#2 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory.php(369): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getParentClasses('Ext')
#3 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory.php(260): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('Ext')
#4 C:\xampp\htdocs\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(289): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('Ext')
#5 C:\xampp\htdocs\vendor\openwave\extension\src\Core.php(16): Doctrine\ORM\EntityManager->find('Ext', 'xddd')
#6 C:\xampp\htdocs\test.php(5): Ext\Core->__construct('xddd')
#7 {main}
thrown in C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\MappingException.php on line 94
Fatal error: Uncaught Doctrine\Persistence\Mapping\MappingException: Class 'Ext' does not exist in C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\MappingException.php:94
Stack trace:
#0 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\RuntimeReflectionService.php(39): Doctrine\Persistence\Mapping\MappingException::nonExistingClass('Ext')
#1 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory.php(335): Doctrine\Persistence\Mapping\RuntimeReflectionService->getParentClasses('Ext')
#2 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory.php(369): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getParentClasses('Ext')
#3 C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory.php(260): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('Ext')
#4 C:\xampp\htdocs\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php(289): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('Ext')
#5 C:\xampp\htdocs\vendor\openwave\extension\src\Core.php(16): Doctrine\ORM\EntityManager->find('Ext', 'xddd')
#6 C:\xampp\htdocs\test.php(5): Ext\Core->__construct('xddd')
#7 {main}
thrown in C:\xampp\htdocs\vendor\doctrine\persistence\lib\Doctrine\Persistence\Mapping\MappingException.php on line 94
C:\xampp\htdocs> |
Beta Was this translation helpful? Give feedback.
Answered by
greg0ire
Feb 5, 2022
Replies: 1 comment 5 replies
-
Is that class maybe in a namespace? In which case you should use |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
oskarniziol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is that class maybe in a namespace? In which case you should use
find(Ext::class, 'xddd')
, and add ause
statement.