[TYPO3-mvc] spl_object_hash not matching when using in Fluid ajax widget

Jonas Götze jonnsn at gmail.com
Wed Mar 9 14:30:21 CET 2011


Hi Marc,
Am 09.03.2011 10:56, schrieb Marc Bastian Heinrichs:
> Hey,
>
> I suppose $objectToRemove is an rebuilded object by the propertyMapper.
> So the $objectToRemove is an other object than the corresponding object
> in $myObjectStorage, but they represent the same row.
>
> So you have to implement it like this:
>
> $myObjectStorageClone = $myObjectStorage;
> foreach($myObjectStorageClone as $object) {
>    if ($objectToRemove->getUid() === $object->getUid()) {
> 	$myObjectStorage->detach($object);
>    }
> }
> (untested)
>
>
> Best
> Marc Bastian

Thank you - thats a good idea! Could have thought of that earlier - but 
luckily this wonderful community exists :)

The solution works perfect and is not too dirty imo.

Regards
Jonas


More information about the TYPO3-project-typo3v4mvc mailing list