[TYPO3-mvc] spl_object_hash not matching when using in Fluid ajax widget
Dennis Ahrens
dennis.ahrens at googlemail.com
Tue Mar 8 15:19:28 CET 2011
Hi Jonas,
On 08.03.2011 14:57, Jonas Götze wrote:
> foreach($myObjectStorage as $object){
> if($obj === $objectToRemove)
> // do something if they match
> else
> // do something if they did not match
> }
>
> This always resulted in the else-case.
Have you checked, if there are clones involved? The === operator will
not return true, if one of the compared objects is a clone of the
original one.
regards
Dennis
More information about the TYPO3-project-typo3v4mvc
mailing list