class ResolveTargetEntityListener implements EventSubscriber (View source)

ResolveTargetEntityListener

Mechanism to overwrite interfaces or classes specified as association targets.

Methods

getSubscribedEvents()

{@inheritDoc}

addResolveTargetEntity(string $originalEntity, string $newEntity)

Adds a target-entity class name to resolve to a new class name.

loadClassMetadata(LoadClassMetadataEventArgs $args)

Processes event and resolves new target entity names.

Details

getSubscribedEvents()

{@inheritDoc}

addResolveTargetEntity(string $originalEntity, string $newEntity)

Adds a target-entity class name to resolve to a new class name.

Parameters

string $originalEntity
string $newEntity

onClassMetadataNotFound(OnClassMetadataNotFoundEventArgs $args)

loadClassMetadata(LoadClassMetadataEventArgs $args)

Processes event and resolves new target entity names.

Parameters

LoadClassMetadataEventArgs $args