Skip to content

Commit 25eb91b

Browse files
committed
N°2364 - API : remove old linkedset persistance
1 parent dcd8178 commit 25eb91b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

core/ormlinkset.class.inc.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,15 @@ public function UpdateFromCompleteList(iDBObjectSetIterator $oFellow)
532532
{
533533
$bUpdateFromDelta = true;
534534
}
535+
} else {
536+
//@since 3.2.2 N°2364 - API : remove old linkedset persistance
537+
/* Goo pattern to use:
538+
* $oCISet = $oTicket->Get(‘functioncis_list’);
539+
* $oCISet->AddItem(MetaModel::NewObject(‘lnkFunctionCIToTicket’, array(‘ci_id’=> 12345));
540+
* $oCISet->RemoveItem(123456);
541+
* $oTicket->Set(‘functionalcis_list’, $oCISet);
542+
*/
543+
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('old pattern - please get previous value of the linked set, modify it and set it back to the host object');
535544
}
536545

537546
if ($bUpdateFromDelta)
@@ -547,14 +556,6 @@ public function UpdateFromCompleteList(iDBObjectSetIterator $oFellow)
547556
else
548557
{
549558
// For backward compatibility reasons, let's rebuild a delta...
550-
//@since 3.2.2 N°2364 - API : remove old linkedset persistance
551-
/* Goo pattern to use:
552-
* $oCISet = $oTicket->Get(‘functioncis_list’);
553-
* $oCISet->AddItem(MetaModel::NewObject(‘lnkFunctionCIToTicket’, array(‘ci_id’=> 12345));
554-
* $oCISet->RemoveItem(123456);
555-
* $oTicket->Set(‘functionalcis_list’, $oCISet);
556-
*/
557-
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('old pattern - please get previous value of the linked set, modify it and set it back to the host object');
558559
// Reset the delta
559560
$this->iCursor = 0;
560561
$this->aAdded = array();

0 commit comments

Comments
 (0)