Update using Cake Pattern for repository injection