-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #811 from Inventis/jan/fix-children-getting-remove…
…d-on-move-when-pre-update-listener-is-present fix children getting removed on move when pre update listener is present
- Loading branch information
Showing
3 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/Doctrine/Tests/Models/References/ParentWithChildrenTestObj.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Models\References; | ||
|
||
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM; | ||
|
||
/** | ||
* @PHPCRODM\Document(referenceable=true) | ||
*/ | ||
class ParentWithChildrenTestObj | ||
{ | ||
/** @PHPCRODM\Id(strategy="parent") */ | ||
public $id; | ||
/** @PHPCRODM\ParentDocument */ | ||
public $parent; | ||
/** @PHPCRODM\Nodename */ | ||
public $nodename; | ||
/** @PHPCRODM\Field(type="string") */ | ||
public $name; | ||
/** @PHPCRODM\Children() */ | ||
public $children; | ||
|
||
public function getParentDocument() | ||
{ | ||
return $this->parent; | ||
} | ||
|
||
public function setParentDocument($parent) | ||
{ | ||
$this->parent = $parent; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters