Upsert Plugin Cannot Delete Related Record, How then?

margarizaldi

New Member
Hi all, I'm gonna straightforward to my case:

I've created a form which uses upsert plugin to insert/update another table when a record is made/updated. The upsert works fine for updating and adding record (that's why it's called "upsert", huh), but the problem comes since it doesn't delete its related record when it is deleted. Now I'm sure you've got what I mean.

Then I think list php events plugin will solve but I have no idea to use it, really. The only clue I've got is from the tooltip embedded by using such:

PHP:
$model->rowsToDelete[0][0]->___pk_val

Anybody could teach me what does that mean? or at least, willing to show me what actually I have to write on it?? :D:D:D You know.. sometimes easy topic is hard to find in forums.
FYI: In the upsert form-plugin I chose PK.

Any suggestions will always help me a lot.
Cheers...
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top