forked from Wavyzz/dolibarr
Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
This commit is contained in:
@@ -3789,7 +3789,7 @@ abstract class CommonObject
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Add objects linked in llx_element_element.
|
||||
* Add an object link into llx_element_element.
|
||||
*
|
||||
* @param string $origin Linked element type
|
||||
* @param int $origin_id Linked element id
|
||||
@@ -4111,6 +4111,21 @@ abstract class CommonObject
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the cache saying that all linked object were already loaded. So next fetchObjectLinked will reload all links.
|
||||
*
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* @see fetchObjectLinked()
|
||||
*/
|
||||
public function clearObjectLinkedCache()
|
||||
{
|
||||
if ($this->id > 0 && !empty($this->linkedObjectsFullLoaded[$this->id])) {
|
||||
unset($this->linkedObjectsFullLoaded[$this->id]);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update object linked of a current object
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user