DDC-299: Wrong parsing of 'on-delete' and 'on-update' attributes of join columns in xml mapping driver #371

Closed
opened 2026-01-22 12:36:17 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 3, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user ignat:

  1. The error is in _getJoinColumnMapping method of Doctrine\ORM\Mapping\Driver\XmlDriver class where isset method corresponds to 'onDelete' and 'onUpdate' keys of $joinColumnElement, they must be 'on-delete' and 'on-update' respectively.
  2. 'new' operator missed in Doctrine\DBAL\Platforms\AbstractPlatform in getForeignKeyReferentialActionSql method when exception throws in default case.
Originally created by @doctrinebot on GitHub (Feb 3, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user ignat: 1) The error is in _getJoinColumnMapping method of Doctrine\ORM\Mapping\Driver\XmlDriver class where isset method corresponds to 'onDelete' and 'onUpdate' keys of $joinColumnElement, they must be 'on-delete' and 'on-update' respectively. 2) 'new' operator missed in Doctrine\DBAL\Platforms\AbstractPlatform in getForeignKeyReferentialActionSql method when exception throws in default case.
admin added the Bug label 2026-01-22 12:36:17 +01:00
admin closed this issue 2026-01-22 12:36:19 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 3, 2010):

Comment created by romanb:

I think nr. 1 is already fixed in trunk.

@doctrinebot commented on GitHub (Feb 3, 2010): Comment created by romanb: I think nr. 1 is already fixed in trunk.
Author
Owner

@doctrinebot commented on GitHub (Feb 3, 2010):

Comment created by ignat:

sorry i missed it. I'll be more attentive next time

@doctrinebot commented on GitHub (Feb 3, 2010): Comment created by ignat: sorry i missed it. I'll be more attentive next time
Author
Owner

@doctrinebot commented on GitHub (Feb 3, 2010):

Comment created by @beberlei:

I committed the fix for 1. two days ago, so no problem :-)

@doctrinebot commented on GitHub (Feb 3, 2010): Comment created by @beberlei: I committed the fix for 1. two days ago, so no problem :-)
Author
Owner

@doctrinebot commented on GitHub (Feb 7, 2010):

Comment created by @beberlei:

Is already fixed.

@doctrinebot commented on GitHub (Feb 7, 2010): Comment created by @beberlei: Is already fixed.
Author
Owner

@doctrinebot commented on GitHub (Feb 7, 2010):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Feb 7, 2010): 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#371