Fix example code.

Refs cakephp/cakephp#4293