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

/**
 * BaseRE_FIRMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_firma
 * @property string $nombre
 * @property string $cargo
 * @property string $documento
 * @property integer $estado
 * @property integer $orden
 * @property Doctrine_Collection $RE_INF_FIRMA
 * 
 * @method integer             getIdFirma()      Returns the current record's "id_firma" value
 * @method string              getNombre()       Returns the current record's "nombre" value
 * @method string              getCargo()        Returns the current record's "cargo" value
 * @method string              getDocumento()    Returns the current record's "documento" value
 * @method integer             getEstado()       Returns the current record's "estado" value
 * @method integer             getOrden()        Returns the current record's "orden" value
 * @method Doctrine_Collection getREINFFIRMA()   Returns the current record's "RE_INF_FIRMA" collection
 * @method RE_FIRMA            setIdFirma()      Sets the current record's "id_firma" value
 * @method RE_FIRMA            setNombre()       Sets the current record's "nombre" value
 * @method RE_FIRMA            setCargo()        Sets the current record's "cargo" value
 * @method RE_FIRMA            setDocumento()    Sets the current record's "documento" value
 * @method RE_FIRMA            setEstado()       Sets the current record's "estado" value
 * @method RE_FIRMA            setOrden()        Sets the current record's "orden" value
 * @method RE_FIRMA            setREINFFIRMA()   Sets the current record's "RE_INF_FIRMA" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_FIRMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_FIRMA');
        $this->hasColumn('id_firma', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('cargo', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('documento', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('orden', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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