raoul2000 / yii2-workflow

A simple workflow engine for Yii2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChangeStatusAction.php

makroxyz opened this issue · comments

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

commented

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