mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1035: YamlDriver does not evaluate orphanRemoval option for toMany relations #1289
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
)
@doctrinebot commented on GitHub (Feb 20, 2011):
Comment created by @guilhermeblanco:
Fixed in trunk
@doctrinebot commented on GitHub (Feb 20, 2011):
Issue was closed with resolution "Fixed"