class EntityListenerBuilder (View source)

Builder for entity listeners.

Methods

static 
bindEntityListener(ClassMetadata $metadata, string $className)

Lookup the entity class to find methods that match to event lifecycle names

Details

static bindEntityListener(ClassMetadata $metadata, string $className)

Lookup the entity class to find methods that match to event lifecycle names

Parameters

ClassMetadata $metadata The entity metadata.
string $className The listener class name.

Exceptions

MappingException When the listener class not found.