<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('FIRMA_RP', 'doctrine');

/**
 * BaseFIRMA_RP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $cargo
 * @property string $nombre
 * @property string $cargo2
 * @property string $normatividad
 * @property string $tipo_firma
 * @property integer $estado
 * @property Doctrine_Collection $PR_RESOL_COMIS
 * 
 * @method integer             getId()             Returns the current record's "id" value
 * @method string              getCargo()          Returns the current record's "cargo" value
 * @method string              getNombre()         Returns the current record's "nombre" value
 * @method string              getCargo2()         Returns the current record's "cargo2" value
 * @method string              getNormatividad()   Returns the current record's "normatividad" value
 * @method string              getTipoFirma()      Returns the current record's "tipo_firma" value
 * @method integer             getEstado()         Returns the current record's "estado" value
 * @method Doctrine_Collection getPRRESOLCOMIS()   Returns the current record's "PR_RESOL_COMIS" collection
 * @method FIRMA_RP            setId()             Sets the current record's "id" value
 * @method FIRMA_RP            setCargo()          Sets the current record's "cargo" value
 * @method FIRMA_RP            setNombre()         Sets the current record's "nombre" value
 * @method FIRMA_RP            setCargo2()         Sets the current record's "cargo2" value
 * @method FIRMA_RP            setNormatividad()   Sets the current record's "normatividad" value
 * @method FIRMA_RP            setTipoFirma()      Sets the current record's "tipo_firma" value
 * @method FIRMA_RP            setEstado()         Sets the current record's "estado" value
 * @method FIRMA_RP            setPRRESOLCOMIS()   Sets the current record's "PR_RESOL_COMIS" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseFIRMA_RP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('FIRMA_RP');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('cargo', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('cargo2', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('normatividad', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('tipo_firma', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('PR_RESOL_COMIS', array(
             'local' => 'id',
             'foreign' => 'firma'));
    }
}