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

Commit 4f257cf

Browse files
Update the_model.rst
setParent is deprecated using setParentDocument instead.
1 parent f6a8254 commit 4f257cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quick_tour/the_model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ it as its parent::
135135
// get root document (/cms/simple)
136136
$simpleCmsRoot = $documentManager->find(null, '/cms/simple');
137137

138-
$page->setParent($simpleCmsRoot); // set the parent to the root
138+
$page->setParentDocument($simpleCmsRoot); // set the parent to the root
139139
}
140140

141141
And at last, we have to tell the Document Manager to persist our Page

0 commit comments

Comments
 (0)