[TYPO3-mvc] Domain_Model: pid is null

Jochen Rau jochen.rau at typoplanet.de
Thu Jun 10 14:53:59 CEST 2010


Hi Michael.

On 2010-06-10, Michael Feinbier <mf at hdnet.de> wrote:
> Am 10.06.10 11:06, schrieb Jochen Rau:
>> Try to add a TCA field definition:
>>
>> 'pid' =>  array(
>> 	'exclude' =>  1,
>> 	'config'  =>  array(
>> 		'type' =>  'passthrough'
>> 	)
>> ),
>
> Thanks. That's working. Do I have to add this for every TYPO3-own field? 
> (tstamp, cruser?)

If you want to map them on a property: yes.

> Why is uid the exception?

That's because of the relevancy of the uid for the persistence layer. The property uid is defined (lets say hard coded) as private property in the AbstractDomainObject.

>> P.S. First ask, then bash (twitter).
>
> You are right - sorry. Sometimes I just have to blow off steam. :-/
> First beer on T3DD10 is on me ..

So be it. ;-)

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list