Carsten Brandt
f9024dbec1
fixed Migration::execute() to use params correctly
11 years ago
Carsten Brandt
8f491f2836
moved `@include` tags of api docs directly into the class
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
c92a260a3d
Fixes #2415 : Added support for inverse relations
11 years ago
Qiang Xue
abb2a0db97
minor improvement of label generation.
11 years ago
djagya
da16f508c2
#2436 override the function `getAttributeLabel` in `BaseActiveRecord` to receive label of the attribute, which looks like `relatedMode.attribute`, from the related model
11 years ago
djagya
44f5c73111
#2436 override the function `getAttributeLabel` in `BaseActiveRecord` to receive label of the attribute, which looks like `relatedMode.attribute`, from the related model
11 years ago
Qiang Xue
e79af9117e
ensure populateRelation() is called for lazy loading.
11 years ago
Carsten Brandt
8af941fb53
added note about usage to AR::instantiate()
...
fixes #2370
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
Vladimir Zbrailov
3319b54c80
added inherit doc block and task number
11 years ago
Alexander Makarov
c2e0b5beb5
Optimized forms code a bit
11 years ago
Vladimir Zbrailov
d017567273
override create
11 years ago
Vladimir Zbrailov
903f5618fe
Added typecast database types into php types
11 years ago
Carsten Brandt
262189533a
huge amount of documentation link fixes
11 years ago
Alexander Makarov
ee8c0404bf
minor code style and phpdoc fix
11 years ago
Qiang Xue
f6dd6fa2e9
Renamed `ActiveRecordInterface::createActiveRelation()` to `createRelation()`
11 years ago
Alexander Makarov
f21d2ce757
Better phpdoc
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
5d23a066ca
Removed unused imports
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Carsten Brandt
5dca1257b2
reverted primaryKey of elasticsearch to be array again
...
meet the AR interface requirements.
11 years ago
Carsten Brandt
81aea73067
finished offline template with all information
11 years ago
Carsten Brandt
a7b852fcc3
Changed elasticsearch AR primary key handling
...
now supports mapped primary key when _id is part of source with an
alias.
11 years ago
Qiang Xue
943bf88904
doc fix.
11 years ago
Qiang Xue
7eccd9d926
Fixes #1641 : Added `BaseActiveRecord::updateAttributes()`
11 years ago
Qiang Xue
f77e3b4bba
Fixes #1611 : Added `BaseActiveRecord::markAttributeDirty()`
11 years ago
Qiang Xue
d620f3152e
refactored BaseActiveRecord::isPrimaryKey()
11 years ago
Qiang Xue
42d8748e6e
Fixes #1579 : throw exception when the given AR relation name does not match in a case sensitive manner.
...
Renamed `ActiveRecord::getPopulatedRelations()` to `getRelatedRecords()`
11 years ago
Carsten Brandt
43f19e8aee
use andWhere() in AR::find() to work properly with default scope
...
fixes #1469
11 years ago
Carsten Brandt
e2b4708bbd
added support for updateCounters to elasticsearch
...
issue #1313
11 years ago
Qiang Xue
1f5f19df13
Fixes #1457 : support using AR relations as input.
11 years ago
Qiang Xue
a5188f1fbc
Fixes #1457 : support string representation of AR.
11 years ago
Carsten Brandt
c3eb4d926c
created BaseActiveRecord
11 years ago
Carsten Brandt
83527e85ca
made Model::attributes() non static again
...
- allows to have dynamic definition of attributes depended on the
instance
- there was no real need for it to be static. Places that used it static
have been refactored.
fixes #1318
11 years ago
Carsten Brandt
324e10694d
updated sphinx active record with changes from DB AR
11 years ago
Carsten Brandt
8be4f3778a
updated properties of extensions
11 years ago
Carsten Brandt
f017ba357f
refactored unit tests. put common AR tests in trait
11 years ago
Carsten Brandt
e15860c3fa
more on elasticsearch Query interface added facet search
11 years ago
Carsten Brandt
c6347d6d01
polished elasticsearch AR api, added mget and fixed AR::equals()
11 years ago
Qiang Xue
a07facf434
Refactored hasMany and hasOne so that they support cross-DBMS relationship.
11 years ago
Carsten Brandt
cb4504a10f
refactored Model and redis AR to allow drop of RecordSchema
11 years ago
Carsten Brandt
77840adf65
Made ActiveRecord::isPrimaryKey() public
...
+ added tests and fixed behavior
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
slavcodev
b0b1c27c85
Fix phpDoc var tag format
11 years ago
Taras Gudz
9b95a81b0c
Fixed the rest phpDocs [skip ci]
11 years ago
Carsten Brandt
913eb62294
updated phpdoc and fixed generator read/write-only annotation
11 years ago