Neos\Flow\Persistence\Generic\QueryResult::offsetUnset PHP Méthode

offsetUnset() public méthode

This method has no effect on the persisted objects but only on the result set
See also: ArrayAccess::offsetUnset()
public offsetUnset ( mixed $offset ) : void
$offset mixed
Résultat void
    public function offsetUnset($offset)
    {
        $this->initialize();
        unset($this->queryResult[$offset]);
    }

Usage Example

 /**
  * @test
  */
 public function offsetUnsetWorksAsExpected()
 {
     $this->queryResult->offsetUnset(0);
     $this->assertFalse($this->queryResult->offsetExists(0));
 }