Alexander Makarov
615a29f04e
More fixes for MSSQL tests
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
357bce51bb
Tests for #9006
9 years ago
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
9 years ago
Klimov Paul
a849e815df
Fixed `yii\db\ActiveQuery` produces incorrect SQL for aggregations, when `sql` field is set
9 years ago
Klimov Paul
51a442d6c8
Fixed `yii\db\ActiveRecord` does not updates attribute specified at `optimisticLock()` after save
9 years ago
Klimov Paul
6d96d3cbee
Fixed `yii\db\BaseActiveRecord::updateCounters()` fails for new record saved with counter attribute not set
10 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
Jan Waś
9e6b7dea24
add an unit test, which fails for postgresql and oracle
10 years ago
John Was
4f49feee8d
fixes #7757 : in oci schema fix query results row keys case when PDO::ATTR_CASE is set to PDO::CASE_LOWER
...
added test to check support for setting PDO::ATTR_CASE and fetching table schemas
fixed fetching table schemas for mysql when PDO::ATTR_CASE is set
added tests for oci
fixed fetching composite fks for oci
improvements in oci schema parsing
removed autoIncrement detection fro oci and added test to verify that
implement batchInsert for oci
fix detecting IntegrityException for oci
fixed creating raw sql by skipping object and resource params
fix command test failing for sqlite
10 years ago
Jose Lorente
98759201ac
Fixed bug #7271 . Classes that call '*::populateRecord()' after retrieving data from ddbb call now the method on the class of the model returned by '*::instantiate()'. Tests for mysql, elasticsearch and mongodb attached.
10 years ago
Carsten Brandt
1b4d894c9d
created test for #5341
10 years ago
Qiang Xue
aa8c013ebf
Fixes #3197 : Using `ActiveQuery::indexBy()` may cause relational AR queries to generate incorrect relational results
10 years ago
Qiang Xue
b9c97ff2aa
Fixes #4938 : When `yii\db\ActiveQuery` is used to build sub-queries, its WHERE clause is not correctly generated
10 years ago
Qiang Xue
2150fa3239
Fixes #4970 : `joinWith()` called by a relation was ignored by `yii\db\ActiveQuery`
10 years ago
Stephen Seliuk
70ed5d5c01
Test for fix
10 years ago
Carsten Brandt
c4dc9470be
created a test case to verify #4682
10 years ago
Qiang Xue
1b4a9b62cd
Fixes #3568 : When the primary query sets `asArray`, it is not respected by the `via` relational query
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Carsten Brandt
0208f289c3
fixed test breaks
10 years ago
Carsten Brandt
d92281dcda
refactored ActiveRecord::unlinkAll() to work will noSQL
...
issue #3520
10 years ago
Alexander Makarov
0003b10b02
ElasticSearch tests fix
10 years ago
NmDimas
95d2b29bff
Change unit test to Unlink and add test to unlinkAll
10 years ago
Alexander Makarov
75154d351d
Refactored AR find
11 years ago
Qiang Xue
581aad8e22
Fixed test break.
11 years ago
Carsten Brandt
1a3accb6cb
removed duplicated joins when using joinWith and via relations
...
fixes #2650
11 years ago
Qiang Xue
f7a6cb9f7a
Refactored AR tests.
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
11 years ago
Qiang Xue
636042b9b3
Fixed test break.
11 years ago
Qiang Xue
39667aa6b7
Fixed activequery select issue.
11 years ago
Qiang Xue
bc378d1cae
properly quote table names for join().
11 years ago
Qiang Xue
21bc29560c
Fixed test break.
11 years ago
Qiang Xue
78136d4278
Fixes #2880 : filterByModels() should prefix key columns in a join query.
11 years ago
Alexander Makarov
af030c5f5b
Added $skipIfSet to ActiveRecord::loadDefaultValues
11 years ago
Alexander Makarov
aece6d309e
Adjusted test for cubrid
11 years ago
Alexander Makarov
5c3e4fa4ba
Adjusted unit tests, added description to docs
11 years ago
Alexander Makarov
b66427f8c7
Fixes #2726 : ActiveRecord now fills default values on creating new instance of the model if defaults are available from DB schema
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
bcf5b4644e
Fixes #2687 : ActiveQuery::joinWith() has problem when the query is used twice.
11 years ago
AlexGx
32d0768919
style fixes with phpcs:yii2
11 years ago
Qiang Xue
b9743ef65b
fixed test break.
11 years ago
Qiang Xue
a2edf01c85
Delay joinWith till createCommand to correctly combine relation condition with primary condition.
11 years ago
Carsten Brandt
c21e01930e
added unit test for #2568
11 years ago
Carsten Brandt
683a46d9ee
test for deeply nested relation
...
close #2543
11 years ago
Qiang Xue
c92a260a3d
Fixes #2415 : Added support for inverse relations
11 years ago
Alexander Makarov
dd26d39dd8
Removed unused namespace imports
11 years ago
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
11 years ago
Qiang Xue
c4c328dc92
Fixes #1791 : support ON condition for relational query.
11 years ago
Qiang Xue
795a09c27a
Fixes #1791 : joinWithRelation using table alias.
11 years ago