src/Easy/Panel.php
public function setRecordArr(&$recArr)
    {
        if (!$recArr)
            return;

        foreach ($recArr as $key => $value) {
            $this->getFormObj()->activeRecord[$key] = $recArr[$key];
        }

        // reset elements first to avoid use stale data
        foreach ($this->varValue as $elem)
            $elem->reset();
        /* @var $elem Element */
        $this->getFormObj()->setFormInputs();
        foreach ($this->varValue as $elem) {
            //if (!$recArr)
            //    $elem->setValue("");
            if ( isset($recArr[$elem->fieldName]) ) {
                $elem->setValue($recArr[$elem->fieldName]);
            } else if ( isset($recArr[$elem->objectName]) ) {
                $elem->setValue($recArr[$elem->objectName]);
            }
        }
    }
public function setRecordArr(&$recArr)
    {
        if (!$recArr)
            return;

        foreach ($recArr as $key => $value) {
            $this->getFormObj()->activeRecord[$key] = $recArr[$key];
        }

        // reset elements first to avoid use stale data
        foreach ($this->varValue as $elem)
            $elem->reset();
        /* @var $elem Element */
        $this->getFormObj()->setFormInputs();
        foreach ($this->varValue as $elem) {
            //if (!$recArr)
            //    $elem->setValue("");
            if ( isset($recArr[$elem->fieldName]) ) {
                $elem->setValue($recArr[$elem->fieldName]);
            } else if ( isset($recArr[$elem->objectName]) ) {
                $elem->setValue($recArr[$elem->objectName]);
            }
        }
    }
Set record array
TODO: change field=>value to element=>value

@param array $recArr
@return void