Carsten Brandt
191f2a4943
fixed phpdoc type names
9 years ago
Carsten Brandt
af75262541
fixed sqlite bigPk creation
9 years ago
Carsten Brandt
c5a60ce2ec
Avoid `new $this->modelClass` in ActiveQuery::findWith()
...
reduces the issue described in #8639 to `joinWith()` and `asArray()`.
close #10940
9 years ago
SilverFire - Dmitry Naumenko
2201bf14e2
Fixed parameters binding to the SQL query in `yii\db\mysqlSchema::findConstraints()`
...
Closes #10946
9 years ago
Carsten Brandt
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.
9 years ago
Chris Harris
3761682edf
Upgraded some tests. Fixed MySQL test fixtures to create all tables with InnoDB.
9 years ago
Chris Harris
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).
9 years ago
Chris Harris
96fa375b16
Refactored to a more functional way of accessing database connection
9 years ago
Chris Harris
6a8348da5f
AFTER column name is now escaped by safe method
9 years ago
Chris Harris
f52f60db0f
Renamed category constants
9 years ago
Chris Harris
c50ba2e800
Fixed comment [skip ci]
9 years ago
Chris Harris
d18563bd38
Fixed comment formatting. Renamed ColumnSchemaBuilder::CAT_TEXT to ColumnSchemaBuilder::CAT_STRING. [skip ci]
9 years ago
Chris Harris
51b99320bd
Sqlite specific schema builder class actually gets loaded now
9 years ago
Chris Harris
eaeb926768
Adds `char` datatype to framework
9 years ago
Alexander Makarov
5c4e2d4372
Removed unnecessary parentheses
9 years ago
Alexander Makarov
1f7134634b
Use static:: instead of $this for static method calls
9 years ago
Alexander Makarov
1af5980b35
Removed unused use statement, replaced preg_split with explode
9 years ago
Alexander Makarov
386aacae5c
Fixes #10422 : `yii\db\ColumnSchemaBuilder::buildNotNullString` now returns `NULL` instead of empty string to properly work with MSSQL (reverted from commit 2498a9b3bb
)
9 years ago
nevermnd
2498a9b3bb
Fixes #10422 : `yii\db\ColumnSchemaBuilder::buildNotNullString` now returns `NULL` instead of empty string to properly work with MSSQL
9 years ago
Sam Mousa
af5f5d0e3e
Fixes #9851 : Fixed partial commit / rollback in nested transactions
9 years ago
Carsten Brandt
ce35739469
joinWith implementation cleanup
9 years ago
Carsten Brandt
3f8df39f45
more tests for joinWith alias
...
also test on joining the same relation twice
9 years ago
Carsten Brandt
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.
9 years ago
Carsten Brandt
157d6c79cc
fixes #4972 by adding and `alias()` to `ActiveQuery`
...
allows defining an alias without knowing the model table name.
9 years ago
Evgeniy Tkachenko
af9462bd31
Update return phpDoc queryOne & queryScalar.
9 years ago
Jan Siqueira
f9473ebc61
Fix default value parsing in pgsql\Schema for null values
...
Fixes #10692
close #10694
9 years ago
Carsten Brandt
f620f4de90
phpdoc fixes
9 years ago
Carsten Brandt
e43c41c9ea
db layer phpdoc fixes
9 years ago
SilverFire - Dmitry Naumenko
b43ebcc368
yii\db\Connection::createCommand() removed DI usage for performance reasons
9 years ago
Carsten Brandt
49c15fa304
better documentation for Command in db Connection
9 years ago
SilverFire - Dmitry Naumenko
8b92b08306
db/Connection - update PHPDocs, update CHANGELOG
9 years ago
Sam Mousa
aa36f63f4c
Fixed issue #7674
9 years ago
Carsten Brandt
8680f0f1d8
BC way of merging expression params of orderBy and groupBy
...
this logic should be moved to the sub methods in 2.1
9 years ago
Carsten Brandt
f0a62cdbd3
allow expressions in GROUP BY
9 years ago
Carsten Brandt
5a462dc5d2
added tests and documentation for #8824
9 years ago
Carsten Brandt
c3240525df
updated docs about Expression class
...
fixes #10647
9 years ago
Andrew Nester
61df727eaf
Expression objects for orderBy should be handled in QueryBuilder
...
fixes #10535
close #10637
- Added test to prove orderBy accepts \yii\db\Expression
9 years ago
githubjeka
2c3e9a4296
phpDoc of getTableSchema|loadTableSchema updated
9 years ago
githubjeka
5326b7aaf6
refactoring for getTableSchema
9 years ago
githubjeka
9ae21e5df2
phpDoc of joinWith updated to \yii\db\ActiveQuery
9 years ago
githubjeka
2b6ceb1eb7
phpDoc updated
9 years ago
Chris Harris
457002c216
Sqlite specific schema builder class actually gets loaded now
9 years ago
Chris Harris
85fdc143d6
Documentation fix
9 years ago
Chris Harris
bce61bd474
Add `after()` option to migrations schema builder
9 years ago
Alexander Makarov
5cecb09c1b
Fixes #9443 : Added `unsigned()` to `ColumnSchemaBuilder`
9 years ago
Hereward Mills
a4acd048bc
Add @throws tags to PHPDocs.
9 years ago
SilverFire - Dmitry Naumenko
2275156f7e
PHPDoc updated
9 years ago
Carsten Brandt
468886a77b
small refactoring for #9452
9 years ago
Klimov Paul
bea90e1228
Fixed `yii\db\Query::where()` does not add params from directly passed `yii\db\Expression`
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago