Difference between #2 and #3 of
Optimize Scenarios for yii2

Revision #3 has been created by AndroideLP on Apr 12, 2018, 1:24:16 PM with the memo:

update language
« previous (#2) next (#4) »

Changes

Title unchanged

Optimize Scenarios for yii2

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

model validation,model,validation rules

Content changed

[...]
[['date_create', 'date_update'], 'date', 'format' => 'php:Y-m-d H:i:s'],
];
}
```

O gGetCustomScenarios será usado para quando for necessário fazer modificações de colunawill be used for when you need to make column modifications. OThe ModifyRequired é utilizado para remover do required, pois neste momento será utilizadois used to remove from the required, because at this point will be used getCustomScenarios para ofor the save.

**In Controller**


```php
[...]
4 0
2 followers
Viewed: 43 552 times
Version: 2.0
Category: Tutorials
Written by: AndroideLP
Last updated by: AndroideLP
Created on: Nov 8, 2016
Last updated: 5 years ago
Update Article

Revisions

View all history