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

        Benjamin Eberlei created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Hide
        Benjamin Eberlei added a comment -

        Merged

        Show
        Benjamin Eberlei added a comment - Merged
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2-DEV [ 10157 ]
        Resolution Fixed [ 1 ]
        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
        Benjamin Eberlei made changes -
        Workflow jira [ 13161 ] jira-feedback [ 15108 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15108 ] jira-feedback2 [ 16972 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16972 ] jira-feedback3 [ 19225 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1482, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: