Roberto Mello wrote:
On Fri, May 2, 2008 at 9:52 PM, Alvaro Carrasco <[EMAIL PROTECTED]> wrote:
 If you're wondering: Why another ORM tool, when we have Propel, Doctrine,
EZPDO, etc? Here are some of my thoughts:
 http://outlet.knowledgehead.com/wiki/index.php/Motivation

I have wished for a PHP mapper with a similar vision to Python's
incredible SQLalchemy (http://www.sqlalchemy.org/)

I'm not very familiar with the PHP offerings, except for Propel, which
is used at my job. Besides having to pre-generate the classes from XMl
that is derived from the database, my biggest problem with Propel is
that it generates pretty horrible SQL a good chunk of the time.

It's nowhere near as flexible and powerful as SQLalchemy, but maybe
that's because Python's dynamic features are stronger than PHP's
(everything is an object that can be passed around, including classes,
functions, etc.)

Roberto

SQLalchemy is probably the nicest sql abstraction library I have seen. If I was using python, I would probably be using it. The same level of abstraction would be more difficult (probably a lot more verbose) to achieve in php because of the lack of operator overloading.

Outlet is more basic in the sense that it perform the basic mapping functions that SQLalchemy performs, but not the SQL statements abstraction. I think that is a good compromise for PHP.

Alvaro


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to