projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
198c36e
)
DataObjects/Core_person.php
author
benny
<benny@roojs.com>
Thu, 2 Aug 2018 02:28:07 +0000
(10:28 +0800)
committer
benny
<benny@roojs.com>
Thu, 2 Aug 2018 02:28:07 +0000
(10:28 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
fbea465
..
108e569
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-1125,6
+1125,14
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
$p->delete();
}
+ $e = DB_DataObject::Factory('events');
+ $e->person_id = $this->id;
+ $eve = $e->fetchAll(); // fetch all the rows and set the $mem variable to the rows data, just like mysqli_fetch_assoc
+
+ foreach($eve as $e) {
+ $e->delete();
+ }
+
// anything else?