[DDC-1482] GH-160: Allow to unset one-to-one relation with generated class Created: 08/Nov/11  Updated: 07/Jun/12  Resolved: 13/Nov/11

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.2
Security Level: All

Type: Improvement Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


 Description   

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



 Comments   
Comment by Benjamin Eberlei [ 13/Nov/11 ]

Merged

Comment by Benjamin Eberlei [ 07/Jun/12 ]

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

Comment by Benjamin Eberlei [ 07/Jun/12 ]

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

Generated at Sat Jul 26 01:10:15 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.