public function getForeignKeysReferencingTable($tablename)
    {
        $matches = array();
        $keys = $this->getForeignKeys();
        foreach ($keys as $fk) {
            if ($fk->getForeignTableName() === $tablename) {
                $matches[] = $fk;
            }
        }

        return $matches;
    }
public function getForeignKeysReferencingTable($tablename)
    {
        $matches = array();
        $keys = $this->getForeignKeys();
        foreach ($keys as $fk) {
            if ($fk->getForeignTableName() === $tablename) {
                $matches[] = $fk;
            }
        }

        return $matches;
    }
public function getForeignKeysReferencingTable ( $ tablename ) { $ matches = array ( ) ; $ keys = $ this -> getForeignKeys ( ) ; foreach ( $ keys as $ fk ) { if ( $ fk -> getForeignTableName ( ) === $ tablename ) { $ matches [ ] = $ fk ; } } return $ matches ; }
Get all the foreign keys from this table to the specified table.

@return array ForeignKey[]
Get all the foreign keys from this table to the specified table .