Qiang Xue
7cf358af03
Fixes #4607 : AR model will throw an exception if it does not have a primary key to avoid updating/deleting data massively
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
10 years ago
miramir
67bd4972ba
Check availabilty field in BaseActiveRecord::populateRecord
...
check with Object::canSetProperty()
fixes #4305 , close #4211
10 years ago
Carsten Brandt
d036d2f5bf
add support for array valued attr relations to unlink and link
10 years ago
Qiang Xue
05e21b7291
Fixes #4135
10 years ago
Carsten Brandt
1085f1bd9b
cleanup after #4092
...
fixes #4086
10 years ago
Vladimir Zbrailov
7113a23a45
change PhpDoc of param
10 years ago
Vladimir Zbrailov
44f20c61a0
changedAttributes of AfterSaveEvent contain an old values
10 years ago
Qiang Xue
86f06677e9
Refactored AR findOne() and findAll().
10 years ago
Carsten Brandt
7b13c370e9
fixes #3681 , disambiguate PK in findOne and findAll
10 years ago
Carsten Brandt
edb95052e8
use an AfterSaveEvent class to be consistent
10 years ago
Carsten Brandt
b0fb04efd4
fixed test break and wrong parameter
10 years ago
Carsten Brandt
0899b8d474
changed updateAttributes to be more simple update
...
fixes #3233
10 years ago
Carsten Brandt
2cab70b064
Ensure consistent behavior in ActiveRecord::afterSave()
...
fixes #4012
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Carsten Brandt
d92281dcda
refactored ActiveRecord::unlinkAll() to work will noSQL
...
issue #3520
10 years ago
Alexander Makarov
a5c4a0ebb4
Adjusted BaseActiveRecord code for better noSQL compatibility
10 years ago
NmDimas
5599a86a81
Add support all type relation
11 years ago
NmDimas
e11ec66b06
add change to CHANGELOG,and mini refactoring
11 years ago
NmDimas
a047bf2cd6
Method to unlink all relationship many to many in current model
11 years ago
Alexander Kochetov
d041116b94
`BaseActiveRecord::findAll()` comment fix
11 years ago
Carsten Brandt
76d8e2b5b3
code style, fixes #3140
11 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
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