Support beforeQuery
Merge pull request #190 from dreamsxin/model_beforequery

Support beforeQuery