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

/**
 * BaseCACO_TIPO_NOV_CONT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_nov_cont
 * @property string $codigo
 * @property string $descripcion
 * @property integer $estado
 * @property integer $aplica_cartera
 * @property Doctrine_Collection $CACO_NOVEDAD_CONTRATO
 * 
 * @method integer             getIdTipoNovCont()         Returns the current record's "id_tipo_nov_cont" 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 integer             getAplicaCartera()         Returns the current record's "aplica_cartera" value
 * @method Doctrine_Collection getCACONOVEDADCONTRATO()   Returns the current record's "CACO_NOVEDAD_CONTRATO" collection
 * @method CACO_TIPO_NOV_CONT  setIdTipoNovCont()         Sets the current record's "id_tipo_nov_cont" value
 * @method CACO_TIPO_NOV_CONT  setCodigo()                Sets the current record's "codigo" value
 * @method CACO_TIPO_NOV_CONT  setDescripcion()           Sets the current record's "descripcion" value
 * @method CACO_TIPO_NOV_CONT  setEstado()                Sets the current record's "estado" value
 * @method CACO_TIPO_NOV_CONT  setAplicaCartera()         Sets the current record's "aplica_cartera" value
 * @method CACO_TIPO_NOV_CONT  setCACONOVEDADCONTRATO()   Sets the current record's "CACO_NOVEDAD_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_NOV_CONT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CACO_TIPO_NOV_CONT');
        $this->hasColumn('id_tipo_nov_cont', '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', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('aplica_cartera', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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