Doctrine2 ORM - A managed+dirty entity X can not be scheduled for insertion
I've got the following classes (only show partials to reduce amount to read) class Page { /** * @ORM\Column(type="string", unique=true, nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="UUID") * @var string */ protected $id; /** * @ORM\OneToMany(targetEntity="Url", mappedBy="content") * @var Url[] */ protected $urls; public function __construct() { $this->urls = new ArrayCollection(); } } And: class Url { /** * @ORM\Id @ORM\Column(type="string", unique=true, nullable=false) * @ORM\GeneratedValue(strategy="UUID") * @var string The unique identifier for the Url */ protected $id; /** * @O
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.