[TYPO3-dev] File references not saved correctly in extbase

Mato Ilic info at matoilic.ch
Sat Apr 12 19:26:12 CEST 2014


Hi Frans,

Thank you so much. Got it finally to work with your code example.

Cheers,
Mato

Am 11.04.2014 um 23:28 schrieb Frans Saris <franssaris at gmail.com>:

> Hi Mato,
> 
> The core extbase models are missing some properties/relations on the
> persistence part.
> 
> You have to define the file <-> files reference relation in your own
> models. Have a look at this commit.
> https://bitbucket.org/franssaris/fal_fe_upload/commits/dc3bf099314fa9445b2b661253574c3a4afff6f1?at=master
> 
> Gr. Frans
> Op 11 apr. 2014 16:25 schreef "Mato Ilic" <info at matoilic.ch>:
> 
>> Hi all,
>> 
>> I'm developing an extension for TYPO3 6.2 and want to attach multiple
>> images to a model using FAL. The problem is that in sys_file_reference the
>> columns uid_local and table_local stay empty. Thus, it fails to retrieve
>> the images when loading the record from the DB. The following exception
>> gets thrown:
>> 
>> #1300098528: Incorrect reference to original file given for FileReference
>> 
>> I've published the associated code on github
>> https://gist.github.com/matoilic/10472571
>> 
>> Does anyone see the mistake? I've been trying for hours now without luck.
>> 
>> Cheers,
>> Mato
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>> 
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list