source/Spiral/ORM/Transaction.php
public function getCommands()
    {
        foreach ($this->commands as $command) {
            if ($command instanceof \Traversable) {
                //Nested commands
                yield from $command;
            }

            yield $command;
        }
    }
public function getCommands()
    {
        foreach ($this->commands as $command) {
            if ($command instanceof \Traversable) {
                //Nested commands
                yield from $command;
            }

            yield $command;
        }
    }
public function getCommands ( ) { foreach ( $ this -> commands as $ command ) { if ( $ command instanceof \ Traversable ) { //Nested commands yield from $ command ; } yield $ command ; } }
Will return flattened list of commands.

@return \Generator
Will return flattened list of commands .