set product and photo model relationship