[FLOW3-general] Error: A new entity was found through the relationship...

Stephen Bungert stephenbungert at yahoo.de
Sat Feb 9 13:01:12 CET 2013


I getting this error now.

Here is my property that it refers to:
	
	/**
	 * The book's image.
	 *
	 * @var \Gamebook\Gamebook\Domain\Model\Image
	 * @ORM\OneToOne(inversedBy="book", cascade={"persist", "all"})
	 * @ORM\Column(nullable=TRUE)
	 */
	protected $image = NULL;

I added cascade={"persist"} like the error message says to, but it still 
causes this error.

I have a field like this in my edit book form:

<f:form.textfield property="image.title" id="imageTitle" />

so that people can add an image record to the book while editing the 
book (at the moment all that they can add is the title field).

Why does it say I should still add cascade={"persist"}?

Thanks for any hints.

Stephen.


More information about the FLOW3-general mailing list