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
Carsten Brandt
ad69b0f8cb
added note about fields that can be used in onCondition
9 years ago
Carsten Brandt
7c7ed48c4c
cleanup docs and duplicate code in query
9 years ago
Alexander Makarov
8765cae71c
Reverted #9656 because of BC break (reverted from commit 4a464afe9b
)
9 years ago
Sam Mousa
4a464afe9b
Fixes #9656 : `yii\db\BaseActiveRecord` refactored in order to getting, setting and unsetring attribute values using the same approach
9 years ago
Alexander Makarov
e4f5b91f74
Fixed #6351 MySQL 5.1 compatibility
9 years ago
Sam Mousa
603a956b8d
Implemented __sleep in yii\db\Connection
...
to support serializing the connection object without exceptions.
- Added test for serializing an open connection.
- Added unserialize test
close #10149
9 years ago
Alexander Makarov
7641d2d83b
Enhanced #9337 as @klimov-paul suggested in e94810551c (commitcomment-14335135)
9 years ago
Alexander Makarov
cddb036cf9
Fixes #9790 : Fixed `yii\db\sqlite\QueryBuilder` to generate proper SQL for UNION
9 years ago
Constantine Chuprik
e94810551c
Fixes #9337 : Added `yii\db\ColumnSchemaBuilder::defaultExpression()` to support DB Expression as default value
9 years ago
Alexander Makarov
95f251edd1
Fixes #10084 : Improved DB docs
9 years ago
Steve Guns
d40435e931
Enhanced #6351 fix by reintroduced older (SQL CREATE) style FK detection for people still running MySQL servers where referential_constraints is not available
9 years ago
Carsten Brandt
decd45201c
allow passing a single Expression object to select() and addSelect()
...
fixes #9883
9 years ago
Alexander Makarov
1b3770fd21
Use === instead of == where possible
9 years ago
Alexander Makarov
f83d233072
Fixed method call case to match definition
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
A Slatius
a030cd4250
Allow the use of Yii aliases in an SQLite dsn
...
Making it possible to use a SQLite DSN like;
```php
'db' => [
'dsn' => 'sqlite:@app/db/database.sqlite3',
]
```
That way it'll always work out of the box and absolute paths aren't
needed.
close #9869
9 years ago
jeicd
c2f83da8d8
Fix phpdoc
9 years ago