Skip to content

Commit 209e644

Browse files
committed
N°2364 - API : remove old linkedset persistance
1 parent 871d5ed commit 209e644

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
@@ -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,14 +537,6 @@ public function UpdateFromCompleteList(iDBObjectSetIterator $oFellow)
528537
else
529538
{
530539
// For backward compatibility reasons, let's rebuild a delta...
531-
//@since 3.2.2 N°2364 - API : remove old linkedset persistance
532-
/* Goo pattern to use:
533-
* $oCISet = $oTicket->Get(‘functioncis_list’);
534-
* $oCISet->AddItem(MetaModel::NewObject(‘lnkFunctionCIToTicket’, array(‘ci_id’=> 12345));
535-
* $oCISet->RemoveItem(123456);
536-
* $oTicket->Set(‘functionalcis_list’, $oCISet);
537-
*/
538-
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('old pattern - please get previous value of the linked set, modify it and set it back to the host object');
539540
// Reset the delta
540541
$this->iCursor = 0;
541542
$this->aAdded = array();

0 commit comments

Comments
 (0)