@param string $columnName

@return $this
512410
public function isNull(string $columnName)
    {
        $this->addCondition('AND', $this->dialect()->quoteName($columnName) . ' IS NULL');

        return $this;
    }
898506
public function to(string $columnName) : ColumnTypeDefiner
    {
        return new ColumnTypeDefiner(
                $this->definition,
                $this->callback,
                $columnName
        );
    }
1008439
public function getColumn($columnName)
    {
        if (!array_key_exists($columnName, $this->columns)) {
            throw new \InvalidArgumentException('Unable to find column '.$columnName.' in columns '.join(',', array_keys($this->columns)));
        }

        return $this->columns[$columnName];
    }
1287746
public function sortBy($columnName, $asc = TRUE) {

		$sort = new \stdClass();

		$sort->column = $columnName;
		$sort->asc = !!$asc;

		$this->columnSorts[] = $sort;

		return $this;

	}
926985
public function getAttributeNameForColumn($columnName)
    {
        if (!empty($this->mappings)) {
            if (isset($this->mappings[$columnName])) {
                return $this->mappings[$columnName];
            }
        }

        return $columnName;
    }
383780
public function columns($columnName, $label = null)
    {
        if (!is_string($columnName)) {
            throw new \InvalidArgumentException('$columnName must be set');
        }

        if ($this->resetColumns) {
            $this->columns = [];
            $this->resetColumns = false;
        }
        if (is_null($label)) {
            $label = $columnName;
        }
        $this->columns[$columnName] = $label;
        return $this;
    }
816893
public function withParentIdAs(string $columnName)
    {
        call_user_func($this->callback, function ($idString, Table $parentTable) use ($columnName) {
            /** @var IEntityMapper $mapper */
            $mapper = call_user_func($this->mapperLoader);

            $mapper->addForeignKey(ForeignKey::createWithNamingConvention(
                $mapper->getPrimaryTableName(),
                [$columnName],
                $parentTable->getName(),
                [$parentTable->getPrimaryKeyColumnName()],
                $this->identifying
                    ? ForeignKeyMode::CASCADE
                    : ForeignKeyMode::SET_NULL,
                ForeignKeyMode::CASCADE
            ));

            return new ToOneRelation(
                $idString,
                $this->loadIds
                    ? new ToOneRelationIdentityReference($mapper, $this->bidirectionalRelationProperty)
                    : new ToOneRelationObjectReference($mapper, $this->bidirectionalRelationProperty),
                $columnName,
                $this->identifying
                    ? new IdentifyingRelationMode()
                    : new NonIdentifyingRelationMode()
            );
        });
    }
1149290
public function createColumns(array $columns, $tagName = 'td')
    {
        foreach ($columns as $column) {
            if ($column instanceof Column) {
                $column->tagName = $tagName;
                $this->childNodes->push($column);
            } else {
                $columnElement = $this->createColumn($tagName);
                if ($column instanceof Element) {
                    $columnElement->entity->setEntityName($column->entity->getEntityName());
                    $columnElement->childNodes->push($column);
                } else {
                    $columnElement->entity->setEntityName('col-' . $column);
                    $columnElement->textContent->push($column);
                }
            }
        }

        return $this;
    }
557782
public function withParentIdAs(string $columnName)
    {
        call_user_func($this->callback, function ($idString, Table $parentTable) use ($columnName) {
            /** @var IEntityMapper $mapper */
            $mapper = call_user_func($this->mapperLoader);
            $mapper->addForeignKey(ForeignKey::createWithNamingConvention(
                $mapper->getPrimaryTableName(),
                [$columnName],
                $parentTable->getName(),
                [$parentTable->getPrimaryKeyColumnName()],
                $this->identifying
                    ? ForeignKeyMode::CASCADE
                    : ForeignKeyMode::SET_NULL,
                ForeignKeyMode::CASCADE
            ));

            if ($this->orderPersistColumn) {
                $persistHook = new OrderIndexPropertyLoaderHook(
                    $mapper->getObjectType(),
                    $mapper->getPrimaryTable(),
                    $this->orderPersistColumn,
                    $columnName,
                    $mapper->getDefinition()->getPropertyLinkedToColumn($this->orderPersistColumn)
                );

                $mapper->addPersistHook($persistHook);
                $persistHookId = $persistHook->getIdString();
            } else {
                $persistHookId = null;
            }

            return new ToManyRelation(
                $idString,
                $this->loadIds
                    ? new ToManyRelationIdentityReference($mapper, $this->bidirectionalRelationProperty)
                    : new ToManyRelationObjectReference($mapper, $this->bidirectionalRelationProperty, $persistHookId),
                $columnName,
                $this->identifying
                    ? new IdentifyingRelationMode()
                    : new NonIdentifyingRelationMode(),
                $this->orderByColumnNameDirectionMap,
                $this->orderPersistColumn
            );
        });
    }
1058010
public function getColumnByName(string $columnName) : BufferedSQLResultColumn {
		if (\array_key_exists($columnName, $this->columns)) {
			return $this->columns[$columnName];
		} else {
			throw new \OutOfBoundsException('Column ' . $columnName . ' does not exist in SQL result');
		}
	}
1105894
public function orIsNull(string $columnName)
    {
        $this->addCondition('OR', $this->dialect()->quoteName($columnName) . ' IS NULL');

        return $this;
    }
1155480
public function addIndex($columnName, $type = Table::INDEX_REGULAR) {
        if (!array_key_exists($columnName, $this->getIndexes()) && !array_key_exists($columnName,
                        $this->newIndexes))
                $this->newIndexes[$columnName] = $type;
        return $this;
    }
605070
public function select($columns = null)
	{
		$columns = func_get_args();

		$this->_select = array_merge($this->_select, $columns);

		return $this;
	}
254343
public function isNotNull(string $columnName)
    {
        $this->addCondition('AND', $this->dialect()->quoteName($columnName) . ' IS NOT NULL');

        return $this;
    }
1245431
public function idToPrimaryKey(string $columnName)
    {
        $this->verifyProperty(__METHOD__, IEntity::ID);
        $this->propertyColumnMap[IEntity::ID] = $columnName;
        $this->mappedProperties[IEntity::ID]  = true;
        $this->primaryKey($columnName);
    }
1130681
public function getColumn($columnName)
    {
        return isset($this->_columns[$columnName]) ? $this->_columns[$columnName] : null;
    }
650215
public function offsetGet($columnName)
    {
        $row = current($this->_rows);
        return $row !== false? $row[$columnName] : null;
    }