phpLens
 home  products examples manual  faq support forum  contact news  login store

Forums: phplens   adodb
Forums:   ADOdb Help & Dev:   Replies 
New ReplySearch
Topic: find function for the Active Record extension
author: Ezra Nugroho   created: 07-06-2006 08:17:52 PM
First of all, thanks for the Active Record implementation. I added it to the ORM page in wikipedia: http ://en.wikipedia.org/wiki/Object-relational_mapping#PHP

The implementation of Active Record for Ruby, which is in Rails, has a class method 'find' that create record objects. I couldn't find it in your implementation. Any plan to implement one?

Would like to do:
<?php
class Person extends ADOdb_Active_Record{}

$filter = "first_name ='Joe' and age > '25';
//Array of Person objects
$people = Person::find(ALL, $filter);

?>

Would you like a patch?
Topic: Re:find function for the Active Record extension
author: John Lim   created: 08-06-2006 03:28:21 AM
Ezra,

Thanks for the addition to wikipedia. Much appreciated.

I have implemented find() in adodb 4.90, released today.

http://sourceforge.net/project/showfiles.php?group_id=42718

Regards, John
Topic: Re:find function for the Active Record extension
author: Ezra Nugroho   created: 08-06-2006 02:42:46 PM
Thank you, John.

That was quick.
Page 1
New ReplySearch

View Source

email: contact#phplens.com (change # to @)     telephone (malaysia): 60-3-7947 2888     fax (malaysia): 60-3-7947 2800