Update DoctrineAdapter.php