Restore with polymorphic bug

Now the polymorphic association will ignored, instead of raising an error when restoring a model.