Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
ldestailleur
2025-05-11 12:32:53 +02:00
2 changed files with 108 additions and 108 deletions

View File

@@ -59,7 +59,7 @@ class Asset extends CommonObject
public $fk_element = 'fk_asset'; public $fk_element = 'fk_asset';
/** /**
* @var array List of child tables. To know object to delete on cascade. * @var string[] List of child tables. To know object to delete on cascade.
* If name matches '@ClassName:FilePathClass:ParentFkFieldName' (the recommended mode) it will * If name matches '@ClassName:FilePathClass:ParentFkFieldName' (the recommended mode) it will
* call method ClassName->deleteByParentField(parentId, 'ParentFkFieldName') to fetch and delete child object. * call method ClassName->deleteByParentField(parentId, 'ParentFkFieldName') to fetch and delete child object.
* Using an array like childtables should not be implemented because a child may have other child, so we must only use the method that call deleteByParentField(). * Using an array like childtables should not be implemented because a child may have other child, so we must only use the method that call deleteByParentField().