DataObject idea

From: Date: Mon, 18 Dec 2006 14:34:07 +0000
Subject: DataObject idea
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26148@lists.php.net to get a copy of this message
Hi to everyone, a friend of mine developed in python a very powerful tool to access to a postgres database: http://svn.siddharta.efphe.net/viewcvs/mother/ this tool act in a similar way to DataObject: i.e. every object represent a table etc. He developed too a functionality that is really powerful to retrieve not only the records linked to the table like $DO->getLinks(), but also the inverse operation (I am not a database professional, so you will excuse my lack of adeguate terminology). For example, we have two tables like this: 1) table customer: - int id (primary) - string name - int id_state (not null) 2) table state: - int id - string name with dataobject when we have a $CustomerDO object we can get the relative state, but in "mother" with a "state" dataobject we can retrieve all relative customers (is it called "child data"?). Isn't it powerful? Would be nice to see something in DataObjects. Some ideas? Impressions? cheers, -Francesco Stablum p.s. sorry for my ugly english

« previous php.pear.general (#26148) next »