Skip to content

Commit afc1aeb

Browse files
pawskiweaverryan
authored andcommitted
Fixed syntax- getEntityManager is deprecated since Symfony 2.1.
1 parent d084d87 commit afc1aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/doctrine/registration_form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ the validation and saves the data into the database::
272272

273273
public function createAction(Request $request)
274274
{
275-
$em = $this->getDoctrine()->getEntityManager();
275+
$em = $this->getDoctrine()->getManager();
276276

277277
$form = $this->createForm(new RegistrationType(), new Registration());
278278

0 commit comments

Comments
 (0)