afterSave syntax
Posted: Mon Nov 03, 2008 8:25 am
Hi all,
I have a question regarding the use of afterSave in the delegate class, I;m pretty new to all this so i know i'm going wrong somewhere, just dont know where.
I have two related tabled and a join table, Employees, events and employeeEvents, I can add individuals to certain events and vice versa fine but i am trying to be able to batch update a selection of employees to a certain event so i thought using aftersave would be the best approach.
I have a field in employees that mirrors the event id in employeeEvents, so i'm trying to update several employees by changing this field then change the join table by aftersave. this is the code I tred, with some slight modifications but i couldnt get it working, I just think i have the sytax wrong.
Any help would be great? or am I taking a completely stupid way round this and there is an obvious solution staring me in the face?
Thanks n advance,
Adam
I have a question regarding the use of afterSave in the delegate class, I;m pretty new to all this so i know i'm going wrong somewhere, just dont know where.
I have two related tabled and a join table, Employees, events and employeeEvents, I can add individuals to certain events and vice versa fine but i am trying to be able to batch update a selection of employees to a certain event so i thought using aftersave would be the best approach.
I have a field in employees that mirrors the event id in employeeEvents, so i'm trying to update several employees by changing this field then change the join table by aftersave. this is the code I tred, with some slight modifications but i couldnt get it working, I just think i have the sytax wrong.
- Code: Select all
<class>db());
}
}
?>
Any help would be great? or am I taking a completely stupid way round this and there is an obvious solution staring me in the face?
Thanks n advance,
Adam