public static function relationFromField($fieldName, $method = null)
    {
        if ($method) return $method;

        if (substr($fieldName, -3) == '_id') {
            return substr($fieldName, 0, -3);
        }

        if (substr($fieldName, -4) == '_ids') {
            return substr($fieldName, 0, -4) . 's';
        }

        return $fieldName;
    }