src/CarteBlanche/Model/AbstractCrud.php
public function setData($data = null)
    {
        if (!empty($data)) {
            foreach ($this->_table_structure as $_field=>$field_structure) {
                if (isset($data[$_field]))
                    $this->data[$_field] = $data[$_field];
                elseif (empty($this->data[$_field]))
                    $this->data[$_field] = null;
            }
        }
    }
public function setData($data = null)
    {
        if (!empty($data)) {
            foreach ($this->_table_structure as $_field=>$field_structure) {
                if (isset($data[$_field]))
                    $this->data[$_field] = $data[$_field];
                elseif (empty($this->data[$_field]))
                    $this->data[$_field] = null;
            }
        }
    }
Sets the object data

@param array $data An array of the object contents