Skip to content

Commit

Permalink
update getting-started fix type, improve doc (#8440)
Browse files Browse the repository at this point in the history
* update getting-started fix type, improve doc

* Update getting-started.rst
  • Loading branch information
fey authored Jan 26, 2021
1 parent 5801474 commit 40aa8fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/en/tutorials/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ classes. We'll store them in ``src/Bug.php`` and ``src/User.php``, respectively.
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="bugs")
*/
class Bug
Expand Down Expand Up @@ -661,12 +662,12 @@ domain model to match the requirements:

Lazy load proxies always contain an instance of
Doctrine's EntityManager and all its dependencies. Therefore a
var\_dump() will possibly dump a very large recursive structure
``var_dump()`` will possibly dump a very large recursive structure
which is impossible to render and read. You have to use
``Doctrine\Common\Util\Debug::dump()`` to restrict the dumping to a
human readable level. Additionally you should be aware that dumping
the EntityManager to a Browser may take several minutes, and the
Debug::dump() method just ignores any occurrences of it in Proxy
``Debug::dump()`` method just ignores any occurrences of it in Proxy
instances.

Because we only work with collections for the references we must be
Expand Down

0 comments on commit 40aa8fe

Please sign in to comment.