Hallo Zusammen,

beim Vergleich zweier Objekte der selben Klasse und gleicher UID liefert
if keinen Treffer,
also:

$objA === $objB : FALSE
$objA == $objB : FALSE
$objA->getUid() == $objB->getUid() : TRUE

Etwas mehr im Detail:

Ich habe die Klassen Leistung und Typ mit der Relationen:

Leistung n : 1 Typ

    if ($leistung1->getTyp() == $leistung2->getTyp()) ...
liefert nicht das gewünschte Ergebnis

    if ($leistung1->getTyp()->getUid() == $leistung2->getTyp()->getUid())
aber schon.

So ganz verstehe ich das nicht...

Grüße,
Till
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an