Click here to get back home

Recommendation for a PHP ORM library?

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Recommendation for a PHP ORM library? laredotornado@gmail.com 07-03-2008
Posted by laredotornado@gmail.com on July 3, 2008, 10:23 pm
Please log in for more thread options
Hi,

I'm using PHP 5.2. I am looking for some library or framework that
can map/generate PHP objects to MySQL database tables. I found
Propel, though a Google search, but it requires me to turn off magic
quotes in my php.ini file and too many of my applications depend on
that setting.

Anyway, your experiences and recommendations are greatly appreciated,
- Dave

Posted by Olaf Schinkel on July 3, 2008, 10:53 pm
Please log in for more thread options
laredotornado@gmail.com schrieb:
> Hi,
>
> I'm using PHP 5.2. I am looking for some library or framework that
> can map/generate PHP objects to MySQL database tables. I found
> Propel, though a Google search, but it requires me to turn off magic
> quotes in my php.ini file and too many of my applications depend on
> that setting.
Are you sure?
I found in the code:
--------------------------------
this->value        =        $_POST[$varName];
                        if ( ini_get( 'magic_quotes_gpc' ) )
                                $this->value = $this->rStripSlashes( $this->value );
--------------------------------

So it will checked, if MQ is on or not.


Posted by Jerry Stuckle on July 4, 2008, 12:18 am
Please log in for more thread options
laredotornado@gmail.com wrote:
> Hi,
>
> I'm using PHP 5.2. I am looking for some library or framework that
> can map/generate PHP objects to MySQL database tables. I found
> Propel, though a Google search, but it requires me to turn off magic
> quotes in my php.ini file and too many of my applications depend on
> that setting.
>
> Anyway, your experiences and recommendations are greatly appreciated,
> - Dave
>

So, fix your applications. Test for magic quotes as Olaf suggested,
then turn them off.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by Michael Fesser on July 4, 2008, 7:31 am
Please log in for more thread options
.oO(laredotornado@gmail.com)

>I'm using PHP 5.2. I am looking for some library or framework that
>can map/generate PHP objects to MySQL database tables. I found
>Propel, though a Google search, but it requires me to turn off magic
>quotes in my php.ini file and too many of my applications depend on
>that setting.

You should start fixing your applications, because magic quotes will
be completely removed from PHP 6. They never worked properly and won't
prevent SQL injection.

Micha

Posted by Peter D. on July 11, 2008, 10:32 am
Please log in for more thread options
On Jul 3, 10:23=A0pm, "laredotorn...@gmail.com"
> Hi,
>
> I'm using PHP 5.2. =A0I am looking for some library or framework that
> can map/generate PHP objects to MySQL database tables. =A0I found
> Propel, though a Google search, but it requires me to turn off magic
> quotes in my php.ini file and too many of my applications depend on
> that setting.
>
> Anyway, your experiences and recommendations are greatly appreciated,
> - Dave

I use Propel with the symfony PHP framework. I think it is excellent
but it does have some drawbacks like limited support for many to many
relationships. Also, if not coded correctly it can make some simple
database query go very slowly due to have to create many objects.
Joins for example are done very slow if not used correctly.

If you do use Propel be sure to read the docs. If done correctly it
can be a blast!

Similar ThreadsPosted
PHP Startup: Invalid library (maybe not a PHP library) June 26, 2008, 6:12 pm
PHP Wiki recommendation? April 7, 2005, 1:35 am
Book Recommendation on PHP January 8, 2006, 10:20 pm
my project recommendation October 19, 2007, 11:16 am
OT: Canadian Web Hosting Recommendation? March 8, 2005, 11:45 am
recommendation for a newsletter php class March 1, 2006, 6:38 pm
search engine recommendation needed September 21, 2004, 5:50 am
recommendation for a good mail form? January 23, 2005, 9:45 pm
Need MySQL management tool recommendation March 14, 2005, 12:26 pm
|OT| Recommendation on membership registration system ? October 17, 2005, 3:33 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap