class OnClassMetadataNotFoundEventArgs extends ManagerEventArgs (View source)

Class that holds event arguments for a onClassMetadataNotFound event.

This object is mutable by design, allowing callbacks having access to it to set the found metadata in it, and therefore "cancelling" a onClassMetadataNotFound event

Methods

__construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext, EntityManagerInterface $entityManager)

No description

setFoundMetadata(ClassMetadata|null $classMetadata)

No description

getFoundMetadata()

No description

getClassName()

Retrieve class name for which a failed metadata fetch attempt was executed

Details

__construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext, EntityManagerInterface $entityManager)

Parameters

string $className
ClassMetadataBuildingContext $metadataBuildingContext
EntityManagerInterface $entityManager

setFoundMetadata(ClassMetadata|null $classMetadata)

Parameters

ClassMetadata|null $classMetadata

getFoundMetadata()

getClassName()

Retrieve class name for which a failed metadata fetch attempt was executed

getClassMetadataBuildingContext()