Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1612

Cannot call entityManager->flush($entity) with new entity

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2-BETA1, 2.2-BETA2, Git Master
    • Fix Version/s: 2.2.0-RC1, 2.2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      Following works:
      $entity = $em->find('Entity', 1);
      $entity->setName('newName');
      $em->persist($entity);
      $em->flush($entity);

      Following does NOT work:
      $entity = new Entity();
      $entity->setName('newName');
      $em->persist($entity);
      $em->flush($entity);

        Activity

        Sascha-Oliver Prolic created issue -
        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2 [ 10157 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.2.0-RC1 [ 10191 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13374 ] jira-feedback [ 15204 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15204 ] jira-feedback2 [ 17068 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17068 ] jira-feedback3 [ 19321 ]

        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-1612, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Sascha-Oliver Prolic
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: