Commit Graph

234 Commits

Author SHA1 Message Date
Etienne Quiel
d544bfd3e2 Allow absolute namespace in Gii's base class 2014-02-19 10:34:09 +01:00
munawer-t
1a52aa30cb some more typos 2014-01-07 16:01:12 +05:30
Carsten Brandt
d6f43689a3 fixed exception in ModelCode::validateBaseClass
fixes #3009
2013-11-03 16:07:35 +01:00
Paul Klimov
a0a9165a3e Gii model generator template updated to escape single quotes in the labels. 2013-09-18 10:52:05 +03:00
Alexander Makarov
8dbc9017d9 Gii now properly escapes single quotes in attribute labels. 2013-07-30 16:08:32 +04:00
Alexander Makarov
dea0487f81 There was unnecessary echo in CRUD views generated by Gii 2013-06-04 23:56:56 +04:00
Carsten Brandt
595787f0c2 Merge pull request #2004 branch '2003-gii-namespaces' of https://github.com/etienneq/yii
* '2003-gii-namespaces' of https://github.com/etienneq/yii:
  changed validation rules and error messages for base classes
  changelog

Conflicts:
	CHANGELOG
2013-05-27 04:36:55 +02:00
Carsten Brandt
68988e1511 Added note about module name case to gii view
fixes #2117
2013-04-25 01:05:15 +02:00
Carsten Brandt
40afc608c7 Added comment about ajax validaton to gii template
related to #2213
2013-04-25 00:43:59 +02:00
resurtm
bf8cfe1c82 Merge branch 'master' of github.com:yiisoft/yii into fixes-289 2013-04-23 21:26:41 +06:00
resurtm
d786dd3b1c Fixes #1827: Gii wasn't properly handling table name with the schema part for PostgreSQL. 2013-04-03 20:29:45 +06:00
resurtm
8f2a9a529d Fixes #2283: Gii Model Generator's tooltips are not working and always invisible. 2013-04-03 18:15:17 +06:00
resurtm
400d4f5cc1 Checkbox state checking forgotten. 2013-03-30 23:31:43 +06:00
resurtm
940fe5810e Enhancements to the #2277.
1. Change log line fixed.
2. Attribute names fallback mode: column comments are preferred over column names.
3. Related view altered.
2013-03-30 23:19:02 +06:00
resurtm
e5f05d0458 Fixes #289: Gii module could be submodule of an another module. 2013-03-30 21:40:52 +06:00
resurtm
ec38f8e378 Enh #1928: Gii is now able to use table columns' comments as the attribute labels of a new generated model. 2013-03-30 20:17:15 +06:00
borales
6d19a150d4 Replacing spaces with tabs, removing dots
[ci skip]
2013-03-06 20:59:38 +02:00
borales
2f68a75235 Replacing spaces with tabs
[ci skip]
2013-03-06 08:48:59 +02:00
borales
07975cad64 Fixing spaces
[ci skip]
2013-03-06 01:06:46 +02:00
borales
a7af2c5371 Fixing some typos, PHPDocs
[ci skip]
2013-03-06 00:24:35 +02:00
Etienne Quiel
6f9f1b5772 changed validation rules and error messages for base classes 2013-01-18 16:11:17 +01:00
Abdul Malik Ikhsan
6247adaf26 change copyright symbol 2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a update copyright year
from 2011 to 2013
2013-01-15 17:28:17 +07:00
Carsten Brandt
77d0e6d421 added @todo comments to gii model template
Fixes #1951
2013-01-11 16:04:10 +01:00
Maurizio Domba (mdwork)
e35e07dfc7 Fixes #1867 Gii model generator tableName autocomplete 2013-01-09 12:38:31 +01:00
Carsten Brandt
eac1c40c36 added plural rule for staff to CCodeModel too
PR #1930
2013-01-09 10:58:11 +01:00
Alexander Makarov
be34d29ed5 modified search() description, applied changes to cli generator 2013-01-08 00:46:16 +04:00
Saphronov Mark
dd8aa5ed93 Improved understandability of the model template
I propose the following improvements in the default Gii template for model:

1. Auxiliary appendixes which are `model` and `getDbConnection` should be in very bottom of the model class and not in the very top, because on top of class definition should reside the most important features, which here undoubtedly are `tableName`, `rules` and `relations`.
2. Docblock for `search` method includes the explanations about it, because it's not immediately clear for a newcomer why this method exists and how it should be used.

