Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2950

[GH-930] Transactional callback isn't returning false

    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 joni2back:

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

      Message:

      Trying to fix any situation that if we've something callback with explicit FALSE return, like:
      ```php
      $rtn = $mgr->transactional(function()

      {...; return false;}

      );
      $rtn //true
      ```
      Should be the return value of the callback method,
      If the method is not returning any value (null), then.. we consider the callback was done, then return true.

      Regards.

        Activity

        Hide
        Doctrine Bot added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: