PHP Class Contao\CoreBundle\EventListener\DoctrineSchemaListener

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

Public Methods

Method Description
__construct ( DcaSchemaProvider $provider ) Constructor.
onSchemaIndexDefinition ( Doctrine\DBAL\Event\SchemaIndexDefinitionEventArgs $event ) Handles the Doctrine schema and overrides the indexes with a fixed length.
postGenerateSchema ( Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs $event ) Adds the Contao DCA information to the Doctrine schema.

Method Details

__construct() public method

Constructor.
public __construct ( DcaSchemaProvider $provider )
$provider Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider

onSchemaIndexDefinition() public method

Handles the Doctrine schema and overrides the indexes with a fixed length.
public onSchemaIndexDefinition ( Doctrine\DBAL\Event\SchemaIndexDefinitionEventArgs $event )
$event Doctrine\DBAL\Event\SchemaIndexDefinitionEventArgs

postGenerateSchema() public method

Adds the Contao DCA information to the Doctrine schema.
public postGenerateSchema ( Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs $event )
$event Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs