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

/**
 * BaseCBR_REMATE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_remate
 * @property integer $id_secuestro
 * @property integer $no_auto
 * @property timestamp $fecha_remate
 * @property timestamp $fecha_publica
 * @property string $adjunto
 * @property string $observaciones
 * @property CBR_SECUESTRO $CBR_SECUESTRO
 * @property Doctrine_Collection $CBR_APRUEBA_REMATE
 * 
 * @method integer             getIdRemate()           Returns the current record's "id_remate" 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           getFechaRemate()        Returns the current record's "fecha_remate" value
 * @method timestamp           getFechaPublica()       Returns the current record's "fecha_publica" 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 getCBRAPRUEBAREMATE()   Returns the current record's "CBR_APRUEBA_REMATE" collection
 * @method CBR_REMATE          setIdRemate()           Sets the current record's "id_remate" value
 * @method CBR_REMATE          setIdSecuestro()        Sets the current record's "id_secuestro" value
 * @method CBR_REMATE          setNoAuto()             Sets the current record's "no_auto" value
 * @method CBR_REMATE          setFechaRemate()        Sets the current record's "fecha_remate" value
 * @method CBR_REMATE          setFechaPublica()       Sets the current record's "fecha_publica" value
 * @method CBR_REMATE          setAdjunto()            Sets the current record's "adjunto" value
 * @method CBR_REMATE          setObservaciones()      Sets the current record's "observaciones" value
 * @method CBR_REMATE          setCBRSECUESTRO()       Sets the current record's "CBR_SECUESTRO" value
 * @method CBR_REMATE          setCBRAPRUEBAREMATE()   Sets the current record's "CBR_APRUEBA_REMATE" 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_REMATE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_REMATE');
        $this->hasColumn('id_remate', '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_remate', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_publica', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('detalle_plantilla', 'clob', 4000, array(
             'notnull' => true,
             'type' => 'clob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $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_SECUESTRO', array(
             'local' => 'id_secuestro',
             'foreign' => 'id_secuestro'));

        $this->hasMany('CBR_APRUEBA_REMATE', array(
             'local' => 'id_remate',
             'foreign' => 'id_remate'));
    }
}