Doctrine configuration.