From 613119599febb05399c8f8037b4168745e016c42 Mon Sep 17 00:00:00 2001 From: Thomas Tourlourat Date: Thu, 21 Aug 2014 10:42:22 +0200 Subject: [PATCH] Fix wrong variable name --- docs/en/reference/second-level-cache.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/second-level-cache.rst b/docs/en/reference/second-level-cache.rst index 03d5b6de4..d88e83fc6 100644 --- a/docs/en/reference/second-level-cache.rst +++ b/docs/en/reference/second-level-cache.rst @@ -466,7 +466,7 @@ Basic entity cache $country1 = $em->find('Country', 1); // Retrieve item from cache $country->setName("New Name"); - $em->persist($state); + $em->persist($country); $em->flush(); // Hit database to update the row and update cache $em->clear(); // Clear entity manager