- Change save order (entity and entity attributes) to fix EntityId=0 error.