NYCPHP Meetup

NYPHP.org

[nycphp-talk] PEAR DB_DataObject -- opinions?

Robert Redcay rob at nyc.yamaha.com
Fri Jan 16 14:55:51 EST 2004


Though I have not worked with this library extensively, I've been 
interested in it for a while and almost used it in a recent project.

Here's what I like:
- automatically generated PHP objects to represent each table in your 
database
- these objects inherit a bunch of useful methods from the base class 
(e.g. update, edit, delete, fetch, etc.)

Here's what bothered me:
- Joins of 2 or more tables require awkward config files and don't seem 
very mature
(this may be more a problem of the "Data Object" concept than of 
DB_DataObject's actual implementation)
- One reason to use these is to avoid hard-coded SQL, but you'd 
inevitably have to hard-code SQL in these objects for complex queries.

I'm interested to here what others say...
-Rob

David Mintz wrote:

>Does anybody with any experience with the Pear DB_DataObject package have
>any opinions about it? I have just begun to RTFM and it almost reminds me
>of Java EJB container-managed entity beans -- that is, complicated. One
>wonders if the great conveniences are worth the, well, inconvenience of
>learning it and setting it all up. OTOH it looks like once you really get
>rolling you might save yourself a ton of grunt coding.
>
>
>---
>David Mintz
>http://davidmintz.org/
>
>        "Anybody else got a problem with Webistics?" -- Sopranos 24:17
>_______________________________________________
>talk mailing list
>talk at lists.nyphp.org
>http://lists.nyphp.org/mailman/listinfo/talk
>
>
>  
>


-- 
Robert Redcay
Yamaha Music Interactive Inc.
p: 646.562.5892
f: 646.562.7664
e: rredcay at nyc.yamaha.com





More information about the talk mailing list