graemetait/cakephp-state-machine-behavior

States with underscores in the name

Closed this issue · 1 comments

On line 171, you might want to use

$method = '_onState' . Inflector::camelize($state);

instead of $method = '_onState' . Inflector::humanize($state);

since the latter generates callback functionnames with spaces in it, and they cannot be called.

Good catch!