PHP Class Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider

Show file Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) Constructor.
appendToSchema ( Doctrine\DBAL\Schema\Schema $schema ) Adds the DCA data to the Doctrine schema.
createSchema ( )

Private Methods

Method Description
getSqlDefinitions ( ) : array Returns the SQL definitions from the Contao installer.
parseColumnSql ( Doctrine\DBAL\Schema\Table $table, string $columnName, string $sql ) Parses the column definition and adds it to the schema table.
parseIndexSql ( Doctrine\DBAL\Schema\Table $table, string $keyName, string $sql ) Parses the index definition and adds it to the schema table.
setLengthAndPrecisionByType ( string $type, string $dbType, integer &$length, integer &$scale, integer &$precision, boolean &$fixed ) Sets the length, scale, precision and fixed values by field type.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface

appendToSchema() public method

Adds the DCA data to the Doctrine schema.
public appendToSchema ( Doctrine\DBAL\Schema\Schema $schema )
$schema Doctrine\DBAL\Schema\Schema

createSchema() public method

public createSchema ( )