Update doctrine resource