How to create new table with on-to-many relationship with table contacts?
I create a new table "history" that link to the table contacts. contacts->history is one-to-many relationship. The fields of the history table is contact_id(id of the contact table), history_id, history_name, history_notes, date_modified
how to modified if I want to use the method of sugar
$obj_contact = new contact();
if(!$obj_contact->ACLAccess('Save')){
return -1;
}
$obj_contact->history_name = "value of history name";
$obj_contact->history_notes = "value of history notes";
$obj_contact->save();


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks