Commit Graph

217 Commits

Author SHA1 Message Date
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
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
mdomba (mdwork)
c980ff506c proper action for autocomplete 2012-08-17 15:37:35 +02:00
mdomba (mdwork)
2686ca3e5f set new autocomplete options when connectionId chages 2012-08-17 15:36:58 +02:00
mdomba (mdwork)
72c2498b72 calling ajax from automcomplete has performace issues 2012-08-17 15:35:48 +02:00
mdomba (mdwork)
41b71d901e no braces for single lines 2012-08-17 15:34:51 +02:00
Alexander Makarov
17479ecc0f fixed crud phpdoc hint 2012-08-15 14:02:02 +04:00
mdomba (mdwork)
d071f08bae prevent output of spaces on new line in new created model 2012-08-09 15:39:11 +02:00
mdomba (mdlap)
a40ac64238 better error message for wrong connectionId 2012-08-09 00:30:01 +02:00
mdomba (mdlap)
ba6ab46d79 move action to proper controller 2012-08-08 18:54:11 +02:00
mdomba (mdwork)
0ff56d34d7 added parameter description 2012-08-08 15:37:41 +02:00
mdomba (mdwork)
c621bfeb51 Issue #1099 - changed connectionID to sticky text field 2012-08-08 15:01:48 +02:00
mdomba (mdwork)
f7e148098d Merge branch 'master' of git://github.com/yiisoft/yii into 1099-gii-model-generator-connections 2012-08-08 12:33:32 +02:00
Greg Molnar
f71703f60f removed font duplication from gii css 2012-08-06 14:34:26 +02:00
Leo R. Lundgren
7a194496a5 Fix a bunch of @param and @return phpdoc errors in various files. 2012-08-03 16:17:58 +02:00
mdomba (mdwork)
ffb2e8ee2a fixed spaces 2012-08-03 14:28:54 +02:00
mdomba (mdwork)
418a9ce716 #1099 better check for connection string 2012-08-03 14:14:32 +02:00
mdomba (mdwork)
9b81336814 Fixes #1099 - proper detection of CDbConnection class 2012-08-03 14:07:22 +02:00
Alexander Makarov
ec2ba0581f Merge pull request #1030 from samdark/551-safer-way-of-using-cjavascript-encode-bc
Enh #551: Added $safe parameter to CJavaScript::encode. If set to true, 'js:' will not be allowed
2012-07-27 15:12:44 -07:00