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

/**
 * BaseNO_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 $NO_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 getNOINFFIRMA()   Returns the current record's "NO_INF_FIRMA" collection
 * @method NO_FIRMA            setIdFirma()      Sets the current record's "id_firma" value
 * @method NO_FIRMA            setNombre()       Sets the current record's "nombre" value
 * @method NO_FIRMA            setCargo()        Sets the current record's "cargo" value
 * @method NO_FIRMA            setDocumento()    Sets the current record's "documento" value
 * @method NO_FIRMA            setEstado()       Sets the current record's "estado" value
 * @method NO_FIRMA            setOrden()        Sets the current record's "orden" value
 * @method NO_FIRMA            setNOINFFIRMA()   Sets the current record's "NO_INF_FIRMA" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_FIRMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_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' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('cargo', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('documento', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('orden', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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