private function executeSQL($SQL, $parameters = null) {
        try {
            $queryPrepare = $this->connection->prepare($SQL);
            if (is_array($parameters)) {
                $queryPrepare->execute($parameters);
            } else {
                $queryPrepare->execute();
            }
        } catch (\PDOException $e) {
            throw new ModelException('Error in the Select QUERY ('.$SQL.') '
                    . 'and error message('.$e->getMessage().')');
        }
        return $queryPrepare;
    }
private function executeSQL($SQL, $parameters = null) {
        try {
            $queryPrepare = $this->connection->prepare($SQL);
            if (is_array($parameters)) {
                $queryPrepare->execute($parameters);
            } else {
                $queryPrepare->execute();
            }
        } catch (\PDOException $e) {
            throw new ModelException('Error in the Select QUERY ('.$SQL.') '
                    . 'and error message('.$e->getMessage().')');
        }
        return $queryPrepare;
    }
private function executeSQL ( $ SQL , $ parameters = null ) { try { $ queryPrepare = $ this -> connection -> prepare ( $ SQL ) ; if ( is_array ( $ parameters ) ) { $ queryPrepare -> execute ( $ parameters ) ; } else { $ queryPrepare -> execute ( ) ; } } catch ( \ PDOException $ e ) { throw new ModelException ( 'Error in the Select QUERY (' . $ SQL . ') ' . 'and error message(' . $ e -> getMessage ( ) . ')' ) ; } return $ queryPrepare ; }
Execute SQL and return the object.

@param string $SQL
@throws ModelException
Execute SQL and return the object .