rocksolidwebdesign / zend-framework-doctrine-2-example Goto Github PK
View Code? Open in Web Editor NEWAn example application for Zend Framework 1.11 that uses the Doctrine ORM v2.0
License: The Unlicense
An example application for Zend Framework 1.11 that uses the Doctrine ORM v2.0
License: The Unlicense
Hi,
After checkout and configuring your example: set up db details, create table and load data using bin/doctrine orm: and dbal:
I have a fully website showing but with the following error messages all over it:
An error occurred
Application error
Exception information:
Message: Class \Entities\Blog\Comment does not exist
Stack trace:
#0 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Mapping/ClassMetadata.php(67): ReflectionClass->__construct('\Entities\Blog...')
#1 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(351): Doctrine\ORM\Mapping\ClassMetadata->__construct('\Entities\Blog...')
#2 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(260): Doctrine\ORM\Mapping\ClassMetadataFactory->newClassMetadataInstance('\Entities\Blog...')
#3 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(169): Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata('\Entities\Blog...')
#4 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/EntityManager.php(251): Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor('\Entities\Blog...')
#5 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/UnitOfWork.php(1890): Doctrine\ORM\EntityManager->getClassMetadata('\Entities\Blog...')
#6 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(195): Doctrine\ORM\UnitOfWork->createEntity('Entities\Blog\E...', Array, Array)
#7 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(385): Doctrine\ORM\Internal\Hydration\ObjectHydrator->_getEntity(Array, 'e')
#8 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(127): Doctrine\ORM\Internal\Hydration\ObjectHydrator->_hydrateRow(Array, Array, Array)
#9 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(99): Doctrine\ORM\Internal\Hydration\ObjectHydrator->_hydrateAll()
#10 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/AbstractQuery.php(547): Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll(Object(Doctrine\DBAL\Driver\PDOStatement), Object(Doctrine\ORM\Query\ResultSetMapping), Array)
#11 /var/application/Zend-Framework-Doctrine-2-Example/library/Doctrine/ORM/AbstractQuery.php(366): Doctrine\ORM\AbstractQuery->execute(Array, 1)
#12 /var/application/Zend-Framework-Doctrine-2-Example/application/doctrine/Entities/PaginatedRepository.php(28): Doctrine\ORM\AbstractQuery->getResult()
#13 /var/application/Zend-Framework-Doctrine-2-Example/application/controllers/BlogController.php(20): Entities\PaginatedRepository->getPage(0, 10)
#14 /var/application/Zend-Framework-Doctrine-2-Example/library/Zend/Controller/Action.php(513): BlogController->indexAction()
#15 /var/application/Zend-Framework-Doctrine-2-Example/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('indexAction')
#16 /var/application/Zend-Framework-Doctrine-2-Example/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#17 /var/application/Zend-Framework-Doctrine-2-Example/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#18 /var/application/Zend-Framework-Doctrine-2-Example/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#19 /var/application/Zend-Framework-Doctrine-2-Example/public/index.php(11): Zend_Application->run()
#20 {main}
Request Parameters:
array (
'controller' => 'blog',
'action' => 'index',
'module' => 'default',
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.