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
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
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
nate
188ff4737d
Removing database-generated primary keys from fixture data, fixed primary key handling in schema generation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6354 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 07:02:33 +00:00
nate
3eb04c36db
Fixing database drivers for UPDATE/DELETE changes, updating drivers to comply with model tests, most passing. Fixes #3794 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6350 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-09 13:32:45 +00:00
phpnut
5c1b96330b
"Correcting doc tags"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6318 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-03 18:52:53 +00:00
phpnut
6dec91a89f
"Fixes #3814 , Bug in hasAndBelongsToMany"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6317 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-03 18:50:59 +00:00
nate
695ac50fd7
Adding full join model support, closes #828 , closes #1845
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6299 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 23:57:17 +00:00
phpnut
cb53dc61b0
"Closes #2897 , Built-in file validation.
...
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
nate
5abe66289d
Implemented 'counterCache' and 'counterScope' for belongsTo associations
...
Exempted 'created', 'updated' and 'modified' fields from whitelist when saving, closes #3720
Updated Model::bind(), closes #2355
Adding Model::saveAll() to save multiple records and associated records, closes #3615
Replacing Model::generateList() with Model::find('list'), deprecates Model::generateList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6295 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 19:34:40 +00:00
nate
4d68d6c6dd
Adding fixtures for 'with' association tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6245 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 05:35:37 +00:00
nate
0d469ac4ba
Fixing ability to specify select fields for join models, and adding tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6230 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 17:03:19 +00:00
phpnut
27721cb730
"Fixes #3726 , Saving date, datetime, and time into database (form->input)"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6210 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 05:40:25 +00:00
phpnut
608f32172e
"Adding missing fixture"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6167 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-17 18:07:36 +00:00
gwoo
cf4aabd315
adding cache test model fixture
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5995 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-15 09:52:29 +00:00
nate
8f12e402df
Fixing ACL test, misc ACL lookup optimizations
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5916 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 00:17:37 +00:00
phpnut
7b914bab9f
Correcting tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5893 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 17:04:14 +00:00
mariano.iglesias
6591c8f79b
Adding test for #3455 replicating issue, Secondary model array in model data causes corruption
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5892 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 16:29:50 +00:00
mariano.iglesias
aaca183da1
Adding test case for #3430 , where different belongsTo bindings that use same class but different alias name in various models would break under certain circumstances
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5865 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 20:20:48 +00:00
phpnut
7ebb27fccc
Fixes #2982 , TreeBehavior::verify, non-portable SQL, badly quoted conditions
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5806 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 21:43:48 +00:00
phpnut
603ed0e39c
Initial start of Unicode support, I may move this handling of this to a unicode class.
...
Implemented multi-byte methods for:
String::strpos();
String::stripos();
String::strtoupper();
Added test cases for String::utf8() String::ascii() String::strpos() String::stripos() and String::strtoupper()
Corrected file encodings.
Added loading of configurations from cake/config
Added specifc case folding files to cake/config/unicode/casefolding
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5691 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-24 23:49:54 +00:00
phpnut
bd3e702d77
changed i18n schema to use only one db table for translations
...
changed fieldname 'row_id' to 'foreign_key'
now allows fallbacks for not-existing translations by setting model's locale to array of locales
model used for hasMany associations and for saving/deleting of translation records is configurable by Model::$translateModel property, db field 'i18n.field' is configurable by property $displayField of this custom model, instance of this model is obtainable by $this->ModelName->translateModel()
Added tests for translate behavior.
Added i18n shell script
Correcting translation function calls in various files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5669 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-18 04:16:04 +00:00
mariano.iglesias
d05a5d4804
Adding new failing test case to showcase problem with HABTM and belongsTo
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5630 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-11 21:00:58 +00:00
nate
3723885be3
Adding ACL node locator fix for AclNode::node() (Ticket #2976 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5588 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-27 03:16:49 +00:00
gwoo
0533bbd92c
updating schema reading
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5579 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-25 03:59:21 +00:00
gwoo
3a5f89f3e2
updating fixtures
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5573 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-23 22:38:04 +00:00
gwoo
8bb67d9f6a
Adding Schema support, updated fixtures, deprecated loadInfo, changed Dbo::describe in all dbos, fixed tests,
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5563 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-21 21:46:59 +00:00
AD7six
59f3dfc427
Minor cleanup to tree test and fixture. No functional changes.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5558 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-20 17:46:44 +00:00
mariano.iglesias
f2d4894f73
Adding new test case to show failing inner associations
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5542 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-17 19:03:49 +00:00
nate
5c48a926e7
Adding model test fixture and additional Router test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5527 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 16:26:04 +00:00
gwoo
3769fa796d
updating auth, acl and tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5410 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 21:01:31 +00:00
gwoo
25558fbd33
updating Auth test with AuthUser and fixture
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5392 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 00:49:36 +00:00
phpnut
90299c0d0e
Removed extra slash in test paths.
...
Removed extra lines in files.
Corrected header in file
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5340 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 05:56:36 +00:00
phpnut
ff01b3a031
Adding enhancement and tests from #2159
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5331 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 05:01:39 +00:00
nate
57891baadf
Adding fixtures for afterFind() test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5234 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-03 21:58:14 +00:00
mariano.iglesias
80e40d6910
Adding tests trying to replicate #2451 and more variations of fake threaded self join
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4902 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:25:57 +00:00
phpnut
97aa991f2d
Correcting svn properties on files
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-15 07:19:31 +00:00
mariano.iglesias
003e30673e
Added test for combination of self joins and belongsTo
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4773 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:04:55 +00:00
mariano.iglesias
f4df563a84
Removing unnecessary requirements
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4751 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 07:16:37 +00:00
mariano.iglesias
f12d025a23
Implementing AclNodeTest through fixtures
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4749 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 07:13:33 +00:00
mariano.iglesias
2f5fa26e29
Simplified failing test in model.test.php
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4736 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 16:03:42 +00:00
mariano.iglesias
024fc47407
Added test that replicates issue in bakery with nested models after doing some bindModel() and unbindModel()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4723 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 04:40:18 +00:00
phpnut
3a62793d0e
Adding fix for Ticket #2232 .
...
Added tests for ticket
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4714 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-30 00:08:10 +00:00
nate
381ec92b4c
Adding tests and fixtures for self-join associations, and fixing JS syntax for 'indicator' (Ticket #2302 )
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4705 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-29 02:16:00 +00:00
phpnut
44f4d8d6f8
Adding headers to files.
...
Formating doc comments
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4668 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 22:11:06 +00:00
phpnut
3a4a49ef03
Adding changes to test suite submitted by Mariano
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4667 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 21:59:08 +00:00