Carsten Brandt
939b3a9283
added scenario test while reproducing #10034
2015-10-29 14:57:51 +01:00
Alexander Makarov
fe4cbd30d6
Fixes #9803 : Added option to register asset with scheme (reverted from commit 57dc8540fd)
2015-10-29 12:38:42 +03:00
Nikita Verkhovin
57dc8540fd
Fixes #9803 : Added option to register asset with scheme
2015-10-28 14:08:56 +03:00
SilverFire - Dima Naumenko
b5d95f845e
Formatter::asDuration() PHPDoc and PHPUnit test enhanced
2015-10-26 23:57:05 +02:00
John Was
928a02c3bc
Added Formatter::asDuration() method
2015-10-26 20:48:39 +02:00
Alexander Makarov
5242765257
Fixes #3506 : Added \yii\validators\IpValidator to perform validation of IP addresses and subnets
2015-10-22 14:21:31 +03:00
Edgard Lorraine Messias
2d8106a39c
Fixed testCreateTable and testAlterTable in CommandTest for MSSQL and OCI
2015-10-21 00:19:48 +03:00
SilverFire - Dima Naumenko
f38bb6ced4
Chg #9953 : TimestampBehavior::getValue() value processing is consistent with AttributeBehavior::getValue()
2015-10-18 16:14:19 +03:00
Vadim
c00b97a12c
Fixes #9915 : yii\helpers\ArrayHelper::getValue() was erroring instead of returning null for non-existing object properties
2015-10-14 12:56:59 +03:00
SilverFire - Dima Naumenko
c128d008d3
Added more tests for StringHelper::explode
2015-10-14 12:50:14 +03:00
SilverFire - Dima Naumenko
a46ae82f6a
Fixes #9906 , #9907 FormatConverterTest updated to pass on different ICU data versions
2015-10-14 00:54:43 +03:00
SilverFire - Dima Naumenko
ccd20793d4
Fixed #9911 - StringHelper::explode with skip_empty option removed item eq to 0
2015-10-14 00:15:22 +03:00
kidol
4bc2eb7945
Fixes controller DI
2015-10-12 15:52:19 +02:00
Carsten Brandt
decd45201c
allow passing a single Expression object to select() and addSelect()
...
fixes #9883
2015-10-11 09:58:42 +02:00
Carsten Brandt
3826b6f4a3
added test for #9869
2015-10-09 16:30:18 +02:00
mdmunir
3accf52ddb
fix #9823
2015-10-03 23:00:46 +07:00
mdmunir
b7020065c8
Fixes #9476 : Added DI injection via controller action method signature
2015-09-27 19:35:43 +03:00
Alexander Makarov
ed17ba31d0
Merge pull request #9722 from rezident1307/9714-fix-add-save-assignments-to-phpmanager
...
Bug #9714 : Fixed unable to save users assignments
2015-09-24 16:22:48 +03:00
Alexander Makarov
00f432ab65
Fixes #9747 : added tests for Url::isRelative()
2015-09-23 15:47:51 +03:00
Carsten Brandt
989699614f
fixed test break
2015-09-19 18:29:41 +02:00
Carsten Brandt
4e7adc13ea
adjusted docs about Query::from() and subqueries
...
also added a test to verify behavior
close #9720
close #9266
2015-09-19 17:41:45 +02:00
Yuri Nazarenko
0d4d54c3c7
Bug #9714 : Fixed unable to save users assignments
2015-09-18 12:31:27 +03:00
Alexander Makarov
80d377ea57
Adjusted test for #9596
2015-09-05 11:41:03 +03:00
Hesam Khaki
5569eaae06
Fixes #9314 : Fixed yii\rbac\DbManager::getPermissionsByUser() not returning permissions directly assigned to a user
2015-09-05 01:31:10 +03:00
Alexander Makarov
6f0bb29e7a
Added test for #9596
2015-09-05 01:04:35 +03:00
AIZAWA, Hina
0f2a77ed36
Fixes #9442 : Fixed yii\db\Migration::renameTable() caused fatal error when using SQLite driver
2015-08-18 11:52:48 +03:00
Carsten Brandt
73a9c48058
added tests for #9108
2015-08-16 22:39:09 +02:00
Klimov Paul
f48f63ecf5
VarDumperTest fixed
2015-08-09 17:53:24 +03:00
Klimov Paul
16e1e8fe28
Fallback for objects at yii\helpers\VarDumper::export() advanced
2015-08-09 15:02:48 +03:00
Nikola Kovacs
316e95b81d
Remove length from SchemaBuilderTrait::text.
...
close #9307
2015-08-05 22:50:46 +02:00
Carsten Brandt
56902298b4
fixed wrong expectation in QueryBuilder test
2015-08-04 12:58:03 +02:00
Carsten Brandt
0d778d0570
adjusted querybuilder tests to match implementation
2015-08-04 12:15:00 +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
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
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
Alexander Makarov
310f9152e1
Fixes #9268 : Improved display of boolean parameters in logged SQL queries
2015-08-01 00:30:16 +03:00
Alexander Makarov
357bce51bb
Tests for #9006
2015-07-30 19:25:52 +03:00
freezy
6a4436f95b
[ Fixes #9177 ] Password Hash Cost setting for Security component
2015-07-23 09:09:55 +02:00
zetamen
df6f270a0e
Fixes #9161 : Fixed yii\web\Request ignore queryParams when resolve request
2015-07-21 10:40:31 +03:00
Alexander Makarov
8e1d982da4
Cleanup, added ->unique(), changelog
2015-07-08 15:55:09 +03:00
Matvey Vasenin
da941a7675
Improved SchemaBuilder implementation
2015-07-08 15:40:09 +03:00
Matvey Vasenin
b456f699cc
Implemented SchemaBuilder
2015-07-08 15:38:21 +03:00
Carsten Brandt
2872365000
added test case for #8918
2015-07-04 03:08:34 +02:00
Carsten Brandt
f37c6ddd64
well, just drop this...
...
this test does not help much anyway. it is still tested for false in strict mode.
2015-07-03 17:44:02 +02:00
Carsten Brandt
d8bbe2f693
fixed BC compatibility test break for php7
2015-07-03 17:38:40 +02:00
Carsten Brandt
0858d0a834
added test for querybuilder select
...
close #8895
2015-06-26 00:13:08 +02:00
Carsten Brandt
bda90b6ad3
added another test for #8848
...
close #8850
2015-06-21 23:18:09 +02:00
pana1990
6ab64c9b35
Add test for #8848
2015-06-21 23:09:02 +02:00
Alexander Makarov
372ff87ee4
Test for #8228
2015-06-17 23:14:33 +02:00