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

/**
 * BaseCO_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_ABOGADO $CBR_ABOGADO
 * @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_ABOGADO         getCBRABOGADO()          Returns the current record's "CBR_ABOGADO" value
 * @method CBR_REMISION_TITULO getCBRREMISIONTITULO()   Returns the current record's "CBR_REMISION_TITULO" value
 * @method CO_REPARTO          setIdReparto()           Sets the current record's "id_reparto" value
 * @method CO_REPARTO          setIdRemisionTitulo()    Sets the current record's "id_remision_titulo" value
 * @method CO_REPARTO          setIdAbogado()           Sets the current record's "id_abogado" value
 * @method CO_REPARTO          setFechaReparto()        Sets the current record's "fecha_reparto" value
 * @method CO_REPARTO          setObservaciones()       Sets the current record's "observaciones" value
 * @method CO_REPARTO          setCBRABOGADO()          Sets the current record's "CBR_ABOGADO" value
 * @method CO_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 BaseCO_REPARTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_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,
             ));
    }

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

        $this->hasOne('CBR_REMISION_TITULO', array(
             'local' => 'id_remision_titulo',
             'foreign' => 'id_remision_titulo'));
    }
}