Updated to Symfony 2.1 stable

This commit is contained in:
2012-12-20 21:32:35 +01:00
parent 0f112feabe
commit ceb1f3be9d
4 changed files with 1660 additions and 21 deletions

View File

@@ -21,10 +21,7 @@ class DefaultController extends Controller
->getDoctrine()
->getRepository('KekRozsakFrontBundle:Article')
->findOneBy(
array('mainPage' => true),
true,
array('createdAt', 'DESC'),
1
array('mainPage' => true)
);
if (!$mainPageArticle) {
throw $this->createNotFoundException('A keresett cikk nem létezik!');