public function addRef($key, Ref $ref) { $this->unit_of_work->queueCommand(new Command('add_index', ['key' => $key, 'value' => (string) $ref])); }