mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1692: doctrine:mapping:convert on entities without primary key #2128
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Mar 9, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user dave:
It issn't possible to use some of the Doctrine tools on entities without primary key.
Following error appears:
{quote}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{quote}
DatabaseDriver tries to get primary key columns without checking if there is any primary key.