mark_story
08509cc6d3
Fixing issue where static variable would be shared inconsistently across multiple instances. Fixes #1504
2011-02-11 22:39:09 -05:00
mark_story
26c5f78a14
Fixing notice error caused when looking for info on tables that don't exist.
2011-02-11 22:37:56 -05:00
mark_story
11d20f80d0
Fixing failing tests imported with the merge.
2011-02-05 15:24:53 -05:00
mark_story
e149c411fb
Merge branch '1.3' into merger
...
Conflicts:
cake/VERSION.txt
cake/config/config.php
cake/console/shells/tasks/template.php
cake/dispatcher.php
cake/libs/controller/component.php
cake/libs/controller/components/email.php
cake/libs/controller/scaffold.php
cake/libs/model/datasources/dbo/dbo_mysqli.php
cake/libs/view/helpers/cache.php
cake/libs/view/pages/home.ctp
cake/tests/cases/dispatcher.test.php
cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
cake/tests/fixtures/datatype_fixture.php
2011-02-05 12:20:09 -05:00
mark_story
8d5e68d582
Fixing issue where habtm tables would not have the connection prefix removed when generating schema. Fixes #1180
2011-02-05 11:19:05 -05:00
mark_story
304f12d0ed
Removing a pointless import in CakeRequest.
...
Moving inclusion of ObjectCollection to bootstrap. This avoids repetitive calls to import()
2011-02-05 01:28:41 -05:00
mark_story
5b8499c8c7
Adding $name back in as it causes numerous notice errors in fixtures when it is missing.
2011-01-29 20:54:15 -05:00
ADmad
88d5db76fd
Removed overriding of recursive to 0 in Model::_findNeighbors() if 'recusive' option is not specified in find options. Closes #860
2011-01-30 04:13:01 +05:30
Maggion Emmanuel
01801a7777
Reducing code related to CakeSchema. Fixes #1477
2011-01-29 17:26:08 -05:00
mark_story
71d8e744f1
Fixing case-sensitivity of AS in fields. Tests added. Fixes #1474
2011-01-26 20:58:16 -05:00
mark_story
d192ed32f0
Adding a socket key to DboMysqli::$baseConfig. Fixes notice errors when socket is undefined. Fixes #1482
2011-01-26 20:54:14 -05:00
mark_story
32f0b20a33
Removing wonky and most likely incorrect manipulation of socket and port
...
setting mangling in DboMysqli. Fixes #1478
2011-01-24 22:05:16 -05:00
mark_story
ed7f8d1906
Fixing issue where DboPostgres used the wrong type for boolean columns with a default of false or true.
...
Added a test case.
Changing Model::create() so it doesn't wipe out default values === false.
Fixes #1460
2011-01-21 13:31:33 -05:00
mark_story
dca3fecfed
Merge branch '1.3' into merger
...
Conflicts:
cake/console/error.php
cake/libs/cache/memcache.php
cake/libs/cake_session.php
cake/libs/controller/components/request_handler.php
cake/libs/model/cake_schema.php
cake/libs/router.php
cake/libs/set.php
cake/libs/view/helpers/form.php
cake/libs/view/helpers/text.php
cake/libs/view/view.php
cake/tests/cases/libs/set.test.php
2011-01-18 20:04:30 -05:00
mark_story
b94edefb2c
Removing the last vestiges of the enable parameter.
...
Fixing issue where isset() stupidly plods along when doing a string index of a string.
Updating DbAcl to use proper settings array.
Fixes #1467
2011-01-18 19:33:57 -05:00
Jeremy Harris
be563e1220
Merge remote branch 'upstream/2.0' into 2.0
2011-01-17 20:07:22 -08:00
Jeremy Harris
1f0c57c4ee
Fixed aliasing so it works with plugins in the 'className' key
2011-01-14 17:44:33 -08:00
Jeremy Harris
39e06b0425
Updated documentation
2011-01-13 18:06:32 -08:00
Jeremy Harris
2b596859cb
Reversed alias and actual class to be more consistent with how Model aliases load and to make migration easier
2011-01-13 18:04:06 -08:00
Juan Basso
d15ed329d9
Changed the trigger_error by exceptions in ConnectionManager.
2011-01-12 23:08:34 -02:00
mark_story
f893e3b63b
Applying patch from 'ryandesign' fixing incorrect datetime formats. Fixes #1441
2011-01-11 20:16:42 -05:00
Jeremy Harris
24d90c17d6
Allowed behaviors to be aliased by setting the 'alias' key
2011-01-09 18:28:12 -08:00
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