public function execute()
    {

        try {
            // load the class definitions
            $classes = $this->getEntityManager()->getMetadataFactory()->getAllMetadata();

            // create a new database instance
            $this->getSchemaTool()->createSchema($classes);

        } catch (\Exception $e) {
            $this->getApplication()->getInitialContext()->getSystemLogger()->error($e->__toString());
        }
    }
public function execute()
    {

        try {
            // load the class definitions
            $classes = $this->getEntityManager()->getMetadataFactory()->getAllMetadata();

            // create a new database instance
            $this->getSchemaTool()->createSchema($classes);

        } catch (\Exception $e) {
            $this->getApplication()->getInitialContext()->getSystemLogger()->error($e->__toString());
        }
    }
public function execute ( ) { try { // load the class definitions $ classes = $ this -> getEntityManager ( ) -> getMetadataFactory ( ) -> getAllMetadata ( ) ; // create a new database instance $ this -> getSchemaTool ( ) -> createSchema ( $ classes ) ; } catch ( \ Exception $ e ) { $ this -> getApplication ( ) -> getInitialContext ( ) -> getSystemLogger ( ) -> error ( $ e -> __toString ( ) ) ; } }
Executes the functionality for this step, in this case the execution of
the PHP script defined in the step configuration.

@return void
@throws \Exception Is thrown if the script can't be executed
@see \AppserverIo\Provisioning\Steps\StepInterface::execute()
Executes the functionality for this step in this case the execution of the PHP script defined in the step configuration .