Fixed the doctrine adapter