Carsten Brandt
f099616967
improved IDE autocompletion for AR::find()
...
[ci skip]
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
7736853837
property code style extensions
10 years ago
Qiang Xue
e8c6bb516f
Fixes #4048 : Added `init` event to `ActiveQuery` classes
10 years ago
Vladimir Zbrailov
f9febd0087
unify changedAttributes of afterSave in extensions
10 years ago
Carsten Brandt
6578cfbdab
updated phpdoc and classmap
10 years ago
Carsten Brandt
2cab70b064
Ensure consistent behavior in ActiveRecord::afterSave()
...
fixes #4012
10 years ago
Borales
fda64b4b8f
[WIP] #3527 Fixing spaces
11 years ago
Borales
2e7ae3801e
[WIP] #3527 Improving Elasticsearch extension
11 years ago
Carsten Brandt
676b366928
adjusted elasticsearch extension to version 1.0 of ES
...
breaking changes.
11 years ago
Carsten Brandt
fe14f0c5e3
fixed all the PHPdoc in extensions
11 years ago
Qiang Xue
0e143338d7
Finished refactoring find() .
11 years ago
Alexander Makarov
75154d351d
Refactored AR find
11 years ago
Carsten Brandt
44dbb2235a
cleanup docs
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
f4395206b7
reset dirty attributes after `afterSave`
...
so information about changed values is available in `afterSave`-event.
fixes #2892
11 years ago
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Luciano Baraglia
269d1303a9
Code style fixes
11 years ago
AlexGx
1982efbdfe
many phpcs fixes
11 years ago
Alexander Mohorev
95ea1c20bb
code style. FOREACH
11 years ago
Carsten Brandt
505762d49c
updated docs about active relation
11 years ago
Carsten Brandt
3b40d44909
made createQuery() config param optional
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
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
Carsten Brandt
21ae27b306
updated phpdoc properties
11 years ago
Qiang Xue
f6dd6fa2e9
Renamed `ActiveRecordInterface::createActiveRelation()` to `createRelation()`
11 years ago
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
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
da9d544c54
psr-4 change.
11 years ago
Carsten Brandt
35b5bd8ef4
removed get() shortcut from find()
11 years ago
Carsten Brandt
6d0f1e4c23
improved error reporting
11 years ago
Carsten Brandt
5dca1257b2
reverted primaryKey of elasticsearch to be array again
...
meet the AR interface requirements.
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
Carsten Brandt
43f19e8aee
use andWhere() in AR::find() to work properly with default scope
...
fixes #1469
11 years ago
Qiang Xue
41685a2409
moved extensions under yii.
11 years ago
Carsten Brandt
e2b4708bbd
added support for updateCounters to elasticsearch
...
issue #1313
11 years ago
Alexander Makarov
26767735dc
Renamed byte methods, moved path methods back to StringHelper
11 years ago
Alexander Makarov
5f2a612c78
Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods
11 years ago
Carsten Brandt
ff52f28d0a
adjusted elasticsearch and redis AR to use BaseAR
11 years ago
Qiang Xue
a5e3c00d75
replaced inheritdoc tags.
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
Panagiotis Moustafellos
2ff8ac3d61
fixed PhpDoc by swapping to {@inheritdoc}
11 years ago
Carsten Brandt
40fc84b342
cleanup & docs
11 years ago
Carsten Brandt
5164a1671c
finalized Query interface + general cleanup
11 years ago
Carsten Brandt
613758dda5
refactored elasticsearch COnnection and Command
11 years ago
Carsten Brandt
b081cf5e46
moved elasticsearch to extensions
11 years ago