RE: [PEAR] Dataobject : complex jointures

From: Date: Tue, 26 Jul 2005 17:30:11 +0000
Subject: RE: [PEAR] Dataobject : complex jointures
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20146@lists.php.net to get a copy of this message
Hi. Thanks a lot for your -so quick- help. [cut] > > $D->selectAdd(); > $D->selectAdd('A1, A2, A3'); // fields from A table > > $B->joinAdd($E); > > $D->joinAdd($B); > $D->selectAs(); >>Likely the above call is killing the A selectAdds from above. Try removing the above line and see what you get. --> this solved the problem : A fields are now available. > > - SQL statement does not include A fields, nor E fields >> The A fields are missing likely due to the first selectAs call. The E fields aren't showing up because you didn't ask for them. Perhaps try a selectAs call for A, B, *and* E. --> Ok, I thought I had already selected E fields using $B->joinAdd($E) ? Since, E has no link with D, I canno't write $D->joinAdd($E)... David

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