nate
b3395569cf
Fixing quoting for complex conditions in DboSource, fixing broken DboSource tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7440 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-07 16:38:15 +00:00
gwoo
76f7d6dc43
making changes to all the model group to run. Currently I get 8/8 test cases complete: 1486 passes, 22 fails and 3 exceptions.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7439 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-07 15:36:26 +00:00
mark_story
e7e43252f3
Allowing overriding of schema class and file name. Closes #5175 . Fixed issue with php4 compatibility in CakeSchema
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7430 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-04 19:46:44 +00:00
nate
c917c611dc
Adding Spanish-language error message detection to DboMssql, fixes #5195
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7426 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-03 14:12:08 +00:00
mariano.iglesias
eb02ec4ca9
Fixing issue on Containable when multiple unbindings take place on the same model, fixes #5096 . Fixing notices on unmergable results on DboSource.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7424 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-02 21:56:55 +00:00
AD7six
53dcefff53
Modifying dbo_source to refer to $this->fullDebug rather than Configure::read() to determine whether or not to log
...
queries
modifying fixture loading to not log create, drop, truncate statements
correcting model tests that change fullDebug to reset to the value before the test ran
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7421 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-02 19:41:53 +00:00
AD7six
739c5169e4
fixes #5064 Preventing 'floating' results from being returned by find('threaded')
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7414 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 16:49:56 +00:00
nate
185a832e22
Removing column length from unsupporting columns in DboPostgres::buildColumn(), fixes #4804
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7411 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 13:10:37 +00:00
nate
8284872b82
Adding schema scoping to table description queries in DboPostgres, fixes #5006
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7409 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 06:33:01 +00:00
nate
793295036f
Re-fixing Model::set() to allow for fields that don't exist, fixing model validation with messages, adding tests to prove parameter order for custom validation errors, refs #50005
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7408 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 06:28:59 +00:00
nate
661e757612
Refactoring configuration handling in DataSource
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7407 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 06:08:23 +00:00
nate
f5977baeb5
Fixing magic find methods in DboSource, and fixing DboSource::reconnect() to merge old params instead of overwriting
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7405 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 04:54:54 +00:00
gwoo
4a94397b43
removing deprecated code
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7401 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 01:04:03 +00:00
gwoo
f6d269a9e0
closes #5142 primary key on custom join models
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7393 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-31 15:38:23 +00:00
mark_story
3402f40061
Adding test case for AclBehavior. Modified AclBehavior to use $model->name for configuration and operation. Closes #5163
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7391 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-31 03:26:15 +00:00
mark_story
8b28eec1ab
Removed almost all am() calls from core.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7389 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-31 00:16:16 +00:00
TommyO
b6e9888753
Replaced all instances of ife() in /cake
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7387 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 20:34:01 +00:00
nate
5c796f4dbe
Disabling caching on SQLite table list queries, adding SQLite test, fixes #5174
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7385 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 19:18:48 +00:00
TommyO
7c7410bda2
Replaced instances of ife() with more sutiable alternatives in model.php
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7384 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 16:26:48 +00:00
mark_story
3c1ebafa0a
Modified dbo_mysql update() fixes issue with updateCounterCache on self join tables. updateCounterCache query optimized. Closes #4652 , #5152
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7376 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-30 02:22:15 +00:00
mark_story
4267a4f631
Added patch from 'cavendish' releasing previous result resources in resultSet(). Closes #4801
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7374 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-29 23:29:26 +00:00
mark_story
96b5a6fa87
Added test to prove #5125 . Added documentation to updateAll.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7373 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-29 01:18:57 +00:00
mark_story
ac45340a71
Optimization when checking for setTable prefix.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7370 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-27 15:55:49 +00:00
mark_story
9b857e9f36
Added camelCase check for setTablePrefix. setTablePrefix now fires on PHP5. Closes #5147
...
Updated test in model.test to reflect changes in empty string handling for float and integer types.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7368 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-27 04:19:54 +00:00
mark_story
8d2e4721e3
Added checks for empty string in integer columns. value() Now returns NULL. Closes #5141
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7366 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-27 02:49:02 +00:00
gwoo
caa7bb6218
updating cache engines so key will expire when duration is changed, updated datasource and configure to for new settings, closes #5083
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7364 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-26 20:00:20 +00:00
mark_story
d9bb166721
Added firebird transaction commands. Thanks to 'daniele.teti'. Closes #5130
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7351 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-22 23:22:17 +00:00
phishy
9cf8a77e88
added fetchResult() wrapper
...
fixed queryAssociation(), it was producing invalid queries
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7350 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-22 12:20:18 +00:00
mark_story
c286736f69
Added afterFind callback to Models where recursive >= 2. Added tests from 'ezyang'. Closes #5103
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7347 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-20 17:25:39 +00:00
phpnut
bdc3685e62
Fixes #5024 , find('threaded') returns empty array if root node is not included in the results.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7321 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 14:10:42 +00:00
phpnut
1c2b1ef8eb
Fixes #5008 , DBO Source fails on >= query fixes failing tests added in [7302]
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7319 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 12:56:56 +00:00
phpnut
84069e372f
Fixes #5021 , findAllThreaded does not work with tables that have set primaryKey to something other than 'id'
...
Removed am() from Model::_findThreaded();
Cleaned up error.php and dispatcher.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7318 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 12:37:18 +00:00
phpnut
5131e1c3b3
Fixing undefined variable usage in Model::saveField();
...
Fixes #5053 Model:saveField $options bug;
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7316 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 11:02:09 +00:00
phpnut
558c93a46e
Correcting typo in package doc tag
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7293 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 07:23:27 +00:00
phpnut
022ffa3f4f
Adding fixes for pagination on associated models.
...
Corrected dot notation use in Controller::paginate();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7286 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:25:08 +00:00
gwoo
7ad1790ea2
removing and moving deprecated code
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7285 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:19:04 +00:00
nate
14e8c5fe7b
Correcting inconsistent return values in Model::saveAll(), updating bad tests, fixes #4981
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7283 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:07:00 +00:00
gwoo
0fc7355e6b
another small optimization from last fix
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7281 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 05:34:37 +00:00
gwoo
70276afa3b
fixes #3456 , Use = instead of IN where possible
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7280 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 05:14:52 +00:00
gwoo
5e92674990
fixes #4995 , call time pass by reference in dbo_mysql
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7275 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 23:07:42 +00:00
nate
376ee191cb
Commenting fix in DboMssql
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7274 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 21:13:10 +00:00
AD7six
d000c59ceb
Deprecating findNeighbours
...
adding find('neighbors')
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7272 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 19:42:07 +00:00
AD7six
2ce0f1f3cf
deprecating findAllThreaded
...
removing __doThread
adding find('threaded')
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7271 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 19:33:44 +00:00
gwoo
e70f45e1d6
fixes #4987 , unable to delete by adding version compare and setting useAlias in DboMysql
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7268 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 17:24:16 +00:00
nate
f52706ea9a
Fixing transaction statement and Italian-language error checking in MSSQL database driver, fixes #4074 , fixes #4890
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7266 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 14:45:32 +00:00
phishy
c60b232ab4
fixed quoting bug in name()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7259 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-24 21:11:23 +00:00
gwoo
f2fd386217
fixes #4892 different users on oracle, fixes #4894 escaping field
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7258 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-24 20:30:51 +00:00
nate
3ce765358d
Fixing boolean handling in DboPostgres, closes #4878
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7257 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-24 04:55:59 +00:00
gwoo
91d86b91a4
fixes #4832 , lastinsert in postgres. test added
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7247 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-23 15:59:27 +00:00
mariano.iglesias
6eb4aba543
Changing test for Containable to reflect #4790
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7246 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-23 06:33:31 +00:00