class ResolveTargetEntityListener implements EventSubscriber (View source)

ResolveTargetEntityListener

Mechanism to overwrite interfaces or classes specified as association targets.

Methods

getSubscribedEvents()

{@inheritDoc}

void
addResolveTargetEntity(string $originalEntity, string $newEntity, array $mapping)

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

void
loadClassMetadata(LoadClassMetadataEventArgs $args)

Processes event and resolves new target entity names.

Details

getSubscribedEvents()

{@inheritDoc}

void addResolveTargetEntity(string $originalEntity, string $newEntity, array $mapping)

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

Parameters

string $originalEntity
string $newEntity
array $mapping

Return Value

void

void onClassMetadataNotFound(OnClassMetadataNotFoundEventArgs $args)

Parameters

OnClassMetadataNotFoundEventArgs $args

Return Value

void

void loadClassMetadata(LoadClassMetadataEventArgs $args)

Processes event and resolves new target entity names.

Parameters

LoadClassMetadataEventArgs $args

Return Value

void