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

/**
 * BaseCBR_REPARTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reparto
 * @property integer $id_remision_titulo
 * @property integer $id_abogado
 * @property timestamp $fecha_reparto
 * @property string $observaciones
 * @property CBR_REMISION_TITULO $CBR_REMISION_TITULO
 * 
 * @method integer             getIdReparto()           Returns the current record's "id_reparto" value
 * @method integer             getIdRemisionTitulo()    Returns the current record's "id_remision_titulo" value
 * @method integer             getIdAbogado()           Returns the current record's "id_abogado" value
 * @method timestamp           getFechaReparto()        Returns the current record's "fecha_reparto" value
 * @method string              getObservaciones()       Returns the current record's "observaciones" value
 * @method CBR_REMISION_TITULO getCBRREMISIONTITULO()   Returns the current record's "CBR_REMISION_TITULO" value
 * @method CBR_REPARTO         setIdReparto()           Sets the current record's "id_reparto" value
 * @method CBR_REPARTO         setIdRemisionTitulo()    Sets the current record's "id_remision_titulo" value
 * @method CBR_REPARTO         setIdAbogado()           Sets the current record's "id_abogado" value
 * @method CBR_REPARTO         setFechaReparto()        Sets the current record's "fecha_reparto" value
 * @method CBR_REPARTO         setObservaciones()       Sets the current record's "observaciones" value
 * @method CBR_REPARTO         setCBRREMISIONTITULO()   Sets the current record's "CBR_REMISION_TITULO" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_REPARTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_REPARTO');
        $this->hasColumn('id_reparto', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remision_titulo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_abogado', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_reparto', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('adjunto', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('usuario_log', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
    }

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