[UPHPU] Feedback on my new open source project: Outlet

Alvaro Carrasco alvaro at epliant.com
Mon May 5 09:50:04 MDT 2008


Nathan Lane wrote:
> Is this kind of like the Active Record methodology for PHP?
>
> Nathan
>
>
> <http://nathandelane.blogspot.com>
It is similar in purpose and outcome (working with entities instead of 
tables), but the implementation is different. Active Record has the code 
for the CRUD operations in the entity class itself and it generally 
requires your entities to extend a base class: User extends 
ActiveRecord. Outlet is more of a Data Mapper, where the your entities 
are decoupled from the code that saves them to the database, the data is 
saved by a "mapper" that is configured to know how to map the data. I 
think that Outlet is much nicer than an Active Record implementation :)

Alvaro



More information about the UPHPU mailing list