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:
Polonkai Gergely
2012-08-08 22:18:33 +02:00
parent 55cde1594b
commit 8b9470cfd1
5 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ class DocumentController extends Controller
if ($request->getMethod() == 'POST')
{
$form->bindRequest($request);
$form->bind($request);
if ($form->isValid())
{
@@ -81,7 +81,7 @@ class DocumentController extends Controller
if ($request->getMethod() == 'POST')
{
$form->bindRequest($request);
$form->bind($request);
if ($form->isValid())
{
/* TODO: move these lines into life cycle events */