public function diff(Repository $otherRepository)
    {
        $diffRepository = new Memory();

        foreach ($this->unitOfWorkStore as $unitOfWork) {
            if (!$otherRepository->contains($unitOfWork)) {
                $diffRepository->add($unitOfWork);
            }
        }

        $diffRepository->sort();

        return $diffRepository;
    }