code/database/table/abstract.php
public function setIdentityColumn($column)
    {
        $columns = $this->getUniqueColumns();

        if (!isset($columns[$column])) {
            throw new \DomainException('Column ' . $column . 'is not unique');
        }

        $this->_identity_column = $column;
        return $this;
    }
public function setIdentityColumn($column)
    {
        $columns = $this->getUniqueColumns();

        if (!isset($columns[$column])) {
            throw new \DomainException('Column ' . $column . 'is not unique');
        }

        $this->_identity_column = $column;
        return $this;
    }
public function setIdentityColumn ( $ column ) { $ columns = $ this -> getUniqueColumns ( ) ; if ( ! isset ( $ columns [ $ column ] ) ) { throw new \ DomainException ( 'Column ' . $ column . 'is not unique' ) ; } $ this -> _identity_column = $ column ; return $ this ; }
Set the identity column of the table.

@param string $column The name of the identity column
@throws \DomainException If the column is not unique
@return DatabaseTableAbstract
Set the identity column of the table .