src/Sp/FixtureDumper/MongoDBDumper.php
public function getDumpOrder(array $classes)
    {
        $calc = new CommitOrderCalculator();

        // See if there are any new classes in the changeset, that are not in the
        // commit order graph yet (don't have a node).
        // We have to inspect changeSet to be able to correctly build dependencies.
        // It is not possible to use IdentityMap here because post inserted ids
        // are not yet available.
        $newNodes = array();
        foreach ($classes as $class) {
            if ($calc->hasClass($class->getName())) {
                continue;
            }

            $calc->addClass($class);

            $newNodes[] = $class;
        }

        // Calculate dependencies for new nodes
        while ($class = array_pop($newNodes)) {
            $this->addDependencies($class, $calc);
        }

        return $calc->getCommitOrder();
    }
public function getDumpOrder(array $classes)
    {
        $calc = new CommitOrderCalculator();

        // See if there are any new classes in the changeset, that are not in the
        // commit order graph yet (don't have a node).
        // We have to inspect changeSet to be able to correctly build dependencies.
        // It is not possible to use IdentityMap here because post inserted ids
        // are not yet available.
        $newNodes = array();
        foreach ($classes as $class) {
            if ($calc->hasClass($class->getName())) {
                continue;
            }

            $calc->addClass($class);

            $newNodes[] = $class;
        }

        // Calculate dependencies for new nodes
        while ($class = array_pop($newNodes)) {
            $this->addDependencies($class, $calc);
        }

        return $calc->getCommitOrder();
    }
{@inheritdoc}