Update en/tutorials/getting-started.rst
Added note that tripped me up.
This commit is contained in:
parent
2f72219d6e
commit
f3dea276e7
@ -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
|
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')``
|
To be able to use this query logic through ``$this->getEntityManager()->getRepository('Bug')``
|
||||||
we have to adjust the metadata slightly.
|
we have to adjust the metadata slightly.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user