Doctrine Projecthttp://www.doctrine-project.org/jira
This file is an XML representation of an issueen-us6.2.3626015-04-2014[DDC-1692] doctrine:mapping:convert on entities without primary keyhttp://www.doctrine-project.org/jira/browse/DDC-1692
Doctrine 2 - ORM<p>It issn't possible to use some of the Doctrine tools on entities without primary key. <br/>
Following error appears: </p>
<blockquote><p>PHP Fatal error: Call to a member function getColumns() on a non-object in /media/sf_webdev-shared/Symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 133</p></blockquote>
<p>DatabaseDriver tries to get primary key columns without checking if there is any primary key.</p>Ubuntu Server, PHP: 5.3.6-13ubuntu3.6, Symfony 2.0.11DDC-1692doctrine:mapping:convert on entities without primary keyBugMinorResolvedFixedBenjamin EberleidavidFri, 9 Mar 2012 17:33:13 +0000Wed, 14 Mar 2012 20:11:13 +0000Wed, 14 Mar 2012 20:11:13 +00002.1.62.2.2Tools00<p>Fixed, now throwing an exception.</p>
<p>Tables without primary keys are not supported by DatabaseDriver.</p>