DB_DataObjects : orderBy + getLink doesn't work

From: Date: Mon, 25 Jul 2005 13:21:56 +0000
Subject: DB_DataObjects : orderBy + getLink doesn't work
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20121@lists.php.net to get a copy of this message
Hi, I currently use this (lightened) code, inside a class definition : function getArrayOfB($order) { $A = $this->factory('A'); $A->synagogueID = $id; $prop = $this->factory('B'); $i = 0; if ($A->find()) { while ($A->fetch()) { $prop->orderBy($order); $prop =& $A->getLink('b_ID'); $arr[$i] = $prop; $i++; } return $a } that returns an array of B objects. Problem : the orderBy clause is not taken into account. What's wrong ? Thanks David

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