support polymorphic
Merge pull request #4 from zfben/master

support polymorphic