24 $location->
setId($existedLocation->getId());
25 $location->
setCode($existedLocation->getCode());
30 foreach($this->locationRepositories as $repository)
32 $res = $repository->save($location);
34 if(!$res->isSuccess())
36 $result->addErrors($res->getErrors());
44 if (!$res->isSuccess())
46 $result->addErrors($res->getErrors());