projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f7cb9c9
)
DataObjects/Core_company.php
author
Alan Knowles
<alan@roojs.com>
Thu, 5 Jul 2018 08:10:59 +0000
(16:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 5 Jul 2018 08:10:59 +0000
(16:10 +0800)
DataObjects/Core_company.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_company.php
b/DataObjects/Core_company.php
index
1682d44
..
9c9e07e
100644
(file)
--- a/
DataObjects/Core_company.php
+++ b/
DataObjects/Core_company.php
@@
-283,6
+283,9
@@
class Pman_Core_DataObjects_Core_Company extends DB_DataObject
){
$roo->jerr('This company is not allow to delete');
}
){
$roo->jerr('This company is not allow to delete');
}
+ }
+ function onDelete()
+ {
$img = DB_DataObject::factory('Images');
$img->ontable = $this->tableName();
$img->onid = $this->id;
$img = DB_DataObject::factory('Images');
$img->ontable = $this->tableName();
$img->onid = $this->id;