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

/**
 * BaseCBR_ADJUDICACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_adjudicacion
 * @property integer $id_secuestro
 * @property integer $no_auto
 * @property timestamp $fecha
 * @property string $adjunto
 * @property string $observaciones
 * @property CBR_SECUESTRO $CBR_SECUESTRO
 * @property Doctrine_Collection $CBR_OFICIO_ADJUDICA
 * 
 * @method integer             getIdAdjudicacion()      Returns the current record's "id_adjudicacion" value
 * @method integer             getIdSecuestro()         Returns the current record's "id_secuestro" value
 * @method integer             getNoAuto()              Returns the current record's "no_auto" value
 * @method timestamp           getFecha()               Returns the current record's "fecha" value
 * @method string              getAdjunto()             Returns the current record's "adjunto" value
 * @method string              getObservaciones()       Returns the current record's "observaciones" value
 * @method CBR_SECUESTRO       getCBRSECUESTRO()        Returns the current record's "CBR_SECUESTRO" value
 * @method Doctrine_Collection getCBROFICIOADJUDICA()   Returns the current record's "CBR_OFICIO_ADJUDICA" collection
 * @method CBR_ADJUDICACION    setIdAdjudicacion()      Sets the current record's "id_adjudicacion" value
 * @method CBR_ADJUDICACION    setIdSecuestro()         Sets the current record's "id_secuestro" value
 * @method CBR_ADJUDICACION    setNoAuto()              Sets the current record's "no_auto" value
 * @method CBR_ADJUDICACION    setFecha()               Sets the current record's "fecha" value
 * @method CBR_ADJUDICACION    setAdjunto()             Sets the current record's "adjunto" value
 * @method CBR_ADJUDICACION    setObservaciones()       Sets the current record's "observaciones" value
 * @method CBR_ADJUDICACION    setCBRSECUESTRO()        Sets the current record's "CBR_SECUESTRO" value
 * @method CBR_ADJUDICACION    setCBROFICIOADJUDICA()   Sets the current record's "CBR_OFICIO_ADJUDICA" 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_ADJUDICACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_ADJUDICACION');
        $this->hasColumn('id_adjudicacion', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_secuestro', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_auto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('detalle_plantilla','clob', 4000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('adjunto', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('observaciones', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

        $this->hasMany('CBR_OFICIO_ADJUDICA', array(
             'local' => 'id_adjudicacion',
             'foreign' => 'id_adjudicacion'));
    }
}