1265 Commits

Author SHA1 Message Date
df6cdf7ad5 Fixed code style 2016-04-18 10:14:20 +03:00
73eb62a3cd DBMS specific workarounds for unsupported SQL92 form of SELECT EXISTS() (#11369) 2016-04-17 17:44:52 +03:00
806eb57990 Fixes #9425: ActiveQuery::exists() should generate SELECT EXISTS() (#11363) 2016-04-16 13:34:20 +03:00
293feeb522 Update QueryInterface.php
Missing closing bracket in OR condition example
2016-04-13 15:23:16 +02:00
5921865459 Fixed: #11270 - Error when link record in one to many relation. (#11301)
Fixed: #11270 - Error when link record in one to many relation.
2016-04-08 10:36:38 +03:00
48a2df5d52 Fixes #11283: ActiveRecord::unlink() is not setting FK to null before deleting itself anymore 2016-04-06 12:41:53 +03:00
e8c3f6cc6f Fixing tests 2016-03-21 04:43:59 -07:00
b8e44b2f47 Merge branch 'master' of git://github.com/yiisoft/yii2 into 9562-add-char-datatype 2016-03-14 05:33:41 -07:00
5c4001d84b Schema Builder Patterns Excel document in /docs folder (temp storage).
Fixed some schema builder patterns.
Added more information to upgrade docs.
2016-03-14 05:29:42 -07:00
7229b3aa7d QueryBuilder::buildAndCondition() - added Expression value extraction
Updated CHANGELOG
Added test case for param binding in `or` condition

Closes #11093
2016-03-13 19:22:32 +02:00
2bd14098f9 Fix Expression parameter binding in 'And' clause 2016-03-13 19:19:48 +02:00
e4d9ed5182 code style fix 2016-03-09 10:17:41 +02:00
98ac811858 Unsigned switch is now set when calling unsigned() on pks. 2016-02-26 19:58:35 -08:00
2f91889b70 Removed unsignedPrimaryKey() schema builder type; now, the unsigned() modifier works with primary key types e.g. pk()->unsigned() or bigpk()->unsigned(). 2016-02-26 17:48:03 -08:00
b697e173fc Fixed unsigned() modifier to enable use with PKs. 2016-02-26 14:14:52 -08:00
553cca642c Reverted unsigned() pk modifier 2016-02-26 06:09:22 -08:00
030ee68b01 Testing unsigned() modifier on PKs (now $this->primaryKey()->unsigned() works) 2016-02-26 04:39:05 -08:00
f3cf4af4de Merge branch 'master' of git://github.com/yiisoft/yii2 into 9562-add-char-datatype
# Conflicts:
#	framework/db/sqlite/QueryBuilder.php
2016-02-26 00:14:29 -08:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
af75262541 fixed sqlite bigPk creation 2016-02-25 19:10:23 +01:00
c5a60ce2ec Avoid new $this->modelClass in ActiveQuery::findWith()
reduces the issue described in #8639 to `joinWith()` and `asArray()`.

close #10940
2016-02-25 18:26:28 +01:00
a6afa6072c Merge branch 'master' of git://github.com/yiisoft/yii2 into 9562-add-char-datatype 2016-02-24 04:07:21 -08:00
2201bf14e2 Fixed parameters binding to the SQL query in yii\db\mysqlSchema::findConstraints()
Closes #10946
2016-02-24 08:31:24 +02:00
762b9207ea Avoid some calls to new $this->modelClass in ActiveQuery
this fixes some cases of the problem described in #8639 and is fully BC.
Fixing other places may need BC breaks.
2016-02-23 13:24:01 +01:00
3761682edf Upgraded some tests. Fixed MySQL test fixtures to create all tables with InnoDB. 2016-02-22 04:53:14 -08:00
81ff4752d9 Added CHECK modifier to PK schema pattern. Modified UNSIGNED tests to not include modifier by default (i.e. only present when testing DBMSes that support it). 2016-02-22 04:06:17 -08:00
96fa375b16 Refactored to a more functional way of accessing database connection 2016-02-21 05:05:54 -08:00
6a8348da5f AFTER column name is now escaped by safe method 2016-02-21 04:08:57 -08:00
f52f60db0f Renamed category constants 2016-02-21 02:06:41 -08:00
c50ba2e800 Fixed comment [skip ci] 2016-02-20 16:06:17 -08:00
d18563bd38 Fixed comment formatting. Renamed ColumnSchemaBuilder::CAT_TEXT to ColumnSchemaBuilder::CAT_STRING. [skip ci] 2016-02-20 15:55:59 -08:00
51b99320bd Sqlite specific schema builder class actually gets loaded now 2016-02-20 06:53:31 -08:00
8c0b075bed Merge branch '9340-add-after-method-to-migrations-schema-builder' into 9562-add-char-datatype 2016-02-20 01:59:00 -08:00
eaeb926768 Adds char datatype to framework 2016-02-20 01:52:23 -08:00
0400eb9cee Resolved merge conflict in changelog 2016-02-18 02:34:02 -08:00
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
1f7134634b Use static:: instead of $this for static method calls 2016-02-16 14:06:23 +03:00
1af5980b35 Removed unused use statement, replaced preg_split with explode 2016-02-16 13:46:13 +03:00
386aacae5c Fixes #10422: yii\db\ColumnSchemaBuilder::buildNotNullString now returns NULL instead of empty string to properly work with MSSQL (reverted from commit 2498a9b3bb8b1b535b0dfc451218217a63610eb7) 2016-02-16 01:39:42 +03:00
2498a9b3bb Fixes #10422: yii\db\ColumnSchemaBuilder::buildNotNullString now returns NULL instead of empty string to properly work with MSSQL 2016-02-15 23:55:34 +03:00
af5f5d0e3e Fixes #9851: Fixed partial commit / rollback in nested transactions 2016-02-15 23:32:32 +03:00
ce35739469 joinWith implementation cleanup 2016-02-12 12:45:29 +01:00
3f8df39f45 more tests for joinWith alias
also test on joining the same relation twice
2016-02-12 12:35:29 +01:00
5f19e7aa41 Added Alias Syntax for joinWith()
Add alias syntax to joinWith(), e.g. joinWith('author a').
No need to know the table name for defining an alias for the relation.

fixes #2377, alternative to #8788, which allows later implementation of
getting alias and column name ambiguation.

depends on #10813 to be merged first.
2016-02-12 12:35:28 +01:00
157d6c79cc fixes #4972 by adding and alias() to ActiveQuery
allows defining an alias without knowing the model table name.
2016-02-12 12:34:16 +01:00
af9462bd31 Update return phpDoc queryOne & queryScalar. 2016-02-11 16:34:40 +03:00
f9473ebc61 Fix default value parsing in pgsql\Schema for null values
Fixes #10692
close #10694
2016-02-07 20:07:17 +01:00
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
e43c41c9ea db layer phpdoc fixes 2016-02-07 16:33:26 +01:00
b43ebcc368 yii\db\Connection::createCommand() removed DI usage for performance reasons 2016-02-04 14:32:09 +02:00