Alexander Makarov
|
5ab4f0f090
|
Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
|
9 years ago |
Carsten Brandt
|
6d9fe671de
|
various code style and whitespace adjustments
|
9 years ago |
Carsten Brandt
|
30f003381d
|
revised AR documentation
fixed some incorrectness in update() and insert() and also fixes #8761
|
9 years ago |
Alexander Makarov
|
67658cf57d
|
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
|
9 years ago |
Klimov Paul
|
6751a80ea0
|
`yii\db\Schema::insert()` now returns primary key value for empty sequence
|
10 years ago |
Klimov Paul
|
b05ea3d69e
|
PK typecast at `yii\db\ActiveRecord` restored
|
10 years ago |
Paul Klimov
|
4e8ee7b001
|
Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression
|
10 years ago |
Qiang Xue
|
fdb730a12a
|
syntax fix [skip ci]
|
10 years ago |
Jan Waś
|
6e48ed05c7
|
allow calling Command::insert() without any columns
|
10 years ago |
Carsten Brandt
|
817bd4279a
|
fixed AR phpdoc
fixes #7787
|
10 years ago |
Alexander Kochetov
|
29f5dc37a5
|
Correct phpDoc for return in several cases
close #6733
|
10 years ago |
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 |