Condition "!isset($this->getMetaData()->columns[$name])" is insufficient here. This should be "$this->hasAttribute($name)".