DDC-985: [PATCH] Fix attempt to get column by class property name #1229

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

Originally created by @doctrinebot on GitHub (Jan 13, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user dmdeller:

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.

Originally created by @doctrinebot on GitHub (Jan 13, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user dmdeller: 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.
admin added the Bug label 2026-01-22 13:06:42 +01:00
admin closed this issue 2026-01-22 13:06:42 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 23, 2011):

Comment created by @beberlei:

This is a duplicate of a previous issue and is fixed in master.

@doctrinebot commented on GitHub (Jan 23, 2011): Comment created by @beberlei: This is a duplicate of a previous issue and is fixed in master.
Author
Owner

@doctrinebot commented on GitHub (Jan 23, 2011):

Issue was closed with resolution "Duplicate"

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

No dependencies set.

Reference: doctrine/archived-orm#1229