[FLOW3-general] Error when uploading the same resource

Thomas Plessis t.plessis at totemnumerique.com
Wed Mar 14 14:22:01 CET 2012


Hi Christian,

Yes, i'm able to try your solution. I'm waiting your WIP. :)

cheers,

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

Le 14 mars 2012 à 12:47, Christian Müller (FLOW3 Team) a écrit :

> 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
>> 
> 
> 
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general



More information about the FLOW3-general mailing list