Commit Graph

5735 Commits

Author SHA1 Message Date
Klimov Paul
427ee8dcbf Automatic encoding at BaseHtml::activeHint() removed 2015-04-20 12:42:41 +03:00
Klimov Paul
a0b8f74d2e yii\db\Schema::insert() primary key value composition fixed 2015-04-20 11:48:51 +03:00
Klimov Paul
aa9399c6c0 Merge branch 'master' of github.com:yiisoft/yii2 into 5042-insert-returning 2015-04-20 11:23:38 +03:00
Klimov Paul
6751a80ea0 yii\db\Schema::insert() now returns primary key value for empty sequence 2015-04-20 11:22:58 +03:00
Agrumas
82c8f3101e Updated Lithuanian translation 2015-04-19 16:13:31 +03:00
Agrumas
ef912f4e43 [REST] specifying a higher priority rule via extraPatterns 2015-04-19 15:19:33 +03:00
Klimov Paul
85ca8c3712 Added ability to specify hints for model attributes 2015-04-17 14:16:28 +03:00
Alexander Makarov
59a9f47f8e Fixed last page label 2015-04-17 11:52:32 +03:00
Alexander Makarov
a733ecd40c yii\widgets\LinkPager::$firstPageLabel and yii\widgets\LinkPager::$lastPageLabel now could be set to true in order to use page number as label 2015-04-17 11:51:48 +03:00
Klimov Paul
83e2603985 Restriction on inline model method usage at yii\validators\EachValidator removed in case of usage inside model scope 2015-04-16 11:32:02 +03:00
Kirsa Denis
cafd135022 Fixes #8064: Added ability to remove containing menu tag by setting yii\widgets\Menu::$options['tag'] to false 2015-04-15 13:21:14 +03:00
Carsten Brandt
f99f333218 added note to docs about #8085 2015-04-15 10:03:42 +02:00
Klimov Paul
bb4bed4833 Fixed yii\data\ArrayDataProvider::getKeys() return wrong when yii\data\ArrayDataProvider::$allModels contain integer key 2015-04-14 17:07:16 +03:00
Klimov Paul
b8081b59b3 Fixed yii\db\Query::count() fails for query containing 'having' without 'group by' 2015-04-14 16:11:07 +03:00
Klimov Paul
767276362d Redundant typecast at yii\db\Schema::insert() removed 2015-04-14 12:31:32 +03:00
Klimov Paul
b05ea3d69e PK typecast at yii\db\ActiveRecord restored 2015-04-14 12:00:22 +03:00
Klimov Paul
60aa5f3eb9 Redundant checks at yii\db\oci\Schema::insert() and yii\db\pgsql\Schema::insert() removed 2015-04-14 11:59:58 +03:00
Paul Klimov
31ef4c4504 Command execution at yii\db\oci\Schema::insert() fixed 2015-04-13 17:49:14 +03:00
Paul Klimov
4e8ee7b001 Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression 2015-04-13 17:11:00 +03:00
Qiang Xue
d8848ebf25 Doc improvement [skip ci] 2015-04-12 20:52:05 -04:00
Carsten Brandt
ba0fd22c66 Update ColumnSchema.php
added comment
2015-04-13 00:35:41 +02:00
Jan Waś
698bfddeed Fixes #7847: yii\db\ColumnSchema was typecasting numerics to strings with incorrect decimal separator for some locales 2015-04-13 00:35:17 +03:00
Alexander Makarov
b806fc7108 Corrected fix for #8032 2015-04-12 12:17:35 +03:00
Alexander Makarov
8ac5776a0d Changed back usage of attr() to usage of prop() for checkboxes 2015-04-12 11:46:37 +03:00
Carsten Brandt
5306cac4b9 added support for subqueries to simple conditions
fixes #8027
2015-04-12 01:45:21 +02:00
Paul Klimov
52407aed53 CHANGELOG entry about #7918 restored 2015-04-11 23:30:06 +03:00
John Was
67799ad092 fix typos 2015-04-11 16:41:33 +02:00
Paul Klimov
3a90be06d6 Merge branch '3376-each-validator'
Conflicts:
	framework/CHANGELOG.md
