Get new name of a parent column
@param $name
@return mixed
962700
public function getParentTargetName(string $name)
    {
        if (empty($this->parentAliases[$name])) {
            return $name;
        }
        return $this->parentAliases[$name];
    }
950506
public function getByName($name): Column
    {
        $lookup = array_column($this->getArrayCopy(), null, 'name');

        return $lookup[$name];
    }
546949
public function getColumnValue(string $name)
	{
		if(method_exists($this, $name . 'Accessor'))
		{
			return $this->{$name . 'Accessor'}($this->columns[$name]);
		}

		return $this->columns[$name];
	}
111590
public function name($name = null)
    {
        if (func_num_args() === 0) {
            return $this->_name;
        }
        return $this->_name = (string) $name;
    }
988762
public function getColumn($name)
    {
        $column = $this->_columns[$name];

        if ($column->resource !== $this) {
            $column = clone $column;
            $column->resource = $this;
            $this->_columns[$name] = $column;
        }

        return $this->_columns[$name];
    }
236582
protected function getOriginalName($name)
    {
        foreach (array_keys($this->headers) as $key) {
            if (strtolower($key) === strtolower($name)) {
                return $key;
            }
        }

        return false;
    }
896167
public function getColumn($name)
    {
        $results = [];
        foreach ($this->entities as $entity) {
            $results[] = $entity->get($name);
        }

        return $results;
    }
775592
public function findAllExceptTreeByParentName($name)
    {
        $parent = $this->findOneByName($name);

        return $this->findAllExceptTreeByParentId($parent->getId());
    }
1356447
public function getUniqueName($name)
    {
        if (!isset($this->registry[$name])) {
            $this->registry[$name] = 0;

            return $name;
        }

        ++$this->registry[$name];

        return sprintf('%s_%s', $name, $this->registry[$name]);
    }
357076
protected static function getAlgorithm($name)
    {
        if (!isset(self::$algorithms[$name])) {
            self::$algorithms[$name] = new $name();
        }

        return self::$algorithms[$name];
    }
1243115
protected function parseName($name)
    {
        $tables = array_map('str_singular', $this->getSortedTableNames());
        $name = implode('', array_map('ucwords', $tables));
        $pieces = explode('_', $name);
        $name = implode('', array_map('ucwords', $pieces));

        return "Create{$name}PivotTable";
    }
1340115
public function getParent($name = NULL)
  {
    if (!$this->parent) {
      return FALSE;
    }
    if ($name) {
      if ($this->parent->getName() == $name) {
        return $this->parent;
      }
      if ($parent = $this->parent->getInclude($name)) {
        return $parent;
      }
      // Recurse up the tree to find if the parent is in the tree.
      return $this->parent->getParent($name);
    }
    return $this->parent;
  }
1264666
protected function renameColumn($col, $name)
    {
        if (empty($col)) {
            return Yii::t('podium/flash', 'Installation aborted! Column name missing.');
        }
        if (empty($name)) {
            return Yii::t('podium/flash', 'Installation aborted! New column name missing.');
        }
        try {
            $this->db->createCommand()->renameColumn($this->table, $col, $name)->execute();
            return $this->returnSuccess(Yii::t('podium/flash', 'Table column {name} has been renamed to {new}', [
                'name' => $col,
                'new'  => $name
            ]));
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during table column {name} renaming to {new}', [
                    'name' => $col,
                    'new'  => $name
                ])
            );
        }
    }
1151726
protected function getName($name)
    {
        $renames = $this->getRenames();

        if (isset($renames[$name])) {
            return $renames[$name];
        }
        return $name;
    }
290683
public function column($name)
    {
        $column = new ColumnSchema($this, $name);
        $this->columns[$name] = $column;
        return $column;
    }
1373860
public function name( $name = null )
	{
		if ( is_null( $name ) )
		{
			return $this->_instance_name;
		}
		
		$this->_instance_name = $name;
	}
1011990
public function getShortName($name)
    {
        if (!$this->isParsed) {
            $this->parseDefinitions();
        } //if

        if (isset($this->longNames[$name])) {
            return $this->longNames[$name]['shortName'];
        } else {
            return null;
        } //if
    }