Skip to content

Instantly share code, notes, and snippets.

@cirpo
Created July 4, 2010 09:29
Show Gist options
  • Save cirpo/463299 to your computer and use it in GitHub Desktop.
Save cirpo/463299 to your computer and use it in GitHub Desktop.
cirpo@uberalles:~/Sites/test/mongoDoctrineTest$ php test.php
/Users/cirpo/Sites/test/mongoDoctrineTest/pippo/herePHP Warning: class_parents(): Class User does not exist and could not be loaded in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php on line 279
PHP Stack trace:
PHP 1. {main}() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:0
PHP 2. Doctrine\ODM\MongoDB\DocumentManager->find() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:48
PHP 3. Doctrine\ODM\MongoDB\DocumentManager->getRepository() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:554
PHP 4. Doctrine\ODM\MongoDB\DocumentManager->getClassMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:409
PHP 5. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:240
PHP 6. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:145
PHP 7. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_getParentClasses() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:172
PHP 8. class_parents() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:279
Warning: class_parents(): Class User does not exist and could not be loaded in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php on line 279
Call Stack:
0.0003 645432 1. {main}() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:0
0.0839 4335032 2. Doctrine\ODM\MongoDB\DocumentManager->find() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:48
0.0839 4335248 3. Doctrine\ODM\MongoDB\DocumentManager->getRepository() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:554
0.0839 4335248 4. Doctrine\ODM\MongoDB\DocumentManager->getClassMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:409
0.0839 4335248 5. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:240
0.0839 4335248 6. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:145
0.0839 4335464 7. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_getParentClasses() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:172
0.0839 4335728 8. class_parents() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:279
PHP Warning: array_reverse() expects parameter 1 to be array, boolean given in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php on line 279
PHP Stack trace:
PHP 1. {main}() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:0
PHP 2. Doctrine\ODM\MongoDB\DocumentManager->find() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:48
PHP 3. Doctrine\ODM\MongoDB\DocumentManager->getRepository() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:554
PHP 4. Doctrine\ODM\MongoDB\DocumentManager->getClassMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:409
PHP 5. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:240
PHP 6. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:145
PHP 7. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_getParentClasses() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:172
PHP 8. array_reverse() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:279
Warning: array_reverse() expects parameter 1 to be array, boolean given in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php on line 279
Call Stack:
0.0003 645432 1. {main}() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:0
0.0839 4335032 2. Doctrine\ODM\MongoDB\DocumentManager->find() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:48
0.0839 4335248 3. Doctrine\ODM\MongoDB\DocumentManager->getRepository() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:554
0.0839 4335248 4. Doctrine\ODM\MongoDB\DocumentManager->getClassMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:409
0.0839 4335248 5. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:240
0.0839 4335248 6. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:145
0.0839 4335464 7. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_getParentClasses() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:172
0.0844 4335776 8. array_reverse() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:279
PHP Warning: Invalid argument supplied for foreach() in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php on line 279
PHP Stack trace:
PHP 1. {main}() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:0
PHP 2. Doctrine\ODM\MongoDB\DocumentManager->find() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:48
PHP 3. Doctrine\ODM\MongoDB\DocumentManager->getRepository() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:554
PHP 4. Doctrine\ODM\MongoDB\DocumentManager->getClassMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:409
PHP 5. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:240
PHP 6. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:145
PHP 7. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_getParentClasses() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:172
Warning: Invalid argument supplied for foreach() in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php on line 279
Call Stack:
0.0003 645432 1. {main}() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:0
0.0839 4335032 2. Doctrine\ODM\MongoDB\DocumentManager->find() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:48
0.0839 4335248 3. Doctrine\ODM\MongoDB\DocumentManager->getRepository() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:554
0.0839 4335248 4. Doctrine\ODM\MongoDB\DocumentManager->getClassMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:409
0.0839 4335248 5. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:240
0.0839 4335248 6. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:145
0.0839 4335464 7. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_getParentClasses() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:172
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class User does not exist' in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php:239
Stack trace:
#0 /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php(239): ReflectionClass->__construct('User')
#1 /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php(266): Doctrine\ODM\MongoDB\Mapping\ClassMetadata->__construct('User')
#2 /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php(187): Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_newClassMetadataInstance('User')
#3 /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php(145): Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata('User')
#4 /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php(240): Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor('User')
#5 /Use in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php on line 239
Fatal error: Uncaught exception 'ReflectionException' with message 'Class User does not exist' in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php on line 239
ReflectionException: Class User does not exist in /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php on line 239
Call Stack:
0.0003 645432 1. {main}() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:0
0.0839 4335032 2. Doctrine\ODM\MongoDB\DocumentManager->find() /Users/cirpo/Sites/test/mongoDoctrineTest/test.php:48
0.0839 4335248 3. Doctrine\ODM\MongoDB\DocumentManager->getRepository() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:554
0.0839 4335248 4. Doctrine\ODM\MongoDB\DocumentManager->getClassMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:409
0.0839 4335248 5. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->getMetadataFor() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/DocumentManager.php:240
0.0839 4335248 6. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_loadMetadata() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:145
0.0848 4336032 7. Doctrine\ODM\MongoDB\Mapping\ClassMetadataFactory->_newClassMetadataInstance() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:187
0.0848 4338824 8. Doctrine\ODM\MongoDB\Mapping\ClassMetadata->__construct() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php:266
0.0848 4339264 9. ReflectionClass->__construct() /Users/cirpo/Sites/test/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php:239
cirpo@uberalles:~/Sites/test/mongoDoctrineTest$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment