Updated adapter to be consistent with other Doctrine adapters.