class DebugUnitOfWorkListener (View source)

Use this logger to dump the identity map during the onFlush event. This is useful for debugging weird UnitOfWork behavior with complex operations.

Methods

__construct(string $file = 'php://output', string $context = '')

Pass a stream and context information for the debugging session.

void
onFlush(OnFlushEventArgs $args)

No description

void
dumpIdentityMap(EntityManagerInterface $em)

Dumps the contents of the identity map into a stream.

Details

__construct(string $file = 'php://output', string $context = '')

Pass a stream and context information for the debugging session.

The stream can be php://output to print to the screen.

Parameters

string $file
string $context

void onFlush(OnFlushEventArgs $args)

Parameters

OnFlushEventArgs $args

Return Value

void

void dumpIdentityMap(EntityManagerInterface $em)

Dumps the contents of the identity map into a stream.

Parameters

EntityManagerInterface $em

Return Value

void