谢谢
解决方法:
public function afterFind($results, $primary = false){
foreach ($results as $key => $val) {
unset($results[$key][$this->alias]['password']);
}
return $results;
}
这应该也有效:
public function afterFind($results, $primary = false){
return Hash::remove($results, '{n}.'.$this->alias.'.password');
}