Skip to content

Commit

Permalink
Merge pull request #890 from ngodfraind/bugfixes
Browse files Browse the repository at this point in the history
NULL not merged to the em anymore.
  • Loading branch information
ngodfraind committed Oct 3, 2014
2 parents 625c550 + 39688cb commit eece607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Listener/Log/LogListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function createLog(LogGenericEvent $event)
if (!($event->getAction() === LogUserDeleteEvent::ACTION && $event->getReceiver() === $doer)) {
//Prevent self delete case
//Sometimes, the entity manager has been cleared, so we must merge the doer.
$doer = $this->om->merge($doer);
if ($doer) $doer = $this->om->merge($doer);
$log->setDoer($doer);
}
$log->setDoerType($doerType);
Expand Down

0 comments on commit eece607

Please sign in to comment.