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

/**
 * BaseCN_ALIAS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $nom_entidad
 * @property integer $id_cia
 * @property string $alias
 * @property integer $activo
 * @property CN_CIA $CN_CIA
 * 
 * @method string   getNomEntidad()  Returns the current record's "nom_entidad" value
 * @method integer  getIdCia()       Returns the current record's "id_cia" value
 * @method string   getAlias()       Returns the current record's "alias" value
 * @method integer  getActivo()      Returns the current record's "activo" value
 * @method CN_CIA   getCNCIA()       Returns the current record's "CN_CIA" value
 * @method CN_ALIAS setNomEntidad()  Sets the current record's "nom_entidad" value
 * @method CN_ALIAS setIdCia()       Sets the current record's "id_cia" value
 * @method CN_ALIAS setAlias()       Sets the current record's "alias" value
 * @method CN_ALIAS setActivo()      Sets the current record's "activo" value
 * @method CN_ALIAS setCNCIA()       Sets the current record's "CN_CIA" value
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_ALIAS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_ALIAS');
        $this->hasColumn('nom_entidad', 'string', 128, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 128,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('alias', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('activo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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