Coder Social home page Coder Social logo

rocksolidwebdesign / zend-framework-doctrine-2-example Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 5.1 MB

An example application for Zend Framework 1.11 that uses the Doctrine ORM v2.0

License: The Unlicense

PHP 93.51% Shell 0.01% HTML 0.03% Batchfile 0.01% TSQL 6.44% CSS 0.01%

zend-framework-doctrine-2-example's People

Contributors

rocksolidwebdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zend-framework-doctrine-2-example's Issues

Entities not found

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',
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.