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

/**
 * BaseCBR_PROCESO_COACTIVO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_proceso_coactivo
 * @property integer $id_remision_titulo
 * @property integer $no_proceso
 * @property integer $id_anhos
 * @property timestamp $fecha
 * @property CBR_REMISION_TITULO $CBR_REMISION_TITULO
 * @property Doctrine_Collection $CBR_SUSPENSION_PROC
 * @property Doctrine_Collection $CBR_SECUESTRO
 * @property Doctrine_Collection $CBR_REGISTRO_ETAPA
 * @property Doctrine_Collection $CBR_EMBARGO
 * 
 * @method integer              getIdProcesoCoactivo()   Returns the current record's "id_proceso_coactivo" value
 * @method integer              getIdRemisionTitulo()    Returns the current record's "id_remision_titulo" value
 * @method integer              getNoProceso()           Returns the current record's "no_proceso" value
 * @method integer              getIdAnhos()             Returns the current record's "id_anhos" value
 * @method timestamp            getFecha()               Returns the current record's "fecha" value
 * @method CBR_REMISION_TITULO  getCBRREMISIONTITULO()   Returns the current record's "CBR_REMISION_TITULO" value
 * @method Doctrine_Collection  getCBRSUSPENSIONPROC()   Returns the current record's "CBR_SUSPENSION_PROC" collection
 * @method Doctrine_Collection  getCBRSECUESTRO()        Returns the current record's "CBR_SECUESTRO" collection
 * @method Doctrine_Collection  getCBRREGISTROETAPA()    Returns the current record's "CBR_REGISTRO_ETAPA" collection
 * @method Doctrine_Collection  getCBREMBARGO()          Returns the current record's "CBR_EMBARGO" collection
 * @method CBR_PROCESO_COACTIVO setIdProcesoCoactivo()   Sets the current record's "id_proceso_coactivo" value
 * @method CBR_PROCESO_COACTIVO setIdRemisionTitulo()    Sets the current record's "id_remision_titulo" value
 * @method CBR_PROCESO_COACTIVO setNoProceso()           Sets the current record's "no_proceso" value
 * @method CBR_PROCESO_COACTIVO setIdAnhos()             Sets the current record's "id_anhos" value
 * @method CBR_PROCESO_COACTIVO setFecha()               Sets the current record's "fecha" value
 * @method CBR_PROCESO_COACTIVO setCBRREMISIONTITULO()   Sets the current record's "CBR_REMISION_TITULO" value
 * @method CBR_PROCESO_COACTIVO setCBRSUSPENSIONPROC()   Sets the current record's "CBR_SUSPENSION_PROC" collection
 * @method CBR_PROCESO_COACTIVO setCBRSECUESTRO()        Sets the current record's "CBR_SECUESTRO" collection
 * @method CBR_PROCESO_COACTIVO setCBRREGISTROETAPA()    Sets the current record's "CBR_REGISTRO_ETAPA" collection
 * @method CBR_PROCESO_COACTIVO setCBREMBARGO()          Sets the current record's "CBR_EMBARGO" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_PROCESO_COACTIVO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_PROCESO_COACTIVO');
        $this->hasColumn('id_proceso_coactivo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remision_titulo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_proceso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

        $this->hasMany('CBR_SUSPENSION_PROC', array(
             'local' => 'id_proceso_coactivo',
             'foreign' => 'id_proceso_coactivo'));

        $this->hasMany('CBR_SECUESTRO', array(
             'local' => 'id_proceso_coactivo',
             'foreign' => 'id_proceso_coactivo'));

        $this->hasMany('CBR_REGISTRO_ETAPA', array(
             'local' => 'id_proceso_coactivo',
             'foreign' => 'id_proceso_coactivo'));

        $this->hasMany('CBR_EMBARGO', array(
             'local' => 'id_proceso_coactivo',
             'foreign' => 'id_proceso_coactivo'));
    }
}