fix: replace deprecated Entity#setGuid/#getGuid with Entity#guid (#2170)