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

/**
 * BaseCN_VIGENCIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_vigencia
 * @property Doctrine_Collection $CN_TABLE_VIG_SEQ
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_LOG
 * @property Doctrine_Collection $CN_CONTROL_PERIODO
 * @property Doctrine_Collection $CN_CONTROL_CAD
 * 
 * @method integer             getIdVigencia()             Returns the current record's "id_vigencia" value
 * @method Doctrine_Collection getCNTABLEVIGSEQ()          Returns the current record's "CN_TABLE_VIG_SEQ" collection
 * @method Doctrine_Collection getCNCONTROLPERIODOLOG()    Returns the current record's "CN_CONTROL_PERIODO_LOG" collection
 * @method Doctrine_Collection getCNCONTROLPERIODO()       Returns the current record's "CN_CONTROL_PERIODO" collection
 * @method Doctrine_Collection getCNCONTROLCAD()           Returns the current record's "CN_CONTROL_CAD" collection
 * @method CN_VIGENCIA         setIdVigencia()             Sets the current record's "id_vigencia" value
 * @method CN_VIGENCIA         setCNTABLEVIGSEQ()          Sets the current record's "CN_TABLE_VIG_SEQ" collection
 * @method CN_VIGENCIA         setCNCONTROLPERIODOLOG()    Sets the current record's "CN_CONTROL_PERIODO_LOG" collection
 * @method CN_VIGENCIA         setCNCONTROLPERIODO()       Sets the current record's "CN_CONTROL_PERIODO" collection
 * @method CN_VIGENCIA         setCNCONTROLCAD()           Sets the current record's "CN_CONTROL_CAD" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_VIGENCIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_VIGENCIA');
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
    }

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

        $this->hasMany('CN_CONTROL_PERIODO_LOG', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_CONTROL_PERIODO', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('CN_CONTROL_CAD', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));
    }
}