forked from doctrine/phpcr-odm
-
Notifications
You must be signed in to change notification settings - Fork 1
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 doctrine#513 from asiragusa/master
Fixed a bug while moving the node to a new parent and the @nodename has ...
- Loading branch information
Showing
3 changed files
with
65 additions
and
1 deletion.
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
28 changes: 28 additions & 0 deletions
28
tests/Doctrine/Tests/Models/References/ParentNoNodeNameTestObj.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,28 @@ | ||
<?php | ||
|
||
namespace Doctrine\Tests\Models\References; | ||
|
||
use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM; | ||
|
||
/** | ||
* @PHPCRODM\Document(referenceable=true) | ||
*/ | ||
class ParentNoNodeNameTestObj | ||
{ | ||
/** @PHPCRODM\Id */ | ||
public $id; | ||
/** @PHPCRODM\ParentDocument */ | ||
public $parent; | ||
/** @PHPCRODM\String */ | ||
public $name; | ||
|
||
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