Carsten Brandt
00a8a6270e
revised docs about Model::load()
...
thanks to @tom-- for review.
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
Sebastian Chojniak
9012aa66bf
Fixed documentation according to Chg #4911
9 years ago
Carsten Brandt
d3bd7af956
improved documentation of Model::load() return value
...
fixes #8803
close #9216
9 years ago
Alexander Mohorev
0c5e4b7105
PSR-2 foreach statement
9 years ago
Carsten Brandt
f68e970de2
link to PHP classes just as we do with normal classes
...
apidoc can handle this!
9 years ago
Carsten Brandt
d5693cfe01
small improvements of Model phpdoc
10 years ago
Andrew Potter
a0cc77d78d
Update Model.php
...
close #8463
10 years ago
Klimov Paul
a4f760e798
Fixed `yii\base\Model` does not recognize scenario declared by rules using 'except'
10 years ago
Carsten Brandt
851a914f67
phpdoc tweak: Model::scenarios()
10 years ago
Klimov Paul
85ca8c3712
Added ability to specify hints for model attributes
10 years ago
Alexander Kochetov
605c2d9eca
yii\base\Model::load() typo fix
10 years ago
pana1990
7aae667e28
Fixes #6618 : Added Model::addErrors()
10 years ago
Carsten Brandt
8b79293ff2
added missing `@since` annotations
10 years ago
Qiang Xue
fe546cd22f
Fixes #5688 : Added optional `$formName` to `Model::loadMultiple()` to support customizing form name directly
10 years ago
Carsten Brandt
ecb113f1d0
fixed model serializtaion example
10 years ago
Carsten Brandt
0ed6355ee1
test and docs to be clear about #4558
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Qiang Xue
da544b2676
Fixes #4519 : `yii\base\Model::isAttributeRequired()` should check if the `when` option of the validator is set
10 years ago
Thiago Talma
45ee387f92
It is not required by default when you set the "when" attribute
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Qiang Xue
8c8a389844
Fixes #3772 : Behaviors adding validation rules do not work as expected
10 years ago
Alexander Kochetov
7bce33f1da
Excess \yii\base\Model::resolveFields() method removed
10 years ago
Qiang Xue
0b29c9607d
fixed broken API links [skip ci]
11 years ago
Carsten Brandt
fa767ceaca
renamed attributes to attributeNames in model
...
fixes #3034
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
40cb98bb02
updated `@property` annotations
11 years ago
Alexander Makarov
c5ec3550de
Removed unused "use" statements
11 years ago
Qiang Xue
3f42d5826a
REST wip.
11 years ago
Qiang Xue
a8c7d36c02
Finished HATEOAS support.
11 years ago
Qiang Xue
39947be66b
rest WIP
11 years ago
Qiang Xue
9beba31fc0
rest WIP
11 years ago
Alexander Makarov
9c0572bff9
Fixed `$model->load($data)` returned `true` if `$data` and `formName` were empty
11 years ago
Alexander Makarov
d9d36006a7
Fixed default scenario constant in docs
11 years ago
Alexander Makarov
91444b20c8
#2248 : Renamed `yii\base\Model::DEFAULT_SCENARIO` to `yii\base\Model::SCENARIO_DEFAULT`
11 years ago
Qiang Xue
18d7224ac8
Fixes #2149 : Added `yii\base\DynamicModel` to support ad-hoc data validation
11 years ago
Qiang Xue
9aa006e5ea
Removed implementation of `Arrayable` from `yii\Object`
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
eab7e4a21a
Added $formName to Model::load().
11 years ago
Qiang Xue
cb4a8c764c
Refactored validators.
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
Qiang Xue
e4e376ba28
fixed test break.
11 years ago
Qiang Xue
858326c074
Fixed test break.
11 years ago
Qiang Xue
039ed688cf
Fixes #1301 : fixed scenario generation when there are "except" scenarios.
11 years ago
Carsten Brandt
cb4504a10f
refactored Model and redis AR to allow drop of RecordSchema
11 years ago
Carsten Brandt
539e233d9c
massive improvement on class documentation
...
- added example code for application components
- added missing short description
[ci skip]
11 years ago
slavcodev
2adcd16e0d
Update phpDoc
11 years ago
slavcodev
3ff8f10d11
Add array conversion on creating validator
11 years ago