ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Simplify Business Logic with PHP DataObjects
Subject:   Why not a single DAO for ALL database tables?
Date:   2004-12-09 06:19:13
From:   Tony Marston
What's this? A separate DataObject for each database table? How soooo last century. Surely a better way would be to have a single Data Access Object for the whole application regardless of the number of tables.

Don't say that it cannot be done because I have already done it. Take a look at http://www.tonymarston.net/php-mysql/sample-application.html which gives you access to some source code.