post insert function [message #2858] |
Tue, 27 December 2011 11:55 |
MajoryR
Messages: 2 Registered: December 2011
|
Junior Member |
|
|
// create initial entries on PLACE table
require_once 'classes/wf_place.class.inc';
$dbobject =& RDCsingleton::getInstance('wf_place');
// create entry for START place
$place_array[0]['workflow_id'] = $rowdata['workflow_id'];
$place_array[0]['place_id'] = 1;
$place_array[0]['place_name'] = 'START';
$place_array[0]['place_type'] = '1';
// create entry for END place
$place_array[1]['workflow_id'] = $rowdata['workflow_id'];
$place_array[1]['place_id'] = 2;
$place_array[1]['place_name'] = 'END';
$place_array[1]['place_type'] = '9';
$place_array = $dbobject->insertMultiple($place_array);
if ($dbobject->errors) {
$this->errors = $dbobject->errors;
} // if
return $rowdata;
I want to get parent data automatic into child table, i don't know which function exact to use. So I use the function above
But I don't get useful result. Can someone give me some advise?
|
|
|