Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to load \Doctrine\ORM\Configuration() class with Doctrine 2 classloader in cli-config.php file when using the doctrine CLI
    text
    copied!<p>I followed the steps in the following article in order to integrate Zend Framework 1.11 and Doctrine 2:</p> <p><a href="http://jeboy25.blogspot.com/2010/08/doctrine-2-and-zend-framework-110.html" rel="nofollow">http://jeboy25.blogspot.com/2010/08/doctrine-2-and-zend-framework-110.html</a></p> <p>And I have 3 questions about the article:</p> <p>1-In the "SchemaToolClass" section i don't understand why the author includes schema_tool.php at the bottom of ZendProject/public/index.php file after : $application->bootstrap() ->run(); </p> <p>2-when i execute the command "php doctrine orm:schema-tool:create" i have the following error message in the command line: HP Stack trace: PHP 1. {main}() /Library/WebServer/Documents/carlending/application/tools/doctrine:0 PHP 2. include() /Library/WebServer/Documents/carlending/application/tools/doctrine:7 PHP 3. require() /Library/WebServer/Documents/carlending/application/tools/doctrine.php:41 PHP 4. Doctrine\Common\ClassLoader->loadClass($className = <em>uninitialized</em>) the error occurs in the cli-config.php file at the line '$config = new \Doctrine\ORM\Configuration();'</p> <p>3-Can you explain why the author puts the doctrine generated proxies and models inside the domain folder. Isn't it better that they reside in the models folder like any other model class. Sometimes i also see some programmers using a 'generated' folder inside models.</p> <p>If you managed to make a working integration of Zend 1.x and Doctrine i would be very happy if you could also send me a working project that would very helpful.</p> <p>Thanks for your help.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload