gwoo
e9daddddf3
fixes #4910 , aclnode loading
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7179 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-13 16:40:45 +00:00
gwoo
1e231e9511
some cleanup, wrapping uses() in class exists
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7172 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 15:46:31 +00:00
phpnut
8a30290862
Fixes #4883 Duplicated component name
...
Removed bad test since AppController::beforeFilter() is now run when Controller::constructClasses() is called.
Fixed bug with App::import() not caching properly.
More performance changes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7169 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-11 08:54:27 +00:00
phpnut
6807d4c333
Starting initial refactoring of current code base.
...
Made changes to test suite to allow running test without headers already sent errors.
Moved Component::initialize(), Controller::beforeFilter(); and Component::startup(); from Dipatcher::start() to Controller::constructClasses();
Removed Dispatcher::start();
Fixing model instances not being created
Adding additional test to CookieComponent to increase coverage to 95%
Optimizing Set::diff();
Fixing SessionComponent test and RequestHandlerComponent test
Fixing CakeSession tests, removed deprecated code from CakeSession
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7162 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-10 22:38:05 +00:00
DarkAngelBGE
70aa290f5b
fixing find('list') calls with a fields array that doesn't contain the model alias, closes #4851
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7158 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-10 17:27:12 +00:00
DarkAngelBGE
e221e9fb61
forcing the db layer to make an WHERE field IS NULL when find statements are called with empty arrays, closes #4845
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7155 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-10 16:17:44 +00:00
DarkAngelBGE
3c518c182f
fixing wrong NOT IS in dbo_source, closes #4844
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7154 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-10 15:45:54 +00:00
gwoo
288db81884
fixes #4850
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7122 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-05 14:48:54 +00:00
mariano.iglesias
2d2096d9f7
Fixing issue where Containable was not resetting the original bindings properly when reset was false under some circumstances, fixes #4812
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7104 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-03 14:12:38 +00:00
nate
af16245ab0
Fixing persistent connection handling in Postgres driver, updating fixture with unique index name, removing support for deprecated 'connect' key in database drivers, closes #4773
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7097 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-03 02:26:40 +00:00
joelmoss
1b1a3d7a5a
Reverting last change to DboMysqli, and we now use port config var as the socket if it is a string.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7093 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 19:00:11 +00:00
joelmoss
d14774324a
Added support for specifying the socket for MySQLi connections. Fixes #4811
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7092 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 18:18:10 +00:00
mariano.iglesias
6dff6e30f7
Removing debug statement
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7091 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 18:06:47 +00:00
mariano.iglesias
04b8270fb6
Adding tests to show use of bindModel with reset false and pagination in Containable, closes #4812
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7090 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 18:05:45 +00:00
mariano.iglesias
768e0c748b
Keeping index when setting validation errors for saveAll, fixes #4769 and closes #4462
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7079 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 22:01:47 +00:00
mariano.iglesias
6418baaa86
Fixing issue where GROUP BY clause was positioned on the wrong place
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7078 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 21:33:37 +00:00
nate
39feb3f7c1
Refactoring DboSource. Model array conditions must now have comparison operators on the left side, fixes misc bugs, updated core to reflect changes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7075 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 12:36:38 +00:00
nate
42da5aba81
Moving Cake folder to correct location
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2
deleting cake folder from svn
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
mark_story
78ff2ad4bd
Implemented 'group' by conditions for model finds. Added tests from 'wluigi' Closes #2833
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7057 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-29 12:27:23 +00:00
AD7six
4bafc397f9
fixes #4761 , tree behavior parameter array merge logic incorrect
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7056 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 16:02:31 +00:00
gwoo
a2b873d0f8
adding test to schema, closes #4731
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7048 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-27 18:44:55 +00:00
gwoo
92514422e4
updating datasource to use Cache engines.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7037 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-24 02:08:56 +00:00
nate
6a99a6ba60
Changing Model::getColumnType() to return null for unknown fields, allowing for type introspection, updating docblock for Model::hasField(), fixes #4751
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7035 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 20:40:50 +00:00
mariano.iglesias
9c722b6999
Improving field detection in Containable. paginate() now avoids sending recursive to find calls when it is not explicitly set. Adding more tests to Containable to show how to paginate, fixes #4746
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7030 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 16:12:14 +00:00
the_undefined
54715db5dd
Made DboSource::length return string for float-like values, added a bunch of tests, fixes #4739
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7027 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 07:09:16 +00:00
nate
7402680cc1
Misc code formatting and whitespace fixes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7020 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:11:41 +00:00
nate
f2ea3c8bb0
Refactoring DboSource to use Model in order to properly quote values by column type, correcting serial integer schema generation in DboPostgres, fixes #4702 , refactoring TreeBehavior to use DboSource::calculate(), fixes #4725 , updating docblocks, fixing DboSource test to be database-agnostic, misc. whitespace fixes, updating DboSource test to reflect new quoting rules
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7015 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 19:05:37 +00:00
the_undefined
e256d4a814
Applied patches by 'asavoy', fixes #4707
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7014 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 18:18:23 +00:00
mariano.iglesias
ea94b57ec1
Properly setting non-array option overrides, fixes #4732
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7008 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 14:22:12 +00:00
mariano.iglesias
340496079f
Removing countReset option from Containable as pagination support will be handled from paginate
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7006 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 13:43:23 +00:00
nate
5def68bf30
Updating Model test to reflect TreeBehavior changes, adding association support to Model::getColumnType()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7005 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 12:56:41 +00:00
nate
6c5f98ddec
Fixing ACL interface class names
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6999 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 02:00:36 +00:00
AD7six
84eb4ae36d
updated tree behavior addressing most of the issues related to its use with postgreSQL and sqlite
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6995 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 20:03:12 +00:00
mariano.iglesias
61415e2449
Allowing children when Model(field1, field2, ...) is used as key, fixes #4690
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6989 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 15:21:38 +00:00
the_undefined
e8bd74946c
Put IF EXISTS back in
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6987 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 14:14:16 +00:00
the_undefined
50a18a09c4
Added conditional table dropping on test case start
...
Removed if exists statement from mysql driver
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6986 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 14:12:01 +00:00
the_undefined
aa00e47fe8
Added countReset option that defaults to false, fixes #4694
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6979 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 01:01:11 +00:00
the_undefined
1224845967
Found the bug and fixed it, closes #4693
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6977 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:50:06 +00:00
DarkAngelBGE
45bccc5215
optimization refs #3415
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6970 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 20:36:39 +00:00
DarkAngelBGE
a625537c4e
optimization, refs #3877 , fixes #3415
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6969 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 20:31:42 +00:00
DarkAngelBGE
736b020a34
removing error surpression operators, fixes #3877
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6968 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 20:25:42 +00:00
phpnut
47d3a8123b
"Fixing translation"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6966 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 16:55:45 +00:00
mariano.iglesias
1448d95478
Allowing spaces as part of the inner field declaration, fixes #4690
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6964 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 12:04:41 +00:00
the_undefined
f5db95b22a
Applied patch by 'jose_zap' for supporting binary uuid primary keys, fixes #4119
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6945 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 05:08:37 +00:00
mariano.iglesias
e54b98e91b
Bringing DboSource coverage to 77%
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6942 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 04:24:40 +00:00
the_undefined
e5d7f5279e
Merged relevant test cases from 'alkemann' into tree test and made them pass, fixes #4493
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6939 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 03:03:44 +00:00
mariano.iglesias
775707838e
Fixing docbloc in Containable, fixing issue where no notices and invalid bindings were throwing PHP warnings, added tests, fixes #4683
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6938 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:40:13 +00:00
the_undefined
71790792d0
Applied patch by 'preloader', closes #4561
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6937 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:31:26 +00:00
nate
b7fbf8f080
Refactoring database transaction handling, fixing Model test for SQLite, all tests now pass
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6931 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 20:19:08 +00:00