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.
2015-02-15 17:25:43 -05:00
Carsten Brandt
1b4d894c9d
created test for #5341
2014-10-03 23:16:58 +02:00
Qiang Xue
aa8c013ebf
Fixes #3197 : Using ActiveQuery::indexBy() may cause relational AR queries to generate incorrect relational results
2014-09-23 10:29:11 -04:00
Qiang Xue
b9c97ff2aa
Fixes #4938 : When yii\db\ActiveQuery is used to build sub-queries, its WHERE clause is not correctly generated
2014-09-12 16:46:12 -04:00
Qiang Xue
2150fa3239
Fixes #4970 : joinWith() called by a relation was ignored by yii\db\ActiveQuery
2014-09-10 15:00:15 -04:00
Stephen Seliuk
70ed5d5c01
Test for fix
2014-09-10 14:49:12 -04:00
Carsten Brandt
c4dc9470be
created a test case to verify #4682
2014-08-13 12:45:20 +02:00
Qiang Xue
1b4a9b62cd
Fixes #3568 : When the primary query sets asArray, it is not respected by the via relational query
2014-06-25 23:35:02 -04:00
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
2014-06-20 17:40:00 +04:00
Carsten Brandt
0208f289c3
fixed test breaks
2014-06-04 19:12:18 +02:00
Carsten Brandt
d92281dcda
refactored ActiveRecord::unlinkAll() to work will noSQL
...
issue #3520
2014-06-04 14:28:57 +02:00
Alexander Makarov
0003b10b02
ElasticSearch tests fix
2014-06-02 18:14:02 +04:00
NmDimas
95d2b29bff
Change unit test to Unlink and add test to unlinkAll
2014-06-01 22:40:05 +03:00
Alexander Makarov
75154d351d
Refactored AR find
2014-04-07 09:43:03 +04:00
Qiang Xue
581aad8e22
Fixed test break.
2014-04-04 10:25:08 -04:00
Carsten Brandt
1a3accb6cb
removed duplicated joins when using joinWith and via relations
...
fixes #2650
2014-04-04 15:34:19 +02:00
Qiang Xue
f7a6cb9f7a
Refactored AR tests.
2014-03-30 20:46:25 -04:00
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed tbl_ default for table prefix
2014-03-30 19:33:46 +04:00
Qiang Xue
636042b9b3
Fixed test break.
2014-03-26 16:16:39 -04:00
Qiang Xue
39667aa6b7
Fixed activequery select issue.
2014-03-26 15:51:10 -04:00
Qiang Xue
bc378d1cae
properly quote table names for join().
2014-03-26 15:02:56 -04:00
Qiang Xue
21bc29560c
Fixed test break.
2014-03-26 12:50:58 -04:00
Qiang Xue
78136d4278
Fixes #2880 : filterByModels() should prefix key columns in a join query.
2014-03-26 11:19:01 -04:00
Alexander Makarov
af030c5f5b
Added $skipIfSet to ActiveRecord::loadDefaultValues
2014-03-20 19:43:59 +04:00
Alexander Makarov
aece6d309e
Adjusted test for cubrid
2014-03-20 14:27:47 +04:00
Alexander Makarov
5c3e4fa4ba
Adjusted unit tests, added description to docs
2014-03-19 23:07:56 +04:00
Alexander Makarov
b66427f8c7
Fixes #2726 : ActiveRecord now fills default values on creating new instance of the model if defaults are available from DB schema
2014-03-19 18:06:20 +04:00
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
Qiang Xue
bcf5b4644e
Fixes #2687 : ActiveQuery::joinWith() has problem when the query is used twice.
2014-03-10 21:44:48 -04:00
AlexGx
32d0768919
style fixes with phpcs:yii2
2014-03-08 14:55:58 +02:00
Qiang Xue
b9743ef65b
fixed test break.
2014-03-01 19:35:00 -05:00
Qiang Xue
a2edf01c85
Delay joinWith till createCommand to correctly combine relation condition with primary condition.
2014-03-01 18:39:22 -05:00
Carsten Brandt
c21e01930e
added unit test for #2568
2014-02-27 15:13:51 +01:00
Carsten Brandt
683a46d9ee
test for deeply nested relation
...
close #2543
2014-02-25 15:03:54 +01:00
Qiang Xue
c92a260a3d
Fixes #2415 : Added support for inverse relations
2014-02-18 19:43:05 -05:00
Alexander Makarov
dd26d39dd8
Removed unused namespace imports
2014-02-07 13:26:00 +04:00
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
2014-01-19 13:35:36 -03:00
Qiang Xue
c4c328dc92
Fixes #1791 : support ON condition for relational query.
2014-01-06 23:56:58 -05:00
Qiang Xue
795a09c27a
Fixes #1791 : joinWithRelation using table alias.
2014-01-05 17:42:40 -05:00
Qiang Xue
0345191245
Added ActiveQuery::innerJoinWith().
2013-12-24 21:27:13 -05:00
Qiang Xue
4f44bb2416
Fixes #1581 : Added ActiveQuery::joinWith() to support joining with relations
2013-12-24 00:08:49 -05:00
Qiang Xue
2402d2d031
Draft implementation of ActiveQuery::joinWith().
2013-12-23 22:26:44 -05:00
Qiang Xue
164ddf98b0
Fixed test break.
2013-12-04 00:06:01 -05:00
Qiang Xue
b868e91fee
Fixed test break.
2013-12-03 23:52:21 -05:00
Carsten Brandt
643593737d
added test case for #1310
2013-11-24 20:45:50 +01:00
Carsten Brandt
f017ba357f
refactored unit tests. put common AR tests in trait
2013-11-24 19:18:16 +01:00
Carsten Brandt
c6347d6d01
polished elasticsearch AR api, added mget and fixed AR::equals()
2013-11-23 15:26:00 +01:00
Carsten Brandt
bc4324c041
Merge branch 'master' into redis
...
* master: (613 commits)
fixed typo
Fixes #1222 : refactored jui/Widget, intorduced jui/Slider and jui/SliderInput
Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
Correct Nav.php comments/PHP doc to reflect BS3 dropdown support.
Added example for dividers to bootstrap Nav
Checkboxlist documentation fix
Added "Using controller action to render errors"
Fix doc
Renamed DetailView attribute type to format
encode email in Formatter
Added default status code setting.
"yii\swiftmailer\Mailer" transport setup has been advanced to support constructor arguments and plugins.
fix rbac select statement
Comments cleanup.
Reverted closeButton
Nomenclature and code realignment.
better nginx config
guide about using bootstrap less files
Include Schema in new migrations by default
...
Conflicts:
framework/yii/db/ActiveRecord.php
framework/yii/db/ActiveRelation.php
tests/unit/data/config.php
2013-11-22 15:04:08 +01:00
Carsten Brandt
77840adf65
Made ActiveRecord::isPrimaryKey() public
...
+ added tests and fixed behavior
2013-11-16 16:53:50 +01:00
Carsten Brandt
9448c3d471
added unit tests for active dataprovider and fixed query tests
2013-11-13 19:35:44 +01:00