lib/Doctrine/ORM/AbstractQuery.php
public function setParameters($parameters)
    {
        // BC compatibility with 2.3-
        if (is_array($parameters)) {
            $parameterCollection = new ArrayCollection();

            foreach ($parameters as $key => $value) {
                $parameterCollection->add(new Parameter($key, $value));
            }

            $parameters = $parameterCollection;
        }

        $this->parameters = $parameters;

        return $this;
    }
public function setParameters($parameters)
    {
        // BC compatibility with 2.3-
        if (is_array($parameters)) {
            $parameterCollection = new ArrayCollection();

            foreach ($parameters as $key => $value) {
                $parameterCollection->add(new Parameter($key, $value));
            }

            $parameters = $parameterCollection;
        }

        $this->parameters = $parameters;

        return $this;
    }
public function setParameters ( $ parameters ) { // BC compatibility with 2.3- if ( is_array ( $ parameters ) ) { $ parameterCollection = new ArrayCollection ( ) ; foreach ( $ parameters as $ key => $ value ) { $ parameterCollection -> add ( new Parameter ( $ key , $ value ) ) ; } $ parameters = $ parameterCollection ; } $ this -> parameters = $ parameters ; return $ this ; }
Sets a collection of query parameters.

@param ArrayCollection|array|Parameter[]|mixed[] $parameters

@return static This query instance.
Sets a collection of query parameters .