Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Alexander Makarov
1f26db9fb7
Applied code style fixes
7 years ago
Carsten Brandt
0559a95db9
Fixed ambiguous column error in `BaseActiveRecord::refresh()`
...
when the query adds a JOIN by default
fixes #13757
7 years ago
Alex
6aa0ed2026
Adjusted PHP 7 return types [skip ci]
7 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Klimov Paul
319e27c45c
Fixed `yii\db\BaseActiveRecord::deleteAll()` changes method signature declared by `yii\db\ActiveRecordInterface::deleteAll()`
8 years ago
Carsten Brandt
30e599b94f
updated docs about deleteALl() and updateAll()
8 years ago
Carsten Brandt
a3b6dfbb7b
Catch `\Throwable` in critical places
...
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.
Mainly on transactions but also some other places where some values are
reset before exiting.
Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.
fixes #12619
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Carsten Brandt
f006db9b2b
update docs of AR::update()
...
fixes #12461
8 years ago
Roman Grinyov
f0e999e017
Cosmetic changes ( #12292 ) [skip ci]
8 years ago
Alexander Makarov
1f7134634b
Use static:: instead of $this for static method calls
9 years ago
Carsten Brandt
e43c41c9ea
db layer phpdoc fixes
9 years ago
githubjeka
5326b7aaf6
refactoring for getTableSchema
9 years ago
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