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

/**
 * BaseCACO_TIPO_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_contrato
 * @property string $codigo
 * @property string $descripcion
 * @property integer $estado
 * @property Doctrine_Collection $CACO_CONTRATO
 * 
 * @method integer             getIdTipoContrato()   Returns the current record's "id_tipo_contrato" value
 * @method string              getCodigo()           Returns the current record's "codigo" value
 * @method string              getDescripcion()      Returns the current record's "descripcion" value
 * @method integer             getEstado()           Returns the current record's "estado" value
 * @method Doctrine_Collection getCACOCONTRATO()     Returns the current record's "CACO_CONTRATO" collection
 * @method CACO_TIPO_CONTRATO  setIdTipoContrato()   Sets the current record's "id_tipo_contrato" value
 * @method CACO_TIPO_CONTRATO  setCodigo()           Sets the current record's "codigo" value
 * @method CACO_TIPO_CONTRATO  setDescripcion()      Sets the current record's "descripcion" value
 * @method CACO_TIPO_CONTRATO  setEstado()           Sets the current record's "estado" value
 * @method CACO_TIPO_CONTRATO  setCACOCONTRATO()     Sets the current record's "CACO_CONTRATO" collection
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCACO_TIPO_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CACO_TIPO_CONTRATO');
        $this->hasColumn('id_tipo_contrato', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $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('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 8,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('CACO_CONTRATO', array(
             'local' => 'id_tipo_contrato',
             'foreign' => 'id_tipo_contrato'));
    }
}