public function insert(Entity $entity) { $row = $this->selection->insert($entity->getData()); return $this->entityFactory->create($this->type, $row, $this); }