main/migration/Manager/Manager.php
public function generateBundleMigration(Bundle $bundle, $output = null)
    {
        $platforms = $this->getAvailablePlatforms();
        $version = date('YmdHis');
        $this->log("Generating migrations classes for '{$bundle->getName()}'...");
        if (!$output) {
            $output = $bundle;
        }

        foreach ($platforms as $driverName => $platform) {
            $queries = $this->generator->generateMigrationQueries($bundle, $platform);

            if (count($queries[Generator::QUERIES_UP]) > 0 || count($queries[Generator::QUERIES_DOWN]) > 0) {
                $this->log(" - Generating migration class for {$driverName} driver...");
                $this->writer->writeMigrationClass($output, $driverName, $version, $queries);
            } else {
                $this->log('Nothing to generate: database and mapping are synced');
                break;
            }
        }
    }
public function generateBundleMigration(Bundle $bundle, $output = null)
    {
        $platforms = $this->getAvailablePlatforms();
        $version = date('YmdHis');
        $this->log("Generating migrations classes for '{$bundle->getName()}'...");
        if (!$output) {
            $output = $bundle;
        }

        foreach ($platforms as $driverName => $platform) {
            $queries = $this->generator->generateMigrationQueries($bundle, $platform);

            if (count($queries[Generator::QUERIES_UP]) > 0 || count($queries[Generator::QUERIES_DOWN]) > 0) {
                $this->log(" - Generating migration class for {$driverName} driver...");
                $this->writer->writeMigrationClass($output, $driverName, $version, $queries);
            } else {
                $this->log('Nothing to generate: database and mapping are synced');
                break;
            }
        }
    }
public function generateBundleMigration ( Bundle $ bundle , $ output = null ) { $ platforms = $ this -> getAvailablePlatforms ( ) ; $ version = date ( 'YmdHis' ) ; $ this -> log ( "Generating migrations classes for '{$bundle->getName()}'..." ) ; if ( ! $ output ) { $ output = $ bundle ; } foreach ( $ platforms as $ driverName => $ platform ) { $ queries = $ this -> generator -> generateMigrationQueries ( $ bundle , $ platform ) ; if ( count ( $ queries [ Generator :: QUERIES_UP ] ) > 0 || count ( $ queries [ Generator :: QUERIES_DOWN ] ) > 0 ) { $ this -> log ( " - Generating migration class for {$driverName} driver..." ) ; $ this -> writer -> writeMigrationClass ( $ output , $ driverName , $ version , $ queries ) ; } else { $ this -> log ( 'Nothing to generate: database and mapping are synced' ) ; break ; } } }
Generates bundle migrations classes for all the available driver platforms.

@param \Symfony\Component\HttpKernel\Bundle\Bundle $bundle
@param \Symfony\Component\HttpKernel\Bundle\Bundle $output
Generates bundle migrations classes for all the available driver platforms .