Jose
|
4e6b1fd5c6
|
Local loop variable added to fix #7271 bug
|
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 |
Alexander Makarov
|
0c14f47f9a
|
Fixes #3793: Changed inline autocomplete hints style to get more IDEs support
|
10 years ago |
Carsten Brandt
|
871ae29c9c
|
call asArray() instead of assign directly
fixes #3891
|
10 years ago |
Thiago Talma
|
c1445871f4
|
Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
|
11 years ago |
Carsten Brandt
|
44dbb2235a
|
cleanup docs
|
11 years ago |
Qiang Xue
|
54e08f3f01
|
fixed build break.
|
11 years ago |
Qiang Xue
|
8b4dfcc876
|
Fixes #2955: Changed the signature of ActiveQuery constructors and `ActiveRecord::createQuery()` to simplify customizing ActiveQuery classes
|
11 years ago |
Carsten Brandt
|
a35ef1ce7a
|
added andOnCondition and orOnCondition to ActiveQuery
fixes #2957
|
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 |
Carsten Brandt
|
cb8237c1b7
|
merged ActiveQueryInterface and ActiveRelatioInterface
|
11 years ago |
Alexander Makarov
|
dd26d39dd8
|
Removed unused namespace imports
|
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
|
829850da23
|
removed phpdoc about nonexisting param
|
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 |
Alexander Makarov
|
349f2c9e32
|
phpdoc fixes, unused variable
|
11 years ago |
Qiang Xue
|
0c38655217
|
psr-4 move
|
11 years ago |
Qiang Xue
|
dc01411bea
|
Fixes #1791
|
11 years ago |
Qiang Xue
|
eb4385d4c9
|
improved error message of calling invalid scope method.
|
11 years ago |
Qiang Xue
|
b0568612bf
|
Fixes #1402: AR eager loading has problem when asArray() is used together with viaTable().
|
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
|
1acdbb741c
|
moved indexBy() trait -> interface + removed findWith from interface
|
11 years ago |
Carsten Brandt
|
51faa62eca
|
updated interface and trait php-doc in yii\ar
[ci skip]
|
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 |
Carsten Brandt
|
b8e31d50bb
|
renamed AR trait classes
|
11 years ago |
Carsten Brandt
|
4653526262
|
moved common parts of db ActiveRelation and Query to traits
these parts can be reused in other ActiveRecord implementations
|
11 years ago |
Alexander Makarov
|
1f6a823073
|
Short array syntax
|
11 years ago |
Alexander Makarov
|
817516adc5
|
Added missing return
|
11 years ago |
Alexander Makarov
|
6488fe47ec
|
Better phpdoc for chained method calls
|
11 years ago |
Qiang Xue
|
aede3c9f47
|
Removed duplicated indexBy declaration.
|
11 years ago |
Qiang Xue
|
6dba4da3ed
|
Fixes #828: refactored QueryBuilder::build()
|
11 years ago |
Qiang Xue
|
d1ebf65597
|
Fixed the issue that ActiveQuery::one() doesn't bring back related objects when asArray is true.
|
11 years ago |
Qiang Xue
|
f03cdf0a47
|
renamed Command::queryRow() to queryOne().
|
11 years ago |
Qiang Xue
|
c4a57a9f6c
|
Refactored Query and ActiveQuery.
Finished ActiveDataProvider.
|
11 years ago |
Qiang Xue
|
aa568aacb5
|
Added support for using callables as "ActiveQuery::indexBy".
|
11 years ago |
Qiang Xue
|
03e07f4340
|
cleaned up "use" statements.
|
11 years ago |
Qiang Xue
|
f72105166c
|
reorganized the main repo to satisfy PSR-0.
|
12 years ago |
Qiang Xue
|
4ab5ce3b5e
|
Fixed join query for AR.
|
12 years ago |
Qiang Xue
|
0d814fa523
|
Moved "framework" to "iii".
|
12 years ago |
Alexander Kochetov
|
48d04fbb8c
|
!== array() => !empty()
|
12 years ago |
Qiang Xue
|
034d88e5e4
|
Fixes issue #134
|
12 years ago |
Qiang Xue
|
4fdaab3560
|
updated file header.
|
12 years ago |
Qiang Xue
|
abd3d827a2
|
refactoring.
|
12 years ago |
Qiang Xue
|
6dd495b65f
|
Added init and afterFind events to AR.
Implemented scope support.
|
12 years ago |
Qiang Xue
|
b51d347465
|
Added count, average, sum, min, max, scalar methods to ActiveQuery.
Added support for scopes defined in AR classes.
|
12 years ago |
Qiang Xue
|
9958a5802e
|
DB cleanup
|
12 years ago |