Re: Recommended ORM for PHP
| From: | Larry Garfield | Date: | Thu, 07 Feb 2008 03:59:51 +0000 |
| Subject: | Re: Recommended ORM for PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268829@lists.php.net to get a copy of this message | ||
On Wednesday 06 February 2008, Edward Kay wrote:
> Have a look at Qcodo. http://www.qcodo.com.
>
> It uses code generation to create your ORM for you direct from the DB
> tables. As it's code generation as opposed to run time analysis (which is
> what ActiveRecord and the like use), there is no performance hit - it
> literally just creates your PHP class files for you.
Uh, lots of Active Record systems use code generation. If the structure of
your data abstraction is based on the database structure, then you're using
Active Record. It's record-centric. If you're using an object-centric view
of the world that may just happen to tie to an SQL database for its data
store, then it's an ORM.
Both are useful in different circumstances, but whether or not there is code
generation has nothing to do with whether it's AR or ORM.
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson