raoul2000 / yii2-workflow

A simple workflow engine for Yii2
BSD 3-Clause "New" or "Revised" License
171 stars 48 forks source link

ChangeStatusAction.php #55

Open makroxyz opened 6 years ago

makroxyz commented 6 years ago

Just a question. Why in this action you are using sendToStatus and then $model->save()? In this way if model has WorkflowValidator it doesn't validate... transition has already done so validator can't reach any scenarios.

Thanks

raoul2000 commented 6 years ago

hi @makroxyz, yes, of course you are right ! I This action was added by a PR and I didn't anticipate this behavior... maybe I should re-implement it or just remove it (or just highlight this behavior in the doc) Until I do something about it use it taking this limitation into account. Thanks