Add collection update and collection get to logs. #330
This commit is contained in:
parent
a629d9b024
commit
2998154a55
1 changed files with 9 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ class UserEntityListener extends EntityListener
|
|||
$unit_of_work = $em->getUnitOfWork();
|
||||
$deleted_entities = $unit_of_work->getScheduledEntityDeletions();
|
||||
$updated_entities = $unit_of_work->getScheduledEntityUpdates();
|
||||
$updated_collections = $unit_of_work->getScheduledCollectionUpdates();
|
||||
$deleted_collections = $unit_of_work->getScheduledCollectionDeletions();
|
||||
|
||||
error_log('count of updated_collections ' . count($updated_collections));
|
||||
error_log('count of deleted_collections ' . count($deleted_collections));
|
||||
|
||||
foreach ($updated_entities as $updated_entity)
|
||||
{
|
||||
|
|
@ -42,6 +47,10 @@ class UserEntityListener extends EntityListener
|
|||
error_log('Changed ' . $field . ' from ' . $old_value . ' to ' . $new_value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
error_log('hhmmm unsa kaha ni');
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($deleted_entities as $deleted_entity)
|
||||
|
|
|
|||
Loading…
Reference in a new issue