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
DarkAngelBGE
f26d9b388e
adding numerical test case refs #4589 ,
...
adding tests for DbSource->length,
fixes #4150 ,
adding tests for DbSource->buildIndex(),
adding tests for DbSource->buildColumn(),
adding test for requestAction using a plugin,
adding DboSource->introspectType fixes #4224 , refs #4589 ,
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6923 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 09:22:42 +00:00
nate
6bed503b56
Refactoring schema handling for SQLite and Postgres drivers. Non-primary key indexes are now created properly. Fixed testing bugs in db drivers.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6922 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:42:36 +00:00
mariano.iglesias
a33cfd0b98
Added Containable behavior, a mix of the original Containable and Bindable behavior.
...
Allows find operations to define restrictions on what models to get based on the 'contain' parameter, including ability to override binding settings on the fly. Go through the test cases to get a crash course about some of the available functionality.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6918 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 04:36:09 +00:00
mark_story
f011839cfe
Update dbo_adodb.php. Passes 452 tests in model.test
...
fixes #4133
Added test for dbo_adodb as well
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6917 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 00:20:24 +00:00
mariano.iglesias
05047a90b0
Making Model::resetAssociations public and changing tests that use it
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6909 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 16:23:46 +00:00
phishy
6c44d00642
Fixed #4206 - lastError now works
...
Fixed #4181 - model sequence name now respected
added constraint() method to enable/disable
added truncate() to aid in test suite integration
hacked name() to work with ACL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6903 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:42:13 +00:00
joelmoss
3d251e4145
Replacing vendor() function with App::import()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6900 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 08:41:39 +00:00
nate
d9a7170808
Adding validation message fixes for Model::saveAll() and hasOne associations, fixes #4561
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6898 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 06:03:33 +00:00
nate
0f1e075d68
Adding fix for Model::saveAll() with 'validate' => 'first' and hasMany records, fixes #4387 , adding test cases to disprove #4494
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6897 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 05:31:14 +00:00
TommyO
de086b1be3
Minor code cleanup, removing remnants from an older version that no longer apply
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6894 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 20:17:58 +00:00
TommyO
52037d15e4
Allow afterSave() callbacks to modify value of a data field, as per ticket #2465\nNecessary tests included
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6889 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 15:37:55 +00:00
the_undefined
52245a059f
Closes #4156
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6878 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 04:00:21 +00:00
the_undefined
ea9e91218e
Fixing bug in Model::saveField, closes #4511
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6877 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 03:16:36 +00:00
the_undefined
dd7aa25a20
Made custom save $options available throughout all filters and callbacks
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6861 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:34:59 +00:00
the_undefined
fb7ac680b0
Made sure DboSource always has a prefix setting, closes #4601
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6857 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 22:53:44 +00:00
gwoo
99874c60d9
fixes #4238 , Mysqli working with the test suite.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6849 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 18:03:44 +00:00
gwoo
c0f042e4ab
fixes #4432 , Model aliases. Updated cases. Removed usage of $this->model in model.test.php in favor of local variables
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6848 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 16:42:39 +00:00
the_undefined
425dbf363d
Fixed bug in BehaviorCollection::trigger, closes #4520
...
Added basic test coverage for BehaviorCollection::trigger
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6828 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 02:33:44 +00:00
the_undefined
d9a30eaa62
Fix for Model::saveAll validate => first, closes #4533
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6825 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 01:39:06 +00:00
the_undefined
823eb81dc7
Fixed bug in Model::__save validation logic, closes #4554
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6824 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 01:03:11 +00:00
the_undefined
232e3f7ec1
Fix for Model::saveAll bug, closes #4466
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6823 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 00:39:29 +00:00
nate
c0d86a76d3
Fixing MSSQL Driver
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 18:53:54 +00:00
nate
32ea41a90e
Correcting MSSQL limit/distinct handling, correcting date/time handling, fixes #4352 , fixes #1778
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6748 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-03 14:15:47 +00:00
nate
358a613243
Fixing conditions quoting in DboSource, closes #4508
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6714 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-23 15:24:57 +00:00
the_undefined
5321ce98ec
Giving bool return value to DboSource::insertMulti
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6708 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-22 16:59:26 +00:00
nate
42083e0a1b
Refactoring insertMulti() for DboSource and drivers, updating Model test for non-transactional db's
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6707 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-21 12:31:28 +00:00
mariano.iglesias
d412d7094f
Fixes #4467 , issue with 'atomic' on saveAll not properly rolling back transaction. Thanks amit for the test.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6702 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 17:33:17 +00:00
nate
16bfee9831
Correcting issue in Model::__save() to prevent overwriting of existing record data
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6700 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 13:30:11 +00:00
nate
ed51f78227
Adding Model::saveAll() atomic fix, closes #4400 , thanks joelmoss
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6697 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 13:14:40 +00:00
nate
0793138c6c
Fixing SELECT DISTINCT queries for SQL Server + misc schema fixes, closes #4352
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6693 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 06:27:58 +00:00
nate
3e28323667
Fixing conditions quoting in DboSource::conditionKeysToString(), closes #4368
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6691 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 05:39:54 +00:00
nate
f6103830c3
Adding prepared statement support to Model::query(), closes #2069 (thanks Mark Story)
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6687 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 00:30:32 +00:00
nate
8f3a2c6022
Refactoring model constructor
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6678 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 13:10:27 +00:00
gwoo
c38c6a21ba
updating TranslateBehavior to handle one set of content per model, not per alias. fixes #4461
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6655 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-13 04:18:10 +00:00
nate
c7677c2a5e
Fixing incorrect selection of parent nodes in ACL, fixes #4324
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6653 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-11 04:59:52 +00:00
phpnut
89c8467e89
"Fixes #4408 , Options for a Behavior are not being reset for associated models using the same behavior"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6642 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 04:10:27 +00:00
phpnut
85f2946c36
"Fixes #4349 , Correct usage of \"AND\" and \"and\" for conditions"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6641 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 02:24:09 +00:00
phpnut
5692ed149b
"Updating doc comments for Model::create()"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6630 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-03 15:22:18 +00:00
phpnut
118c35f0d0
"Closes #4402 , Model->create returns unexpected data type - sometimes.
...
Change to return Model::data; instead of true when empty"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6625 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-02 19:46:15 +00:00
phpnut
0ef028bc1f
"Fixing self associated joins.
...
Added additional test cases and correct one bad test case.
Fixes #4364 , !__mergeAssociation() in dbo_source fails to merge belongsTo properly"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6606 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 11:17:24 +00:00
nate
c4a4e9da39
Fixing handling of atomic transaction support with hasMany in Model::saveAll(), fixes #4372
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6596 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-22 21:23:06 +00:00
nate
d60191a1f6
Fixing vulnerability in field quoting in DboSource
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6594 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-20 16:40:45 +00:00
nate
0ca3915668
Forcing array in Model::invalidFields(), fixes #4362
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6592 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-19 01:34:23 +00:00
nate
c286a7293f
Adding test cases for TreeBehavior scoping
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6591 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-19 00:54:32 +00:00
phpnut
1b4c445cad
"Fixes #4256 , tablePrefix + HABTM with defaults == wrong joinTable"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6585 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-16 07:18:42 +00:00
phpnut
a6fbe05964
"Initial refactoring of BehaviorCollection.
...
Fixed vendor path being the first searched directory for files, this caused unexpected results.
Fixed failing DboSource tests"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6583 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-16 05:44:20 +00:00
nate
360b91eea7
Fixing HABTM associations on non-standard keys, fixes #4219 , refactoring DboSource::calculate()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6565 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-13 03:11:29 +00:00
nate
3ff5bfa829
Fixing default value for float columns in Postgres, fixes #3963
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6564 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-13 03:06:14 +00:00
phpnut
acc79fe0f3
"Closes #2508 , Allow requestAction to use array urls
...
Fixes #4325 , error pages no longer displayed since changeset
Closes #4329 , remove am() usage in core"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6563 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-12 21:19:31 +00:00
nate
2c3ec768c7
Updating model tests for Postgres, fixing Postgres metadata handling for UUID primary keys, adding Postgres tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6558 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-11 05:22:17 +00:00
nate
c1c35b2e13
Refactoring DboSource - removes all SQL from Model, refactoring transaction handling
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6557 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-11 02:44:33 +00:00
gwoo
57a61f8f82
fixes #4165 , string conditions with translate behavior
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6552 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 07:01:01 +00:00
phpnut
5374807164
"Fixes #3846 , Security blackhole when no radio selected
...
Fixes #3920 , Multiple select w/ checkboxes issues warning when all are unselected
Fixes #3962 , validation POST never pass when select multiple is submit
"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6546 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 00:25:59 +00:00
nate
8fc104b44b
Correcting column quoting for custom-aliased fields, fixes #4228
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6543 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 22:15:08 +00:00
nate
db1e079e5f
Enabled specifying of join type in hasOne/belongsTo associations, fixes #4085
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6537 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 08:47:42 +00:00
nate
9e37b6fc26
Adding test cases for saving hasMany associations with saveAll(), ref #4035
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6536 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 07:59:23 +00:00
nate
ab7bf5a46c
Fixing call-time pass-by-ref errors in Behavior
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6533 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 07:00:05 +00:00
nate
e87d4e80dd
Refactoring behavior method dispatch handling to work on PHP4, fixes #4296 , refactoring schema test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6532 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 06:24:40 +00:00
nate
58e6da6a5b
Adding test case for custom 'finderQuery' for HABTM associations. Disproves #4100
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6521 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 20:08:15 +00:00
gwoo
c1ea4dff88
fixes #3969 , schema name for app dirs with special characters
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6518 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 16:30:44 +00:00
nate
1a69866df1
Fixing custom hasMany associations, fixes #3918
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6512 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-07 04:36:20 +00:00
nate
0ee0324e20
Improving validation support in Model::saveAll(), adding tests for cross-database joins, disproves #4251
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6511 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-07 01:29:19 +00:00
phishy
18b30e11b4
fixed bug in quoting of acl schema identifiers
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6505 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-03 18:34:15 +00:00
nate
9fbf783286
Adding database prefix check in Model::setDataSource()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6501 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 20:30:01 +00:00
nate
5ce4469867
Adding fix for parenting issues in Tree behavior, fixes #4043 , fixes #4037
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6500 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 20:26:42 +00:00
nate
6546a39098
Updating Model::setDataSource(), table prefixes now switch when switching DataSource, unless a custom table prefix is set, fixes #4062
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6496 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 05:15:53 +00:00
nate
e58c397bc9
Adding fix for loading join models classes from plugins, fixes #4014
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6493 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 03:25:46 +00:00
nate
ab50975306
Correcting UPDATE query generation to support SQL standards and MySQL-specific features in parallel, fixes #4080
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6491 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 03:12:12 +00:00
gwoo
1fbc3e6a9b
quick fix for with and saveMulti
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6490 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-29 22:01:09 +00:00
nate
c8ed9424da
Fixing errors thrown in Model::exists() when $useTable is false
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6484 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-28 04:35:20 +00:00
nate
97dded350f
Returning default column type for models with no schema defined
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6482 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-28 01:53:54 +00:00
nate
3a11fe2340
Refactoring find types in Model::find()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6481 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-28 01:50:38 +00:00
nate
c1251c8265
Adding DboSource fix for SELECT DISTINCT, fixes #4101
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6472 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-24 03:15:37 +00:00
nate
3140144a1f
Adding behavior test case and fixing validation behavior methods, fixes #4205
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6471 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-24 02:47:10 +00:00
nate
0572926d49
Refactoring model behavior handling
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6469 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-21 15:36:13 +00:00
phishy
5c9c5dbb47
removed duplicate baseConfig
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6468 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-20 20:02:18 +00:00
nate
96d2b4b738
Adding ACL component test coverage and whitespace fixes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6451 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-11 02:27:16 +00:00
nate
7248048d85
Adding default configuration to Oracle driver
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6448 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-11 01:13:13 +00:00
phishy
cd8da1bd18
removed conect config parameter in favor of auto-persistant connection
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6446 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-07 15:46:05 +00:00
nate
89052b0f54
Adding performance enhancement to Set::numeric(), adding $filterKey param to Model::create() to overwrite primary keys, closes #4046
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6438 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-06 02:35:12 +00:00
phpnut
df805f0a66
"Closes #3940 , adding inserting/updating of multiple translations at once.
...
Additional tests added for TranslateBehavior"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6428 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-02 21:14:13 +00:00
nate
881cf3fc0a
Adding foreign key check to Model::updateCounterCache(), fixes #4049
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6425 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-02 04:50:44 +00:00
nate
7d39cad13f
Updating docblocks
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6421 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-01 02:03:04 +00:00
nate
18c2d9d446
Adding ModelBehavior::cleanup() callback for when behaviors are dynamically detached from models
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6420 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-01 00:56:22 +00:00
phishy
97cae1c208
added support for introspecting oracle schema
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6417 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-29 14:25:48 +00:00
phishy
9ddbd992e9
chunked query generation for more than 1000 IN arguments
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6416 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-29 02:38:54 +00:00
nate
423a56c958
Adding Model::attach() and Model::detach() for dynamic loading/unloading of behaviors + tests, fixes #4010
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6415 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-28 18:56:22 +00:00
nate
b9d3c4e2e8
Updating Model::saveAll(), adding tests. Fixes #3871
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6410 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-27 01:57:39 +00:00
nate
074cfeb75d
Fixing Configure::listObjects() to not return incorrect core classes, closes #3954 . Adding route testing support to cake console.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6404 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-23 04:14:58 +00:00
nate
943eaf7549
Refactoring DboSource::fields(), updating column type handling in DboSqlite, fixes #3944 , using unquoted names to get column type in update queries, fixes #3917
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6398 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-21 02:21:28 +00:00
phpnut
5b29c6a71f
"Fixing -f param in schema, this fixes generation of scheme.php when model have not been created"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6388 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-19 20:36:50 +00:00
nate
4c6bbaffff
More Postgres abstraction/emulation fixes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6387 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-17 17:09:10 +00:00
phpnut
5b3cbf2ea0
"Refactoring TreeBehavior::recover();
...
Added TreeBehavior::reorder(); to reorder nodes of tree"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6383 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-16 16:51:18 +00:00
phpnut
520d179850
"Fixes #3876 , Associations do not work correctly in plugins"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6382 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-16 07:34:42 +00:00
gwoo
ce1b042843
updating schema, fixes #3816 and fixes #3896
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6367 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-12 17:06:28 +00:00
phishy
a9cd0f997d
fixed instances where invalid UPDATE and DELETE statements were being generated
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6366 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-11 22:40:44 +00:00
nate
7b2627caa2
Fixing typo in DboSource::renderStatement()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6364 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-11 17:07:26 +00:00
nate
ff5e6c9002
Fixing Postgres sequence name generation for names not in the sequence map, fixes #3886
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6363 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-11 15:49:07 +00:00
nate
c8974be887
Refactoring fixture handling and Model tests, fixing UPDATE and DELETE queries for other databases, fixes #3794 . Only forcing 'test_suite' prefix on default database connection, fixes #3873
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6361 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-11 06:45:00 +00:00
nate
5e4a641003
Updating model test case and adding custom field support to Model::find('list'), closes #3802 (thanks GreyCells)
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6360 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-11 03:16:19 +00:00
nate
aa7ca4e703
Updating docblocks of deprecated methods, closes #3819 , closes #3878
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6357 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 19:50:33 +00:00
nate
cbd715618b
Removing MySQL-specific schema code from core, improving support for PostgreSQL sequences, most tests passing
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6355 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 08:44:38 +00:00