PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #277

Fetching Objects with PEAR DB

Details

Submitted2003-11-19 22:34 UTC
Fromterry at scribendi dot com
Assigneddanielc
StatusClosed
PackageDB
PHP Version4.3.2
OSLinux
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