SilverStripe\Auditor\AuditHook::bind_manipulation_capture
This will bind a new class dynamically so we can hook into manipulation and capture it. It creates a new PHP file in the temp folder, then loads it and sets it as the active DB class.
Signature
public function bind_manipulation_capture()