Commit Graph

62 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
Alexander Makarov
8dbc9017d9 Gii now properly escapes single quotes in attribute labels. 2013-07-30 16:08:32 +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
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
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
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
Etienne Quiel
6f9f1b5772 changed validation rules and error messages for base classes 2013-01-18 16:11:17 +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 Kochetov
486723805e else if => elseif 2012-10-03 10:20:14 +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 (mdwork)
902d00dfdc prevent occasional errors (invalid connectionId) 2012-08-17 15:38:39 +02:00
mdomba (mdwork)
41b71d901e no braces for single lines 2012-08-17 15:34:51 +02:00
mdomba (mdlap)
a40ac64238 better error message for wrong connectionId 2012-08-09 00:30:01 +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
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
n3okill
20eebd5941 Correction to Issue #810 2012-06-14 16:16:14 +02:00
mdomba (mdwork)
462aac0350 (Reverted pull #681) detection of one-to-one relations 2012-05-21 12:39:51 +02:00
Richard Peng
d4a86c803d fix detection of one-to-one relations 2012-05-04 17:24:38 -04:00
Alexander Makarov
54fe951f5e Fixed possible Gii error when default component doesn't have class specified 2012-03-21 03:25:17 +04:00
Alexander Makarov
5c46317820 Enh #136: Added ability to select database connection in Gii model generator 2012-03-10 17:03:45 +04:00
mdomba
4273483ecd Gii - check tableNames for reserved PHP keywords when '*' is used 2012-01-08 14:03:36 +00:00
qiang.xue
564fc84c1e (Fixes issue 2264) 2011-06-23 21:13:06 +00:00
mdomba
c5e9d7fbb6 better regex to check that fieldnames follow PHP naming rules 2011-04-27 07:45:15 +00:00
qiang.xue
e1ee5197c3 (Fixes issue 1770) 2011-03-19 01:26:47 +00:00
mdomba
d9697f4a60 (Fixes issue 1624) 2011-01-26 14:47:23 +00:00
mdomba
32ed99924a Fixed validateTableName() 2011-01-22 10:59:52 +00:00
mdomba
a60cdb3ddd 2011-01-21 19:34:16 +00:00
qiang.xue
8c54346beb 2011-01-21 18:47:31 +00:00
mdomba
8dc87889b2 Separated field name checking in a separate function 2011-01-21 15:02:58 +00:00
mdomba
6209eea813 (Fixes issue 2013) 2011-01-21 11:54:16 +00:00
qiang.xue
51e62b101f (Fixes issue 1168) 2010-11-01 15:37:35 +00:00
qiang.xue
267e39d042 Improved class name checking in Gii 2010-09-02 14:56:54 +00:00
qiang.xue
e433164b4d 2010-07-29 21:29:56 +00:00
qiang.xue
6a94ad970d (Fixes issue 1369) 2010-07-20 00:38:47 +00:00