DDC-1692: doctrine:mapping:convert on entities without primary key #2132

Closed
opened 2026-01-22 13:42:09 +01:00 by admin · 2 comments
Owner

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.

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.
admin added the Bug label 2026-01-22 13:42:09 +01:00
admin closed this issue 2026-01-22 13:42:13 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2012):

Comment created by @beberlei:

Fixed, now throwing an exception.

Tables without primary keys are not supported by DatabaseDriver.

@doctrinebot commented on GitHub (Mar 14, 2012): Comment created by @beberlei: Fixed, now throwing an exception. Tables without primary keys are not supported by DatabaseDriver.
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 14, 2012): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2132