3.0 fix join data

Fixes https://github.com/cakephp/cakephp/issues/3629