Change __tostring method of entities