src/Link0/Profiler/PersistenceHandler/ZendDbHandler.php
public function createTable()
    {
        $sql = $this->getSql();

        $createTable = new CreateTable($this->getTableName());
        $tableStructure = $this->getTableStructure();

        foreach($tableStructure['columns'] as $column) {
            $createTable->addColumn($column);
        }

        foreach($tableStructure['constraints'] as $constraint) {
            $createTable->addConstraint($constraint);
        }

        $sql->getAdapter()->query(
            $sql->getSqlStringForSqlObject($createTable),
            Adapter::QUERY_MODE_EXECUTE
        );

        return $this;
    }
public function createTable()
    {
        $sql = $this->getSql();

        $createTable = new CreateTable($this->getTableName());
        $tableStructure = $this->getTableStructure();

        foreach($tableStructure['columns'] as $column) {
            $createTable->addColumn($column);
        }

        foreach($tableStructure['constraints'] as $constraint) {
            $createTable->addConstraint($constraint);
        }

        $sql->getAdapter()->query(
            $sql->getSqlStringForSqlObject($createTable),
            Adapter::QUERY_MODE_EXECUTE
        );

        return $this;
    }
public function createTable ( ) { $ sql = $ this -> getSql ( ) ; $ createTable = new CreateTable ( $ this -> getTableName ( ) ) ; $ tableStructure = $ this -> getTableStructure ( ) ; foreach ( $ tableStructure [ 'columns' ] as $ column ) { $ createTable -> addColumn ( $ column ) ; } foreach ( $ tableStructure [ 'constraints' ] as $ constraint ) { $ createTable -> addConstraint ( $ constraint ) ; } $ sql -> getAdapter ( ) -> query ( $ sql -> getSqlStringForSqlObject ( $ createTable ) , Adapter :: QUERY_MODE_EXECUTE ) ; return $ this ; }
Creates the table structure for you

NOTE: This code should fully work when ZendFramework 2.4.0 is released, since then DDL supports auto_increment
@see https://github.com/zendframework/zf2/pull/6257

@return PersistenceHandlerInterface
Creates the table structure for you