Nikola Kovacs
316e95b81d
Remove length from SchemaBuilderTrait::text.
...
close #9307
2015-08-05 22:50:46 +02:00
Carsten Brandt
e1ea227e6d
improved console helper progressbar ETA
...
update only once per second to avoid flapping
2015-08-05 13:56:11 +02:00
Michael Härtl
b071587e0a
Improve docs for bindParam() $value
2015-08-04 16:08:38 +02:00
Alexander Makarov
a6b8a30998
Removed unused "use"
2015-08-04 15:38:31 +03:00
Alexander Makarov
ca2c1df067
Minor changelog typo fixes
2015-08-04 14:59:24 +03:00
Carsten Brandt
abc7dbbf0f
added missing @since annotations
2015-08-04 12:40:12 +02:00
Carsten Brandt
41b25e94b0
improved parameter naming and documentation of schemabuilder
...
changes according to #9191
close #9191
2015-08-04 11:58:41 +02:00
Carsten Brandt
729e61e7cb
Merge pull request #9299 from yiisoft/schemabuilder-refactoring
...
refactored SchemaBuilder
2015-08-04 11:21:23 +02:00
Carsten Brandt
aef21ceec8
phpdoc typo
2015-08-03 23:38:58 +02:00
Carsten Brandt
681db52ba6
refactored SchemaBuilder
...
- rename class to ColumnSchemaBuilder as this is more appropriate
- changed internal organisation to match how the rest of schema related classes work
- the ColumnSchemaBuilder is now created the same way as QueryBuilder is
- removed static call magic and method annotations, now real methods are called as they are
- the whole code works on objects in a db context now instead of setting database connection in global state
- trait is now used by Migration by default but can be used in other contexts as well
Migration usage is now as follows:
```php
$this->createTable('example_table', [
'id' => $this->primaryKey(),
'name' => $this->string(64)->notNull(),
'type' => $this->integer()->notNull()->defaultValue(10),
'description' => $this->text(),
'rule_name' => $this->string(64),
'data' => $this->text(),
'created_at' => $this->datetime()->notNull(),
'updated_at' => $this->datetime(),
]);
```
2015-08-03 23:25:50 +02:00
Carsten Brandt
1948754d00
phpdoc and slight refactoring of SchemaBuilder
2015-08-03 17:38:13 +02:00
Carsten Brandt
728dc0c584
added docs about form element naming
...
close #8993
2015-08-03 12:51:17 +02:00
Carsten Brandt
d8bb724ec7
changed method visibility, fixed test break
2015-08-03 12:37:58 +02:00
Carsten Brandt
13fca3bc54
alternative solution for issue #7627
...
should cover more cases then #8912 . Have not tested it yet.
see #7627
2015-08-03 12:29:43 +02:00
kidol
bf8eb490a1
Fixes PageCache not setting any duration and dependency when caching response data
...
close #9076
2015-08-03 11:40:20 +02:00
Carsten Brandt
7150e830d9
do not use reserved php words as function in schemabuilder
...
there is a reason for them to be reserved, we should not add such workarounds to still use them.
close #9283
2015-08-03 11:21:58 +02:00
Carsten Brandt
543d107508
applied the same fix as #7305 also to DbTarget
...
fixes #6354
2015-08-03 00:45:34 +02:00
Carsten Brandt
854e186210
fixed caching issue with UrlManager::createUrl
...
this fix will skip the cache in case we encounter a situation which can
not easily be cached.
fixes #9091
2015-08-03 00:31:59 +02:00
Lorenzo Milesi
a6fc02345e
FileValidator->getSizeLimit: check also php's post_max_size
...
- return the lowerest of `post_max_size` or `upload_max_filesize`
- Raised warning for misconfigured PHP
close #8373
2015-08-02 23:37:46 +02:00
Carsten Brandt
0575a710c0
CHANGELOG for #8551
...
see also #5780
2015-08-02 23:26:57 +02:00
Carsten Brandt
8cfc89b21c
adjusted pgsql/QueryBuilder batchInsert to match parent implementation
...
this also fixes #8551
2015-08-02 23:20:52 +02:00
Carsten Brandt
6e3da6b329
various phpdoc fixes
2015-08-02 22:53:08 +02:00
Carsten Brandt
a2568d1ec8
updated some comments and @since annotations
2015-08-02 19:56:49 +02:00
Nikola Kovacs
11de09bf8b
Fixes #5991 , #5420 , #3017 : Added updateMessages() to yii.activeForm.js to support manually updating ActiveForm messages
2015-08-02 19:39:12 +03:00
Alexander Makarov
372211a865
Better type check in AssetManager
2015-08-02 19:20:55 +03:00
Alexander Makarov
6f4282f05e
Moved #7259 changelog to 2.0.6
2015-08-02 19:05:32 +03:00
Alexander Makarov
6312f2adad
#9249 : fixed wrong condition
2015-08-02 14:35:09 +03:00
Alexander Makarov
66557285a6
#7259 : fixed using errrorInputs
2015-08-02 14:32:49 +03:00
Alexander Makarov
6987358e2a
#9249 : better check for file/dir
2015-08-02 14:29:52 +03:00
Alexander Makarov
9587d9b29c
#7259 : Added back errorAttributes
2015-08-02 13:40:22 +03:00
Alexander Makarov
e2f5279b54
Better fix for #7259
2015-08-02 13:30:53 +03:00
Nikola Kovacs
2577a5915b
Fixes #7259 : Added errorAttributes parameter to ActiveForm afterValidate event. Made scrolling to first error optional
2015-08-02 12:58:35 +03:00
Alexander Makarov
d3e91abf00
Added @since tag to yii\web\AssetManager::$hashCallback
2015-08-02 12:49:47 +03:00
Alexander Makarov
a855f189d0
Merge pull request #9249 from petrabarus/asset-manager-hash-callback
...
Adding callback for custom hash generation in AssetManager.
2015-08-02 12:47:38 +03:00
Petra Barus
2261db0a5f
Adding callback for custom hash generation in AssetManager.
2015-08-02 16:16:32 +07:00
Alexander Makarov
f4dfb0f17f
Reverted part of #9239
2015-08-02 12:13:40 +03:00
Alexander Makarov
863e785ed4
Added changelog for #9263
2015-08-02 12:07:16 +03:00
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
Alexander Makarov
8b951796ac
Fixes #9263 : Avoid extra DB query in RBAC DbManager in case auth item name is empty
2015-08-01 01:42:40 +03:00
Alexander Makarov
afbc515407
Fixes #9239 : BaseJson phpdoc corrections, minor improvements, added changelog
2015-08-01 00:48:58 +03:00
Grzegorz Kurtyka
079778a355
#9239 : Handle json_encode errors
2015-08-01 00:48:58 +03:00
Alexander Makarov
310f9152e1
Fixes #9268 : Improved display of boolean parameters in logged SQL queries
2015-08-01 00:30:16 +03:00
Alexander Makarov
972165ccec
Fixes #9006 : Fixed bit column always returning true using certain version of PDO MySQL
2015-07-31 03:19:23 +03:00
Alexander Makarov
9a87271abf
Fixed missing stacktrace items on PHP syntax errors of "unexpected end of file" type
2015-07-30 16:30:36 +03:00
dima-gusyatiner
cb054a64cd
fixed message with missing keyword
...
Fixed error:
Formatting message for language 'he-IL' failed with error: Message pattern is invalid: msgfmt_create: message formatter creation failed: U_DEFAULT_KEYWORD_MISSING. The message being formatted was: {attribute} אמור לא לכלול יותר מ {max, number} {max, plural, one{תו} few{תוים} many{תוים}}..
2015-07-29 22:46:10 +03:00
Chris Harris
26e5b021a8
Fixes #9246 : Added yii\web\UrlRule::getParamRules()
2015-07-29 17:10:51 +03:00
Sebastian Chojniak
9012aa66bf
Fixed documentation according to Chg #4911
2015-07-29 12:42:56 +02:00
Artem Belov
235ca746b4
Typo in russian i18n message
2015-07-28 12:31:40 +03:00
adinata
8ced2ba96a
Fixes #8933 : Yii is now able to properly handle HHVM fatal errors
2015-07-28 10:32:52 +03:00
Alexander Makarov
2aba8df2ef
Fixes #9228
2015-07-27 18:57:10 +03:00