protected function quoteArray(array $array)
    {
        array_walk(
            $array,
            function (&$value) {
                $value = $this->entityManager->getConnection()->quote($value);
            }
        );

        return implode(', ', $array);
    }
protected function quoteArray(array $array)
    {
        array_walk(
            $array,
            function (&$value) {
                $value = $this->entityManager->getConnection()->quote($value);
            }
        );

        return implode(', ', $array);
    }
protected function quoteArray ( array $ array ) { array_walk ( $ array , function ( & $ value ) { $ value = $ this -> entityManager -> getConnection ( ) -> quote ( $ value ) ; } ) ; return implode ( ', ' , $ array ) ; }
Quote a PHP array to allow using it in native SQL query

@param array $array

@return string
Quote a PHP array to allow using it in native SQL query