Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-435

[GH-264] Allow passing empty arrays as parameters

    Details

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

      Description

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

      Url: https://github.com/doctrine/dbal/pull/264

      Message:

      Right now something like

      ```php
      $entityManager
      ->createQuery("SELECT e FROM Entity e WHERE e IN (:entities)")
      ->execute(array('entities' => array()));
      ```

      produces a `Warning: array_fill(): Number of elements must be positive`

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: