public function hasOne($name, $to, $config = []) {
        $defaults = [
            'to'       => $to,
            'relation' => 'hasOne'
        ];
        $config += $defaults;
        return $this->bind($name, $config);
    }