<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('NewsPhoto', 'doctrine');

/**
 * BaseNewsPhoto
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $news_id
 * @property integer $is_thumb
 * @property string $extension
 * @property integer $size
 * @property integer $views
 * @property timestamp $date
 * @property string $photo_path
 * @property string $description
 * 
 * @method integer   getId()          Returns the current record's "id" value
 * @method integer   getNewsId()      Returns the current record's "news_id" value
 * @method integer   getIsThumb()     Returns the current record's "is_thumb" value
 * @method string    getExtension()   Returns the current record's "extension" value
 * @method integer   getSize()        Returns the current record's "size" value
 * @method integer   getViews()       Returns the current record's "views" value
 * @method timestamp getDate()        Returns the current record's "date" value
 * @method string    getPhotoPath()   Returns the current record's "photo_path" value
 * @method string    getDescription() Returns the current record's "description" value
 * @method NewsPhoto setId()          Sets the current record's "id" value
 * @method NewsPhoto setNewsId()      Sets the current record's "news_id" value
 * @method NewsPhoto setIsThumb()     Sets the current record's "is_thumb" value
 * @method NewsPhoto setExtension()   Sets the current record's "extension" value
 * @method NewsPhoto setSize()        Sets the current record's "size" value
 * @method NewsPhoto setViews()       Sets the current record's "views" value
 * @method NewsPhoto setDate()        Sets the current record's "date" value
 * @method NewsPhoto setPhotoPath()   Sets the current record's "photo_path" value
 * @method NewsPhoto setDescription() Sets the current record's "description" value
 * 
 * @package    mongolcom
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseNewsPhoto extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('news_photo');
        $this->hasColumn('id', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'autoincrement' => true,
             'length' => 4,
             ));
        $this->hasColumn('news_id', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('is_thumb', 'integer', 1, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 1,
             ));
        $this->hasColumn('extension', 'string', 4, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('size', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('views', 'integer', 4, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 4,
             ));
        $this->hasColumn('date', 'timestamp', 25, array(
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 25,
             ));
        $this->hasColumn('photo_path', 'string', 255, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => true,
             'autoincrement' => false,
             'length' => 255,
             ));
        $this->hasColumn('description', 'string', null, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'notnull' => false,
             'autoincrement' => false,
             'length' => '',
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}