Re: DataObjects: joinAdd problem

From: Date: Wed, 26 Jan 2005 09:46:06 +0000
Subject: Re: DataObjects: joinAdd problem
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17165@lists.php.net to get a copy of this message
You are the best! Thank you very much. Toni. El mar, 25-01-2005 a las 09:23 -0800, Justin Patrin escribió: > if (!empty($temas)) { > $nt =& DB_DataObject::factory('Not_Tema'); > $this->joinAdd($nt); > $whereSql = ''; > foreach ($temas as $v) { > if ($whereSql) { > $whereSql .= ' OR '; > } > $whereSql .= 'Not_Not_Tema.idt = "'.$v.'"'; > } > $this->whereAdd($whereSql); > } > > I think that should do it. > -- > Justin Patrin >

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