Allow hasOne relation to have a scope option

Signed-off-by: Clark Wang <clark.wangs@gmail.com>
Merge pull request #356 from clarkorz/feature/allow-scope-hasone

Allow hasOne relation to have a scope option