By the way, this `search` method is a clear violation of single responsibility principle anyway, because it forces a model to search for set of other models of the same class, and ActiveRecord is not about it.
2012-12-26 16:20:51 +04:00
nsanden
535baddba5 Forgot to surround first letter with ( and ) 2012-11-30 17:44:28 -08:00
nsanden
45bd660ae8 Added some regex replacements for pluralize 2012-11-30 16:12:15 -08:00
Maurizio Domba (mdwork)
1fb3b9dc8a Fixes issue #1441 updated yiigridview.js method calls with the new syntax 2012-11-20 14:13:23 +01:00
Sonko Dmitry
eadbdfef65 Fix #1572: Gii model code generator fixed
If we use "schemaCachingDuration" value in db config, then use Gii model generator we have one problem. If table scheme updated without migration, we have old schema cache. I'm offer forcibly update db scheme if "schemaCachingDuration" used.
2012-10-19 14:24:56 +06:00
Sonko Dmitry
ed65477085 Fix #1572: Gii model code generator
If we use "schemaCachingDuration" value in db config, then use Gii model
generator we have one problem. If table scheme updated without
migration, we have old schema cache. I'm offer forcibly update db scheme
if "schemaCachingDuration" used.
2012-10-18 17:53:38 +06:00
Sonko Dmitry
56cba4e363 Fix #1572: Gii model code generator fixed
wxT+h

If we use "schemaCachingDuration" value in db config, then use Gii model
generator we have one problem. If table scheme updated without
migration, we have old schema cache. I'm offer forcibly update db scheme
if "schemaCachingDuration" used.
2012-10-18 16:30:13 +06:00
Sonko Dmitry
aa04a6e3c9 Gii model code generator fixed
If we use "schemaCachingDuration" value in db config, then use Gii model
generator we have one problem. If table scheme updated without
migration, we have old schema cache. I'm offer forcibly update db scheme
if "schemaCachingDuration" used.
2012-10-17 14:49:51 +06:00
Sonko Dmitry
8dbf37ab2a Gii model code generator fixed
If we use "schemaCachingDuration" value in db config, then use Gii model
generator we have one problem. If table scheme updated without
migration, we have old schema cache. I'm offer forcibly update db scheme
if "schemaCachingDuration" used.
2012-10-17 14:47:05 +06:00
Sonko Dmitry
4e9ab642a9 Gii model code generator fixed
If we use "schemaCachingDuration" value in db config, then use Gii model
generator we have one problem. If table scheme updated without
migration, we have old schema cache. I'm offer forcibly update db scheme
if "schemaCachingDuration" used.
2012-10-17 13:04:09 +06:00
Sonko Dmitry
5f7f3df796 Gii model code generator fixed
If we use "schemaCachingDuration" value in db config, then use Gii model
generator we have one problem. If table scheme updated without
migration, we have old schema cache. I'm offer forcibly update db scheme
if "schemaCachingDuration" used.
2012-10-17 12:24:29 +06:00
Alexander Makarov
51333b6c95 Merge pull request #1539 from DaSourcerer/gii-template-phpdoc
PHPDoc-Complete Comments for Controller Template
2012-10-06 09:27:23 -07:00
DaSourcerer
79fdf1d8fb Replaced CModel with actual model name 2012-10-06 17:50:12 +02:00
DaSourcerer
4e48424352 Completed phpdoc comments for the controller template 2012-10-06 13:43:08 +02:00
Alexander Kochetov
486723805e else if => elseif 2012-10-03 10:20:14 +04:00
Max Lapko
df22691a8a Change id hardcode value in gii generator (model view) 2012-09-16 21:32:10 +03:00
Alexander Makarov
d865a3bab8 Fixes #1057 Removed SVN ids 2012-09-09 22:23:45 +04:00
Alexander Makarov
f182d6041c Bug #810: Gii now adds a number to the end of relation name if same named relation already exists instead of not generating relation 2012-09-08 16:28:59 +04:00
Carsten Brandt
21c24a0bfe reverted pull request #1325
fix did not address the real problem
2012-09-03 19:45:17 +02:00
tomaszkane
36e01c71bf tabs... 2012-09-03 12:06:19 +02:00
tomaszkane
407294de4a gii: better default validation "length" rule for fixed-point / floating-point field type (MYSQL) 2012-09-03 12:02:14 +02:00
mdomba (mdlap)
22afb3fef0 forgot to remove the comment doc 2012-08-18 00:37:20 +02:00
mdomba (mdwork)
902d00dfdc prevent occasional errors (invalid connectionId) 2012-08-17 15:38:39 +02:00