Fixed the doctrine adapter.