Commit Graph

73 Commits

Author SHA1 Message Date
Carsten Brandt
9c92600b54 Merge pull request #3728 from umneeq/gii-codestyle-fixes
Gii codestyle fixes
2014-06-08 23:26:19 +02:00
Dmitry Chernikov
c9f79a2cb0 Gii codestyle fixes #2 2014-06-08 17:56:35 +03:00
Dmitry Chernikov
27a9bc759e Gii codestyle fixes 2014-06-06 19:33:08 +03:00
Carsten Brandt
d8c5595458 refactored gii enum dropdown generator
PR #3676
2014-06-04 09:53:09 +02:00
Joel Small
25fa2f2df9 Formatting changes to new enum field 2014-06-04 08:45:48 +09:30
Joel Small
e636174992 Added ability to generate dropdown from Enum field
Alternatively, if statement could be: if(substr($column->dbType, 0, 4) === 'enum'), however expected implemented option to be more robust across other database formats.

Created after followup on this issue:  https://github.com/yiisoft/yii/issues/292#issuecomment-44780779
2014-06-03 08:32:40 +09:30
Qiang Xue
58967f13a2 guide WIP [skip ci] 2014-05-10 19:16:14 -04:00
johonunu
c63edd3181 Reformating code. Removed \t signs, using spaces. Edited Changelog. 2014-05-01 10:08:11 +02:00
johonunu
6f9aee90ea Search model not required anymore in crud generator 2014-05-01 00:15:36 +02:00
suralc
1ad5c4c3fe Only valid php classes should pass validation 2014-04-29 20:28:57 +02:00
suralc
14e4e836e2 Fixed regex-escaping in crudgenerator 2014-04-29 15:26:13 +02:00
suralc
4230f7664d Fix #3265
Adding a new additional validation rule in the gii-crud generator enforcing the expected format.
2014-04-29 14:58:57 +02:00
Carsten Brandt
fe14f0c5e3 fixed all the PHPdoc in extensions 2014-04-23 03:25:11 +02:00
Luciano Baraglia
24e0bfcfed Gii missing space in crud update template [skip ci] 2014-04-19 04:26:52 -03:00
João José
831be93868 Typecast model id only if using mongodb AR class 2014-04-17 15:07:28 +01:00
João José
21dff54d6b Typecast model id only if using mongodb AR class 2014-04-17 14:50:29 +01:00
João José
b1beae71f3 Fixed format 2014-04-17 11:53:51 +01:00
João José
de1df94552 Typecast model id only if using mongodb AR class 2014-04-17 11:52:11 +01:00
João José
377b01d2c1 Typecast model Id so that urls don't break when using MongoDB object Id's 2014-04-16 15:54:55 +01:00
Alexander Makarov
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
Qiang Xue
a15a3835c7 Moved all filter classes to namespace yii\filters 2014-04-05 01:00:14 -04:00
Qiang Xue
3ea6343799 improved search model [skip ci] 2014-04-03 09:48:17 -04:00
Qiang Xue
b23cb17713 fixed search model to use base model class. 2014-04-03 08:27:31 -04:00
Qiang Xue
1e098ebd4b simplified search model [skip ci] 2014-04-02 21:20:27 -04:00
Qiang Xue
f747768fcf improved search model generator. 2014-04-02 20:47:01 -04:00
Carsten Brandt
745c20538c Merge pull request #2885 branch 'query-filter'
* query-filter:
  added CHANGELOG lines
  added tests for redis
  added proper tests for elasticsearch
  removed unnecessary code duplication
  adjusted tests
  typo
  renamed Query::filter() to Query::filterWhere()
  reverted elasticsearch rename of filter
  Adjusted search model code generated by Gii CRUD generator
  Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
  Gii CRUD generator now uses new addFilter method
  Query::filter() adjustments
  fixes #2002
  Added tests for Query::filter()

Conflicts:
	framework/db/QueryTrait.php
2014-04-02 19:33:40 +02:00
Carsten Brandt
51eabf527f typo 2014-04-02 18:50:49 +02:00
Carsten Brandt
96f1c4c10b renamed Query::filter() to Query::filterWhere() 2014-04-02 18:48:14 +02:00
Alexander Makarov
36c59dce9c Adjusted search model code generated by Gii CRUD generator 2014-03-31 16:52:40 +04:00
Qiang Xue
338b6aa7d3 Refactored ActiveRecord::find() so that find(null) will also return an ActiveRecord instance instead of ActiveQuery. 2014-03-30 19:01:02 -04:00
Alexander Makarov
94fd4e7e06 Gii CRUD generator now uses new addFilter method 2014-03-31 02:44:30 +04:00
Qiang Xue
797b0430b9 Added missing using statement in Gii. 2014-03-24 08:28:22 -04:00
Luciano Baraglia
1d7f485444 CS style fix 2014-03-21 00:44:00 -03:00
Luciano Baraglia
c1fac6eb5e More changes in GII I18N 2014-03-21 00:01:46 -03:00
Luciano Baraglia
311bd469a1 Changes in GII I18N 2014-03-20 19:38:00 -03:00
Luciano Baraglia
d54c6159d9 Add category for I18N in GII 2014-03-20 18:57:52 -03:00
Luciano Baraglia
8c8f3d0cf2 Proposal: GII generate strings for I18N 2014-03-20 00:34:25 -03:00
Tobias Munk
21d02e1483 fixes #2776 renamed default template folder 2014-03-17 23:49:18 +01:00
Luciano Baraglia
7c75b9bc53 GII generated files changes according to PSR2 2014-03-16 17:50:32 -03:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Alexander Makarov
cd8e626018 Fixes #2737 2014-03-13 19:43:06 +04:00
Alexander Makarov
6d97ded6c6 Fixes #2659 2014-03-08 03:01:14 +04:00
AlexGx
1982efbdfe many phpcs fixes 2014-03-05 00:22:55 +02:00
Qiang Xue
6bdf02dc93 Fixes #2601 2014-03-02 17:04:40 -05:00
Alexander Makarov
80d3afa0dc Gii extension generator adjustments 2014-02-26 12:46:57 +04:00
Qiang Xue
976532c131 fixed typo 2014-02-24 07:12:33 -05:00
Qiang Xue
73a15c2bbf Merge pull request #2504 from thiagotalma/master
Allow add a condition telling the table to avoid ambiguity error.
2014-02-23 18:15:45 -05:00
Qiang Xue
50308d8788 Fixes #2491: Added support for using the same base class name of search model and data model in Gii [skip ci] 2014-02-22 15:01:18 -05:00
Thiago Talma
ba9f5d6521 Allow add a condition telling the table to avoid ambiguity error. 2014-02-20 17:20:10 -03:00
Carsten Brandt
b7fddd8dd6 Added LinkPager::$linkOptions
fixes #2367
2014-02-20 19:14:46 +01:00