projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e606e5a
)
DataObjects/Person.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 12 May 2011 10:45:37 +0000
(18:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 12 May 2011 10:45:37 +0000
(18:45 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
a757f89
..
c6a08ff
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-528,6
+528,21
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
}
return true;
}
+ /**
+ *
+ * before Delete - delete significant dependancies..
+ * this is called after checkPerm..
+ */
+
+ function beforeDelete()
+ {
+
+ $e = DB_DataObject::Factory('Events');
+ $e->whereAdd('person_id = ' . $this->id);
+ $e->delete(true);
+
+
+ }
/***