public function execute()
    {
        if ($this->type == self::SELECT) {
            return $this->connection->executeQuery($this->getSQL(), $this->params, $this->paramTypes);
        } else {
            return $this->connection->executeUpdate($this->getSQL(), $this->params, $this->paramTypes);
        }
    }
public function execute()
    {
        if ($this->type == self::SELECT) {
            return $this->connection->executeQuery($this->getSQL(), $this->params, $this->paramTypes);
        } else {
            return $this->connection->executeUpdate($this->getSQL(), $this->params, $this->paramTypes);
        }
    }
public function execute ( ) { if ( $ this -> type == self :: SELECT ) { return $ this -> connection -> executeQuery ( $ this -> getSQL ( ) , $ this -> params , $ this -> paramTypes ) ; } else { return $ this -> connection -> executeUpdate ( $ this -> getSQL ( ) , $ this -> params , $ this -> paramTypes ) ; } }
Executes this query using the bound parameters and their types.

Uses {@see Connection::executeQuery} for select statements and {@see Connection::executeUpdate}
for insert, update and delete statements.

@return \Doctrine\DBAL\Driver\Statement|int
Executes this query using the bound parameters and their types .