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

Commit 89f6f12

Browse files
committed
fix #253
1 parent 76ddc1a commit 89f6f12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bundles/block/introduction.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ your block in the repository. You can do so with the following code snippet::
161161
use Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SimpleBlock;
162162

163163
// ...
164+
/** @var $dm \Doctrine\ODM\PHPCR\DocumentManager */
165+
$parentDocument = $dm->find(null, '/cms/content/home');
164166

165167
$myBlock = new SimpleBlock();
166168
$myBlock->setParentDocument($parentDocument);

0 commit comments

Comments
 (0)