Commit graph

193 commits

Author SHA1 Message Date
mark_story
dff90e892e Adding Template Task, removing CodeGenerator. 2009-05-12 21:19:15 -04:00
mark_story
3ea2b5a87d Moving CodeGenerator class into bake shell.
Updating FixtureTask and test cases.
Updating template for fixtures.
2009-05-10 22:16:38 -04:00
mark_story
a6d16500a9 Adding CodeGenerator in a temporary place. 2009-05-10 13:33:52 -04:00
mark_story
4b75c6b78e minor cleanup 2009-05-10 12:43:38 -04:00
mark_story
d066a4a0d6 Extracting method out. 2009-05-10 01:35:59 -04:00
mark_story
ec443c4371 Moving method and adding tests. 2009-05-10 01:04:40 -04:00
mark_story
5c48603bd0 Refactoring methods, adding self join association detection.
Test cases updated.
2009-05-09 23:32:22 -04:00
mark_story
4b4875e0a9 Renaming methods, fixing issue with habtm bleed through.
Added test cases for all relation generation.
2009-05-09 21:28:51 -04:00
mark_story
0467641469 minor cleanup 2009-05-09 02:22:29 -04:00
mark_story
31a266fc4c Refactoring association generation. 2009-05-09 02:20:46 -04:00
mark_story
11e2912945 Making output fit nicely on 80col display. 2009-05-09 01:00:14 -04:00
mark_story
8775f15375 Updating multiple validation generation.
Adding test coverage for interactive validations.
2009-05-09 00:35:03 -04:00
mark_story
103b97493a Adding test cases for validation generation
Updating validation generation functions.
2009-05-08 01:09:19 -04:00
mark_story
fae7ed5584 Refactoring model task. Starting to refactor
validation generation to enable multiple validation.
2009-05-08 00:49:26 -04:00
mark_story
fd5b422357 Fixing error when no connection is specified and
bake fixture Foo is used.
2009-05-07 23:59:43 -04:00
mark_story
37d81cb92d Adding __()
Refactoring duplicate code, and pulling out separate methods.
2009-05-05 00:43:29 -04:00
mark_story
bb2f6b2ef5 Consolidating $useDbConfig to $this->connection.
Updating test cases.
2009-05-05 00:10:24 -04:00
mark_story
f4dc4bc1ed Adding test cases to FixtureTask.
Removing useless param.
2009-05-04 23:08:15 -04:00
mark_story
e21cc3db72 Adding test cases for bake()
Adding support for -connection param
Adding partial support for -plugin param
Separating file writing and code generation functions.
Updating help()
2009-05-03 21:43:22 -04:00
mark_story
1cc3a6ecfb Removing unused variable. 2009-04-29 22:50:57 -04:00
mark_story
40ebdf8aac Adding fixture all command.
Fixing errors with maxlength and timestamp fields
Adding return for ModelTask::listAll()
2009-04-29 22:50:43 -04:00
mark_story
d3fe3d5959 Adding fixture <name> baking 2009-04-29 22:42:11 -04:00
mark_story
2b87be1d7c Updating FixtureTask help
Adding test case for FixtureTask
2009-04-29 22:40:49 -04:00
mark_story
80287223f1 Additional Test for ModelTask 2009-04-29 22:25:42 -04:00
mark_story
f992406501 Removing fixture generation from ModelTask 2009-04-29 21:18:08 -04:00
mark_story
0b2232d05a Updating fixture task. Refactored methods.
Multiple rows can now be generated.
2009-04-29 20:52:12 -04:00
mark_story
d705e8943a Refactoring table naming interaction into getTable() 2009-04-28 21:20:34 -04:00
mark_story
0b40e5c709 Refactoring out to use DbConfig::getConfig
Continuing fixture bake
2009-04-28 20:45:07 -04:00
mark_story
802ed73c0a Adding getConfig() so other tasks can pick connections more easily. 2009-04-28 20:44:23 -04:00
mark_story
b5cc69c37c Adding Fixture task to bake. 2009-04-28 20:32:15 -04:00
mark_story
f7a7b07740 Turning off interactive for bake all commands. 2009-04-27 23:58:36 -04:00
mark_story
1291d4f025 Adding cake bake view all 2009-04-27 23:55:34 -04:00
mark_story
73b9cbfead Adding help text entries for controller all and model all. 2009-04-27 23:43:06 -04:00
mark_story
f0543987e1 Adding cake bake controller all 2009-04-27 23:36:57 -04:00
mark_story
798a9d5e43 Adding cake bake model all. 2009-04-27 23:15:28 -04:00
mark_story
fcb8ef25d6 Renaming setUp() to startTest() in Controller task. Fixes issues with fixtures and baked controller tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8142 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-14 23:13:43 +00:00
renan.saddam
78daa13900 Defining the default answer as the current path. Fixes #6204
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8115 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-18 00:43:21 +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
2a36e5f8cd Adding Test case for TestTask
Fixing path appending issues caused by continual baking.
Fixes #6099

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8027 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 14:22:11 +00:00
nate
440c629931 Fixing glob() handling in extract shell, added extract shell test, partial fix for #6044, code formatting changes in CakeTestCase.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8026 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 06:22:34 +00:00
mark_story
6f51f9ea2b Fixing test and fixture generation. removing use of start() and replacing with startTest(). Changing length of lorem text for text field type as well.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7903 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-03 20:24:24 +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
renan.saddam
50752a840a Added support to multiline plural message string. Fixes #5663.
Converting "\r\n" (Windows) to "\n" (Non-Windows) when extracting and when translating the message.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7834 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 22:57:50 +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
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
1aa0fc069a Updating baked model tests to reflect newer style of test that uses ClassRegistry::init() instead of a TestModel class. Refs #5549
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7747 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 17:00:53 +00:00
gwoo
7266f86d14 fixing some errors in schema and test shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7657 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 13:49:37 +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
gwoo
e632f79c49 fixing view baking based on methods in the controller
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7564 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-07 13:12:27 +00:00
gwoo
66589e2f18 fixing undefined index in model task when defining custom additional associations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7563 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-07 13:03:51 +00:00