Re: Structures_DataGrid, automatic DB_DataObject joinAdd experiment
| From: | arnaud sellenet | Date: | Fri, 05 Jan 2007 22:13:20 +0000 |
| Subject: | Re: Structures_DataGrid, automatic DB_DataObject joinAdd experiment | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26262@lists.php.net to get a copy of this message | ||
Hi.
Le 5 janv. 07 à 21:49, Olivier Guilyardi a écrit :
Hi, Justin Patrin wrote:For now it remains a little obscur and I'm not sure what Justin means. But as this issue was not critical for now I've left it for some days. Maybe it's my english too because to me nested links does not mean a linking to b linking to c but a linking to a. I'll try to change the way I do my joinAdds to see if I can figure it out.If you're nesting links then you need to nest you joinAdd calls. $b->joinAdd($c); $a->joinAdd($b); $a->find() && $a->fetch(); At least, this is how it works with DO objects. The reason this is failing for you is because a does not join with a, it joins with b.Arnaud, does Justin answer help you ? I had started to write a reply it so apologize for my long silence
Well this driver suffers some important limitations due to the fact that it only works using DB_DataObject::find() so I'm not sure it's a good idea to add it in the DB_DataObject driver for Structures_DataGrid nor to make a new driver in the pear distribution. Initially the reason why I've written this driver was to integrate in DB_DataObject_FormBuilder_FrontEnd, so maybe that would be a better place for it as this Pearified tool only uses the DB_DataObject::find() method for datagrids.On 12/30/06, arnaud sellenet <demental@free.fr> wrote:Your work is interesting. I don't know whether these new features should be integrated into the DB_DataObject driver or if it's better to make a new driver. What's your point of view on this?I've written a quick example here : http://demental.info/pear_exp/
Regards, -- Olivier