public function map($row){
        $class = $this->modelClass;
        $model = new $class($this->db, $row, false);
        $model->setAttribute('table', $this->table)->setAttribute('pk', $this->pk);
        return $model;
    }
public function map($row){
        $class = $this->modelClass;
        $model = new $class($this->db, $row, false);
        $model->setAttribute('table', $this->table)->setAttribute('pk', $this->pk);
        return $model;
    }
public function map ( $ row ) { $ class = $ this -> modelClass ; $ model = new $ class ( $ this -> db , $ row , false ) ; $ model -> setAttribute ( 'table' , $ this -> table ) -> setAttribute ( 'pk' , $ this -> pk ) ; return $ model ; }
Map array to model

@param array $row
@return \Ark\Database\Model
Map array to model