src/SchemaAnalyzer.php
private function getChildrenRelationshipsWithoutCache($tableName)
    {
        $schema = $this->getSchema();
        $children = [];
        foreach ($schema->getTables() as $table) {
            if ($table->getName() === $tableName) {
                continue;
            }
            $fks = $this->removeDuplicates($table->getForeignKeys());
            foreach ($fks as $fk) {
                if ($fk->getForeignTableName() === $tableName && $this->isInheritanceRelationship($fk)) {
                    $children[] = $fk;
                }
            }
        }

        return $children;
    }
private function getChildrenRelationshipsWithoutCache($tableName)
    {
        $schema = $this->getSchema();
        $children = [];
        foreach ($schema->getTables() as $table) {
            if ($table->getName() === $tableName) {
                continue;
            }
            $fks = $this->removeDuplicates($table->getForeignKeys());
            foreach ($fks as $fk) {
                if ($fk->getForeignTableName() === $tableName && $this->isInheritanceRelationship($fk)) {
                    $children[] = $fk;
                }
            }
        }

        return $children;
    }
private function getChildrenRelationshipsWithoutCache ( $ tableName ) { $ schema = $ this -> getSchema ( ) ; $ children = [ ] ; foreach ( $ schema -> getTables ( ) as $ table ) { if ( $ table -> getName ( ) === $ tableName ) { continue ; } $ fks = $ this -> removeDuplicates ( $ table -> getForeignKeys ( ) ) ; foreach ( $ fks as $ fk ) { if ( $ fk -> getForeignTableName ( ) === $ tableName && $ this -> isInheritanceRelationship ( $ fk ) ) { $ children [ ] = $ fk ; } } } return $ children ; }
If this table is pointed by children tables (if other child tables have a primary key that is also a
foreign key to this table), this function will return the list of child tables.
This function will return an empty array if there are no children tables.

@param string $tableName

@return ForeignKeyConstraint[]
If this table is pointed by children tables ( if other child tables have a primary key that is also a foreign key to this table ) this function will return the list of child tables . This function will return an empty array if there are no children tables .