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

/**
 * BaseCBR_AVALUO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_avaluo
 * @property integer $id_secuestro
 * @property integer $no_auto
 * @property timestamp $fecha
 * @property string $observaciones
 * @property CBR_SECUESTRO $CBR_SECUESTRO
 * @property Doctrine_Collection $CBR_OFICIO_AVALUO
 * 
 * @method integer             getIdAvaluo()          Returns the current record's "id_avaluo" 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              getObservaciones()     Returns the current record's "observaciones" value
 * @method CBR_SECUESTRO       getCBRSECUESTRO()      Returns the current record's "CBR_SECUESTRO" value
 * @method Doctrine_Collection getCBROFICIOAVALUO()   Returns the current record's "CBR_OFICIO_AVALUO" collection
 * @method CBR_AVALUO          setIdAvaluo()          Sets the current record's "id_avaluo" value
 * @method CBR_AVALUO          setIdSecuestro()       Sets the current record's "id_secuestro" value
 * @method CBR_AVALUO          setNoAuto()            Sets the current record's "no_auto" value
 * @method CBR_AVALUO          setFecha()             Sets the current record's "fecha" value
 * @method CBR_AVALUO          setObservaciones()     Sets the current record's "observaciones" value
 * @method CBR_AVALUO          setCBRSECUESTRO()      Sets the current record's "CBR_SECUESTRO" value
 * @method CBR_AVALUO          setCBROFICIOAVALUO()   Sets the current record's "CBR_OFICIO_AVALUO" 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_AVALUO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_AVALUO');
        $this->hasColumn('id_avaluo', '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('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
         $this->hasColumn('detalle_plantilla', 'clob', 4000, array(
             'notnull' => true,
             'type' => 'clob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
    }

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

        $this->hasMany('CBR_OFICIO_AVALUO', array(
             'local' => 'id_avaluo',
             'foreign' => 'id_avaluo'));
    }
}