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

/**
 * BaseCA_CON_CREDITO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_con_credito
 * @property string $descripcion
 * @property string $desc_corta
 * @property integer $estado
 * @property integer $aplica_bn
 * @property Doctrine_Collection $CA_CREDITO
 * 
 * @method integer             getIdConCredito()   Returns the current record's "id_con_credito" value
 * @method string              getDescripcion()    Returns the current record's "descripcion" value
 * @method string              getDescCorta()      Returns the current record's "desc_corta" value
 * @method integer             getEstado()         Returns the current record's "estado" value
 * @method integer             getAplicaBn()       Returns the current record's "aplica_bn" value
 * @method Doctrine_Collection getCACREDITO()      Returns the current record's "CA_CREDITO" collection
 * @method CA_CON_CREDITO      setIdConCredito()   Sets the current record's "id_con_credito" value
 * @method CA_CON_CREDITO      setDescripcion()    Sets the current record's "descripcion" value
 * @method CA_CON_CREDITO      setDescCorta()      Sets the current record's "desc_corta" value
 * @method CA_CON_CREDITO      setEstado()         Sets the current record's "estado" value
 * @method CA_CON_CREDITO      setAplicaBn()       Sets the current record's "aplica_bn" value
 * @method CA_CON_CREDITO      setCACREDITO()      Sets the current record's "CA_CREDITO" 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 BaseCA_CON_CREDITO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_CON_CREDITO');
        $this->hasColumn('id_con_credito', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 256, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('desc_corta', 'string', 45, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 45,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('aplica_bn', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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