source/Core/Model/BaseModel.php
public function assign($dbRecord)
    {
        if (!is_array($dbRecord)) {
            return;
        }

        foreach ($dbRecord as $name => $value) {
            $this->_setFieldData($name, $value);
        }

        $oxidField = $this->_getFieldLongName('oxid');
        if ($this->$oxidField instanceof Field) {
            $this->_sOXID = $this->$oxidField->value;
        }
    }
public function assign($dbRecord)
    {
        if (!is_array($dbRecord)) {
            return;
        }

        foreach ($dbRecord as $name => $value) {
            $this->_setFieldData($name, $value);
        }

        $oxidField = $this->_getFieldLongName('oxid');
        if ($this->$oxidField instanceof Field) {
            $this->_sOXID = $this->$oxidField->value;
        }
    }
public function assign ( $ dbRecord ) { if ( ! is_array ( $ dbRecord ) ) { return ; } foreach ( $ dbRecord as $ name => $ value ) { $ this -> _setFieldData ( $ name , $ value ) ; } $ oxidField = $ this -> _getFieldLongName ( 'oxid' ) ; if ( $ this -> $ oxidField instanceof Field ) { $ this -> _sOXID = $ this -> $ oxidField -> value ; } }
Assigns DB field values to object fields. Returns true on success.

@param array $dbRecord Associative data values array

@return null
Assigns DB field values to object fields . Returns true on success .