public function getForeignKeysReferencingTable($tableName)
    {
        $matches = [];
        foreach ($this->foreignKeys as $fk) {
            if ($fk->getForeignTableName() === $tableName) {
                $matches[] = $fk;
            }
        }

        return $matches;
    }
public function getForeignKeysReferencingTable($tableName)
    {
        $matches = [];
        foreach ($this->foreignKeys as $fk) {
            if ($fk->getForeignTableName() === $tableName) {
                $matches[] = $fk;
            }
        }

        return $matches;
    }
public function getForeignKeysReferencingTable ( $ tableName ) { $ matches = [ ] ; foreach ( $ this -> foreignKeys as $ fk ) { if ( $ fk -> getForeignTableName ( ) === $ tableName ) { $ matches [ ] = $ fk ; } } return $ matches ; }
Returns all foreign keys from this table that reference the table passed
in argument.

@param  string $tableName
@return array
Returns all foreign keys from this table that reference the table passed in argument .