In insertObject/updateObject make sure the class is managed so we have
its table