public function getUnclassifiedPrimaryKeys()
    {
        $pks = [];
        foreach ($this->getMiddleTable()->getPrimaryKey() as $pk) {
            //required
            $unclassified = true;
            if ($this->getIncomingForeignKey()->hasLocalColumn($pk)) {
                $unclassified = false;
            }
            if ($unclassified) {
                foreach ($this->getCrossForeignKeys() as $crossFK) {
                    if ($crossFK->hasLocalColumn($pk)) {
                        $unclassified = false;
                        break;
                    }
                }
            }
            if ($unclassified) {
                $pks[] = $pk;
            }
        }

        return $pks;
    }
public function getUnclassifiedPrimaryKeys()
    {
        $pks = [];
        foreach ($this->getMiddleTable()->getPrimaryKey() as $pk) {
            //required
            $unclassified = true;
            if ($this->getIncomingForeignKey()->hasLocalColumn($pk)) {
                $unclassified = false;
            }
            if ($unclassified) {
                foreach ($this->getCrossForeignKeys() as $crossFK) {
                    if ($crossFK->hasLocalColumn($pk)) {
                        $unclassified = false;
                        break;
                    }
                }
            }
            if ($unclassified) {
                $pks[] = $pk;
            }
        }

        return $pks;
    }
public function getUnclassifiedPrimaryKeys ( ) { $ pks = [ ] ; foreach ( $ this -> getMiddleTable ( ) -> getPrimaryKey ( ) as $ pk ) { //required $ unclassified = true ; if ( $ this -> getIncomingForeignKey ( ) -> hasLocalColumn ( $ pk ) ) { $ unclassified = false ; } if ( $ unclassified ) { foreach ( $ this -> getCrossForeignKeys ( ) as $ crossFK ) { if ( $ crossFK -> hasLocalColumn ( $ pk ) ) { $ unclassified = false ; break ; } } } if ( $ unclassified ) { $ pks [ ] = $ pk ; } } return $ pks ; }
Returns all primary keys of middle-table which are not already covered by at least on of our cross foreignKey collection.

@return Column[]
Returns all primary keys of middle - table which are not already covered by at least on of our cross foreignKey collection .