I have solved my problem. I removed the id field in the extending class. Now only the root class had the attribute and all works fine. I don't understand why in the inherence description it is written that also the extending classes have the id attribute.
Space pants. Tiny ad:
a bit of art, as a gift, the permaculture playing cards