[TYPO3-team-core-v5] RFC: Open question on support for associative array properties in persistence

Karsten Dambekalns karsten at typo3.org
Mon Nov 24 12:31:58 CET 2008


Hi.

Bastian Waidelich wrote:
> Or the other way around: $user->groups['xyz'] would load the 
> corresponding group from db - if not already done - and return it and 
> unset($user->groups['xyz']) would remove the relation..

Well, unset($someRef) already removes the link when persisting.

As far as the access goes, lazy-loading will work (probably) with some 
proxy object that sits there waiting to be used. As soon as you do, it 
will load the actual data and (ideally) replace itself, or at least 
transparently act like the original object/data.

Karsten


More information about the TYPO3-team-core-v5 mailing list