Optimize Scenarios for yii2

Comparing #2 with #3

Revision #3 was created by AndroideLP AndroideLP on Apr 12, 2018, 1:24:16 PM.

update language

Content

[...]
[['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
[...]