protected function beginTransaction() { return craft()->db->getCurrentTransaction() === null ? craft()->db->beginTransaction() : null; }