mariano.iglesias
f1d25bcc20
Removing need to explicitly set IDs for Containable test, added in r6989
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8098 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-14 22:24:42 +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
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
f817cb9a07
Added more tests to resetBindings at ContainableBehavior. Closes #4988 , #4934 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7532 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 02:13:55 +00:00
renan.saddam
8bbc0d7078
Added test case to prove #5096 . Refs #5096
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7340 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-16 00:48:58 +00:00
gwoo
c004dd68a5
removing empty lines from the end of test cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7295 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 08:17:02 +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
gwoo
ca38b035b5
fixes #4790 , restoring associations in Containable. Thanks to maular for the patch
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7245 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-23 04:41:15 +00:00
mariano.iglesias
f7c447aa32
Adding test to containable, disproves and closes #4790
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7233 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-22 00:02:30 +00:00
mariano.iglesias
689c0d9762
Fixing matches from previous tests added to Containable
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7232 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-21 23:55:03 +00:00
mariano.iglesias
8d8fb99e37
Adding one more test case to Containable, refs #4872
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7231 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-21 23:54:00 +00:00
mariano.iglesias
9746c713fa
Adding test cases to Containable, disproves and closes #4872
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7230 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-21 23:52:38 +00:00
mariano.iglesias
64d49c8afc
Adding test cases to Containable, disproves and closes #4934
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7229 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-21 23:41:54 +00:00
AD7six
a978fb2661
adding Doc blocks to everything in tests folder missed in the first pass.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7126 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-05 15:20:45 +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
mariano.iglesias
1d56175560
Adding missing attach to replicate issue what was already solved for #4790
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7098 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-03 02:41:29 +00:00
AD7six
f44c755475
Adding doc blocks to everything in the tests dir
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7094 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 19:22:55 +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
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
mariano.iglesias
a94c890734
Adding test to show original associations working correctly, disproves and closes #4790
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7068 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 02:59:55 +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
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
mariano.iglesias
8f92952d46
Allowing paginate() to send any extra parameters to the find call, and updating it to use new find notation.
...
Updating test in Containable to reflect how to properly use pagination: just set your 'contain' setting as you do with other pagination parameters, for example:
var $paginate = array('Article' => array('conditions' => ..., 'contain' => array( ... ));
and then do your normal paginate(), without having to set reset to false nor call resetBindings(). Check the test case for an actual example.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7010 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:25:10 +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
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
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
the_undefined
e1e71b6d93
Added test disproving a bug report, see #4693
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6976 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:34:42 +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
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
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