[cvs] commit: framework/Rdo Rdo.php framework/Rdo/Rdo Adapter.php List.php Mapper.php framework/Rdo/Rdo/Adapter Pdo.php framework/Rdo/Rdo/Adapter/Pdo Mssql.php Mysql.php Oci.php Pgsql.php Sqlite.php framework/Rdo/Rdo/Query Builder.php
Chuck Hagenbuch
chuck at horde.org
Sat Jun 2 03:24:10 UTC 2007
chuck 2007-06-01 23:24:10 EDT
Modified files:
Rdo Rdo.php
Rdo/Rdo Adapter.php List.php Mapper.php
Rdo/Rdo/Adapter Pdo.php
Rdo/Rdo/Adapter/Pdo Mssql.php Mysql.php Oci.php Pgsql.php
Sqlite.php
Rdo/Rdo/Query Builder.php
Log:
- Even inside Rdo objects, never use _mapper directly, always use getMapper()
- Fix updating by pulling correct fields from objects again
- If you are updating an object with a custom set of fields, you need to pass the object's id, not the Rdo object
- Fix some stray references to $this->_fields inside Horde_Rdo
- Push some abstract methods up to Horde_Rdo_Adapter, and even some concrete ones, from Horde_Rdo_Adapter_Pdo
- Horde_Rdo_Adapter should have a much more complete abstract api now for model implementations
- Implement lazy field loading
- Rename getCursor() to query(), and add queryOne(), both of which take a Horde_Rdo_Query object and pass it to the underlying adapter
- Rename old query() and queryOne() methods to select() and selectOne()
Revision Changes Path
1.9 +24 -17 framework/Rdo/Rdo.php
1.3 +138 -17 framework/Rdo/Rdo/Adapter.php
1.8 +2 -50 framework/Rdo/Rdo/Adapter/Pdo.php
1.3 +2 -2 framework/Rdo/Rdo/Adapter/Pdo/Mssql.php
1.3 +1 -1 framework/Rdo/Rdo/Adapter/Pdo/Mysql.php
1.3 +5 -5 framework/Rdo/Rdo/Adapter/Pdo/Oci.php
1.3 +2 -2 framework/Rdo/Rdo/Adapter/Pdo/Pgsql.php
1.3 +1 -1 framework/Rdo/Rdo/Adapter/Pdo/Sqlite.php
1.5 +1 -1 framework/Rdo/Rdo/List.php
1.8 +2 -1 framework/Rdo/Rdo/Mapper.php
1.7 +1 -1 framework/Rdo/Rdo/Query/Builder.php
Chora Links:
http://cvs.horde.org/diff.php/framework/Rdo/Rdo.php?r1=1.8&r2=1.9&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Adapter.php?r1=1.2&r2=1.3&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Adapter/Pdo.php?r1=1.7&r2=1.8&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Adapter/Pdo/Mssql.php?r1=1.2&r2=1.3&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Adapter/Pdo/Mysql.php?r1=1.2&r2=1.3&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Adapter/Pdo/Oci.php?r1=1.2&r2=1.3&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Adapter/Pdo/Pgsql.php?r1=1.2&r2=1.3&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Adapter/Pdo/Sqlite.php?r1=1.2&r2=1.3&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/List.php?r1=1.4&r2=1.5&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Mapper.php?r1=1.7&r2=1.8&ty=u
http://cvs.horde.org/diff.php/framework/Rdo/Rdo/Query/Builder.php?r1=1.6&r2=1.7&ty=u
More information about the cvs
mailing list