Skip to content

Commit

Permalink
Merge branch '2.0'
Browse files Browse the repository at this point in the history
* 2.0:
  [HttpKernel] fixed profile saving when it has children
  • Loading branch information
fabpot committed Oct 14, 2011
2 parents 4dc5953 + c0f5b8a commit 7816290
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -91,11 +91,12 @@ public function onKernelResponse(FilterResponseEvent $event)

if ($profile = $this->profiler->collect($event->getRequest(), $event->getResponse(), $exception)) {
if ($master) {
$this->profiler->saveProfile($profile);
foreach ($this->children as $child) {
$child->setParent($profile);
$profile->addChild($child);
$this->profiler->saveProfile($child);
}
$this->profiler->saveProfile($profile);
$this->children = array();
} else {
$this->children[] = $profile;
Expand Down

0 comments on commit 7816290

Please sign in to comment.