Note that there are some explanatory texts on larger screens.

plurals
  1. POIssue installing Doctrine ORM Module on ZF2 RC2
    primarykey
    data
    text
    <p>I'm trying to integrate the <a href="https://github.com/doctrine/DoctrineORMModule" rel="nofollow"><code>DoctrineORMModule</code></a> module with <a href="https://github.com/zendframework/zf2/tree/release-2.0.0rc2" rel="nofollow"><code>ZF2 RC2</code></a> but I'm having issues. My <code>./composer.json</code> is as follows and <code>php composer.phar update</code> is running fine:</p> <pre><code>"require": { "php": "&gt;=5.3.3", "doctrine/data-fixtures": "dev-master", "doctrine/doctrine-module": "dev-master", "doctrine/orm": "&gt;2.2,&lt;2.4-dev", "doctrine/dbal": "&gt;2.2,&lt;2.4-dev", "doctrine/migrations": "dev-master", "zendframework/zendframework": "dev-master#a59928a3a37e420193939f9799ece27fb39bb84e" }, "autoload": { "psr-0": { "DoctrineORMModule": "src/", "DoctrineORMModuleTest": "tests/" } } </code></pre> <p>However one of the modules added to <code>./application/application.config.php</code> is causing problems:</p> <pre><code>'modules' =&gt; array( 'Application', 'DoctrineModule', // WORKS FINE 'DoctrineORMModule', // 'Module (DoctrineORMModule) could not be initialized.' ), </code></pre> <p>This is confirmed when I issue the <code>./vendor/bin/doctrine-module</code> command:</p> <blockquote> <p>PHP Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (DoctrineORMModule) could not be initialized.' in ./vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:139</p> </blockquote> <p>If I search my <code>vendor</code> directory for Doctrine namespaces I can find namespaces for <code>DoctrineModule</code> (<code>grep "namespace DoctrineModule" -R ./vendor</code> finds things) but not <code>DoctrineORMModule</code> (<code>grep "namespace DoctrineORMModule" -R ./vendor</code> doesn't).</p> <p><strong>What am I missing in order to integrate <code>DoctrineORMModule</code> with <code>ZF2 RC2</code>?</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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