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: Ezra Nugroho
created: 08-06-2006 02:42:46 PM
|
Thank you, John.
That was quick. |
|
|