Location: PHPKode > projects > DIY Blog > diy-blog/lib/propel/generator/templates/sql/load/mssql/row.tpl
INSERT INTO <?php echo $row->getTable()->getName() ?> (<?php
$comma="";
foreach($row->getColumnValues() as $col) { 
    print $comma;
    print $col->getColumn()->getName();
    $comma = ',';
}?>) VALUES (<?php 
    $comma="";
    foreach($row->getColumnValues() as $col) { 
        print $comma;
        $generator->put("column", $col);
        $generator->display("sql/load/mssql/val.tpl");
        $comma=',';
    }?>);
Return current item: DIY Blog