Skip to content

Commit d7c6889

Browse files
committed
Merge pull request #40 from EmmanuelVella/child-interface
Use ChildInterface
2 parents b887d8b + 1a56669 commit d7c6889

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Symfony/Cmf/Component/Testing/Document/Content.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
namespace Symfony\Cmf\Component\Testing\Document;
1414

1515
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
16+
use Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface;
1617

1718
/**
1819
* Test content document
@@ -21,7 +22,7 @@
2122
*
2223
* @PHPCRODM\Document(referenceable=true)
2324
*/
24-
class Content
25+
class Content implements ChildInterface
2526
{
2627
/**
2728
* @PHPCRODM\Id(strategy="parent")
@@ -53,12 +54,12 @@ public function getId()
5354
return $this->id;
5455
}
5556

56-
public function setParent($parent)
57+
public function setParentDocument($parent)
5758
{
5859
$this->parent = $parent;
5960
}
6061

61-
public function getParent()
62+
public function getParentDocument()
6263
{
6364
return $this->parent;
6465
}

0 commit comments

Comments
 (0)