Carsten Brandt
3c400dbca8
fixed file PHPdoc
...
issue #3026
11 years ago
Carsten Brandt
1a3accb6cb
removed duplicated joins when using joinWith and via relations
...
fixes #2650
11 years ago
Qiang Xue
54e08f3f01
fixed build break.
11 years ago
Carsten Brandt
a35ef1ce7a
added andOnCondition and orOnCondition to ActiveQuery
...
fixes #2957
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
11 years ago
Qiang Xue
13c0931b23
Fixes #2880
11 years ago
Qiang Xue
f3c26d3c6b
Fixes #2880 .
11 years ago
Qiang Xue
bc378d1cae
properly quote table names for join().
11 years ago
Carsten Brandt
27659d1776
fixed FileHelper private method static call
11 years ago
Carsten Brandt
9b8372d580
phpdoc
11 years ago
Carsten Brandt
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.
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
aaa4e429a4
Fixes #2687 : table alias may not be respected when specified in relation query.
11 years ago
Qiang Xue
bcf5b4644e
Fixes #2687 : ActiveQuery::joinWith() has problem when the query is used twice.
11 years ago
AlexGx
6d72c6a723
fix code style
11 years ago
Alexander Mohorev
95ea1c20bb
code style. FOREACH
11 years ago
Qiang Xue
a2edf01c85
Delay joinWith till createCommand to correctly combine relation condition with primary condition.
11 years ago
Carsten Brandt
cb8237c1b7
merged ActiveQueryInterface and ActiveRelatioInterface
11 years ago
Carsten Brandt
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
11 years ago
Qiang Xue
3a930bd675
Finished batch query feature.
11 years ago
Qiang Xue
1571c72251
Fixes #2409 : Added support for fetching data from database in batches
11 years ago
Qiang Xue
f59598bb8b
Added support for building SQLs with sub-queries
11 years ago
Carsten Brandt
16e1aff41b
renamed ActiveRecord::create() to populateRecord()
...
- refactored elasticsearch AR to make type and index available in
instantiate(), issue #1313
fixes #2281
11 years ago
Alexander Makarov
b119576041
Fixes #2016 : removed ability to declare scopes in ActiveRecord leaving it to ActiveQuery. Changed documentation accordingly.
11 years ago
Carsten Brandt
796284cba1
reworked fix for #1993
11 years ago
Carsten Brandt
81d23332df
afterFind event in AR is now called after relations have been populated
...
fixes #1993
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
dc01411bea
Fixes #1791
11 years ago
Qiang Xue
5a703b7ae1
Further cleanup.
11 years ago
Qiang Xue
5094842370
Fixed test break.
11 years ago
Qiang Xue
9ceaf3bd1c
Fixes #1791 .
11 years ago
Qiang Xue
9d73048be9
Fixes #1791 .
11 years ago
Qiang Xue
daf6c81f27
Fixes #1791
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
Qiang Xue
1654381a3a
support table aliases for ActiveQuery::joinWith().
11 years ago
Qiang Xue
2d3ac6b4e2
Fixes #1638 : prevent table names from being enclosed within curly brackets twice.
11 years ago
Qiang Xue
0345191245
Added ActiveQuery::innerJoinWith().
11 years ago
Qiang Xue
dc720d9bf4
more docs about joinwith()
11 years ago
Qiang Xue
4f44bb2416
Fixes #1581 : Added `ActiveQuery::joinWith()` to support joining with relations
11 years ago
Qiang Xue
2402d2d031
Draft implementation of ActiveQuery::joinWith().
11 years ago
Qiang Xue
56c361bb9e
Fixed changelog.
11 years ago
Qiang Xue
9649a6727a
Renamed `attributeName` and `className` to `targetAttribute` and `targetClass` for `UniqueValidator` and `ExistValidator`.
...
Refactored UniqueValidator and ExistValidator.
11 years ago
Carsten Brandt
124a73a598
make Query reuseable
...
fixes #1545
11 years ago
Carsten Brandt
2febbebb44
fixed params in Query to allow execution twice
...
fixes #1545
11 years ago
Carsten Brandt
5164a1671c
finalized Query interface + general cleanup
11 years ago
Qiang Xue
a2fe128455
refactored query and relation.
11 years ago
Qiang Xue
42a58870fe
moved db interfaces and traits back to yii/db.
11 years ago
Carsten Brandt
65338972c7
refactored ActiveRecord classes to use Interfaces and traits
...
this allows us to implement other activerecord implementations based on
NoSQL dbms
11 years ago