Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 1d1cfaa

Browse files
committed
add use statement for DocumentManager. fix #634
1 parent ede7aa5 commit 1d1cfaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

quick_tour/the_model.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ by creating a new class in the AcmeMainBundle::
9898
{
9999
public function getOrder()
100100
{
101-
// refers to the order in which the class' load function is called
101+
// refers to the order in which the class' load function is called
102102
// (lower return values are called first)
103103
return 10;
104104
}
105-
105+
106106
public function load(ObjectManager $documentManager)
107107
{
108108
}
@@ -111,6 +111,7 @@ by creating a new class in the AcmeMainBundle::
111111
The ``$documentManager`` is the object which will persist the document to
112112
PHPCR. But first, you have to create a new Page document::
113113

114+
use Doctrine\ODM\PHPCR\DocumentManager;
114115
use Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page;
115116

116117
// ...

0 commit comments

Comments
 (0)