Re: DB_DataObject - Table alias in joined query

From: Date: Wed, 23 Aug 2006 17:10:46 +0000
Subject: Re: DB_DataObject - Table alias in joined query
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24973@lists.php.net to get a copy of this message
Yes indeed... does the job, thanks so much ! Le 23 août 06 à 10:48, Jan Wagner a écrit :
Hmmh, how about this one: $do = DB_DataObject::factory('tableName'); $linkDo = DB_DataObject::factory('tableName');
Forgot a $do->selectAs() here.
$do->joinAdd($linkDo, 'LEFT', 'tableAlias'); $do->selectAs($linkDo, 'tableAlias_%s', 'tableAlias'); This seems to work here in a different context.
Jan -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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