Qiang Xue
8b4dfcc876
Fixes #2955 : Changed the signature of ActiveQuery constructors and `ActiveRecord::createQuery()` to simplify customizing ActiveQuery classes
11 years ago
Evgeniy Tkachenko
90caa527f2
Update ActiveRecord.php
...
fix for https://github.com/yiisoft/yii2/pull/2958
11 years ago
Qiang Xue
271dccdc6b
Fixes #2931 .
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
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
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Alexander Makarov
af030c5f5b
Added $skipIfSet to ActiveRecord::loadDefaultValues
11 years ago
Alexander Makarov
39b0c454e1
Default values init moved to a method that should be called manually
11 years ago
Alexander Makarov
b66427f8c7
Fixes #2726 : ActiveRecord now fills default values on creating new instance of the model if defaults are available from DB schema
11 years ago
Qiang Xue
b9287abf81
minor fixes.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
56f52f87d2
fixed AR class docs, do not break comment
11 years ago
Qiang Xue
ba2c35b894
Fixes #2482 .
11 years ago
Carsten Brandt
26717e3e76
allow referencing the guide from API docs
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
Qiang Xue
bea9e3fc06
Fixes #1645 : Added support for nested DB transactions
11 years ago
Carsten Brandt
4a9f47bedd
refactored sphinx and db AR to call parent implementation of populateRecord()
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
Qiang Xue
8001d2348c
refactored ActiveRecord::create().
11 years ago
Vladimir Zbrailov
a97f6387f9
added check column
11 years ago
Vladimir Zbrailov
0e0acb2731
added inherit doc block and task number
11 years ago
Vladimir Zbrailov
d017567273
override create
11 years ago
Carsten Brandt
262189533a
huge amount of documentation link fixes
11 years ago
Qiang Xue
f6dd6fa2e9
Renamed `ActiveRecordInterface::createActiveRelation()` to `createRelation()`
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Alexander Kochetov
a1deac81c3
\yii\db\ActiveRecord updated
11 years ago
Alexander Kochetov
fba0e04365
ActiveRecord::tableName() comment fixed
11 years ago
Alexander Kochetov
dda9fec95e
ActiveRecord::tableName() hardcoded prefix fix
11 years ago
Carsten Brandt
43f19e8aee
use andWhere() in AR::find() to work properly with default scope
...
fixes #1469
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
Qiang Xue
73442fb12a
doc fix.
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