public function ref($id): Reference
	{
		$ref = new $this->reference_class($this->smalldb, $this, $id);
		if ($this->debug_logger) {
			$this->debug_logger->afterReferenceCreated(null, $ref);
		}
		return $ref;
	}