Commit Graph

1727 Commits

Author SHA1 Message Date
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
ab06e9c8dc Fixes #9605 2015-09-08 02:24:56 +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
Vit S
6698b8154b add tests for buttonsVisible suggestion (issue #9198) 2015-07-24 23:19:11 +04: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
cd6121547d skip memcache on php 7
fixes #8975
2015-07-03 17:32:35 +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
Carsten Brandt
d0c6cb7700 abort removing duplicate records when pk is not in result set
in this cases it does not make sense to remove duplicates as the result is not on record level anymore.
This could be the case after GROUP BY has been applied.

fixes #8772
2015-06-14 19:29:57 +02:00
Klimov Paul
58760538d0 Merge branch 'master' of github.com:yiisoft/yii2 into 8670-multi-data-session 2015-06-09 12:58:17 +03:00
Klimov Paul
d9d1fceef6 Unite test for yii\web\DbSession added 2015-06-09 12:57:48 +03:00
Carsten Brandt
879911810f added test for createTable and alterTable
test for issue #8627
close #8628
2015-06-08 20:40:24 +02:00
Paul Klimov
28877f8e99 Merge pull request #8652 from klimov-paul/8627-invalidate-table-schema-cache
Fix #8627: invalidate table schema cache on DDL
2015-06-08 21:18:58 +03:00
Carsten Brandt
9cc0e5d89d even more 32bit friendly test
issue #8584
2015-06-06 02:39:19 +02:00
Carsten Brandt
8e44674e7b fixed another test to work on 32bit
issue #8584
2015-06-05 19:01:45 +02:00
Carsten Brandt
ab9326dd26 fixed test for 32bit systems
fixes #8584
2015-06-05 18:58:09 +02:00
Klimov Paul
72f9e63e10 Table schema auto refreshing on DDL added to yii\db\Command 2015-06-04 13:53:11 +03:00
Klimov Paul
fb0062114e Method yii\db\Schema::refreshTableSchema() added 2015-06-04 12:57:16 +03:00
Klimov Paul
0d48f1041e Fixed yii\db\Command::getRawSql() unable to parse params specified without colon (':') 2015-06-02 13:45:28 +03:00
Klimov Paul
a849e815df Fixed yii\db\ActiveQuery produces incorrect SQL for aggregations, when sql field is set 2015-05-29 13:18:20 +03:00