Commits for lithium / branches / master

Commit Message Author Date
4dce...c231 Database: 1: Code Cleanup, Moved ending function to it's own method to keep things cleaner. 2: Fixed field aliasing only working for lowercase 'as', it now works for ' as ' and ' AS ' DatabaseTest: 1: Added new field tests to test field aliasing, this also tests query mapping as fields are meant to set that. Howard Lince III 2011-05-09 10:52:54 -0500
5f8c...fd42 MySql: Fixes a situation where using/initiating ModelA on one connection, then using/initiating ModelB on a second connection, then using ModelA again would use ModelB's database. Howard Lince III 2011-05-08 11:23:26 -0500
d9ee...2fda Document: to(array) now works recursively. Patch by Nate Abele Entity:The data method not uses ->to('array') instead of trying to do a straight dump and to (array) now works recusively. Howard Lince III 2011-05-05 20:47:54 -0500
a4a3...b17b Fixed CollectionTest to use the proper model and initialize a mock connection. Howard Lince III 2011-05-05 18:19:25 -0500
cd9b...b687 Updating test cases in `\data` namespace to reflect class refactoring. Nate Abele 2011-05-05 18:29:22 -0400
5e19...bd64 SQLite3 Result: 1: Fixed _prev so that it works properly 2: Fixed _next so that fetchArray returned a numeric array instead of an associative one. This allows joins with similar field names (id for example) to return all fields SQLite3: 1: Fixed entities, previously they used a non-existent method, they now work properly. 2: Fixed describe referencing a variable they did not have access to ($this->_regex). Database: Fixed _strings so that DELETE follows ANSI standard by not defining table aliases. integration/DatabaseTest: 1: Updated the create schema approach so that it checks to see if the tables exist before attempting to run this. This is required as database systems like SQLite3 return errors even if IF NOT EXISTS is set. 2: added conditions to all queries to ensure it's working on the current data set. Even though data is wiped at the end of the test, if a test doesn't fully run for whatever reason such as a fatal error - there will be extra data in the DB. sqlite3_galleries.sql: removed the unique key for the name field Howard Lince III 2011-05-05 16:11:53 -0500
0285...712a Document: Added in two missing variables. Howard Lince III 2011-05-05 11:17:02 -0500
ff70...aee1 Updated MockModel so that it properly sets it's schema. This is in accordance with a recent commit that removed Model from automatically setting key and locked value. Howard Lince III 2011-05-05 09:44:13 -0500
d82e...8980 Fixing code formatting of test for `\data\collection\RecordSet`. Nate Abele 2011-05-05 09:47:15 -0400
95d7...e1b4 Updating relational database schema caching. Howard Lince III 2011-05-04 11:17:59 -0500
fb00...9e31 MySQL Test: 1: Removed the setup before every test, and instead put it in the skip function, this way the db variable is set once as it only requires. 2: Updated the filename it searrches for while trying to create the tables, this also is only run once instead of before every test. DatabaseTest (Integration): 1: Created 20 tests for database integration, previously there were none. 2: Added support for adapters to have their schema autogenerated, currently sqlite3 is having some problems, this will be remedied in the future. Howard Lince III 2011-04-30 05:25:33 -0500
fc8d...37c0 Database 1: Fixed a condition where when unknown source columns are returned and the return type is 'array' an error would arise because the array handler did not compensate for the columns being a subarray (mapped to an index of 0). 2: Removed an unnecessary loop in the fields method for assigning an array of fields. 3: The default case could come upon a problem when schema did not return anything (null). MySqlTest 1: Added a database table creation during setup. This relies on the mysql.sql, currently only houses companies as MySqlTest uses nothing else currently. 2: Fixed the garbage connection test from causing errors by adding an expectException. /lithium/tests/mocks/data/source/database/adapter/mysql.sql Added this file for the MySqlTest to properly run, the tables are now automatically created when the test is run so tthat the tests can run in full. Howard Lince III 2011-04-29 04:09:59 -0500
5559...f26a Query: Added a 'relationships' key to the default array. QueryTest: 1: Added a test for removing the limit value. 2: Added the new default 'relationships' key to the export test. 3: Fixed a failing test. Note: QueryTest uses a MockDatabase which the database now distinguishes fields by Table.field, since Query relies on a MockDatabase, this had to be changed to reflect the Database Changes. 4: Added a test for 'with' associations. 5: Added a test for removing the group value. MockQueryPost: Added an association; hasMany MockqueryComment. Howard Lince III 2011-04-24 17:53:16 -0500
fe46...5918 Database: 1: Updated case matching for fields to include the relationships as well as the main model for dot matches. Previously this only worked for the main model. 2: Removed a condition which should never be triggered, also fixed a minor exception when running reset() on the return result of a method. 3: Removed an unnecessary break and return that should never be triggered. 4: Assigned a default value for the unused $context argument of the group method. This has been left in there for now for other uses where it's being fed a context. DatabaseTest: Coverage is now 91.54%. 1: Added Tests for various ways to define fields from the schema POV. 2: Added a calculation test for count. 3: Added a manual sql query with a return of an array test. 4: QA work, keeping text in bounds. 5: Moved the and/or tests to it's own method - also added more condition tests. 6: Added Database::Fields tests in it's own method for various ways of defining fields. 7: Added a test for an invalid query type. 8: Added a read with relationship test. 9: Added a Group test. Howard Lince III 2011-04-23 16:10:11 -0500
c2ba...a066 Nested queries now work with operators (!= etc) properly, it now flags them as 'multiple' so that it's properly applied. Added database tests for nested queries with operators and updating a field with NULL. Howard Lince III 2011-04-21 17:24:23 -0500
3b7d...d1ad Adding fixes for 'count' under the new field mapping, and adding support for "x as y" for defining fields as another name. (particularly useful for functions like count, sum etc). Howard Lince III 2011-03-11 12:00:48 -0600
1705...d45d Database: updating field handling further Howard Lince III 2011-03-11 08:51:26 -0600
a477...5898 Database: Fixed a mapping issue which prevented saving/creating properly Howard Lince III 2011-03-11 00:13:32 -0600
58e0...f406 RecprdSet Updated mapping result return: this fixes 'count' and other special calls Database: Updated Count to properly map the return, Updated Field mapping to categorize all define fields, and use the query object to map them. The bulk of custom fields are now only processed if joins are active on the query object Howard Lince III 2011-03-10 23:59:38 -0600
c61a...e08c Adding null value (IS NULL) support Howard Lince III 2011-03-10 14:05:31 -0600
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |