src/Easy/EasyForm.php
protected function setActiveRecord($record)
    {
        // update the record row
        $this->dataPanel->setRecordArr($record);
        if (!isset($this->activeRecord["Id"]) &&
                $this->recordId != null &&
                (strtoupper($this->formType) == 'EDIT' || $this->formType == null )) {
            if ($this->getDataObj()) {
                $this->activeRecord = $this->getDataObj()->fetchById($this->recordId)->toArray();
            }
        }
        if (is_array($record)) {
            foreach ($record as $key => $value) {
                if ($key == 'extend')
                    continue;
                $this->activeRecord[$key] = $record[$key];
            }
        }
    }
protected function setActiveRecord($record)
    {
        // update the record row
        $this->dataPanel->setRecordArr($record);
        if (!isset($this->activeRecord["Id"]) &&
                $this->recordId != null &&
                (strtoupper($this->formType) == 'EDIT' || $this->formType == null )) {
            if ($this->getDataObj()) {
                $this->activeRecord = $this->getDataObj()->fetchById($this->recordId)->toArray();
            }
        }
        if (is_array($record)) {
            foreach ($record as $key => $value) {
                if ($key == 'extend')
                    continue;
                $this->activeRecord[$key] = $record[$key];
            }
        }
    }
Set active record

@param array $record
@return void