This commit is contained in:
Florent Poinsaut
2024-08-26 15:45:38 +02:00
parent 05a11b7cef
commit c8cc7884e4
6 changed files with 25 additions and 22 deletions

View File

@@ -854,14 +854,15 @@ class Commande extends CommonOrder
}
/**
* Sets object to supplied categories.
* Sets object to given categories.
*
* Deletes object from existing categories not supplied.
* Adds it to non existing supplied categories.
* Deletes object from existing categories not supplied.
* Existing categories are left untouch.
*
* @param int[]|int $categories Category or categories IDs
* @return void
* @param int[]|int $categories Category ID or array of Categories IDs
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function setCategories($categories)
{