<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('Comment', 'doctrine');

/**
 * BaseComment
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $news_id
 * @property string $username
 * @property string $body
 * @property string $ip_address
 * @property timestamp $created_at
 * @property integer $parent_id
 * 
 * @method integer   getId()         Returns the current record's "id" value
 * @method integer   getNewsId()     Returns the current record's "news_id" value
 * @method string    getUsername()   Returns the current record's "username" value
 * @method string    getBody()       Returns the current record's "body" value
 * @method string    getIpAddress()  Returns the current record's "ip_address" value
 * @method timestamp getCreatedAt()  Returns the current record's "created_at" value
 * @method integer   getParentId()   Returns the current record's "parent_id" value
 * @method Comment   setId()         Sets the current record's "id" value
 * @method Comment   setNewsId()     Sets the current record's "news_id" value
 * @method Comment   setUsername()   Sets the current record's "username" value
 * @method Comment   setBody()       Sets the current record's "body" value
 * @method Comment   setIpAddress()  Sets the current record's "ip_address" value
 * @method Comment   setCreatedAt()  Sets the current record's "created_at" value
 * @method Comment   setParentId()   Sets the current record's "parent_id" value
 * 
 * @package    mongolcom
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseComment extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('comment');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'autoincrement' => true,
             'length' => 8,
             ));
        $this->hasColumn('news_id', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('username', 'string', 100, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 100,
             ));
        $this->hasColumn('body', 'string', 1000, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 1000,
             ));
        $this->hasColumn('ip_address', 'string', 16, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'default' => '0.0.0.0',
             'notnull' => true,
             'autoincrement' => false,
             'length' => 16,
             ));
        $this->hasColumn('created_at', 'timestamp', 25, array(
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 25,
             ));
        $this->hasColumn('parent_id', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'default' => '0',
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}