public function setRawData(array $data)
    {
        $this->data = $data + $this->data;

        if ($data) {
            $this->loaded = true;
            $this->setDataSource('*', 'db');
        }

        return $this;
    }
public function setRawData(array $data)
    {
        $this->data = $data + $this->data;

        if ($data) {
            $this->loaded = true;
            $this->setDataSource('*', 'db');
        }

        return $this;
    }
public function setRawData ( array $ data ) { $ this -> data = $ data + $ this -> data ; if ( $ data ) { $ this -> loaded = true ; $ this -> setDataSource ( '*' , 'db' ) ; } return $ this ; }
Set raw data to model

@param array $data
@return $this
Set raw data to model