Fixed undefined modelClass when using polymorphic relations
Merge pull request #36 from nvdnkpr/master

Fixed undefined modelClass when using polymorphic relations