[FLOW3-general] Error when uploading the same resource
"Christian Müller (FLOW3 Team)"
christian.mueller at typo3.org
Wed Mar 14 12:47:09 CET 2012
Hi Thomas,
indeed that is a problem with ValueObjects which are currently not
cleanly supported in Doctrine. I have started a workaround which works
quite well in creation, but the generated form elements from Fluid for
editing are not good yet, so there is nothing in review yet.
I could push the FLOW3 package change as a WIP if you want to try that.
Cheers,
Christian
On 14/03/12 12:10, Thomas Plessis wrote:
> Hi guys,
>
> I've trouble when i'm uploading a resource which already exists. FLOW3 tries to insert a new resource in the DB so i get the following error :
>
> Uncaught exception #23000 in line 131 of /var/www/clients/client20/web50/web/Packages/Framework/Doctrine/Classes/DBAL/Statement
> .php: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '67566628a578da40a1f677be3c0c43722245bab0' for key 'PRIMARY' - See also: 201203132230470d38f0.txt [logged in TY
> PO3\FLOW3\Log\Logger::logException()]
>
> In my model, the resource relation is configured like that :
>
> /**
> * @var \TYPO3\FLOW3\Resource\Resource
> * @ORM\ManyToOne(targetEntity="\TYPO3\FLOW3\Resource\Resource")
> */
> protected $resource;
>
> Any ideas?
>
> regards,
>
> Thomas Plessis
> Développeur multimédia
> --
> TOTEMnumerique
> 9, Place St Étienne
> 31000 Toulouse
> T. 05 61 14 64 54
> F. 05 61 14 64 55
>
More information about the FLOW3-general
mailing list