Cakephp 3 Callback method not reached

前端 未结 2 1357
遇见更好的自我
遇见更好的自我 2021-01-26 20:24

I have a problem with the afterDelete callback method. I can\'t use them.

Inside one of my \"Storages\" plugin controllers I want to delete a record and after that I wan

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-26 21:28

    Try

    use Cake\Log\Log;
    use Cake\ORM\Table;
    
    class StoragecontainerBlockElementsTable extends Table {
    
        public function afterDelete($event, $entity, $options){
            Log::debug('Got here');
    
        }
    }
    

    Details Here

提交回复
热议问题