cba52e3c5e
Fixes #5382 : renamed "pivot table" to "junction table" since it's correct term to use
2014-10-07 01:13:17 +04:00
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
2150fa3239
Fixes #4970 : joinWith()
called by a relation was ignored by yii\db\ActiveQuery
2014-09-10 15:00:15 -04:00
35b54345b5
Handling $query->joinWith called inside of other $query->joinWith within Closure (called inside Closure). Ex.: ``php $query->joinWith( [ 'rel1' => function($query) { $query->joinWith( [ 'rel2' => function($query) { // ... } ] ); } ] );
``
2014-09-10 14:49:11 -04:00
fa8e576251
Refactored ActiveQuery::one() to be consistent with all() creation
2014-07-31 16:38:23 +03:00
e8c6bb516f
Fixes #4048 : Added init
event to ActiveQuery
classes
2014-07-19 20:26:58 -04:00
593b478f2b
Added extra callable typehints
2014-07-10 19:12:05 +04:00
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
2014-06-20 17:40:00 +04:00
ce1e469751
ActiveQuery::one() slight refactoring
2014-06-01 02:34:48 +04:00
563e7e0174
Update ActiveQuery.php
...
PHPDoc comment does not match function or method signature
Update PHPDoc Comment
Adjust code standard
2014-04-15 19:58:06 -03:00
3c400dbca8
fixed file PHPdoc
...
issue #3026
2014-04-10 22:10:59 +02:00
1a3accb6cb
removed duplicated joins when using joinWith and via relations
...
fixes #2650
2014-04-04 15:34:19 +02:00
54e08f3f01
fixed build break.
2014-04-03 11:57:49 -04:00
a35ef1ce7a
added andOnCondition and orOnCondition to ActiveQuery
...
fixes #2957
2014-04-02 16:17:50 +02:00
ab799d8ea9
Fixes #2911 : Removed tbl_
default for table prefix
2014-03-30 19:33:46 +04:00
13c0931b23
Fixes #2880
2014-03-27 10:58:56 -04:00
f3c26d3c6b
Fixes #2880 .
2014-03-26 19:52:17 -04:00
5567caf4e8
Merge branch 'master' of git://github.com/yiisoft/yii2
2014-03-26 15:03:06 -04:00
bc378d1cae
properly quote table names for join().
2014-03-26 15:02:56 -04:00
27659d1776
fixed FileHelper private method static call
2014-03-26 17:51:52 +01:00
9b8372d580
phpdoc
2014-03-26 14:25:00 +01:00
488767914a
do not remove records that have no primary key selected
...
this problem occurs when joining active record but not selecting the
primary key field. records get populated but they do not have primary
key value populated which results in only one record left over in the
result.
2014-03-25 13:35:25 +01:00
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
aaa4e429a4
Fixes #2687 : table alias may not be respected when specified in relation query.
2014-03-11 20:13:03 -04:00
bcf5b4644e
Fixes #2687 : ActiveQuery::joinWith() has problem when the query is used twice.
2014-03-10 21:44:48 -04:00
6d72c6a723
fix code style
2014-03-04 06:27:22 +02:00
a2edf01c85
Delay joinWith till createCommand to correctly combine relation condition with primary condition.
2014-03-01 18:39:22 -05:00
cb8237c1b7
merged ActiveQueryInterface and ActiveRelatioInterface
2014-02-20 16:15:10 +01:00
1708a36d95
WIP merge ActiveRelation into ActiveQuery
...
allow extending only one class to add scopes, fixes #2146
TODO:
- [ ] adjust guide docs
- [ ] adjust README files of extensions
- [ ] finish work and fix test breaks
2014-02-20 05:53:36 +01:00
3a930bd675
Finished batch query feature.
2014-02-14 18:13:42 -05:00
1571c72251
Fixes #2409 : Added support for fetching data from database in batches
2014-02-14 16:45:46 -05:00
f59598bb8b
Added support for building SQLs with sub-queries
2014-02-11 23:23:02 -05:00
16e1aff41b
renamed ActiveRecord::create() to populateRecord()
...
- refactored elasticsearch AR to make type and index available in
instantiate(), issue #1313
fixes #2281
2014-02-03 14:07:12 +01:00
b119576041
Fixes #2016 : removed ability to declare scopes in ActiveRecord leaving it to ActiveQuery. Changed documentation accordingly.
2014-01-17 22:07:02 +04:00
796284cba1
reworked fix for #1993
2014-01-16 11:05:26 +01:00
81d23332df
afterFind event in AR is now called after relations have been populated
...
fixes #1993
2014-01-16 10:28:58 +01:00
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00
0d814fa523
Moved "framework" to "iii".
2013-05-09 12:00:15 -04:00
48d04fbb8c
!== array() => !empty()
2013-05-07 19:57:27 +04:00
034d88e5e4
Fixes issue #134
2013-05-06 08:04:35 -04:00
4fdaab3560
updated file header.
2013-03-04 08:03:46 -05:00
abd3d827a2
refactoring.
2013-01-18 10:37:22 -05:00
6dd495b65f
Added init and afterFind events to AR.
...
Implemented scope support.
2013-01-17 20:58:50 -05:00
b51d347465
Added count, average, sum, min, max, scalar methods to ActiveQuery.
...
Added support for scopes defined in AR classes.
2013-01-17 19:26:20 -05:00
9958a5802e
DB cleanup
2013-01-17 12:54:13 -05:00
5d90e6da80
removed scopes.
...
finished AR documentation.
2013-01-14 20:19:08 -05:00
cc33a930c9
Finished AR API.
2013-01-13 21:17:45 -05:00
3ca50f3043
clean up AR
2013-01-13 10:23:03 -05:00
ef8b092278
initial draft of saving related models.
2013-01-11 23:10:35 -05:00