[Flow] Question about extending model

Winfried Mingst admin at regionalberatung.at
Thu May 2 13:18:09 CEST 2013


here you can see the files model extening the image model from package 
\TYP03\Media:

http://pastebin.com/710L8umN



Am 02.05.2013 13:02, schrieb Peter Russ:
> --- Original Nachricht ---
> Absender:   Winfried Mingst
> Datum:       02.05.2013 10:10:
>> Hi,
>> I tried to extend the model of class \TYPO3\Media\Domain\Model\Image by
>> some additional properies.
>> doctrine:update creates  my new table "File". But the resource property,
>> a foreign key to typo3_resource_resouce is not created. No matter if I
>> define it in class File or not.
>> What I'm doing wrong?
>>
>>
>> /**
>>   * A File
>>   *
>>
>>   * @Flow\Scope("prototype")
>>   * @Flow\Entity
>>
>>   */
>> class File extends \TYPO3\Media\Domain\Model\Image {
>>
>> /**
>> protected myproperty1
>> */
>> .....
>
> please show the model class.
>
> Peter
>



More information about the Flow mailing list