only generate findOneBySlug if required
Merge pull request #663 from havvg/feature/sluggable-querymethods

only generate findOneBySlug if required
Merge remote branch 'upstream/master'