Let related ids be set (if no serializer is available set the value). Removed stale code