public function addDataEntry(array $values)
    {
        if ($this->isDetached) {
            throw new InvalidStateException('Cannot add data entry to detached Result.');
        }
        $this->data[] = $values;
        $this->added[] = $values;
        $this->cleanReferencedResultsCache();
    }
public function addDataEntry(array $values)
    {
        if ($this->isDetached) {
            throw new InvalidStateException('Cannot add data entry to detached Result.');
        }
        $this->data[] = $values;
        $this->added[] = $values;
        $this->cleanReferencedResultsCache();
    }
public function addDataEntry ( array $ values ) { if ( $ this -> isDetached ) { throw new InvalidStateException ( 'Cannot add data entry to detached Result.' ) ; } $ this -> data [ ] = $ values ; $ this -> added [ ] = $ values ; $ this -> cleanReferencedResultsCache ( ) ; }
Adds new data entry

@param array $values
@throws InvalidStateException
Adds new data entry