Carsten Brandt
2897257ec1
fixed wrong docs about loadDefaultValues() and init()
...
fixes #7373
10 years ago
Angel Faryshta Guevara
ffe940180c
simplify findByCondition
10 years ago
Qiang Xue
780fdd611a
Fixes #6710
10 years ago
Alexander Kochetov
d5176a463f
better exception message
...
- yii\db\BaseActiveRecord::findByCondition better exception
- yii\db\ActiveRecord::findByCondition better exception
close #6704
10 years ago
Carsten Brandt
db56384fcf
improved documentation about loadDefaultValues()
...
issue #6126
10 years ago
Carsten Brandt
73cb5f8aac
changed syntax for referencing the guide in apidoc
...
New syntax:
```
[link to guide](guide:file-name.md)
[link to guide](guide:file-name.md#subsection)
```
fixes #4719
10 years ago
Carsten Brandt
f099616967
improved IDE autocompletion for AR::find()
...
[ci skip]
10 years ago
Carsten Brandt
25bf486b7f
save some function calls on AR insert
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Qiang Xue
e8c6bb516f
Fixes #4048 : Added `init` event to `ActiveQuery` classes
10 years ago
Vladimir Zbrailov
44f20c61a0
changedAttributes of AfterSaveEvent contain an old values
10 years ago
Carsten Brandt
5d0452b2ae
rename ColumnSchema::typecast to phpTypecast
10 years ago
Qiang Xue
86f06677e9
Refactored AR findOne() and findAll().
10 years ago
Carsten Brandt
8a70d9fbd1
rename column schema typecast method
10 years ago
Carsten Brandt
6a48f68955
split typecast method into two
...
one method for fetching data and one for sending to db.
fixes #2287
10 years ago
Carsten Brandt
eeb784a11e
added typecast to auto increment PK
...
fixes #3583
10 years ago
Carsten Brandt
7b13c370e9
fixes #3681 , disambiguate PK in findOne and findAll
10 years ago
Carsten Brandt
2cab70b064
Ensure consistent behavior in ActiveRecord::afterSave()
...
fixes #4012
10 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
Carsten Brandt
3fdcf11f24
updated phpdoc
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
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