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

/**
 * BaseRE_BENE_AUTORIZA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_bene_autoriza
 * @property integer $secuencia
 * @property integer $id_mae_ter
 * @property integer $autorizado
 * @property string $num_doc
 * @property integer $tipo_doc
 * @property string $observaciones
 * @property string $adjunto
 * @property timestamp $fecha_doc
 * @property INTERCEROS $INTERCEROS
 * 
 * @method integer          getIdBeneAutoriza()   Returns the current record's "id_bene_autoriza" value
 * @method integer          getSecuencia()        Returns the current record's "secuencia" value
 * @method integer          getIdMaeTer()         Returns the current record's "id_mae_ter" value
 * @method integer          getAutorizado()       Returns the current record's "autorizado" value
 * @method string           getNumDoc()           Returns the current record's "num_doc" value
 * @method integer          getTipoDoc()          Returns the current record's "tipo_doc" value
 * @method string           getObservaciones()    Returns the current record's "observaciones" value
 * @method string           getAdjunto()          Returns the current record's "adjunto" value
 * @method timestamp        getFechaDoc()         Returns the current record's "fecha_doc" value
 * @method INTERCEROS       getINTERCEROS()       Returns the current record's "INTERCEROS" value
 * @method RE_BENE_AUTORIZA setIdBeneAutoriza()   Sets the current record's "id_bene_autoriza" value
 * @method RE_BENE_AUTORIZA setSecuencia()        Sets the current record's "secuencia" value
 * @method RE_BENE_AUTORIZA setIdMaeTer()         Sets the current record's "id_mae_ter" value
 * @method RE_BENE_AUTORIZA setAutorizado()       Sets the current record's "autorizado" value
 * @method RE_BENE_AUTORIZA setNumDoc()           Sets the current record's "num_doc" value
 * @method RE_BENE_AUTORIZA setTipoDoc()          Sets the current record's "tipo_doc" value
 * @method RE_BENE_AUTORIZA setObservaciones()    Sets the current record's "observaciones" value
 * @method RE_BENE_AUTORIZA setAdjunto()          Sets the current record's "adjunto" value
 * @method RE_BENE_AUTORIZA setFechaDoc()         Sets the current record's "fecha_doc" value
 * @method RE_BENE_AUTORIZA setINTERCEROS()       Sets the current record's "INTERCEROS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_BENE_AUTORIZA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_BENE_AUTORIZA');
        $this->hasColumn('id_bene_autoriza', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('secuencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('autorizado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('num_doc', 'string', 64, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $this->hasColumn('tipo_doc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('observaciones', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('adjunto', 'string', 128, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));
    }
}