class DocumentNotFoundEventArgs extends LifecycleEventArgs (View source)

Provides event arguments for the documentNotFound event.

Methods

object
getDocument()

Retrieves the associated document.

getDocumentManager()

Retrieves the associated DocumentManager.

__construct(object $document, DocumentManager $dm, string $identifier)

Constructor.

string
getIdentifier()

Retrieve associated identifier.

bool
isExceptionDisabled()

Indicates whether the proxy initialization exception is disabled.

disableException(bool $disableException = true)

Disable the throwing of an exception

Details

object getDocument()

Retrieves the associated document.

Return Value

object

DocumentManager getDocumentManager()

Retrieves the associated DocumentManager.

Return Value

DocumentManager

__construct(object $document, DocumentManager $dm, string $identifier)

Constructor.

Parameters

object $document
DocumentManager $dm
string $identifier

string getIdentifier()

Retrieve associated identifier.

Return Value

string

bool isExceptionDisabled()

Indicates whether the proxy initialization exception is disabled.

Return Value

bool

disableException(bool $disableException = true)

Disable the throwing of an exception

This method indicates to the proxy initializer that the missing document has been handled and no exception should be thrown. This can't be reset.

Parameters

bool $disableException