Connecting Tech Pros Worldwide Help | Site Map

Recommendation for a PHP ORM library?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 4th, 2008, 02:25 AM
laredotornado@gmail.com
Guest
 
Posts: n/a
Default Recommendation for a PHP ORM library?

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

  #2  
Old July 4th, 2008, 02:55 AM
Olaf Schinkel
Guest
 
Posts: n/a
Default Re: Recommendation for a PHP ORM library?

laredotornado@gmail.com schrieb:
Quote:
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.

  #3  
Old July 4th, 2008, 04:25 AM
Jerry Stuckle
Guest
 
Posts: n/a
Default Re: Recommendation for a PHP ORM library?

laredotornado@gmail.com wrote:
Quote:
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
==================

  #4  
Old July 4th, 2008, 11:35 AM
Michael Fesser
Guest
 
Posts: n/a
Default Re: Recommendation for a PHP ORM library?

..oO(laredotornado@gmail.com)
Quote:
>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
  #5  
Old July 5th, 2008, 06:35 PM
laredotornado@gmail.com
Guest
 
Posts: n/a
Default Re: Recommendation for a PHP ORM library?

On Jul 3, 9:53*pm, Olaf Schinkel <tr...@schinkel.tvwrote:
Quote:
laredotorn...@gmail.com schrieb:Hi,
>
Quote:
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.
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
  #6  
Old July 11th, 2008, 02:35 PM
Peter D.
Guest
 
Posts: n/a
Default Re: Recommendation for a PHP ORM library?

On Jul 3, 10:23*pm, "laredotorn...@gmail.com"
<laredotorn...@gmail.comwrote:
Quote:
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
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!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.