Commit Graph

5725 Commits

Author SHA1 Message Date
Carsten Brandt
8fb1b56e34 Update CHANGELOG.md 2015-08-14 12:31:01 +02:00
Carsten Brandt
34d5b45b35 proper fix for #8844, convert array before using it
fixes #9415
2015-08-14 12:26:36 +02:00
Alexander Makarov
43918f2ef6 Fixes #9411: DetailView now automatically sets container tag ID in case it's not specified 2015-08-14 01:53:57 +03:00
RomeroMsk
6f0e635360 Change Russian translation for unique message 2015-08-13 16:56:38 +05:00
Toleugazy
4926148f96 correct typo in kazakh 2015-08-13 13:14:12 +06:00
Carsten Brandt
00a8a6270e revised docs about Model::load()
thanks to @tom-- for review.
2015-08-12 16:01:41 +02:00
Гонимар Сергей
5e4d2183e2 Georgian translation 2015-08-12 15:35:33 +03:00
Dmitry Kushnikov
19fdd4f96d Fix problem, that Application::getUser can return null 2015-08-12 11:36:13 +03:00
Taras Gudz
14fe0c3f80 Fixes #9382 2015-08-12 08:30:18 +03:00
Alexander Kochetov
223b0bea5d Fixes #9369: Yii::$app->user->can() now returns false instead of erroring in case authManager component is not configured 2015-08-11 11:16:21 +03:00
Klimov Paul
3f2f7111df BaseVarDumper::export() object to string fallback fixed 2015-08-09 20:51:38 +03:00
Klimov Paul
d9eb660df3 BaseVarDumper::export() object to string fallback fixed 2015-08-09 19:30:36 +03:00
Klimov Paul
16e1e8fe28 Fallback for objects at yii\helpers\VarDumper::export() advanced 2015-08-09 15:02:48 +03:00
Carsten Brandt
2ff5997b69 prepare for next release 2015-08-06 00:04:24 +02:00
Carsten Brandt
89eb3dff14 prepare for release 2.0.6 2015-08-06 00:00:30 +02:00
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
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