[UPHPU] ORM

John David Anderson uphpu at johndavidanderson.net
Fri Nov 17 15:05:37 MST 2006


On Nov 17, 2006, at 2:43 PM, Marcellus Barrus wrote:

> Hey guys,
>
> Django looks to me like a web framework that includes a data access  
> layer.
> Propel looks just like an OO data access layer without the web  
> framework.

CakePHP has ORM.

You can create model files (which omit the diabolical necessity of  
nasty XML files), and relate them.

Once you've got it setup (which is a bare class with an extra var  
that tells you about the model associations), you can fetch  
additional model data, bind and unbind model associations on the fly,  
and scale back the recursiveness of model finds (which is nice if  
Authors hasMany Posts hasMany Comments hasMany Users...).

I got really tired of DB layers just for the "security" of being able  
to switch DB engines later on. Have many of you ever, ever done that?  
"Hey guys, lets run Oracle today. I'm not feeling the love from mySQL  
anymore." The other thing I detest is XML configuration. If I ever  
have to define my tables, I think that's retarded. It only adds to  
the maintenance level for the app.

</plug></two_cents>

-- John
(_psychic_)



More information about the UPHPU mailing list