PHP Class Contao\CoreBundle\EventListener\DoctrineSchemaListener

Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

onSchemaIndexDefinition() public méthode

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 méthode

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