/** * Remove an entity from an index * If $value is not given, all reference of the entity for the key * are removed. * If $key is not given, all reference of the entity are removed. * * @param Index $index * @param PropertyContainer $entity * @param string $key * @param string $value * @return boolean */ public function removeFromIndex(Index $index, PropertyContainer $entity, $key = null, $value = null) { if ($this->openBatch) { $this->openBatch->removeFromIndex($index, $entity, $key, $value); return true; } return $this->runCommand(new Command\RemoveFromIndex($this, $index, $entity, $key, $value)); }