Gives subscribers the editor of the schema being built. DBAL 4.5 deprecated changing a schema or a table in place, so subscribers add and change tables and sequences with a schema editor, which the schema builder creates the schema from once the event has been dispatched.
Methods¶
__construct()
¶
SchemaBuilderEvent.php
:
22
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $schemaBuilder | SchemaBuilderInterface | - | - |
| $schemaEditor | SchemaEditor | - | - |
getSchemaBuilder()
¶
SchemaBuilderEvent.php
:
36
|
|
|
Return values
getSchemaEditor()
¶
SchemaBuilderEvent.php
:
31
The editor of the schema being built. Tables and sequences added or changed with it end up in the built schema, the tables with the schema's default table options under their own.
|
|
|
Return values
SchemaEditor
hasSequence()
¶
SchemaBuilderEvent.php
:
46
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $name | string | - | - |
Return values
bool
hasTable()
¶
SchemaBuilderEvent.php
:
41
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $name | string | - | - |
Return values
bool
isPropagationStopped()
¶
Event.php
:
35
|
|
|
Return values
bool
stopPropagation()
¶
Event.php
:
47
Stops the propagation of the event to further event listeners.
|
|
|
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().