mark_story
443f6d1c5b
Merge branch '1.3' into merger
...
Conflicts:
cake/console/shells/tasks/test.php
cake/libs/cake_log.php
cake/libs/controller/components/email.php
cake/libs/set.php
cake/libs/view/helpers/cache.php
cake/libs/view/helpers/paginator.php
cake/libs/view/helpers/time.php
cake/libs/view/view.php
cake/tests/cases/console/libs/tasks/fixture.test.php
cake/tests/cases/console/shells/tasks/test.test.php
cake/tests/cases/libs/controller/components/email.test.php
cake/tests/cases/libs/model/db_acl.test.php
cake/tests/cases/libs/set.test.php
2011-01-08 23:49:19 -05:00
José Lorenzo Rodríguez
2b9c6b8609
optimizing sqlite driver to look for the "From" keyword in reverse order on the sql string
2011-01-04 17:44:33 -04:30
José Lorenzo Rodríguez
4948280ba8
Fixing typo in sqlite driver
2011-01-04 17:25:23 -04:30
José Lorenzo Rodríguez
665e560310
Checking for null values before converting to boolean
2011-01-04 17:00:10 -04:30
mark_story
de6eda964e
Removing silent errors in PDO dbo's when a connection exception is created.
...
Adding the host param for mysql.
Adding a test for mysql missing the host param.
Fixes #1427
2011-01-03 23:34:22 -05:00
José Lorenzo Rodríguez
5a75d1d91a
Adding boolean casts for sqlite
2011-01-02 01:26:57 -04:30
José Lorenzo Rodríguez
fe18e31b79
Changes to make sqlite recognize boolean columns declared as "boolean", so they can be casted to native php type
2011-01-01 22:11:28 -04:30
José Lorenzo Rodríguez
1d530db39b
Changing a bit how postgres driver treats booleans so it correcty casts them
2011-01-01 22:09:22 -04:30
José Lorenzo Rodríguez
da152e0e82
Changes to make mysql cast boolean vaules to the native php boolean datatype
2011-01-01 22:07:27 -04:30
mark_story
a9a1994a7e
Merge branch '2.0-pagination' into 2.0
2010-12-31 12:37:53 -05:00
mark_story
b82ad15c5e
Fixing issue in console when baking a new project, from outside the
...
installation directory you would get an error because database.php could
not be found. Fixes #1406
2010-12-27 00:19:59 -05:00
mark_story
fd3b4b2cd5
Adding Model::hasMethod() and tests.
2010-12-26 17:35:22 -05:00
mark_story
3022e2d785
Adding documentation.
2010-12-26 17:21:49 -05:00
mark_story
ad5a1ca6b7
Making __methods and __mappedMethods protected instead of private.
2010-12-26 17:10:16 -05:00
mark_story
0c4b665ad0
Adding ability for BehaviorCollection::hasMethod() to return the callback.
...
Re-factored BehaviorCollection::dispatchMethod to be simpler and faster.
Changing now BehaviorCollection stores callbacks so they look like normal php callback arrays.
2010-12-26 17:09:20 -05:00
mark_story
769da1a7c8
Adding basic BehaviorCollection::hasMethod implementation. Tests added.
2010-12-26 16:44:50 -05:00
mark_story
4009b6b2c7
Fixing more @package tags, and removing duplicate tags in classes.
2010-12-24 14:33:41 -05:00
mark_story
ef77e60cb0
Removing @subpackage tags, moving contents of @subpackage into @package.
...
Removing duplicate cake.cake in @package tags.
Renaming cake.app -> app
2010-12-24 14:09:57 -05:00
mark_story
a37b3a1598
Adding more documentation to DboSource.
2010-12-22 22:33:17 -05:00
mark_story
98c356a9c5
Adding some more documentation to ModelBehavior as well as basic usage.
2010-12-22 22:27:47 -05:00
mark_story
04929ae1df
Applying patch from 'Thorsten Buss'.
...
Fixes issues in DboSource, where mismatching types on join columns could result in incorrect query generation.
Fixes #708
2010-12-21 20:40:19 -05:00
mark_story
f3445cd941
Making ModelBehavior::beforeFind() return true by default. Since
...
returning null causes the find to abort, behaviors should return true if
they are not going to return a query array.
2010-12-12 18:04:52 -05:00
mark_story
3c69d9b138
Making ModelBehavior beforeX callbacks default to returning true. Returning null or false from a Behavior::before method will abort the operation. It felt illogical to have null continue, but false stop.
2010-12-12 17:40:13 -05:00
mark_story
48879f8264
Fixing strict errors in translate and acl behaviors.
...
Removing conditional definition of I18nModel. There is no reason for it to exist anymore.
Removing duplicate class definition.
2010-12-12 17:38:49 -05:00
mark_story
df21d19c4c
Making a bunch of properties public so containable can hack around. Need to refactor and fix visibility issues.
...
Fixing failing tests in containable.
2010-12-12 15:48:36 -05:00
mark_story
a05baaa76e
Removing BehaviorCollection::trigger() so it uses the parent method.
...
Updating model to use the new behaviorcollection trigger method signature.
2010-12-12 15:03:23 -05:00
mark_story
81e009b816
Fixing additional strict warnings.
2010-12-12 15:02:38 -05:00
mark_story
33b8a35b75
Fixing strict warnings in TreeBehavior and a few other classes.
2010-12-12 14:56:48 -05:00
mark_story
b9f0fc0724
Merge branch '1.3' into merger
...
Conflicts:
cake/dispatcher.php
cake/libs/cake_session.php
cake/libs/controller/components/cookie.php
cake/libs/controller/components/email.php
cake/libs/controller/controller.php
cake/libs/controller/scaffold.php
cake/libs/set.php
cake/libs/validation.php
cake/libs/view/view.php
cake/tests/cases/dispatcher.test.php
cake/tests/cases/libs/controller/components/security.test.php
cake/tests/cases/libs/controller/controller.test.php
cake/tests/cases/libs/validation.test.php
cake/tests/cases/libs/view/view.test.php
2010-12-10 22:24:31 -05:00
mark_story
c096eea664
Fixing failing tests caused by constants changing.
2010-12-05 23:32:34 -05:00
José Lorenzo Rodríguez
c559b9c22d
Merge remote branch 'origin/2.0' into 2.0
...
Conflicts:
cake/console/templates/skel/config/database.php.default
cake/libs/model/datasources/dbo/dbo_sqlite.php
2010-12-05 20:51:37 -04:30
Juan Basso
c52d5320c8
Replaced the *printf with i18n aliases by i18n aliases with params.
2010-12-04 23:37:13 -02:00
mark_story
8031d33d33
Fixing more E_STRICT notices and adding a type check to DboSource::dropSchema().
2010-12-04 14:37:02 -05:00
mark_story
a6c5065e9c
Fixing a few more E_STRICT errors in postgres test/class.
2010-12-04 14:31:11 -05:00
mark_story
7e3c98024e
Removing reference operators in ModelBehavior.
2010-12-04 14:19:36 -05:00
mark_story
18fb12c95c
Removing & pass by ref operators as they aren't needed any more.
...
Fixing a bunch of E_STRICT errors.
2010-12-04 14:15:32 -05:00
mark_story
d13759522b
Removing strtolower() calls. You must now call model magic findBy and findAllBy using camelcase forms.
2010-12-04 13:45:42 -05:00
mark_story
466137485d
Removing a duplicated property.
...
Changing is_a() to instanceof as it marginally faster.
Adding a comment to getConnection as it was missing it.
Minor optimization to a regular expression.
2010-12-04 13:28:43 -05:00
José Lorenzo Rodríguez
66d0986cd4
Pepending table name to index generation to avoid name clashes
...
Finally, all tests using a Sqlite database pass
2010-12-03 15:25:26 -04:30
José Lorenzo Rodríguez
e167271568
Making more DboSlite tests pass
2010-12-03 14:41:39 -04:30
José Lorenzo Rodríguez
7c4ab886e6
Merge remote branch 'origin/2.0' into feature/2.0/pdo
2010-12-03 14:08:03 -04:30
José Lorenzo Rodríguez
cdc4cb9e1e
Implementing method in DboSqlite to avoid error while running the test suite
2010-12-02 00:20:08 -04:30
José Lorenzo Rodríguez
2e04c5260e
Fixing some tests to make them run on sqlite
2010-12-02 00:19:43 -04:30
José Lorenzo Rodríguez
2e9283abd9
Fixing fixture loading for sqlite
2010-11-29 20:52:54 -04:30
José Lorenzo Rodríguez
0d93520e0a
Fixing test case for sqlite
2010-11-29 20:52:32 -04:30
José Lorenzo Rodríguez
a791687784
Adding try catch for pdo exception on DboSource::_execute
2010-11-28 23:50:18 -04:30
José Lorenzo Rodríguez
372123f15a
Moving common method put from DboMysl into DboSource, this makes more sqlite tests pass
2010-11-28 22:45:56 -04:30
José Lorenzo Rodríguez
492bcea85f
mproving decribing process of tables in sqlite
2010-11-27 00:37:13 -04:30
José Lorenzo Rodríguez
0ff01330c4
Making dates deconstruction in model more consistent for different datasources
2010-11-27 00:13:04 -04:30
José Lorenzo Rodríguez
41ee035d28
Starting to bring sqlite dbo up to date
2010-11-26 23:46:34 -04:30