public function getTableRelationships($table) {
        $table = $this->connection->getTablePrefix() . Util::camelTo_($table);
        $relationships = array();
        foreach ($this->references as $columnName => $info) {
            if ($info['constraintName'] == 'PRIMARY' || $info['refTable'] != $table)
                    continue;
            $this->setupRelationship($columnName, $info['refColumn'],
                    $info['refTable'], $relationships, false);
        }
        foreach ($this->backReferences as $columnName => $infoArray) {
            foreach ($infoArray as $info) {
                if ($info['refTable'] != $table) continue;
                $this->setupRelationship($columnName, $info['refColumn'],
                        $info['refTable'], $relationships, true);
            }
        }
        return $relationships[$table];
    }
public function getTableRelationships($table) {
        $table = $this->connection->getTablePrefix() . Util::camelTo_($table);
        $relationships = array();
        foreach ($this->references as $columnName => $info) {
            if ($info['constraintName'] == 'PRIMARY' || $info['refTable'] != $table)
                    continue;
            $this->setupRelationship($columnName, $info['refColumn'],
                    $info['refTable'], $relationships, false);
        }
        foreach ($this->backReferences as $columnName => $infoArray) {
            foreach ($infoArray as $info) {
                if ($info['refTable'] != $table) continue;
                $this->setupRelationship($columnName, $info['refColumn'],
                        $info['refTable'], $relationships, true);
            }
        }
        return $relationships[$table];
    }
public function getTableRelationships ( $ table ) { $ table = $ this -> connection -> getTablePrefix ( ) . Util :: camelTo_ ( $ table ) ; $ relationships = array ( ) ; foreach ( $ this -> references as $ columnName => $ info ) { if ( $ info [ 'constraintName' ] == 'PRIMARY' || $ info [ 'refTable' ] != $ table ) continue ; $ this -> setupRelationship ( $ columnName , $ info [ 'refColumn' ] , $ info [ 'refTable' ] , $ relationships , false ) ; } foreach ( $ this -> backReferences as $ columnName => $ infoArray ) { foreach ( $ infoArray as $ info ) { if ( $ info [ 'refTable' ] != $ table ) continue ; $ this -> setupRelationship ( $ columnName , $ info [ 'refColumn' ] , $ info [ 'refTable' ] , $ relationships , true ) ; } } return $ relationships [ $ table ] ; }
Fetches the relationships between the columns in this table and the
give table
@param string $table
@return array
Fetches the relationships between the columns in this table and the give table