News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ActsAsFlinn Blog:
PHP and ActiveRecord
August 09, 2007 @ 10:12:00

On the ActsAsFlinn blog, a new article's been posted talking about ActiveRecord and some of the problems with implementing it in PHP.

I'm starting a new job soon and I'll be working primarily with PHP. Since I've been a rubyist for the last 2 years I'm looking at PHP from a Rails development perspective. Before working exclusively with Ruby I hung onto to PHP (because of the project I was working on) by porting Rails bits to PHP. I eventually gave up on porting Rails to PHP after my project's funding was cut.

His experience found that there were a few things that caused the problem in the transition between Ruby and PHP like "in Ruby everything is an object" and some Reflection differences between the two languages. He has a little sample object he's created the code for, but it still doesn't work quite right.

In the end, he points out that the Row Data Gateway is a much easier method to get working in PHP (complete with sample code).

0 comments voice your opinion now!
activerecord designpattern ruby port database activerecord designpattern ruby port database


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Data Fixtures in Symfony2

Evolt.org: Failover Database Connection with PHP + mySQL

Simon Holywell: Idiorm and Paris 1.3.0 released - the minimalist ORM and fluent query builder for PH

Mike Lively's Blog: PHPUnit Database Extension (DBUnit Port)

Dave Marshall's Blog: Phpmig - Simple migrations for php


Community Events





Don't see your event here?
Let us know!


library release threedevsandamaybe bugfix podcast project list code wordpress framework developer interview introduction language application series community configure api install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework