Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的模型文件中有一个 beforeFind 回调。在控制器文件中,我有以下代码: $this->Users->get($this->Auth->user('user_id'));。如何在applyOptions此处添加忽略beforeFind()UsersTable.php 中的回调?
$this->Users->get($this->Auth->user('user_id'));
applyOptions
beforeFind()