John Was
928a02c3bc
Added `Formatter::asDuration()` method
9 years ago
Alexander Makarov
5242765257
Fixes #3506 : Added `\yii\validators\IpValidator` to perform validation of IP addresses and subnets
9 years ago
Edgard Lorraine Messias
2d8106a39c
Fixed testCreateTable and testAlterTable in CommandTest for MSSQL and OCI
9 years ago
SilverFire - Dima Naumenko
f38bb6ced4
Chg #9953 : `TimestampBehavior::getValue()` value processing is consistent with `AttributeBehavior::getValue()`
9 years ago
Vadim
c00b97a12c
Fixes #9915 : `yii\helpers\ArrayHelper::getValue()` was erroring instead of returning `null` for non-existing object properties
9 years ago
SilverFire - Dima Naumenko
c128d008d3
Added more tests for StringHelper::explode
9 years ago
SilverFire - Dima Naumenko
a46ae82f6a
Fixes #9906 , #9907 FormatConverterTest updated to pass on different ICU data versions
9 years ago
SilverFire - Dima Naumenko
ccd20793d4
Fixed #9911 - StringHelper::explode with skip_empty option removed item eq to 0
9 years ago
kidol
4bc2eb7945
Fixes controller DI
9 years ago
Carsten Brandt
decd45201c
allow passing a single Expression object to select() and addSelect()
...
fixes #9883
9 years ago
Carsten Brandt
3826b6f4a3
added test for #9869
9 years ago
mdmunir
3accf52ddb
fix #9823
9 years ago
mdmunir
b7020065c8
Fixes #9476 : Added DI injection via controller action method signature
9 years ago
Alexander Makarov
00f432ab65
Fixes #9747 : added tests for Url::isRelative()
9 years ago
Carsten Brandt
989699614f
fixed test break
9 years ago
Carsten Brandt
4e7adc13ea
adjusted docs about Query::from() and subqueries
...
also added a test to verify behavior
close #9720
close #9266
9 years ago
Yuri Nazarenko
0d4d54c3c7
Bug #9714 : Fixed unable to save users assignments
9 years ago
Alexander Makarov
ab06e9c8dc
Fixes #9605
9 years ago
Alexander Makarov
80d377ea57
Adjusted test for #9596
9 years ago
Hesam Khaki
5569eaae06
Fixes #9314 : Fixed `yii\rbac\DbManager::getPermissionsByUser()` not returning permissions directly assigned to a user
9 years ago
Alexander Makarov
6f0bb29e7a
Added test for #9596
9 years ago
Matvey Vasenin
a8ec3ebe14
add oracle support (need tested)
9 years ago
Matvey Vasenin
d801ca3c90
add mssql support (need test)
9 years ago
Matvey Vasenin
341e16645a
add cubrid support
9 years ago
AIZAWA, Hina
0f2a77ed36
Fixes #9442 : Fixed `yii\db\Migration::renameTable()` caused fatal error when using SQLite driver
9 years ago
Matvey Vasenin
afda00d434
add sqllite dummy
9 years ago
Matvey Vasenin
3cc8c09898
some test case added
9 years ago
Carsten Brandt
73a9c48058
added tests for #9108
9 years ago
Matvey Vasenin
ce6e92b736
add comment control methods
9 years ago
Klimov Paul
f48f63ecf5
`VarDumperTest` fixed
9 years ago
Klimov Paul
16e1e8fe28
Fallback for objects at `yii\helpers\VarDumper::export()` advanced
9 years ago
Nikola Kovacs
316e95b81d
Remove length from SchemaBuilderTrait::text.
...
close #9307
9 years ago
Carsten Brandt
56902298b4
fixed wrong expectation in QueryBuilder test
9 years ago
Carsten Brandt
0d778d0570
adjusted querybuilder tests to match implementation
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
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
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
Alexander Makarov
310f9152e1
Fixes #9268 : Improved display of boolean parameters in logged SQL queries
9 years ago
Alexander Makarov
357bce51bb
Tests for #9006
9 years ago
Vit S
6698b8154b
add tests for buttonsVisible suggestion (issue #9198 )
9 years ago
freezy
6a4436f95b
[ Fixes #9177 ] Password Hash Cost setting for Security component
9 years ago
zetamen
df6f270a0e
Fixes #9161 : Fixed `yii\web\Request` ignore `queryParams` when resolve request
9 years ago
Alexander Makarov
8e1d982da4
Cleanup, added ->unique(), changelog
9 years ago
Matvey Vasenin
da941a7675
Improved `SchemaBuilder` implementation
9 years ago
Matvey Vasenin
b456f699cc
Implemented `SchemaBuilder`
9 years ago
Carsten Brandt
2872365000
added test case for #8918
9 years ago
Carsten Brandt
f37c6ddd64
well, just drop this...
...
this test does not help much anyway. it is still tested for false in strict mode.
9 years ago
Carsten Brandt
d8bbe2f693
fixed BC compatibility test break for php7
9 years ago
Carsten Brandt
cd6121547d
skip memcache on php 7
...
fixes #8975
9 years ago