Update BaseEntityManager.php