DDC-1035: YamlDriver does not evaluate orphanRemoval option for toMany relations #1289

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

Originally created by @doctrinebot on GitHub (Feb 15, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user mueller-timo:

YamlDriver does not evaluate orphanRemoval option for toMany relations.

the yaml config of the relation
.
.
.
oneToMany:
users:
targetEntity: Entities\User
orphanRemoval: true
mappedBy: order

the class metadata of the relation:
array(
"fieldName" => "campaigns",
"targetEntity" => "Entities\User",
"mappedBy" => "order",
"type" => 4,
"cloneable" => false,
"inversedBy" => null,
"isOwningSide" => false,
"sourceEntity" => "Entities\User",
"fetch" => 2,
"cascade" => array(
),
"isCascadeRemove" => false,
"isCascadePersist" => false,
"isCascadeRefresh" => false,
"isCascadeMerge" => false,
"isCascadeDetach" => false,
"orphanRemoval" => false, // orphanRemoval is alway false
)

Originally created by @doctrinebot on GitHub (Feb 15, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user mueller-timo: YamlDriver does not evaluate orphanRemoval option for toMany relations. the yaml config of the relation . . . oneToMany: users: targetEntity: Entities\User orphanRemoval: true mappedBy: order the class metadata of the relation: array( "fieldName" => "campaigns", "targetEntity" => "Entities\User", "mappedBy" => "order", "type" => 4, "cloneable" => false, "inversedBy" => null, "isOwningSide" => false, "sourceEntity" => "Entities\User", "fetch" => 2, "cascade" => array( ), "isCascadeRemove" => false, "isCascadePersist" => false, "isCascadeRefresh" => false, "isCascadeMerge" => false, "isCascadeDetach" => false, "orphanRemoval" => false, // orphanRemoval is alway false )
admin added the Bug label 2026-01-22 13:08:31 +01:00
admin closed this issue 2026-01-22 13:08:31 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 20, 2011):

Comment created by @guilhermeblanco:

Fixed in trunk

@doctrinebot commented on GitHub (Feb 20, 2011): Comment created by @guilhermeblanco: Fixed in trunk
Author
Owner

@doctrinebot commented on GitHub (Feb 20, 2011):

Issue was closed with resolution "Fixed"

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

No dependencies set.

Reference: doctrine/archived-orm#1289