src/Rentgen/Schema/Manipulation/CreateTableCommand.php
private function getColumnComments()
    {
        $escapement = new Escapement();
        $comments = '';
        foreach ($this->table->getColumns() as $column) {
             $columnDescription = $column->getDescription();
             if (!empty($columnDescription)) {
                $comments .= sprintf("COMMENT ON COLUMN %s.%s IS '%s';",
                    $escapement->escape($this->table->getQualifiedName()),
                    $escapement->escape($column->getName()),
                    $columnDescription);
             }
        }

        return $comments;
    }
private function getColumnComments()
    {
        $escapement = new Escapement();
        $comments = '';
        foreach ($this->table->getColumns() as $column) {
             $columnDescription = $column->getDescription();
             if (!empty($columnDescription)) {
                $comments .= sprintf("COMMENT ON COLUMN %s.%s IS '%s';",
                    $escapement->escape($this->table->getQualifiedName()),
                    $escapement->escape($column->getName()),
                    $columnDescription);
             }
        }

        return $comments;
    }
private function getColumnComments ( ) { $ escapement = new Escapement ( ) ; $ comments = '' ; foreach ( $ this -> table -> getColumns ( ) as $ column ) { $ columnDescription = $ column -> getDescription ( ) ; if ( ! empty ( $ columnDescription ) ) { $ comments .= sprintf ( "COMMENT ON COLUMN %s.%s IS '%s';" , $ escapement -> escape ( $ this -> table -> getQualifiedName ( ) ) , $ escapement -> escape ( $ column -> getName ( ) ) , $ columnDescription ) ; } } return $ comments ; }
Gets comments for columns.

@return string
Gets comments for columns .