public function test_updating_snapshot_when_property_initialized_to_not_generate_changes_for_lazy_loaded_properties() { $lazyItems = ["foo", "bar", "baz"]; $this->wrapper = $this->createLazyObjectsWrapper($lazyItems); $entity = new EntityFake(1, "Norbert", "Orzechowicz"); $entityProxy = $this->wrapper->wrap($entity); $this->uow->register($entityProxy); $this->assertSame($lazyItems, $entityProxy->getItems()); }
/** * @param mixed $entity */ public function delete($entity) { $this->unitOfWork->remove($entity); }