cakephp/cakephp — pull request #5418 by AD7six (2014-12-15 09:46:54+00:00)
Title: Consistent exception behavior for Table::get

As highlighted in https://github.com/cakephp/cakephp/pull/5398 - get currently does not always throw a 404. Rather than deal with "sometimes 404, sometimes invalid args" - just always throw a 404.

Also account for the way that (array)null results in [] and not [null]