public function deleteRoleFilterResource($id_role) { $model = new RoleFilterResource(); $data = $model->fetchToDelete($id_role); foreach ($data as $roleFilterResource) { $dataRoleFilterResource = $model->findOne($roleFilterResource['id']); $dataRoleFilterResource->delete(); } }