DDC-1482: GH-160: Allow to unset one-to-one relation with generated class #1861

Closed
opened 2026-01-22 13:28:46 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 8, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

Pull-Request was automatically synchronized: https://github.com/doctrine/doctrine2/pull/160

Added on generated class.
This generate methods like:

}

that allow to remove "Group" association if the relation is one-to-one.

Plus some indentation issue

Originally created by @doctrinebot on GitHub (Nov 8, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: Pull-Request was automatically synchronized: https://github.com/doctrine/doctrine2/pull/160 Added <variableDefault> on generated class. This generate methods like: ```function setGroup(Group $group = null){ } ``` that allow to remove "Group" association if the relation is one-to-one. Plus some indentation issue ```
admin added the Improvement label 2026-01-22 13:28:46 +01:00
admin closed this issue 2026-01-22 13:28:49 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 13, 2011):

Comment created by @beberlei:

Merged

@doctrinebot commented on GitHub (Nov 13, 2011): Comment created by @beberlei: Merged
Author
Owner

@doctrinebot commented on GitHub (Nov 13, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 13, 2011): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Jun 7, 2012):

Comment created by @beberlei:

A related Github Pull-Request [GH-160] was opened
https://github.com/doctrine/dbal/pull/160

@doctrinebot commented on GitHub (Jun 7, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-160] was opened https://github.com/doctrine/dbal/pull/160
Author
Owner

@doctrinebot commented on GitHub (Jun 7, 2012):

Comment created by @beberlei:

A related Github Pull-Request [GH-160] was closed
https://github.com/doctrine/dbal/pull/160

@doctrinebot commented on GitHub (Jun 7, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-160] was closed https://github.com/doctrine/dbal/pull/160
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1861