public static function hasOne($name, $arguments = array())
    {
        $arguments = func_get_args();
        array_shift($arguments);

        list($type, $override) = self::resolveArgs($arguments);

        return new self::$hasOneRelationshipClass($name, $type, $override);
    }