protected function getCachedRelationCount($propertyName)
    {
        if (array_key_exists($propertyName, $this->cachedRelationCountsCount)) {
            return $this->cachedRelationCountsCount[$propertyName];
        }

        $this->cachedRelationCountsCount[$propertyName] = $this->getUncachedRelationCount($propertyName);

        return $this->cachedRelationCountsCount[$propertyName];
    }
protected function getCachedRelationCount($propertyName)
    {
        if (array_key_exists($propertyName, $this->cachedRelationCountsCount)) {
            return $this->cachedRelationCountsCount[$propertyName];
        }

        $this->cachedRelationCountsCount[$propertyName] = $this->getUncachedRelationCount($propertyName);

        return $this->cachedRelationCountsCount[$propertyName];
    }
protected function getCachedRelationCount ( $ propertyName ) { if ( array_key_exists ( $ propertyName , $ this -> cachedRelationCountsCount ) ) { return $ this -> cachedRelationCountsCount [ $ propertyName ] ; } $ this -> cachedRelationCountsCount [ $ propertyName ] = $ this -> getUncachedRelationCount ( $ propertyName ) ; return $ this -> cachedRelationCountsCount [ $ propertyName ] ; }
Retrieves and caches the relation count for the given property.

@param string $propertyName the name of the relation (plural, lower camelCase)

@return int
Retrieves and caches the relation count for the given property .