tseho/WPXOrm — pull request #4 by dysosmus (2012-06-20 19:19:05+00:00)
Title: Dysosmus

This pull request allow to use mechanisms like find_by<*>, where () with Entity class.
Assume User is a Entity class with id and name columns.
Now is possible to do :
User::find_by_name('marc'); // SELECT * FROM User WHERE name = 'marc';
User::find_by_id(1) // SELECT * FROM User WHERE id = '1'
User::where("name LIKE 'm%'") // SELECT * FROM User WHERE name LIKE 'm%'
User::where(array('id', array(1, 2, 3, 9)) // SELECT * FROM User WHERE id IN (1, 2, 3, 9)