Fixed code according to Sf2.1 API change
* changed Form::bindRequest calls to Form::bind, as bindRequest goes deprecated soon Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -64,7 +64,7 @@ class ForumController extends Controller
|
||||
$request = $this->getRequest();
|
||||
if ($request->getMethod() == 'POST')
|
||||
{
|
||||
$form->bindRequest($request);
|
||||
$form->bind($request);
|
||||
if ($form->isValid())
|
||||
{
|
||||
$post->setCreatedAt(new \DateTime('now'));
|
||||
|
Reference in New Issue
Block a user