Carsten Brandt
33a00ecd7c
updated base AR phpdoc for findOne() and findAll()
11 years ago
Carsten Brandt
3c400dbca8
fixed file PHPdoc
...
issue #3026
11 years ago
Carsten Brandt
fa767ceaca
renamed attributes to attributeNames in model
...
fixes #3034
11 years ago
Qiang Xue
0e143338d7
Finished refactoring find() .
11 years ago
Qiang Xue
b7d6f6141a
Added `isAssociative()` and `isIndexed()` to `yii\helpers\ArrayHelper`
11 years ago
Alexander Makarov
75154d351d
Refactored AR find
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
Qiang Xue
338b6aa7d3
Refactored ActiveRecord::find() so that find(null) will also return an ActiveRecord instance instead of ActiveQuery.
11 years ago
Carsten Brandt
c73cfe147f
Fixed inconsistencies with setting old attributes and pks
...
issue #2892
11 years ago
Carsten Brandt
f4395206b7
reset dirty attributes after `afterSave`
...
so information about changed values is available in `afterSave`-event.
fixes #2892
11 years ago
Carsten Brandt
8a6eceb852
phpdoc fixes
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
6fff5662df
better use @see for See in phpdoc
11 years ago
Qiang Xue
4f8c037a21
fixed unset.
11 years ago
Qiang Xue
9b8ffdfacc
Fixes #2653 : Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue)
11 years ago
Qiang Xue
11baf61977
Fixed unsetting relation bug.
11 years ago
Qiang Xue
3f42d5826a
REST wip.
11 years ago
Carsten Brandt
f34a0c63a1
fixed phpdoc
11 years ago
Carsten Brandt
80cc310895
updated phpdoc references of BaseAR to the interface
...
fixes #2623
11 years ago
Alexander Mohorev
c7e8d8b900
@param , @var , @property and @return must declare types as boolean, integer, string, array or null
11 years ago
Qiang Xue
9beba31fc0
rest WIP
11 years ago
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