[TYPO3-mvc] [!!!] FYI: Changes of Extbase in TYPO3 beta3

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Sat Nov 7 22:15:04 CET 2009


I see - thanks for the clarification! =o)

Jochen Rau schrieb:
> Hi.
> 
> This is the reference index of TYPO3 introduced in 4.2.0.
> 
> In the List-Module there is a cloumn [Ref.] showing the number of 
> references of the list item. Click on the number to get more information 
> about the references.
> 
> Sometimes it is useful (for extension developers) to kepp this index 
> updated. But Sebastian and I think that it should not be set by default.
> 
> Regards
> Jochen
> 
> 
> Thomas "Thasmo" Deinhamer wrote:
>> Hoi!
>>
>> Refering to 3), what's the disadvantage then,
>> if the performance increases? What exactly is
>> the reference index for? Is there any
>> description/documentation about it?
>>
>> Thank you!
>>
>> Jochen Rau schrieb:
>>> Hi.
>>>
>>> There are some changes introduced with v0.9.13 of Extbase (=beta3 of
>>> TYPO3 4.3).
>>>
>>> 1) Lazy Loading
>>> The configuration of the loading strategy has changed. The TCA option
>>> "loadingStrategy" was removed. You have to annotate your property with
>>> "@lazy" now (compatible with FLOW3). Extbase chooses the appropriate
>>> strategy depending on the property type:
>>> ObjectStorage ==> LazyObjectStorage
>>> Tx_MyExt_MyObject ==> LazyLoadingProxy
>>>
>>> 2) Cascading Deletions
>>> Related objects are not deleted with its parent by default. There are
>>> two ways to get them deleted with its parent:
>>> You can remove them "manually" from their repository (if any),
>>> or you can annotate the parent property with "@cascade remove".
>>> The relation information keeps intact if they are marked as deleted=1.
>>> This is only useful if we have a one-to-one-relation or
>>> one-to-many-relation. Many-to-many-relations are not touched.
>>>
>>> Keep in mind, that detaching an object from its parent will remove the
>>> relation but not the related object.
>>>
>>> 3) Reference Index and Cache Clearing
>>> The reference index is not updated by default anymore for performance
>>> reasons. You have to set:
>>> config.tx_extbase.persistence.updateReferenceIndex = 1
>>> to enable this feature.
>>>
>>> There is also an option
>>> config.tx_extbase.persistence.enableAutomaticCacheClearing = 1
>>> which is enabled by default. Setting this to 0 can increase the
>>> performance.
>>>
>>> We really appreciate your feedback.
>>>
>>> Regards
>>> Jochen
>>>
> 


More information about the TYPO3-project-typo3v4mvc mailing list