mark_story
7b0bc014cc
Updating whitespacing.
2009-10-04 20:54:27 -04:00
mark_story
778755c2b0
Implementing CakeSchema:;_compareTableParameters. Adding tests for tableParameter comparison.
2009-10-04 20:53:49 -04:00
mark_story
aae120a81a
Updating file headers.
2009-10-04 13:35:11 -04:00
mark_story
05f6099def
Enabling plugin.name schema file creation and addition.
...
Making CakeSchema::load() use plugin parameter, tests added.
Plugin schema file added to test_app.
2009-10-04 13:32:33 -04:00
mark_story
0b6d6cee6c
Adding placeholder method to DboMysql to handle alteration of table parameter statement generation.
2009-10-03 16:49:01 -04:00
mark_story
2fe877e527
Adding method to compare tableParameters in the Schema, so they no longer fall through as fields.
2009-10-03 16:48:10 -04:00
mark_story
0fc6f58cfb
Refactoring and merging duplicated code between CakeSchema and FixtureTask
2009-10-03 16:15:56 -04:00
mark_story
236a679b17
Updating tests for schema. Making tests more reliable for schema read.
2009-10-03 16:08:54 -04:00
mark_story
e733c569be
Fixing broken tests.
2009-10-03 12:44:49 -04:00
mark_story
0029a275bd
Refactoring code into a separate method. Will allow code reuse in fixture generation. Tests added.
2009-10-03 12:41:14 -04:00
mark_story
71aa460a48
Continuing work on getting plugin support for CakeSchema and SchemaShell. Applied patch from 'SkieDr', test cases added.
2009-10-03 11:48:02 -04:00
mark_story
32d5b40cd0
Adding error triggering while in debug mode for unhandled validation methods.
2009-09-30 22:34:29 -04:00
mark_story
7d4510b959
Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2
2009-09-30 14:26:38 -04:00
mark_story
4094f0a696
Moving DboMysql::listDetailedSources() and DboMysql::getCharsetName() into DboMysqlBase so it works with mysqli as well. Tests added for MySqli.
2009-09-30 00:39:32 -04:00
mark_story
6dbba17d1b
Fixing issues with DboSource::execute() where queries would not be run if stats = false in the options. Tests added.
2009-09-30 00:37:06 -04:00
mark_story
dc220bbb21
Fixing DboSybase::connect() to use port configuration value. Thanks 'tPl0ch' for the various attempts :) Fixes #90
2009-09-29 20:43:17 -04:00
SkieDr
627eff5f24
Implementation of table level and field level parameters support
2009-09-29 22:54:48 +04:00
mark_story
778a6b9303
Reversing change from [a37fc0d455e373b30a73f11687885572c6e4b90d]. As the additional & causes errors in PHP <= 5.2
2009-09-29 10:05:03 -04:00
mark_story
51508c6375
Fixing error in php5.3 when calling behavior methods that had more than 6 parameters.
2009-09-28 18:09:02 -04:00
jperras
f3d0769912
Renaming ConnectionManager::__getDriver() to ConnectionManager::__connectionData().
2009-09-25 11:08:41 -04:00
jperras
c2ec96067a
Refactoring ConnectionManager & tests.
2009-09-25 11:08:34 -04:00
jperras
7e5fe04a77
Merge branch '1.3-misc' into 1.3-misc-plugin-datasources
2009-09-24 23:14:12 -04:00
jperras
c3cd98af42
Implementing loading datasources from plugins.
2009-09-24 22:56:02 -04:00
jperras
11365e7a09
Fixing return by reference error on the use of ConnectionManager::getDataSource() on a non-existing datasource.
2009-09-24 19:29:35 -04:00
jperras
0949ea912d
Merge branch '1.2' of code.cakephp.org:cakephp into 1.2
2009-09-24 16:41:54 -04:00
jperras
4bf5244073
Adding tests for ConnectionManager, and fixing a missing return value for ConnectionManager::loadDataSource().
2009-09-24 16:26:56 -04:00
jperras
ffad7a74a2
Merge branch '1.3-misc-plugin-datasources' into 1.3-misc
2009-09-24 16:26:17 -04:00
jperras
ed74653d72
Adding tests for ConnectionManager, and fixing a missing return value for ConnectionManager::loadDataSource().
2009-09-24 16:23:39 -04:00
mark_story
34deb2a18d
Correcting omission of group in DboOracle. Fixes #98
2009-09-23 23:16:57 -04:00
mark_story
42017e95c6
Merge branch '1.3-console' into 1.3
...
Conflicts:
cake/tests/cases/console/libs/schema.test.php
2009-09-20 19:05:03 -04:00
mark_story
d5376e64aa
Adding patch from 'Ceeram' and 'TehTreag' to implement automatic updating of Aro/Aco nodes created AclBehavior. Test cases added. Fixes #33 and #4261
2009-09-19 01:17:20 -04:00
mark_story
5717e3b59c
Merge branch '1.2' into 1.2-merger
...
Conflicts:
app/webroot/test.php
cake/VERSION.txt
cake/bootstrap.php
cake/config/config.php
cake/console/cake.php
cake/console/libs/schema.php
cake/console/templates/skel/webroot/test.php
cake/libs/configure.php
cake/tests/cases/console/libs/schema.test.php
cake/tests/cases/libs/debugger.test.php
cake/tests/cases/libs/model/model_write.test.php
cake/tests/fixtures/aco_fixture.php
2009-09-16 01:23:49 -04:00
mark_story
793c6ec07a
Making DboSybase able to return VIEW's as part of listSources(), making it similar to DboPostgres and DboMysql. Fixes #91
2009-09-15 22:00:49 -04:00
mark_story
2c633912e0
Making DboSybase able to return VIEW's as part of listSources(), making it similar to DboPostgres and DboMysql. Fixes #91
2009-09-15 22:00:04 -04:00
mark_story
326424592d
Merge branch '1.2' into 1.2-merger
...
Conflicts:
cake/VERSION.txt
cake/config/config.php
cake/dispatcher.php
cake/libs/controller/scaffold.php
cake/libs/inflector.php
cake/libs/view/view.php
cake/tests/cases/libs/controller/scaffold.test.php
cake/tests/cases/libs/inflector.test.php
cake/tests/cases/libs/view/view.test.php
cake/tests/fixtures/counter_cache_post_fixture.php
cake/tests/fixtures/counter_cache_user_fixture.php
2009-09-13 13:52:58 -04:00
nate
fd6538fc72
Changes Model::find() to allow modification of DataSource connection during callbacks.
2009-09-10 09:28:55 -04:00
jperras
5a432c6f71
Applying fix from Ceeram for updateAll joins on model relations with no foreign key. Fixes #69 .
2009-09-09 00:00:53 -04:00
jperras
daadac03cc
Merge branch 'bug-22-schema-shell' into 1.2
2009-09-07 12:34:12 -04:00
jperras
24351b5a21
Backporting bugfix for #22 from 1.3-console to 1.2. Adds schema shell test cases, fixes for schema object references, i18n of schema schell output strings.
2009-09-07 12:24:38 -04:00
jperras
2484179e36
DboMssql::value() now returns NULL for numeric column types (float, integer, binary) when the column data is empty. Fixes #28 .
2009-09-06 13:57:24 -04:00
renan.saddam
0e9007e060
Making sure we are not making non-uniques and non-primary keys index. Also changing basic fixture schema to make tests pass.
2009-09-02 22:07:58 -03:00
mark_story
c0a19ced14
Adding DboSource::getLog() and test case.
2009-09-01 23:23:47 -04:00
mark_story
1bedd8418b
Merge branch '1.3-deprecation' into 1.3-misc
2009-08-31 23:41:41 -04:00
mark_story
046d7c75d0
Adding warnings to newly deprecated methods.
2009-08-31 22:31:36 -04:00
mark_story
bd350e95b6
Deprecating Model::bind()
2009-08-31 22:18:31 -04:00
mark_story
3cdf89dc18
Removing unused $db in Model::_deleteLinks. Fixes #6384
2009-08-30 20:09:07 -04:00
mark_story
c19c1a7828
Fixing issues with cakeError call.
...
Adding tests for cakeError being called with non-existant Behaviors.
2009-08-30 19:33:21 -04:00
mark_story
7ca1ef22f0
Adding cakeError calls to ModelBehavior.
2009-08-27 00:16:17 -04:00
jperras
e9cfb66424
Fixing calling of method from incorrect object in DboOracle::describe(). Fixes #21 .
2009-08-23 17:52:40 -04:00
mark_story
ae715ef882
Adding in fallback for sql & schema dirs.
...
Starting to add plugin support for schema shell.
tests added.
2009-08-20 01:07:21 -04:00
mark_story
cca3281f8c
Fixing complex expression handling in DboSource::fields(). Making AS a variable controlled by implementing dbo.
...
Test cases added.
Fixes #38
2009-08-19 13:03:36 -04:00
mark_story
f9e0ddfac6
Removing _with use.
2009-08-18 11:53:52 -04:00
mark_story
a7499be154
Adding missing & operators.
...
Adding tests for run update.
Adding -f param to schema run update to allow for testing and forcing of table comparison. Skips model checks and uses tables only instead.
2009-08-14 20:06:27 -04:00
gwoo
c33437af76
updating require of overloadbale in model
2009-08-03 11:44:06 -07:00
AD7six
a4bc755cc7
whitespace normalization
2009-08-02 16:10:24 -07:00
gwoo
15ed658a27
Revert "Merge branch '1.3-newlines' into 1.3"
...
This reverts commit c088131cd8e9f53396852e8a320e2b0396807d20, reversing
changes made to 9341a2bb5eda1db208019aa8a9171224fb76fc6b.
2009-08-02 15:59:54 -07:00
AD7six
d61e8736e4
Merge branch '1.3' into 1.3-bake
2009-08-02 22:44:28 +02:00
AD7six
7eb150b49a
Merge branch '1.3' into 1.3-bake
...
Conflicts:
cake/console/libs/tasks/model.php
2009-08-02 22:31:01 +02:00
gwoo
c017f80e02
Merge branch '1.2' into 1.3
2009-08-02 13:25:55 -07:00
gwoo
292b37c6e8
Merge branch '1.3-console' into 1.3
2009-08-02 12:31:12 -07:00
gwoo
bf2b8a60e6
Merge branch '1.3-misc' into 1.3
2009-08-02 12:20:07 -07:00
jperras
3f46bf9568
Updating doc block for Model::invalidate. Fixes #4583 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8274 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-08-02 19:18:54 +00:00
gwoo
d118c6a764
Merge branch '1.3-newlines' into 1.3
2009-08-02 12:08:55 -07:00
gwoo
7fc465309e
Merge branch '1.2' into 1.3
2009-08-02 11:58:39 -07:00
jperras
e9e8951a27
Updating doc blocks for datasource - thanks to savant for patch. Fixes #5738 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8270 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-08-02 18:52:55 +00:00
gwoo
38221e7aa2
Merge branch '1.2' into 1.3
2009-08-01 23:47:28 -07:00
mark_story
3aa6d22c2c
Correcting path that CakeSchema looks for schema files in.
2009-08-01 17:50:03 -04:00
jperras
5172035e02
Adding table prefix detection for sequence maps in DboOracle::describe(). Fixes #6527 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8268 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-08-01 19:40:52 +00:00
gwoo
887f8335ee
fixes #6539 quoting in buildIndex
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8267 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-08-01 18:25:25 +00:00
renan.saddam
76e50ef625
Adding support for Model.* syntax, which translates to a list of fields from Model.
...
Fixing buildColumn for null values.
Fixing small containable merge, it was duplicating values, tests added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8265 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-31 02:08:20 +00:00
gwoo
1423b0067b
Merge branch '1.2' into 1.3
2009-07-30 11:34:33 -07:00
renan.saddam
90445e9119
Fixing "DEFAULT NULL" sentence, which for some reason does not work. It needs to be only "NULL", and "DEFAULT NULL NULL" works too.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8263 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-30 00:00:19 +00:00
renan.saddam
ee8d12c939
Fixing issue with "DEFAULT NULL NULL" generated by buildColumn.
...
Making the tests pass by just changing the start and end quotes.
Providing "created" values for CakeTestFixtureTestFixture Fixture.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8262 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-29 22:30:20 +00:00
DarkAngelBGE
f710ae7fbe
Minor refactorings + fix for dbo mysqli related to previous commit
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8261 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-28 20:08:24 +00:00
DarkAngelBGE
f88cc56cfe
Coding standards fixes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8260 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-28 20:01:42 +00:00
AD7six
3b1664b7dd
Preventing loading the ConnectionManager from triggering reloading the Model file
2009-07-28 08:36:55 +02:00
AD7six
fd0aaefb39
whitespace normalization
2009-07-26 12:46:07 +02:00
gwoo
062f471b7f
updating App::import usage. ran each test and everything seems ok.
2009-07-25 18:27:02 -07:00
gwoo
766e12bc2a
Merge branch '1.3' into 1.3-newlines
2009-07-25 10:41:40 -07:00
gwoo
986af28de0
Merge branch '1.2' into 1.3
2009-07-24 15:57:30 -07:00
AD7six
b2142df2bc
adding a newline before all comment blocks
2009-07-24 21:18:37 +02:00
jperras
e40428801e
Removing all uses of uses() global method & replacing with require or App::import.
2009-07-24 13:41:08 -04:00
gwoo
30281d6c59
fixes #6506 , notice on 5.2.10 for habtm save with empty value
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8251 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-23 19:28:46 +00:00
mark_story
93d64c4e76
Removing use of e() from core classes. Refs #6525
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8250 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-23 13:35:14 +00:00
gwoo
a9d98e73c3
Merge branch '1.2' into 1.3
2009-07-22 09:27:31 -07:00
nate
a75d1fad2a
Modifying quoting method used in conditions with array values in DboSource, fixes #6519
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8243 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-22 01:50:11 +00:00
DarkAngelBGE
fefbe77208
Minor refactorings for DboMysql, DboSource and TextHelper
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8241 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-21 20:57:39 +00:00
gwoo
a2f0ab8b27
Merge branch '1.2' into 1.3
2009-07-20 09:31:56 -07:00
mark_story
fb6b16c467
Fixing empty time value handling in Model::deconstruct(). Both null and 00:00:00 are valid values now. Test cases added and refactored. Fixes #6488 , #6018 , Refs #5659
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8225 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-08 03:25:30 +00:00
gwoo
f1a4352620
Merge branch '1.2' into 1.3
2009-07-03 08:24:42 -07:00
gwoo
f2b7a26be8
fixes #5710 , HABTM - constraining unique ids, but removing non-unique
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8217 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-03 03:31:05 +00:00
mark_story
45a51ed809
Changing return of Model::deleteAll(). When no records are matched by the delete conditions return is now (bool)true as no records matching those conditions exist.
...
Test case added.
Fixes #6453
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8216 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-03 00:26:58 +00:00
gwoo
92b8e87ed7
fix for cross database joins when recursive < 1
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8212 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-02 23:14:38 +00:00
gwoo
2ba8e8777c
Merge branch '1.2' into 1.3
2009-07-02 16:12:50 -07:00
gwoo
3c76f173f7
removing deprecated model methods
2009-07-02 10:24:42 -07:00
gwoo
bc359259a2
Merge branch '1.2' into 1.3
2009-07-02 09:27:00 -07:00
mark_story
6a34c9ef31
Fixing Model::saveAll() PHP4 compatibility. Minor API change in __save(). __save() no longer takes a model instance as the first parameter. Because of Model implementation details in PHP4 this caused broken references. Fixes #6389 , #6223
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8204 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-27 15:25:07 +00:00
gwoo
88e0cfa2f8
fixes #6427 , default datasource not loaded when ds is specified
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8197 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-16 21:35:21 +00:00
gwoo
c3643767bf
some more updates to path handling
2009-06-10 16:13:39 -07:00
DarkAngelBGE
d9489b942b
Removing duplicate START TRANSACTION sql execution in mysqli environment, fixes #6422
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8191 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-06 15:41:33 +00:00
mark_story
2c1b7fc24e
Adding nullish value handling for date, datetime, and timestamp column types to DboPostgres. Empty string values now return instead of "". Fixes #6386
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8190 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-05 02:43:08 +00:00
gwoo
6f21c18366
Merge branch '1.3-lib_renames' into 1.3
2009-06-02 10:17:02 -07:00
gwoo
fdd63d4e8e
Merge branch 'master' into 1.3
2009-06-02 10:12:14 -07:00
jperras
d2b4995e43
Updating Model::deconstruct to handle db expressions correctly. Fixes #6372 ; thanks to mattcurry for the patch.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8185 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-02 03:23:15 +00:00
mark_story
a9bbae31ee
Fixing primary key column length in DboSqlite. UUID primary keys now return defined length.
...
Test cases added for describe()
Fixes #6412
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8184 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-02 03:03:51 +00:00
mark_story
f498ba0a87
Adding german error string to dbo_mssql::lastError() Fixes #6352
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8180 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-29 02:59:30 +00:00
mark_story
f0752feeec
Adding patch from 'burzum'. Fixes ambiguous field sql error when joining two trees with a defined scope.
...
Test cases and fixtures added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8178 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-26 17:17:57 +00:00
mark_story
41f32d8cee
Updating doc block for Model::beforeDelete(). Fixes #6219
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8174 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-22 01:20:47 +00:00
gwoo
d2667c0e6f
merging master into 1.3
2009-05-04 16:06:08 -07:00
gwoo
6535e6225c
merging 1.2
2009-05-04 15:57:10 -07:00
nate
8369a8f2d8
Sanitizing path in Dispatcher::baseUrl(), fixes #6336 , misc. whitespace fixes.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8165 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-04 20:36:22 +00:00
gwoo
15518b8c9a
merging 1.3-misc into master
2009-05-01 14:05:46 -07:00
renan.saddam
975ddaa4be
Fixes #6135 : Primary Key detection and load record fixtures on mssql. Tests added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8161 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-29 16:26:03 +00:00
jperras
8bb11e49d7
Fixing counterCache behavior when updating an existing record's counterScope value. Thanks for the patch, mattcurry. Fixes #6270 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8155 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-25 01:17:21 +00:00
gwoo
9ab6339392
fixes #6240 , DboOracle: fix cache sources and php version compatibility
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8154 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-25 01:06:46 +00:00
gwoo
fd0c39fcc6
fixes #6293 , Deleting non-existing record causes save() to fail. Thanks to msadouni for the patch and test!
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8150 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-22 16:47:34 +00:00
gwoo
0cc3d5149f
fixes #6277 , relaxing character length comparison for UUID
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8149 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-22 16:05:13 +00:00
jperras
066629d566
Removing hard-coded 'id' field from Model::_prepareUpdateFields. Fixes #6274 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8139 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-13 14:15:58 +00:00
renan.saddam
76e0f17dbc
Updating documentation to improve code completion
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8114 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-17 21:10:28 +00:00
gwoo
de5907326e
fixes #6203 , Model::invalidFields respecting Model::whitelist
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8113 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-17 18:19:12 +00:00
jperras
70e0316cd2
Renaming schema.php to cake_schema.php. Modifying relevant App::import calls.
2009-03-15 22:22:18 -04:00
jperras
e651c77bcf
Renaming behavior.php to model_behavior.php. Modifying associated App::import calls.
2009-03-15 21:17:08 -04:00
jperras
beb6aeec0c
Fixing incorrect doc blocks for connection_manager.php. Thanks to ADmad for noticing the inconsistency.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8106 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 23:01:21 +00:00
nate
80d4dfa306
Cleaning up previous commit.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8088 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-11 00:22:28 +00:00
nate
4466c9f7b7
Reverting changes to Behavior so that all models use the same behavior instance, fixes #6038 , refs #4408 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8087 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-11 00:06:41 +00:00
nate
cb95f13608
Correcting issue in String::insert() where 0 offsets were handled incorrectly, affecting issue where values were not properly quoted and inserted into conditions strings. Fixes #6163 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8085 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-09 20:03:02 +00:00
nate
eea46e7cc8
Fixing issue where calculated columns were getting quoted incorrectly. Test included. Reformatting code to be 100 characters or less.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8084 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-09 18:36:32 +00:00
mark_story
1497fddf80
Applying patch from 'rafaelbandeira3' fixing formatting of generated code to better follow cake coding standards. Fixes #5754
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8082 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-08 18:05:18 +00:00
mark_story
965b8e9641
Updating doc blocks on tree behavior.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8081 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-08 17:12:30 +00:00
mark_story
62ea98bdb2
Fixing minor typo in model.php. Closes #6176
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8080 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-08 16:20:11 +00:00
mark_story
ffc537aaa8
Minor optimization. Removing additional variable assignment.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8077 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-06 03:54:52 +00:00
gwoo
7dc627dd19
refs #4119 , another check for binary uuid
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8074 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-04 01:36:53 +00:00
gwoo
088815834e
fixes #4119 , refs #6151 binary uuid
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8070 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-03 16:33:17 +00:00
mark_story
2a139b171c
Applying patch from 'farhadi' correcting regular expression when using magic findBy and fields that contain findBy in them. Fixes #6138
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8057 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 03:22:31 +00:00
renan.saddam
52f4cd42db
Fixing issue when Model::$translateTable is set
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8050 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-19 13:45:51 +00:00
mark_story
ce4fa20f3f
Fixing escaping of fields in hasAny() also adding in correct model aliases.
...
Tests added.
Fixes #6089
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8032 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-15 21:05:42 +00:00
mark_story
b1b67c811c
Applying patch from 'ralph.marchildon' Fixes saving habtm data using 'with' data. Fixes #6077
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8021 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-11 03:53:04 +00:00
mark_story
d3ee6b31f1
Added conditional check for compatibility with MySQL 4.x result sets to DboMySqlBase::index(). Tests added. Thanks to 'teknoid' for the help. Closes #4503
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8020 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-08 23:09:08 +00:00
mark_story
4b00c29eef
Updating doc blocks to improve readability in API.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8015 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-04 05:00:59 +00:00
mark_story
1895f1c3be
Fixing saveAll() when used in conjunction with belongsTo data and validate => first. Tests added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8010 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-25 23:48:28 +00:00
nate
d75b063dca
Correcting quoted-alias replacement in DboSource, adding (and mocking) MS SQL test, fixes #5942
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8003 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-16 19:08:44 +00:00
nate
76fba20721
Adding sanity checking to setup() callback for behaviors.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8002 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-16 17:49:41 +00:00
mark_story
1111829e99
Fixing issue in __saveMulti() where unique was not always honoured. Thanks for the patch 'Jafinto'. Tests added. Closes #6006
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8001 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-16 04:09:44 +00:00
AD7six
b9ea171429
fixes #6003 tree behavior fails with uuids
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7997 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-15 00:50:01 +00:00
AD7six
704188e2b9
correcting shorthand if else statement
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7996 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-15 00:01:19 +00:00
AD7six
56afb72825
changing $model for $Model to follow conventions ($Model is an object)
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7994 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 23:21:53 +00:00
AD7six
eec4d15898
fixes #5971 - Error generated by behavior if invoking overloaded method from within the behavior
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7993 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 23:19:59 +00:00
gwoo
c53c28760f
closes #5968 , refs #5798 , reverts [7893], when dependent is true, conditions are not respected on HABTM associations when deleting parent record. [7893] would result in orphaned records. If more fine grained control is needed, create a model for the join table and handle it on an application/applicaiton basis.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7988 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:01:01 +00:00
gwoo
ff340d33ce
fixes #5926 , table prefix on acl tables when overriding constructor
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7980 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 17:43:46 +00:00
mark_story
4a636b93a8
Fixing showQuery() when there is $error = false. Tests from 'zackenbarsch' added. Fixes #5983
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7978 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 04:12:46 +00:00
mark_story
94b9bcae89
Fixing habtm with uuid join tables with an auto model. Tests & model classes added. model test runs slightly more smoothly on postgres as well. Fixes #5940
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7966 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-30 16:09:25 +00:00
phishy
afe9970157
Fixes #5939
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7965 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-29 21:37:01 +00:00
mark_story
b063f22f31
Fixing habtm joins for tables with two uuid fields, no primary key and a defined join model. Adding fixtures.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7953 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-23 23:28:08 +00:00
gwoo
3eb9f65e99
fixes #5909 , return for __() for translate behavior errors
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7947 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-21 17:32:30 +00:00
nate
a5b7276696
Correcting DboSource::order() identifier quoting, correcting bad DboSource tests, fixes #5900
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7942 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-18 20:49:25 +00:00
nate
8eade1adb3
Fixing code formatting to wrap at 100 characters, adding fix for ticket #5596 , counterCache now decrements properly when foreign key value changes.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7927 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 04:13:45 +00:00
mark_story
ea9c080b1c
Adding alterSchema() to dbo_postgres. Also handles index alters. Tests added for field and index alter sql.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7923 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-16 04:38:48 +00:00
mark_story
48c65c4092
Adding index() to dbo_postgres. Tests added for index introspection. Also fixes object to string conversions when working with database expressions. Fixes #5867
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7922 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-15 02:25:55 +00:00
TommyO
a601129d46
Brings odbc driver mostly up-to-date. Fixes #5730
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7921 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-14 18:36:40 +00:00
phpnut
0d3ea7a5f2
Adding fix when join table does not have a primary key 'id' defined
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7918 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-12 17:19:27 +00:00
mark_story
43af288eca
Adding index(), alterSchema(), dropSchema() support to MySQLi driver. Refactored MySQL & MySQLi drivers. Updated and fixed tests.
...
Fixes #5824
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7915 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-11 00:13:11 +00:00
mark_story
569b9dd48a
Adding index() to dbo_sqlite. Tests added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7913 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-10 03:38:10 +00:00
phishy
caa063590d
Fixed #5800 . Fixed INSERTs broken by refactoring of DboSource::renderStatement()
...
Also added slightly more support for CakeSchema with DboOracle
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7912 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-10 01:30:36 +00:00
mark_story
d405d1d1c3
Adding indexes to alterSchema() and CakeSchema::compare(). Thanks for the test case and patch 'bamyers99'. Fixes #5862
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7910 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-09 04:54:58 +00:00
mark_story
930a2d954f
Fixing infinite loop in AdoDB when trying to get result sets with more than on result. Fixes #5846
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7908 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-08 03:13:45 +00:00
mariano.iglesias
da39ce77b9
Fixing order of associated results on test that was making a test to fail. Fixing issue where HABTM conditions were not being taken into account when deleting links. Adding tests, fixes #5798
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7893 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-26 14:15:51 +00:00
AD7six
2f51ccca04
fixes #5772 .
...
Sql errors when using reserved words for a field name with the tree behavior.
Test Case restructured to allow thorough testing of the various permutations inwhich the tree behavior can be used
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7880 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-20 13:57:44 +00:00
mark_story
8759f4ae28
Fixing reset of Model::__exists when create() is called. Test added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7878 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-19 15:53:41 +00:00
mark_story
6806b895cb
Fixing merging of actsAs and _findMethods from PluginAppModel classes. Adding test cases and necessary test classes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7875 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-14 20:24:27 +00:00
nate
f06401c563
Correcting regex that parses default values from schema in DboMssql, fixes #5748 . Thanks Pixilation for the patch and test case.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7873 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-14 02:00:02 +00:00
renan.saddam
400fadd091
Fixing TranslateBehavior bug when $query['recursive'] is set. Fixes #5593 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7869 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-12 19:45:30 +00:00
mark_story
eccfea3429
Fixing ModelBehavior::detach() when non 0 index behaviors are detatched. Tests Added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7862 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-11 00:17:37 +00:00
gwoo
d5b21b68a5
reverting changes to model from [7857], start/endQuote added to datasource
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7860 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-10 19:53:04 +00:00
nate
1a6a0d1788
Fixing test for DboSource::expression(), moving $startQuote and $endQuote from DboSource to DataSource.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7859 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-10 18:57:50 +00:00
gwoo
aed9872ce2
removing startQuote/endQuote from Model::getColumnType() closes #5719
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7857 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-10 16:16:36 +00:00
mark_story
9f7e3a3060
Adding optimization to ModelBehavior from davidpersson. Closes #5665
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7856 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-10 04:58:15 +00:00
TommyO
6dc11420ee
Field type improperly and unnecessarily checked for HABTM inserts. Fixes #5718
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7855 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-09 20:55:51 +00:00
nate
16eebce7f7
Adding support for DboSource::expression(), plus test in Model case. Fixing code formatting in model test and View class -- wrapping lines at 100 characters.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7853 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-09 03:20:14 +00:00
renan.saddam
6319f8ea69
Removed trailing whitespaces from core.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7847 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 02:54:07 +00:00
DarkAngelBGE
e882d990d7
adding test manager test case, some whitespace changes throughout the testsuite and the schema model
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7839 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-07 11:33:13 +00:00
mark_story
b478cde990
Removing 'update' check from firebird driver. Closes #5554
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7837 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-07 02:48:14 +00:00
AD7six
b7587d2d55
fixes #5696 incorrect timestamp definition generated by Posgres schema
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7832 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 13:22:57 +00:00
renan.saddam
f4e2b3e24b
Handling numeric columns unsigned. Fixes #5695 .
...
Also added some tests to MySQL and MySQLi.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7831 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 02:15:12 +00:00
AD7six
2a9b8643db
Correcting index detection to not include the fields from a previous index, where several mult-field indexes
...
exist
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7827 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 13:44:05 +00:00
gwoo
e2a5f38b36
updating translate recursive handling, fixes #5593
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7823 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-04 01:41:27 +00:00
renan.saddam
171fa62b94
Added tests to cover bug with recursive = -1. Refs #5593 .
...
Did a refactoring to TranslateBehavior and moved all tests from translate.test.php to models.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7821 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-03 23:58:44 +00:00
john
989f9f0cbc
Removing method no longer in use.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7811 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-31 19:06:05 +00:00
john
89bf77ae01
Updating docblock wording and @link ties.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7810 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-31 19:05:30 +00:00
AD7six
3f2fa6929b
changing tabs for spaces in comment block indentation
...
Removing address and replacing with cakefoundation url
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
renan.saddam
25ec40600c
Reverting previous commit - pg_escape_string($connection, $data) is PHP5-only.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7803 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 11:54:43 +00:00
nate
40bf675589
Refactoring DboSource to remove use of str_split, adding $read (false to calls to) DboSource::value() inside DboSource::create(), cleaning up code formatting, fixes #5598 , fixes #5682
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7802 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 05:03:01 +00:00
gwoo
53296d975c
adding patch for model text committed in [7799]
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7800 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 00:11:32 +00:00
gwoo
6624d41ecd
updating habtm save handling, fixes #5579
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7795 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-29 07:19:26 +00:00
phpnut
8ede5d21d3
Removing unreachable code
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7793 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-29 06:44:15 +00:00
mark_story
ee8ff1d5ac
Fixing HABTM saving with saveAll(). Tests added. Fixes #4389
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7789 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-29 00:22:52 +00:00
mark_story
5a2db7a5b4
Fixing interaction between Model::_clearCache() and CacheHelper. Cached view files for camelCased controller or underscored URL's were not being cleared. Fixes #5611
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7783 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-26 18:51:38 +00:00
mark_story
b3a6a06f80
Applying patch from 'BrendonCoz'. Model::deconstruct() now allows null for time column types. Closes #5659
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7782 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-26 15:02:01 +00:00
phpnut
d3896854f5
Adding fix for join table using UUID's as the primary key.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7775 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 13:29:32 +00:00
mark_story
1b456f2cf1
Applying patch from 'davidpersson' fixing code spacing. Closes #5643
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7772 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 00:10:44 +00:00
mark_story
c2fee87b63
Added patch from 'shirsch' to fix Model::deleteAll() not returning a boolean value when callbacks = true. Updated test. Closes #5546
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7769 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-22 02:37:05 +00:00
renan.saddam
e3fb56f6be
Fixing bug when primaryKey is not id. Fixes #5615 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7757 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-17 00:01:36 +00:00
phpnut
f51ae718e6
Closes #5607 , Configure::store can no longer be uses statically.
...
Corrected test cases to call Configure statically.
Added fixes for tests added in [7741]
Closes #5594 , Related models should be built when $useTable = false;
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7748 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 17:30:08 +00:00
phpnut
4c2a3ee02f
Closes #5591 .
...
Modified models in models.php setting the with key since these models are not used unless the with key is defined in the association.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7740 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-13 01:17:34 +00:00
phpnut
f139b0312f
Fixes #5591 Dynamic With Models broken after changeset [7732]
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7739 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-12 22:21:55 +00:00
phpnut
47f78d13a0
Adding more optimizations for the static classes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7736 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-12 03:52:24 +00:00
phpnut
93a54735d6
Fix loading of dynamic 'with' model, each dynamic 'with' would attempt to find and load the file 5 times, fixed so no it longer attempts loading a file if the 'with' key is not defined in the association.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7732 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-12 02:16:43 +00:00
phishy
091325bcd1
Fixes #5539 - $config prototype was not being set correctly
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7709 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-07 00:55:51 +00:00
mark_story
b5473a5f9b
Refactoring variable names, more readable variable names.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7705 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-06 02:44:05 +00:00
nate
ae8a6b958a
Disabling query caching in DboMssql::listSources(), fixes #5514
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7701 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-04 22:06:56 +00:00
mark_story
b2bda3d1bd
Changing spelling of neighbours to neighbors. Closes #4948 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7696 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-03 21:23:13 +00:00
mark_story
2a115d0fa3
Updating doc block for Model::find() adding references for missing find types. Closes #4948
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7695 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-03 18:06:15 +00:00
gwoo
443491e7fa
reverting changes from 7668
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7689 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-02 02:16:09 +00:00
nate
2bfd5a4b3e
Refactoring schema test and fixing formatting, refactoring Model::_findCount() to use DboSource::calculate() in all cases, closes #4501
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7684 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 15:27:29 +00:00
nate
8758f36915
Correcting table index formatting for schema generation in DboPostgres, fixes #5471 , docblock formatting fixes in ClassRegistry.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7682 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-30 18:59:17 +00:00
mark_story
1ae8cda6c2
Adding documentation to beforeValidate(). Closes #5498
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7681 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-30 00:13:15 +00:00
gwoo
f8f4bcc16c
fixes #5482 , playing with model that uses alias
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7668 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 15:27:36 +00:00
mark_story
1a0d87ba83
Correcting type and expanding documentation for Model::invalidate(). Closes #5481
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7667 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 15:14:31 +00:00
gwoo
e6b994bcb1
updating handling of required classes, fixes #5480
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7666 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 14:03:16 +00:00
mark_story
370b20dce6
Minor optimizations
...
Closes #5249 and #5282
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7664 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 00:46:53 +00:00
mark_story
62168bfe0f
Updating doc blocks to include access and return PHPDOC tags.
...
Removing use of e() in Debugger.
Fixing code formatting in CookieComponent
Closes #5477
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7662 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 16:49:56 +00:00
nate
eb7fb6d7e3
Re-implementing form hashing security to using string-based keying. Fixes #5262 , fixes #5300
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7658 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 23:02:14 +00:00
DarkAngelBGE
4ce3f21608
adding missing options array in Model::beforeValidate(0 and Model::beforeSave() as they are called with them out of the model and it is good practice, although they are meant to be overriden; closes #5470
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7650 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 18:50:27 +00:00
mark_story
676459224c
Adding patches from andy__ to dbo_odbc
...
Schema related functions will not work due to the way odbc works.
Closes #5398
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7646 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 02:59:05 +00:00
DarkAngelBGE
caa4e321f2
Fixing unneeded conditions in child queries when conditions are present in the model declaration; fixes #5323
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7645 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 20:08:31 +00:00
nate
24b444ca55
Fixing behavior initialization in model construction, adding Set::flatten() utility method for future refactoring, updating Set test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7644 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 16:32:41 +00:00
nate
d9b357d05c
Making Model::$_findMethods protected, and fixing fatal error when table calls are attempted on a model with a missing table
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7640 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-21 04:09:16 +00:00
gwoo
931d996d90
fixes #5438 , multiple binding with alias
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7632 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 15:27:43 +00:00
phpnut
8ae5866a1c
Additional optimization refactoring
...
Removed ability to use deprecated / with plugin, helper, etc combinations. The dot notation is only allowed from this point forward.
Corrected tests for the above changes.
Corrected formating in basics.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7623 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 03:09:19 +00:00
nate
66240f0c5d
Refactoring DboPostgres and adding '.' to sequence name detection, fixes #5424 , fixing code formatting
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7620 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 00:23:17 +00:00
mark_story
26a6a0e36f
CakeSchema no longer takes tables that are not properly prefixed. Tests added to show prefixed db config and schema read. Closes #5413
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7613 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 01:47:19 +00:00
mark_story
65cbbcf019
Changing '.id' to primaryKey reference. Closes #5437
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7610 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-16 00:42:01 +00:00
mark_story
ca584c5f1d
Removing error suppression from mysql and mysqli drivers. Refs #3877
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7599 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 02:28:12 +00:00
phpnut
cb487bd6e6
More optimization refactoring.
...
Fix cache but causing object_map to be created and deleted on each request.
Replacing function and method calls with better performing code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7596 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 05:11:34 +00:00
nate
8b3a0a8782
Adding $options param to DboSource::execute()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7594 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 02:09:38 +00:00
gwoo
970ef7dc56
fixing issue in schema when model does not use a table. updating cache test to properly test Cache::set()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7592 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-11 13:35:11 +00:00
phpnut
a6f19c8240
Adding fix for Model::afterFind(); not having access to $this->data when using TreeBehavior
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7586 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:42:18 +00:00
nate
13545bcf79
Removing loose type detection from DboDb2, no longer needed since type information is now explicitly passed. Fixes #4458
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7583 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 06:17:10 +00:00
nate
5d746a938d
Removing quotes when saving binary data in DboMssql, fixes #5242
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7582 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 06:00:54 +00:00
nate
ee0e81406c
Restoring previous patch to DboMssql
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7580 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:41:51 +00:00
nate
0b227e6c24
Fixing DboMssql::buildColumn() to correct columns being created with incorrect null constraints, fixes #5373 , fixes #5381
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7577 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:23:11 +00:00
DarkAngelBGE
8e546b23b8
removing commented code from dbo_source
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7576 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 04:47:52 +00:00
DarkAngelBGE
19d4f3d596
adding a couple 'return home early' refactorings
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7572 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-08 20:33:48 +00:00
AD7six
ff7428e676
adding connection name to sql debug log
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7554 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 15:29:48 +00:00
nate
57c633a64f
Adding proper callback disabling for multiple finder types, fixes #5343
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7549 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 01:00:08 +00:00
mark_story
a8bb2eb826
Fixing saveAll() using validate => only, applied patch from 'ADmad'. saveAll() now returns value of all validations, not just the last row to be validated. Closes #5376 . Tests added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7547 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-03 16:44:48 +00:00
DarkAngelBGE
58bbba0c4f
refactoring DboSource::_mergeConditions()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7540 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-01 19:31:28 +00:00
DarkAngelBGE
0b8006625c
fixing missing $group variable in mssql driver renderStatement method, closes #5357 , changing indetation in dbo_mssql.test.php
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7539 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-01 19:00:00 +00:00
nate
26e2747180
Fixing quoting of numeric literals in DboSource::order(), closes #5360
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7537 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 20:40:15 +00:00
phpnut
6bdc60731f
Adding more changes to improve performance. Fixes loading of Models when instance has already been created in the registry
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7527 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 16:43:15 +00:00
AD7six
5e11e1490b
fixes #5339 incorrect bracketting for bindModel statement in tree behavior recover method. removing the actsAs key
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7526 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 14:05:58 +00:00