FkEntityDeleteSubscriber
extends AutoSubscriber
in package
FinalYes
AutoSubscriber allows child classes to listen to events.
Child classes must implement the getSubscribedEvents
method, and the callbacks
it returns will be automatically registered.
This class implies @service @internal on all subclasses.
Table of Contents
Methods
- getSubscribedEvents() : array<string|int, mixed>
- onPre() : void
- getFkEntityTypes() : array<string|int, mixed>
- getReferenceFieldNames() : iterable<string|int, mixed>
- performCascadeDeletions() : void
Methods
getSubscribedEvents()
public
static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>onPre()
public
onPre(PreEvent $event) : void
Parameters
- $event : PreEvent
getFkEntityTypes()
private
getFkEntityTypes(string $fkEntity) : array<string|int, mixed>
Parameters
- $fkEntity : string
Tags
Return values
array<string|int, mixed>getReferenceFieldNames()
private
getReferenceFieldNames(string $fkEntity, string $onDelete) : iterable<string|int, mixed>
Parameters
- $fkEntity : string
- $onDelete : string
Tags
Return values
iterable<string|int, mixed>performCascadeDeletions()
private
performCascadeDeletions(string $fkEntity, int $id) : void
Parameters
- $fkEntity : string
- $id : int