$target->setFrom($this->toArray());
- if(method_exists($target, 'beforeInsert')){
- $target->beforeInsert(array(), $roo);
- }
-
$target->insert();
- if(method_exists($target, 'onInsert')){
- $target->onInsert(array(), $roo);
- }
+ $this->person_id = $target->id;
+ // ok - deleting might not be a great idea.... - as we can not track already confirmed codes..
- $this->delete();
+ //$this->delete();
return $target;
}
return true;
}
- return false;
+ return $sent;
}
function getEmailFrom()