Category: cascade

Doctrine: Exception in One-To-Many cascading: Integrity constraint violation 1451

I am trying to build a very basic CMS using Symfony and Doctrine. I have entities emulating my sites’ structure like so: Entity: Page /** * @ORMEntity(repositoryClass=”AppRepositoryContentTreePageRepository”) */ class Page extends SortableBase { /** * @ORMId() * @ORMGeneratedValue() * @ORMColumn(type=”integer”)…