Home » Database » DB » Bug #277
Fetching Objects with PEAR DB
Details
| Submitted | 2003-11-19 22:34 UTC |
|---|---|
| From | terry at scribendi dot com |
| Assigned | danielc |
| Status | Closed |
| Package | DB |
| PHP Version | 4.3.2 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2003-11-19 22:34 UTC] terry at scribendi dot com
Description:
------------
Please could we have more detailed documentation on using DB_FETCHMODE_OBJECT with a classname to populate?
I have just spent two days trying to work out how to do object concurrency control against a database, only to discover that a heap of my code duplicates this existing, but little-documented functionality.
The ability to use DB as a simple object factory like this is great - please may I make a feature request: the ability to feed objects derived from DB_Row back into the autoExecute mechanism so that they can simply be persisted back to the database?
[2004-02-25 11:14 UTC] didou at php dot net
The documentation for DB_FETCHMODE_OBJECT is clear enough IMHO. Now for the feature request, let's turn this bug to a package bug.
Category => DB