Documentation

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>

getFkEntityTypes()

private getFkEntityTypes(string $fkEntity) : array<string|int, mixed>
Parameters
$fkEntity : string
Tags
phpstan-return

list

Return values
array<string|int, mixed>

getReferenceFieldNames()

private getReferenceFieldNames(string $fkEntity, string $onDelete) : iterable<string|int, mixed>
Parameters
$fkEntity : string
$onDelete : string
Tags
phpstan-return

iterable<string, string> Entity name mapped to custom entity reference field name.

Return values
iterable<string|int, mixed>

performCascadeDeletions()

private performCascadeDeletions(string $fkEntity, int $id) : void
Parameters
$fkEntity : string
$id : int

        
On this page

Search results