Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion core/ormlinkset.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,15 @@ public function UpdateFromCompleteList(iDBObjectSetIterator $oFellow)
{
$bUpdateFromDelta = true;
}
} else {
//@since 3.2.2 N°2364 - API : remove old linkedset persistance
/* Goo pattern to use:
* $oCISet = $oTicket->Get(‘functioncis_list’);
* $oCISet->AddItem(MetaModel::NewObject(‘lnkFunctionCIToTicket’, array(‘ci_id’=> 12345));
* $oCISet->RemoveItem(123456);
* $oTicket->Set(‘functionalcis_list’, $oCISet);
*/
DeprecatedCallsLog::NotifyDeprecatedPhpMethod('old pattern - please get previous value of the linked set, modify it and set it back to the host object');
}

if ($bUpdateFromDelta)
Expand All @@ -528,7 +537,6 @@ public function UpdateFromCompleteList(iDBObjectSetIterator $oFellow)
else
{
// For backward compatibility reasons, let's rebuild a delta...

// Reset the delta
$this->iCursor = 0;
$this->aAdded = array();
Expand Down