8000 Merge pull request #1464 from Antek88/patch-1 · lazymanc/symfony-docs@8a38300 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a38300

Browse files
committed
Merge pull request symfony#1464 from Antek88/patch-1
Fixed syntax
2 parents 067881c + d27f4e5 commit 8a38300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/doctrine/event_listeners_subscribers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ a ``postPersist`` method, which will be called when the event is thrown::
9595
public function postPersist(LifecycleEventArgs $args)
9696
{
9797
$entity = $args->getEntity();
98-
$entityManager = $args->getManager();
98+
$entityManager = $args->getEntityManager();
9999
100100
// perhaps you only want to act on some "Product" entity
101101
if ($entity instanceof Product) {

0 commit comments

Comments
 (0)
0