public function saveChanges($saveBundleString) { $saveService = new SaveService($this->entityManager, $this->getMetadata(), $this->interceptor); $saveBundle = $saveService->createSaveBundleFromString($saveBundleString); $result = $saveService->saveChanges($saveBundle); return $result; }
public function saveChanges($payload) { $metadata = $this->getMetadata(); $saveService = new SaveService($this->objectManager, $metadata, $this->interceptor); $saveBundle = $saveService->createSaveBundleFromString($payload); $result = $saveService->saveChanges($saveBundle); return $result; }