Alexander Makarov
ca2c1df067
Minor changelog typo fixes
9 years ago
Carsten Brandt
abc7dbbf0f
added missing `@since` annotations
9 years ago
Carsten Brandt
41b25e94b0
improved parameter naming and documentation of schemabuilder
...
changes according to #9191
close #9191
9 years ago
Carsten Brandt
aef21ceec8
phpdoc typo
9 years ago
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(),
]);
```
9 years ago
Carsten Brandt
1948754d00
phpdoc and slight refactoring of SchemaBuilder
9 years ago
Carsten Brandt
728dc0c584
added docs about form element naming
...
close #8993
9 years ago
Carsten Brandt
d8bb724ec7
changed method visibility, fixed test break
9 years ago
Carsten Brandt
13fca3bc54
alternative solution for issue #7627
...
should cover more cases then #8912 . Have not tested it yet.
see #7627
9 years ago
kidol
bf8eb490a1
Fixes PageCache not setting any duration and dependency when caching response data
...
close #9076
9 years ago
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
9 years ago
Carsten Brandt
543d107508
applied the same fix as #7305 also to DbTarget
...
fixes #6354
9 years ago
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
9 years ago
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
9 years ago
Carsten Brandt
0575a710c0
CHANGELOG for #8551
...
see also #5780
9 years ago
Carsten Brandt
8cfc89b21c
adjusted pgsql/QueryBuilder batchInsert to match parent implementation
...
this also fixes #8551
9 years ago
Carsten Brandt
6e3da6b329
various phpdoc fixes
9 years ago
Carsten Brandt
a2568d1ec8
updated some comments and `@since` annotations
9 years ago
Nikola Kovacs
11de09bf8b
Fixes #5991 , #5420 , #3017 : Added `updateMessages()` to `yii.activeForm.js` to support manually updating ActiveForm messages
9 years ago
Alexander Makarov
372211a865
Better type check in AssetManager
9 years ago
Alexander Makarov
6f4282f05e
Moved #7259 changelog to 2.0.6
9 years ago
Alexander Makarov
6312f2adad
#9249 : fixed wrong condition
9 years ago
Alexander Makarov
66557285a6
#7259 : fixed using errrorInputs
9 years ago
Alexander Makarov
6987358e2a
#9249 : better check for file/dir
9 years ago
Alexander Makarov
9587d9b29c
#7259 : Added back errorAttributes
9 years ago
Alexander Makarov
e2f5279b54
Better fix for #7259
9 years ago
Nikola Kovacs
2577a5915b
Fixes #7259 : Added `errorAttributes` parameter to ActiveForm `afterValidate` event. Made scrolling to first error optional
9 years ago
Alexander Makarov
d3e91abf00
Added `@since` tag to `yii\web\AssetManager::$hashCallback`
9 years ago
Petra Barus
2261db0a5f
Adding callback for custom hash generation in AssetManager.
9 years ago
Alexander Makarov
f4dfb0f17f
Reverted part of #9239
9 years ago
Alexander Makarov
863e785ed4
Added changelog for #9263
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
Alexander Makarov
8b951796ac
Fixes #9263 : Avoid extra DB query in RBAC DbManager in case auth item name is empty
9 years ago
Alexander Makarov
afbc515407
Fixes #9239 : BaseJson phpdoc corrections, minor improvements, added changelog
9 years ago
Grzegorz Kurtyka
079778a355
#9239 : Handle json_encode errors
9 years ago
Alexander Makarov
310f9152e1
Fixes #9268 : Improved display of boolean parameters in logged SQL queries
9 years ago
Alexander Makarov
972165ccec
Fixes #9006 : Fixed bit column always returning true using certain version of PDO MySQL
9 years ago
Alexander Makarov
9a87271abf
Fixed missing stacktrace items on PHP syntax errors of "unexpected end of file" type
9 years ago
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{תוים}}..
9 years ago
Chris Harris
26e5b021a8
Fixes #9246 : Added `yii\web\UrlRule::getParamRules()`
9 years ago
Sebastian Chojniak
9012aa66bf
Fixed documentation according to Chg #4911
9 years ago
Artem Belov
235ca746b4
Typo in russian i18n message
9 years ago
adinata
8ced2ba96a
Fixes #8933 : Yii is now able to properly handle HHVM fatal errors
9 years ago
Alexander Makarov
2aba8df2ef
Fixes #9228
9 years ago
vbelogai
1d6a340534
Fixes #8161 : Fixed active form `data-method` submit bug when client validation is used
9 years ago
Dmitry Naumenko
b16d734c29
Fixes #8671 : Extracted `yii\helpers\Html::escapeJsRegularExpression()` method from `yii\validators\RegularExpressionValidator`
9 years ago
Carsten Brandt
d3bd7af956
improved documentation of Model::load() return value
...
fixes #8803
close #9216
9 years ago
nidgetgod
b8fefe513c
fixed: Oracle 11g 11.2.0.1.0 ORA-03113: end-of-file on communication channel
...
This is a workaround for an oracle bug:
https://code.google.com/p/yii/issues/detail?id=1779
close #8844
9 years ago
Carsten Brandt
3c9c6b5d7d
fixed formatter to accept explicit setting of decimal numbers
...
this version keeps BC for symbols while fixing the issue with decimals.
fixes #8684
9 years ago
Carsten Brandt
2cd4837f41
fixed display issue with overlapping text in callstack item
...
fixes #4763
9 years ago