Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1692

doctrine:mapping:convert on entities without primary key

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.2.2
    • Component/s: Tools
    • Labels:
      None
    • Environment:
      Ubuntu Server, PHP: 5.3.6-13ubuntu3.6, Symfony 2.0.11

      Description

      It issn't possible to use some of the Doctrine tools on entities without primary key.
      Following error appears:

      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

      DatabaseDriver tries to get primary key columns without checking if there is any primary key.

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            david
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: