Contao\Model\Collection::setRow PHP Method

setRow() public method

Set the current row from an array
public setRow ( array $arrData ) : static
$arrData array The row data as array
return static The model collection object
    public function setRow(array $arrData)
    {
        if ($this->intIndex < 0) {
            $this->first();
        }
        $this->arrModels[$this->intIndex]->setRow($arrData);
        return $this;
    }