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

        david created issue -
        Hide
        Benjamin Eberlei added a comment -

        Fixed, now throwing an exception.

        Tables without primary keys are not supported by DatabaseDriver.

        Show
        Benjamin Eberlei added a comment - Fixed, now throwing an exception. Tables without primary keys are not supported by DatabaseDriver.
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2.2 [ 10195 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13516 ] jira-feedback [ 15266 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15266 ] jira-feedback2 [ 17130 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17130 ] jira-feedback3 [ 19383 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1692, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: