public function getOtherFks()
    {
        $fks = [];
        foreach ($this->parentTable->getForeignKeys() as $fk) {
            if ($fk !== $this) {
                $fks[]= $fk;
            }
        }

        return $fks;
    }
public function getOtherFks()
    {
        $fks = [];
        foreach ($this->parentTable->getForeignKeys() as $fk) {
            if ($fk !== $this) {
                $fks[]= $fk;
            }
        }

        return $fks;
    }
public function getOtherFks ( ) { $ fks = [ ] ; foreach ( $ this -> parentTable -> getForeignKeys ( ) as $ fk ) { if ( $ fk !== $ this ) { $ fks [ ] = $ fk ; } } return $ fks ; }
Returns the list of other foreign keys starting on the same table.
Used in many-to-many relationships.

@return ForeignKey[]
Returns the list of other foreign keys starting on the same table . Used in many - to - many relationships .