Commit before any changes with Photo Entity