ApiHistogram/ApiHistogramBundle/Repository/Dynamic/DynamicRepository.php
protected function createTable(SiteCapsuleInterface $capsule, array $parameters)
    {
        if ($this->tableExists($capsule))
        {
            return;
        }

        $connection = $this->getConnection();
        /** @var AbstractSchemaManager $schemaManager */
        $schemaManager = $connection->getSchemaManager();

        $table = $this->buildTable($capsule, $parameters);

        $schemaManager->createTable($table);
    }
protected function createTable(SiteCapsuleInterface $capsule, array $parameters)
    {
        if ($this->tableExists($capsule))
        {
            return;
        }

        $connection = $this->getConnection();
        /** @var AbstractSchemaManager $schemaManager */
        $schemaManager = $connection->getSchemaManager();

        $table = $this->buildTable($capsule, $parameters);

        $schemaManager->createTable($table);
    }
protected function createTable ( SiteCapsuleInterface $ capsule , array $ parameters ) { if ( $ this -> tableExists ( $ capsule ) ) { return ; } $ connection = $ this -> getConnection ( ) ; /** @var AbstractSchemaManager $schemaManager */ $ schemaManager = $ connection -> getSchemaManager ( ) ; $ table = $ this -> buildTable ( $ capsule , $ parameters ) ; $ schemaManager -> createTable ( $ table ) ; }
Creates Table needed to persist the wished response
@param SiteCapsuleInterface $capsule
@param array $parameters
@throws PersistException
Creates Table needed to persist the wished response