RE: [PEAR] DataObjects

From: Date: Tue, 20 May 2003 19:06:56 +0000
Subject: RE: [PEAR] DataObjects
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5486@lists.php.net to get a copy of this message
Hi. Synopsis boolean $DB_DataObject->getLinks () Description Loads the all the related objects into the main object, by using the links.ini relationships, and sets the calling objects variables with the row name prefixed with an underscode (_) to the resulting objects -> emp = new DataObject_Employee; -> -> emp->get(123); -> emp->get_links(); -> print ($emp->dept->deptName); ??? - I tried thi sonce and failed and -> could figure it out // first put "$" to "emp" var: $emp = new DataObject_Employee; $emp->get(123); // is getLinks(), not get_links() $emp->getLinks(); // and next, try: echo "<pre>"; print_r($emp); echo "</pre>"; // and determine what $emp attribute are you looking for. good look! mac -- ...ThE PhP_KiD.

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