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

/**
 * BaseCBR_PAR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_par
 * @property string $codigo
 * @property string $descripcion
 * @property integer $coordinador
 * @property integer $estado
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $CBR_REMISION_TITULO
 * 
 * @method integer             getIdPar()               Returns the current record's "id_par" value
 * @method string              getCodigo()              Returns the current record's "codigo" value
 * @method string              getDescripcion()         Returns the current record's "descripcion" value
 * @method integer             getCoordinador()         Returns the current record's "coordinador" value
 * @method integer             getEstado()              Returns the current record's "estado" value
 * @method INTERCEROS          getINTERCEROS()          Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection getCBRREMISIONTITULO()   Returns the current record's "CBR_REMISION_TITULO" collection
 * @method CBR_PAR             setIdPar()               Sets the current record's "id_par" value
 * @method CBR_PAR             setCodigo()              Sets the current record's "codigo" value
 * @method CBR_PAR             setDescripcion()         Sets the current record's "descripcion" value
 * @method CBR_PAR             setCoordinador()         Sets the current record's "coordinador" value
 * @method CBR_PAR             setEstado()              Sets the current record's "estado" value
 * @method CBR_PAR             setINTERCEROS()          Sets the current record's "INTERCEROS" value
 * @method CBR_PAR             setCBRREMISIONTITULO()   Sets the current record's "CBR_REMISION_TITULO" 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 BaseCBR_PAR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_PAR');
        $this->hasColumn('id_par', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('coordinador', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('CBR_REMISION_TITULO', array(
             'local' => 'id_par',
             'foreign' => 'id_par'));
    }
}