UnionOfRAD/lithium — pull request #540 by jails (2012-06-15 14:32:29+00:00)
Title: Refactor collections and results classes for better consistency and fix some issues.

Squash #477, Fix typos, rebased on last commit (data branch), rewrite Sqlite3 on top of PDO

Summary :
- Refactoring data collections and results classes for better consistency.
- Fix a Recordset + composite primary key issue
- Fix unset in foreach issue
- Remove "tricky" syntax : (i.e. `$recordset[0]; $recordset->rewind();`) witout `$recordset[0];` the rewind will fail
- Rewrite Sqlite3 on top of PDO
- Some tests added for Collections (i.e. composite primary key, unset in foreach, offset get backwards, etc.)
- Specific test cases for #418, #117, #253

Warning BC break :
`DocumentArray` and DocumentSet are here merged into the `DocumentSet` class

Should i add an empty `DocumentArray` extending `DocumentSet` for keeping backward compatibility ?