public function url($object = null)
    {
        if (is_object($object)) {
            $objectIdField = $this->objectIdField;

            return $this->urlName . '/' . $object->$objectIdField;
        } elseif ($object) {
            return $this->urlName . '/' . $object;
        }

        return $this->urlName;
    }