protected function throwInvalidArgumentException($message) { if (class_exists('Doctrine\\DBAL\\Exception\\InvalidArgumentException')) { throw new InvalidArgumentException($message); } else { throw new DBALException($message); } }