[Flow] Re: Removing an object, that has references, leads to "Exception thrown without a stack frame in Unknow
Christian EÃl
essl at incert.at
Tue Jul 9 08:31:54 CEST 2013
If someone's interested: I found the problem in my model.
In my case, i mapped $subpages by "page", but if you look at the propertys of my model closely, it was supposed to be mapped by "parent", because thats the name of the ManyToOne-propery $page. Because of that, Doctrine had problems constructing the object tree and threw these obscure errors.
/**
* The subpages of this page
*
* @var \Doctrine\Common\Collections\Collection<\Test\CMS\Domain\Model\Page>
* @ORM\OneToMany(mappedBy="page", cascade={"all"}, orphanRemoval=true)
* @ORM\OrderBy({"date" = "DESC"})
*/
protected $subpages;
More information about the Flow
mailing list