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

/**
 * BaseCN_ESTADO_CATALOGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_estado_catalogo
 * @property integer $usa_tercero
 * @property integer $usa_auxiliar
 * @property integer $usa_cen_cto
 * @property integer $usa_sub_cen_cto
 * @property Doctrine_Collection $CN_CATALOGO
 * 
 * @method integer             getIdEstadoCatalogo()   Returns the current record's "id_estado_catalogo" value
 * @method integer             getUsaTercero()         Returns the current record's "usa_tercero" value
 * @method integer             getUsaAuxiliar()        Returns the current record's "usa_auxiliar" value
 * @method integer             getUsaCenCto()          Returns the current record's "usa_cen_cto" value
 * @method integer             getUsaSubCenCto()       Returns the current record's "usa_sub_cen_cto" value
 * @method Doctrine_Collection getCNCATALOGO()         Returns the current record's "CN_CATALOGO" collection
 * @method CN_ESTADO_CATALOGO  setIdEstadoCatalogo()   Sets the current record's "id_estado_catalogo" value
 * @method CN_ESTADO_CATALOGO  setUsaTercero()         Sets the current record's "usa_tercero" value
 * @method CN_ESTADO_CATALOGO  setUsaAuxiliar()        Sets the current record's "usa_auxiliar" value
 * @method CN_ESTADO_CATALOGO  setUsaCenCto()          Sets the current record's "usa_cen_cto" value
 * @method CN_ESTADO_CATALOGO  setUsaSubCenCto()       Sets the current record's "usa_sub_cen_cto" value
 * @method CN_ESTADO_CATALOGO  setCNCATALOGO()         Sets the current record's "CN_CATALOGO" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_ESTADO_CATALOGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_ESTADO_CATALOGO');
        $this->hasColumn('id_estado_catalogo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('usa_tercero', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('usa_auxiliar', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('usa_cen_cto', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('usa_sub_cen_cto', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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