From f3dea276e75ca843c802bb4078781c1841ab725a Mon Sep 17 00:00:00 2001 From: Gary Hockin Date: Tue, 7 Aug 2012 13:10:25 +0200 Subject: [PATCH] Update en/tutorials/getting-started.rst Added note that tripped me up. --- en/tutorials/getting-started.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/en/tutorials/getting-started.rst b/en/tutorials/getting-started.rst index d59acace1..6d1c5431f 100644 --- a/en/tutorials/getting-started.rst +++ b/en/tutorials/getting-started.rst @@ -1431,6 +1431,11 @@ the previoiusly discussed query functionality in it: Dont forget to add a `require_once` call for this class to the bootstrap.php +.. note:: + + **require_once gotcha** + Make sure you add the require_once call for `BugRepository.php` *after* the require_once call for `bootstrap_doctrine.php`, or you will get some class not found errors. + To be able to use this query logic through ``$this->getEntityManager()->getRepository('Bug')`` we have to adjust the metadata slightly.