Commit Graph

13606 Commits

Author SHA1 Message Date
Carsten Brandt
6263e99a0d Merge pull request #9306 from nkovacs/patch-10
Update schema builder doc
2015-08-04 13:46:52 +02:00
Nikola Kovacs
30724af4e8 Update schema builder doc 2015-08-04 13:42:18 +02:00
Carsten Brandt
56902298b4 fixed wrong expectation in QueryBuilder test 2015-08-04 12:58:03 +02:00
Carsten Brandt
abc7dbbf0f added missing @since annotations 2015-08-04 12:40:12 +02:00
Carsten Brandt
cba167bcde adjusted version info in the guide 2015-08-04 12:21:22 +02:00
Carsten Brandt
0d778d0570 adjusted querybuilder tests to match implementation 2015-08-04 12:15:00 +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
dd1471f6b3 adjusted guide docs for SchemaBuilder 2015-08-04 00:04:26 +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
Alexander Makarov
18e9ca92b9 Merge pull request #9296 from efremovP/master
translate russian tutorial-template-engines [skip ci]
2015-08-03 20:40:41 +03:00
Carsten Brandt
1948754d00 phpdoc and slight refactoring of SchemaBuilder 2015-08-03 17:38:13 +02:00
Peter Efremov
1e145c7452 translate russian tutorial-template-engines 2015-08-03 19:11:43 +05:00
Alexander Makarov
fd97ed1841 Merge pull request #9295 from efremovP/master
translate_russian_tutorial_mailing [skip ci]
2015-08-03 16:08:48 +03:00
Peter Efremov
063f3e56ed fixed translate russian rest-quick-start 2015-08-03 17:46:55 +05:00
Peter Efremov
abeb8bcaeb translate_russian_tutorial_mailing 2015-08-03 17:39:16 +05: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
Alexander Makarov
e66e95eeb6 Merge pull request #9280 from tom--/patch-8
give Mr. Fowler his full name [skip ci]
2015-08-02 19:42:35 +03: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
tom--
7c4c32978d give Mr. Fowler his full name
It seems a little disrespectful to assume that we are all on first-name terms with Mr. Fowler.
2015-08-02 11:52:24 -04: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
164bfd25f5 Simplified dropdown list in active form example 2015-08-02 14:25:52 +03:00
Jitendra Joshi
02a85445b1 Add creating dropdown list with ActiveForm
Update for issue #7214
2015-08-02 14:20:30 +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
Alexander Makarov
94c82fb8d5 Merge pull request #9272 from efremovP/master
translate_russian_helper_overview [skip ci]
2015-08-02 12:41:25 +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
Peter Efremov
eaefeea5e2 translate_russian_helper_overview 2015-08-01 13:13:04 +05: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