Skip to content

Commit

Permalink
Allow breaking a cycle in a test case that is now detected
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Feb 27, 2023
1 parent 905d97a commit 5bb392b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Doctrine\Tests\Models\PersistentObject;

use Doctrine\Common\Persistence\PersistentObject;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
Expand All @@ -30,6 +31,7 @@ class PersistentEntity extends PersistentObject

/**
* @ManyToOne(targetEntity="PersistentEntity")
* @ORM\JoinColumn(nullable=true)
* @var PersistentEntity
*/
protected $parent;
Expand Down

0 comments on commit 5bb392b

Please sign in to comment.