implement hasOne for getPeer