RE: [PHP] Re: Newbie: Composition by Association - Pagination Class general question.
| From: | MEM | Date: | Wed, 22 Jul 2009 07:41:12 +0000 |
| Subject: | RE: [PHP] Re: Newbie: Composition by Association - Pagination Class general question. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295658@lists.php.net to get a copy of this message | ||
> > > As for (1) even in my pre-OO days I was used to using a single
> > > generic DAO for all database access. The only time that more
> > > than one DAO existed was for a different DBMS engine. This
> > > is why I have one DAO class for MySQL, one for PostgreSQL
> > > and another for Oracle. If you are incapable of writing a
> > > single generic DAO then it just shows that you still have a lot to
> > > learn. For an idea on how this works take a look at
> > >
> > > http://www.tonymarston.net/php-mysql/databaseobjects.html
Before I dig in on this DAO, I'm wondering, where should I, and how could I,
properly place a JOIN on this kind of pattern? Is it easy done or, on a JOIN
scenario (and I will have a lot of them) I choose probably choose another
pattern?
Regards,
Márcio