Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / PHP / General PHP Topics / July 2008



Tip: Looking for answers? Try searching our database.

Recommendation for a PHP ORM library?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
laredotornado@gmail.com - 04 Jul 2008 03:23 GMT
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
Olaf Schinkel - 04 Jul 2008 03:53 GMT
laredotornado@gmail.com schrieb:
> Hi,
>
[quoted text clipped - 3 lines]
> 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.
laredotornado@gmail.com - 05 Jul 2008 19:34 GMT
> laredotorn...@gmail.com schrieb:> Hi,
>
[quoted text clipped - 13 lines]
>
> So it will checked, if MQ is on or not.

Oh, I hadn't looked at the Propel source code.  I just read from their
installation page that it was a requirement for that to be turned
off.  So have you used Propel as an ORM tool and is it working well
for you? Thanks, - Dave
Jerry Stuckle - 04 Jul 2008 05:18 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> Anyway, your experiences and recommendations are greatly appreciated,
> - Dave

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

Signature

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

Michael Fesser - 04 Jul 2008 12:31 GMT
.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
Peter D. - 11 Jul 2008 15:32 GMT
On Jul 3, 10:23 pm, "laredotorn...@gmail.com"
<laredotorn...@gmail.com> wrote:
> Hi,
>
[quoted text clipped - 6 lines]
> 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!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.