DB_DataObject: Updating Linked Tables Best Pactices

From: Date: Mon, 05 Apr 2004 05:57:18 +0000
Subject: DB_DataObject: Updating Linked Tables Best Pactices
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11618@lists.php.net to get a copy of this message
The docs don't mention it, but what if you want to update linked records? I can't seem to get it to work... This would be handy for joins that are basically sibling in nature, i.e. so if I have $person and $employee and I run: $employee->rank = 5; $employee->_person_id->name = "foo"; $employee->update(); This only updates the rank not the name. If you have a form with both fields on it, what are best practices for this? thanks, Jacob Jacob Singh Technical Director Calabashmusic.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.617 / Virus Database: 396 - Release Date: 3/9/2004

« previous php.pear.general (#11618) next »