Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2725

[GH-814] Fixed a situation where unnecessary sql UPDATE statements were issued fo...

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of iBiryukov:

      Url: https://github.com/doctrine/doctrine2/pull/814

      Message:

      ...r unchanged DateTime objects

      computeChangeSet method in unitOfWork compares original and new data using 'identical' (===) operator. This works well, except for DateTime objects.

      Two different DateTime objects that contain the same data, should not trigger an unnecessary UPDATE query.

      I made changes to account for this case.

        Activity

        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-814] was closed: https://github.com/doctrine/doctrine2/pull/814

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: