/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
- function person($set)
+ function person($set = false)
{
if ($set !== false) {
$this->person_id = is_object($set) ? $set->id : $set;
return $c;
}
- function object()
+ function object($set = false)
{
+ if ($set !== false) {
+ $this->ontable = $set->tableName();
+ $this->onid = $set->id;
+ return;
+ }
$c = DB_DataObject::factory($this->ontable);
$c->autoJoin();
if ($c->get($this->onid)) {