2015-04-11 14:13:55 +03:00
Paul Klimov
d594ab0b03 yii\validators\EachValidator uses single generic error message 2015-04-11 13:59:02 +03:00
mohammad hosain
f704f41630 Update yii.php 2015-04-11 14:38:20 +04:30
Qiang Xue
fdb730a12a syntax fix [skip ci] 2015-04-10 21:51:33 -04:00
Jan Waś
edf400df96 add missing space 2015-04-11 02:25:26 +02:00
Jan Waś
6e48ed05c7 allow calling Command::insert() without any columns 2015-04-11 02:20:13 +02:00
ChristopheBrun
82033125c4 Fixes #8032: yii\rbac\PhpManager::updateItem() was unable to rename item updated 2015-04-11 01:24:32 +03:00
Alexander Makarov
36a0e8384a Fixes #7918: yii\widgets\Pjax got ability to avoid registering link/form handler via setting false to $linkSelector/$formSelector 2015-04-09 23:16:38 +03:00
Alexander Makarov
926770b7d9 Changed usage of .prop() to .attr() in order to avoid issues when working with forms having input with names matching form properties. Related to #8014. 2015-04-09 23:06:47 +03:00
Klimov Paul
e29fcc8ea2 Docs about yii\validators\EachValidator adjusted 2015-04-09 18:14:35 +03:00
Klimov Paul
9fedb978f6 Docs for yii\validators\EachValidator adjusted 2015-04-09 18:13:50 +03:00
Klimov Paul
35eb833a2b Added yii\validators\EachValidator 2015-04-09 16:48:15 +03:00
Qiang Xue
aead65f2d2 Fixes #7515: Added support to use indexBy() together with column() in query builder 2015-04-08 22:54:30 -04:00
Jan Waś
ced423b601 Fixes #8012: Fixed fetching multiple relations between two tables for pgsql 2015-04-09 00:59:56 +03:00
Alexander Makarov
e224568b49 Fixes #8014: Fixed setting incorrect form "action" property after submitting a form using a link with "data-method" and containing "action" among "data-params" 2015-04-08 03:17:42 +03:00
Sergey Gonimar
3872c6c565 Fix migrate/down order
Migrations were applied at the same time. This cause invalid sort order while downgrade.

Command `yii migrate `

Output:
```
Yii Migration Tool (based on Yii v2.0.4-dev)

Total 2 new migrations to be applied:
        m150402_075534_initial
        m150402_075544_feedback
```

Command `yii migrate/down 2`

```
Yii Migration Tool (based on Yii v2.0.4-dev)

Total 2 migrations to be reverted:
        m150402_075534_initial
        m150402_075544_feedback
```

In databasse
```
"m000000_000000_base";1428382302
"m150402_075534_initial";1428388855           <----
"m150402_075544_feedback";1428388855     <----
```
2015-04-07 12:01:09 +05:00
Qiang Xue
92664b4b11 code optimization [skip ci] 2015-04-06 08:14:01 -04:00
Qiang Xue
23d8cede64 Fixes #7409: Allow yii\filters\auth\CompositeAuth::authMethods to take authentication objects 2015-04-05 18:19:41 -04:00
Qiang Xue
739f6358cd Fixes #7637: Allow yii\web\Request::validateCsrfToken() to validate a manually provided token 2015-04-05 17:34:29 -04:00
Qiang Xue
bf609cf327 Fixes #7957: Removed extra parseFloat() call for the compare js validator 2015-04-04 22:30:22 -04:00
CthulhuDen
dad47b433e do not extra convert to floats in CompareValidator client code 2015-04-04 22:29:08 -04:00
Paul Klimov
378937f8d5 yii\console\controllers\AssetController provides dependency trace in case bundle circular dependency detected 2015-04-03 19:22:42 +03:00
Klimov Paul
97c0ffc836 Creating target dir at yii\console\controllers\AssetController::buildTarget() refactored 2015-04-03 12:45:44 +03:00