Update doctrine repository implementation