src/xPDO/Om/xPDOObject.php
protected function _getAliases($class, $limit = 0) {
        $aliases = array();
        $limit = intval($limit);
        $array = array('aggregates' => $this->_aggregates, 'composites' => $this->_composites);
        foreach ($array as $relType => $relations) {
            foreach ($relations as $alias => $def) {
                if (isset($def['class']) && $def['class'] == $class) {
                    $aliases[] = $alias;
                    if ($limit > 0 && count($aliases) > $limit) break;
                }
            }
        }
        return $aliases;
    }
protected function _getAliases($class, $limit = 0) {
        $aliases = array();
        $limit = intval($limit);
        $array = array('aggregates' => $this->_aggregates, 'composites' => $this->_composites);
        foreach ($array as $relType => $relations) {
            foreach ($relations as $alias => $def) {
                if (isset($def['class']) && $def['class'] == $class) {
                    $aliases[] = $alias;
                    if ($limit > 0 && count($aliases) > $limit) break;
                }
            }
        }
        return $aliases;
    }
protected function _getAliases ( $ class , $ limit = 0 ) { $ aliases = array ( ) ; $ limit = intval ( $ limit ) ; $ array = array ( 'aggregates' => $ this -> _aggregates , 'composites' => $ this -> _composites ) ; foreach ( $ array as $ relType => $ relations ) { foreach ( $ relations as $ alias => $ def ) { if ( isset ( $ def [ 'class' ] ) && $ def [ 'class' ] == $ class ) { $ aliases [ ] = $ alias ; if ( $ limit > 0 && count ( $ aliases ) > $ limit ) break ; } } } return $ aliases ; }
Find aliases for any defined object relations of the specified class.

@access protected
@param string $class The name of the class to find aliases from.
@param int $limit An optional limit on the number of aliases to return;
default is 0, i.e. no limit.
@return array An array of aliases or an empty array if none are found.
Find aliases for any defined object relations of the specified class .