Skip to content

Commit 909469c

Browse files
authored
N°2364 - API : remove old linkedset persistance (#733)
1 parent dacb542 commit 909469c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/ormlinkset.class.inc.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,15 @@ public function UpdateFromCompleteList(iDBObjectSetIterator $oFellow)
513513
{
514514
$bUpdateFromDelta = true;
515515
}
516+
} else {
517+
//@since 3.2.2 N°2364 - API : remove old linkedset persistance
518+
/* Goo pattern to use:
519+
* $oCISet = $oTicket->Get(‘functioncis_list’);
520+
* $oCISet->AddItem(MetaModel::NewObject(‘lnkFunctionCIToTicket’, array(‘ci_id’=> 12345));
521+
* $oCISet->RemoveItem(123456);
522+
* $oTicket->Set(‘functionalcis_list’, $oCISet);
523+
*/
524+
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('old pattern - please get previous value of the linked set, modify it and set it back to the host object');
516525
}
517526

518527
if ($bUpdateFromDelta)
@@ -528,7 +537,6 @@ public function UpdateFromCompleteList(iDBObjectSetIterator $oFellow)
528537
else
529538
{
530539
// For backward compatibility reasons, let's rebuild a delta...
531-
532540
// Reset the delta
533541
$this->iCursor = 0;
534542
$this->aAdded = array();

0 commit comments

Comments
 (0)