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

Dominique Feyer dfeyer at ttree.ch
Sun Feb 10 13:38:25 CET 2013


On 2013-02-09 12:01:12 +0000, Stephen Bungert said:

> 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.

Is your Image model based on TYPO3.Image ?

Bests,

Dominique Feyer



More information about the FLOW3-general mailing list