Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1482

GH-160: Allow to unset one-to-one relation with generated class

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Security Level: All
    • 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

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Merged

        Show
        Benjamin Eberlei added a comment - Merged
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-160] was opened https://github.com/doctrine/dbal/pull/160
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-160] was closed https://github.com/doctrine/dbal/pull/160

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: