public function createBundleSchema($bundleName)
    {
        if (null === $bundle = $this->_application->getBundle($bundleName)) {
            return;
        }

        try {
            $schemaTool = new SchemaTool($bundle->getEntityManager());
            $classes = $this->getBundleSchema($bundle);
            $schemaTool->dropSchema($classes);
            $schemaTool->createSchema($classes);
            unset($schemaTool);
        } catch (\Exception $e) {
            echo $e->getMessage()."\n";
        }
    }
public function createBundleSchema($bundleName)
    {
        if (null === $bundle = $this->_application->getBundle($bundleName)) {
            return;
        }

        try {
            $schemaTool = new SchemaTool($bundle->getEntityManager());
            $classes = $this->getBundleSchema($bundle);
            $schemaTool->dropSchema($classes);
            $schemaTool->createSchema($classes);
            unset($schemaTool);
        } catch (\Exception $e) {
            echo $e->getMessage()."\n";
        }
    }
public function createBundleSchema ( $ bundleName ) { if ( null === $ bundle = $ this -> _application -> getBundle ( $ bundleName ) ) { return ; } try { $ schemaTool = new SchemaTool ( $ bundle -> getEntityManager ( ) ) ; $ classes = $ this -> getBundleSchema ( $ bundle ) ; $ schemaTool -> dropSchema ( $ classes ) ; $ schemaTool -> createSchema ( $ classes ) ; unset ( $ schemaTool ) ; } catch ( \ Exception $ e ) { echo $ e -> getMessage ( ) . "\n" ; } }
Create the bundle schema specified in param.

@param string $bundleName
Create the bundle schema specified in param .