This commit is contained in:
Laurent Destailleur 2020-06-06 21:56:23 +02:00
parent b386400365
commit b221c65165
2 changed files with 11 additions and 3 deletions

View File

@ -443,13 +443,19 @@ abstract class CommonObject
public $next_prev_filter; public $next_prev_filter;
/**
* @var array List of child tables. To test if we can delete object.
*/
protected $childtables = array();
/** /**
* @var array List of child tables. To know object to delete on cascade. * @var array List of child tables. To know object to delete on cascade.
* if name like with @ClassNAme:FilePathClass;ParentFkFieldName' it will * If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
* call method deleteByParentField(parentId,ParentFkFieldName) to fetch and delete child object * call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
*/ */
protected $childtablesoncascade = array(); protected $childtablesoncascade = array();
// No constructor as it is an abstract class // No constructor as it is an abstract class
/** /**
* Check an object id/ref exists * Check an object id/ref exists

View File

@ -196,7 +196,9 @@ class MyObject extends CommonObject
//protected $childtables = array(); //protected $childtables = array();
/** /**
* @var array List of child tables. To know object to delete on cascade. * @var array List of child tables. To know object to delete on cascade.
* If name matches '@ClassNAme:FilePathClass;ParentFkFieldName' it will
* call method deleteByParentField(parentId, ParentFkFieldName) to fetch and delete child object
*/ */
//protected $childtablesoncascade = array('mymodule_myobjectdet'); //protected $childtablesoncascade = array('mymodule_myobjectdet');