protected function fill(&$params)
    {
        if (is_null($this->model->new_value)) {
            return false;
        }
        foreach ($params as $index => $value) {
            if (isset($params[$index])) {
                continue;
            }
            $params[$index] = array_get($this->model->new_value, $index);
        }
        return $params;
    }
protected function fill(&$params)
    {
        if (is_null($this->model->new_value)) {
            return false;
        }
        foreach ($params as $index => $value) {
            if (isset($params[$index])) {
                continue;
            }
            $params[$index] = array_get($this->model->new_value, $index);
        }
        return $params;
    }
protected function fill ( & $ params ) { if ( is_null ( $ this -> model -> new_value ) ) { return false ; } foreach ( $ params as $ index => $ value ) { if ( isset ( $ params [ $ index ] ) ) { continue ; } $ params [ $ index ] = array_get ( $ this -> model -> new_value , $ index ) ; } return $ params ; }
Fills params with rest of entity columns

@param array $params
Fills params with rest of entity columns