symfony/symfony — Issue #2974: Controller action calls twice
Author: sam0delkin
Created: 2011-12-27 14:36:43+00:00
State: open

When i trying to get the result of action of controller, i get it twice:
Symfony 2.0.8, pure install
First time code: (AcmeBundle/DemoController)
public function helloAction($name)
{
$_SESSION['test'][] = time();
//var_dump($_SESSION['test']);
return array('name' => $name);
}

Second time code:
public function helloAction($name)
{
//$_SESSION['test'][] = time();
var_dump($_SESSION['test']);
return array('name' => $name);
}
and result is:
array
0 => int 1324995935
1 => int 1324995936
It's a mega bug and i find it on new installation when try to save some value in DB. I had a two values.