Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: ORM
    • Security Level: All

      Description

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

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

      Message:

      SQL filters in Doctrine are a bit too limited for my taste.
      This pull request makes the current connection available inside sql filter classes.
      The connection is needed to quote identifiers or values and generate sql statements for the current database. (sample use-case https://github.com/Atlantic18/DoctrineExtensions/blob/master/lib/Gedmo/SoftDeleteable/Filter/SoftDeleteableFilter.php)
      Currently you can access the connection only through reflection which let's face it - is a hack.

      I've also made the class depend on EntityManagerInterface instead of EntityManager.

      There's a test for the new method.

        Issue Links

          Activity

          Hide
          doctrinebot Doctrine Bot added a comment -

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: