projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37bc6e1
)
DataObjects/Core_person_signup.php
author
Edward
<edward@roojs.com>
Tue, 24 Mar 2015 05:15:10 +0000
(13:15 +0800)
committer
Edward
<edward@roojs.com>
Tue, 24 Mar 2015 05:15:10 +0000
(13:15 +0800)
DataObjects/Core_person_signup.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person_signup.php
b/DataObjects/Core_person_signup.php
index
79abe45
..
cb996cd
100644
(file)
--- a/
DataObjects/Core_person_signup.php
+++ b/
DataObjects/Core_person_signup.php
@@
-56,9
+56,16
@@
class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
$this->person_id = $target->id;
$this->person_table = $target->tableName();
$this->update($old);
$this->person_id = $target->id;
$this->person_table = $target->tableName();
$this->update($old);
- // ok - deleting might not be a great idea.... - as we can not track already confirmed codes..
- //$this->delete();
+ if(!empty($this->invite_id) && !empty($this->friend_table)){
+ $friend = DB_DataObject::factory($this->friend_table);
+ $friend->setFrom(array(
+ 'person_id' => $this->invite_id,
+ 'friend_id' => $target->id
+ ));
+
+ $friend->insert();
+ }
return $target;
}
return $target;
}