From cd2805137056688fc0848f7fa76b479d681a3cb6 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Mon, 3 Oct 2011 01:26:43 -0300 Subject: [PATCH] Fixes DDC-1395 --- .../ORM/Tools/Console/Command/ClearCache/ResultCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php index 5db7fb296..d8efeaa44 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php @@ -78,13 +78,13 @@ EOT protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) { $em = $this->getHelper('em')->getEntityManager(); - $cacheDriver = $em->getConfiguration()->getQueryCacheImpl(); + $cacheDriver = $em->getConfiguration()->getResultCacheImpl(); if ( ! $cacheDriver) { throw new \InvalidArgumentException('No Result cache driver is configured on given EntityManager.'); } - $output->write('Clearing ALL Query cache entries' . PHP_EOL); + $output->write('Clearing ALL Result cache entries' . PHP_EOL); $result = $cacheDriver->deleteAll(); $message = ($result) ? 'Successfully deleted cache entries.' : 'No cache entries were deleted.';