[TYPO3-mvc] Changing adding/removing an object to an ObjectStorage removes all hidden records

Martin Kutschker masi-no at spam-typo3.org
Fri Aug 13 13:04:15 CEST 2010


Am 13.08.2010 12:55, schrieb Steffen Ritter:
> Am 13.08.2010 12:46, schrieb Martin Kutschker:
>>> b, not correct
>>  From you description it seems that it should ignore any "visibility" flags when reinserting the
>> relations.
>>
> The problem is, that it uses the "object storage" to determine wether there is a relation or not.
> And the ObjectStorage - for sure - includes only visible objects.

Oh. But while this makes perhaps (!) sense in the FE it's wrong (as you have noticed) in the BE.

IMHO the object storage must include all related objects but the deleted ones. For convenience sake
there may be methods or additional (virtual) properties that omit any invisible objects. But what is
visible or not may vary depending on the context. In the FE access control and time constraints must
be taken into account, but in the BE only in rare conditions is even the "hidden" flag checked.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list