Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 2 comments

2 participants

@doctrinebot

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.

@doctrinebot

Comment created by @beberlei:

Fixed, now throwing an exception.

Tables without primary keys are not supported by DatabaseDriver.

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.2.2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.