Condition "!isset($this->getMetaData()->columns[$name])" is redundant here. It must be set since we are looping over the column names.