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

Jonas Götze jonnsn at gmail.com
Tue Mar 8 16:29:08 CET 2011


Thank you for your help on this.

Am 08.03.2011 15:58, schrieb Dennis Ahrens:
> You can check it by calling _isClone() on the domain object.
>
> I would expect findByUid to return the original object instead of clone
> as you do. Maybe there are cloned objects in the object storage?
>
> Maybe it helps, if you do the comparison like this:
>
> if ($obj->getUid() === $object->getUid() && get_class($obj) ===
> get_class($object)) { } else {}
>
> Not that clean - but this should also make sure, that it is the same
> object (without respecting any changes in the objects).
>
> regards
> Dennis

_isClone returns false for the $objectToRemove as well as for all the 
objects in the ObjectStorage.
The Comparison should work that way imo (I will try later - print_r 
shows matching values for everything) but anyhow I would like to 
understand whats wrong here ;)

Regards
Jonas


More information about the TYPO3-project-typo3v4mvc mailing list