Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-985

[PATCH] Fix attempt to get column by class property name

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: Git Master
    • Fix Version/s: Git Master
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None

      Description

      PULL REQUEST: https://github.com/doctrine/doctrine2/pull/27

      After upgrading from a Doctrine 2.0 RC to final version, I noticed a failure when using doctrine orm:schema:create:

      [Doctrine\DBAL\Schema\SchemaException]
      There is no column with name '_id' on table 'subuser'.

      Since this worked before the upgrade, I investigated and found a new line of code that was attempting to get a column using the class identifier property name (_id) rather than the mapped column name (user_id). Please see patch.

        Activity

        David Deller created issue -
        David Deller made changes -
        Field Original Value New Value
        Component/s Tools [ 10015 ]
        Component/s ORM [ 10012 ]
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12300 ] jira-feedback [ 14733 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14733 ] jira-feedback2 [ 16597 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16597 ] jira-feedback3 [ 18850 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: