DB_DataObject_Formbuilder: preventing crossLinks from being deleted
| From: | Sönke Ruempler | Date: | Fri, 14 Jan 2005 12:31:00 +0000 |
| Subject: | DB_DataObject_Formbuilder: preventing crossLinks from being deleted | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-35495@lists.php.net to get a copy of this message | ||
Hi,
I just ran into a problem with the new crossLink behaviour of deleting and
inserting only old / new entries. The thingy is that my application also can
store data in the crossLink without having set a "toField" (it's set to NULL
in this case) because it has no relation to the "toTable". These entries are
getting deleted everytime the crossLink is updated. I think this situation
could happen quite often.
I guess in crossLink processing of the submitted values the $do should be
able to be "callback'ed" in some way before the find() is done.
Or better a automagically added whereAdd - dunno if this is compatible to
all DBMS:
$do->whereAdd($toField . 'IS NOT NULL', 'AND');
$do->find();
What's your opinion?
--
soenke