public function getUniqueReference()
    {
        if ($this->uniqueReference === null) {
            $modelName = basename(str_replace("\\", "/", $this->getModelClassName()));

            if (!isset(self::$uniqueReferencesUsed[$modelName])) {
                self::$uniqueReferencesUsed[$modelName] = 0;
            }

            self::$uniqueReferencesUsed[$modelName]++;

            $this->uniqueReference = $modelName . (self::$uniqueReferencesUsed[$modelName] > 1 ? self::$uniqueReferencesUsed[$modelName] : "");
        }

        return $this->uniqueReference;
    }
public function getUniqueReference()
    {
        if ($this->uniqueReference === null) {
            $modelName = basename(str_replace("\\", "/", $this->getModelClassName()));

            if (!isset(self::$uniqueReferencesUsed[$modelName])) {
                self::$uniqueReferencesUsed[$modelName] = 0;
            }

            self::$uniqueReferencesUsed[$modelName]++;

            $this->uniqueReference = $modelName . (self::$uniqueReferencesUsed[$modelName] > 1 ? self::$uniqueReferencesUsed[$modelName] : "");
        }

        return $this->uniqueReference;
    }
public function getUniqueReference ( ) { if ( $ this -> uniqueReference === null ) { $ modelName = basename ( str_replace ( "\\" , "/" , $ this -> getModelClassName ( ) ) ) ; if ( ! isset ( self :: $ uniqueReferencesUsed [ $ modelName ] ) ) { self :: $ uniqueReferencesUsed [ $ modelName ] = 0 ; } self :: $ uniqueReferencesUsed [ $ modelName ] ++ ; $ this -> uniqueReference = $ modelName . ( self :: $ uniqueReferencesUsed [ $ modelName ] > 1 ? self :: $ uniqueReferencesUsed [ $ modelName ] : "" ) ; } return $ this -> uniqueReference ; }
Gets the unique reference for this collection.

@return string
Gets the unique reference for this collection .