title: Doctrine\ORM\ORMException: This behaviour is (currently) not supported by Doctrine 2
body: <p>I'm running an application stack which uses codeigniter along with doctrine2. I was successfully running the command line tool to generate my models, proxies and db till few days back. Y'day i made some additions to my XML mapping and now if i run</p>
  
  <pre><code>php doctrine-cli.php orm:create
  </code></pre>
  
  <p>it gives me the following error and exits:</p>
  
  <pre><code>[Doctrine\ORM\ORMException] This behaviour is (currently) not supported by Doctrine 2
  </code></pre>
  
  <p>How ever, i did</p>
  
  <pre><code>php doctrine-cli.php orm:validate-schema --verbose
  </code></pre>
  
  <p>Which gave me following message:</p>
  
  <pre><code>[Mapping]  OK - The mapping files are correct.
  
  
  [Doctrine\ORM\ORMException]
  This behaviour is (currently) not supported by Doctrine 2
  
  Exception trace:
   () at C:\wamp\www\frsale\application\libraries\Doctrine\ORM\ORMException.php:12
  8
   Doctrine\ORM\ORMException::notSupported() at C:\wamp\www\frsale\application\lib
  raries\Doctrine\ORM\Tools\SchemaTool.php:439
   Doctrine\ORM\Tools\SchemaTool-&gt;_gatherRelationsSql() at C:\wamp\www\frsale\appl
  ication\libraries\Doctrine\ORM\Tools\SchemaTool.php:213
   Doctrine\ORM\Tools\SchemaTool-&gt;getSchemaFromMetadata() at C:\wamp\www\frsale\ap
  plication\libraries\Doctrine\ORM\Tools\SchemaTool.php:711
   Doctrine\ORM\Tools\SchemaTool-&gt;getUpdateSchemaSql() at C:\wamp\www\frsale\appli
  cation\libraries\Doctrine\ORM\Tools\SchemaValidator.php:287
   Doctrine\ORM\Tools\SchemaValidator-&gt;schemaInSyncWithMetadata() at C:\wamp\www\f
  rsale\application\libraries\Doctrine\ORM\Tools\Console\Command\ValidateSchemaCom
  mand.php:77
   Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand-&gt;execute() at C:\wamp\
  www\frsale\application\libraries\Doctrine\Symfony\Component\Console\Command\Comm
  and.php:239
   Symfony\Component\Console\Command\Command-&gt;run() at C:\wamp\www\frsale\applicat
  ion\libraries\Doctrine\Symfony\Component\Console\Application.php:193
   Symfony\Component\Console\Application-&gt;doRun() at C:\wamp\www\frsale\applicatio
  n\libraries\Doctrine\Symfony\Component\Console\Application.php:106
   Symfony\Component\Console\Application-&gt;run() at C:\wamp\www\frsale\application\
  doctrine-cli.php:42
  
  orm:validate-schema
  </code></pre>
  
  <hr>
  
  <p>Can somebody point me what could be the problem here.</p>
  
  <p>NOTE: my entities and proxies are generated without any problem</p>
  
  <p>EDIT: Closing this as i found the issue and it was nothing but the relation defined in mapping which was creating a problem. </p>