・コントローラの中でやる場合
$things = $this->Thing->find('all');
$things = Set::extract('/Thing/.', $things);
・モデルの中でカスタムfind()を定義する場合
public $findMethods = array('getList' => true); //カスタムfindを定義
protected function _findGetList($state, $query, $results = array())
{
if ($state == 'after') {
$results = Set::extract('/Thing/.', $results);
return $results;
}
return $results;
}
参考
Redundant ModelName in CakePHP find Results
http://stackoverflow.com/questions/11876745/redundant-modelname-in-cakephp-find-results