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

/**
 * BaseCN_CENTRO_OPERACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cen_op
 * @property integer $id_cia
 * @property string $nom_cen_op
 * @property string $descr_cen_op
 * @property integer $activo
 * @property CN_CIA $CN_CIA
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_LOG
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_LOG_4
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_LOG_5
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_LOG_6
 * @property Doctrine_Collection $CN_CONTROL_PERIODO
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_4
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_5
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_6
 * @property Doctrine_Collection $CN_CONTROL_CAD
 * @property Doctrine_Collection $CN_CONTROL_CAD_8
 * @property Doctrine_Collection $CN_CONTROL_CAD_9
 * @property Doctrine_Collection $CN_CONTROL_CAD_10
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_2
 * @property Doctrine_Collection $CN_CONTROL_PERIODO_3
 * @property Doctrine_Collection $CN_CONTROL_CAD_2
 * @property Doctrine_Collection $CN_CONTROL_CAD_3
 * @property Doctrine_Collection $CN_CONTROL_CAD_4
 * 
 * @method integer             getIdCenOp()                  Returns the current record's "id_cen_op" value
 * @method integer             getIdCia()                    Returns the current record's "id_cia" value
 * @method string              getNomCenOp()                 Returns the current record's "nom_cen_op" value
 * @method string              getDescrCenOp()               Returns the current record's "descr_cen_op" value
 * @method integer             getActivo()                   Returns the current record's "activo" value
 * @method CN_CIA              getCNCIA()                    Returns the current record's "CN_CIA" value
 * @method Doctrine_Collection getCNCONTROLPERIODOLOG()      Returns the current record's "CN_CONTROL_PERIODO_LOG" collection
 * @method Doctrine_Collection getCNCONTROLPERIODOLOG4()     Returns the current record's "CN_CONTROL_PERIODO_LOG_4" collection
 * @method Doctrine_Collection getCNCONTROLPERIODOLOG5()     Returns the current record's "CN_CONTROL_PERIODO_LOG_5" collection
 * @method Doctrine_Collection getCNCONTROLPERIODOLOG6()     Returns the current record's "CN_CONTROL_PERIODO_LOG_6" collection
 * @method Doctrine_Collection getCNCONTROLPERIODO()         Returns the current record's "CN_CONTROL_PERIODO" collection
 * @method Doctrine_Collection getCNCONTROLPERIODO4()        Returns the current record's "CN_CONTROL_PERIODO_4" collection
 * @method Doctrine_Collection getCNCONTROLPERIODO5()        Returns the current record's "CN_CONTROL_PERIODO_5" collection
 * @method Doctrine_Collection getCNCONTROLPERIODO6()        Returns the current record's "CN_CONTROL_PERIODO_6" collection
 * @method Doctrine_Collection getCNCONTROLCAD()             Returns the current record's "CN_CONTROL_CAD" collection
 * @method Doctrine_Collection getCNCONTROLCAD8()            Returns the current record's "CN_CONTROL_CAD_8" collection
 * @method Doctrine_Collection getCNCONTROLCAD9()            Returns the current record's "CN_CONTROL_CAD_9" collection
 * @method Doctrine_Collection getCNCONTROLCAD10()           Returns the current record's "CN_CONTROL_CAD_10" collection
 * @method Doctrine_Collection getCNCONTROLPERIODO2()        Returns the current record's "CN_CONTROL_PERIODO_2" collection
 * @method Doctrine_Collection getCNCONTROLPERIODO3()        Returns the current record's "CN_CONTROL_PERIODO_3" collection
 * @method Doctrine_Collection getCNCONTROLCAD2()            Returns the current record's "CN_CONTROL_CAD_2" collection
 * @method Doctrine_Collection getCNCONTROLCAD3()            Returns the current record's "CN_CONTROL_CAD_3" collection
 * @method Doctrine_Collection getCNCONTROLCAD4()            Returns the current record's "CN_CONTROL_CAD_4" collection
 * @method CN_CENTRO_OPERACION setIdCenOp()                  Sets the current record's "id_cen_op" value
 * @method CN_CENTRO_OPERACION setIdCia()                    Sets the current record's "id_cia" value
 * @method CN_CENTRO_OPERACION setNomCenOp()                 Sets the current record's "nom_cen_op" value
 * @method CN_CENTRO_OPERACION setDescrCenOp()               Sets the current record's "descr_cen_op" value
 * @method CN_CENTRO_OPERACION setActivo()                   Sets the current record's "activo" value
 * @method CN_CENTRO_OPERACION setCNCIA()                    Sets the current record's "CN_CIA" value
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODOLOG()      Sets the current record's "CN_CONTROL_PERIODO_LOG" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODOLOG4()     Sets the current record's "CN_CONTROL_PERIODO_LOG_4" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODOLOG5()     Sets the current record's "CN_CONTROL_PERIODO_LOG_5" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODOLOG6()     Sets the current record's "CN_CONTROL_PERIODO_LOG_6" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODO()         Sets the current record's "CN_CONTROL_PERIODO" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODO4()        Sets the current record's "CN_CONTROL_PERIODO_4" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODO5()        Sets the current record's "CN_CONTROL_PERIODO_5" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODO6()        Sets the current record's "CN_CONTROL_PERIODO_6" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLCAD()             Sets the current record's "CN_CONTROL_CAD" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLCAD8()            Sets the current record's "CN_CONTROL_CAD_8" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLCAD9()            Sets the current record's "CN_CONTROL_CAD_9" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLCAD10()           Sets the current record's "CN_CONTROL_CAD_10" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODO2()        Sets the current record's "CN_CONTROL_PERIODO_2" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLPERIODO3()        Sets the current record's "CN_CONTROL_PERIODO_3" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLCAD2()            Sets the current record's "CN_CONTROL_CAD_2" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLCAD3()            Sets the current record's "CN_CONTROL_CAD_3" collection
 * @method CN_CENTRO_OPERACION setCNCONTROLCAD4()            Sets the current record's "CN_CONTROL_CAD_4" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_CENTRO_OPERACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_CENTRO_OPERACION');
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nom_cen_op', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('descr_cen_op', '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,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_grupo_origen', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

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

        $this->hasMany('CN_CONTROL_PERIODO_LOG as CN_CONTROL_PERIODO_LOG_4', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_CONTROL_PERIODO_LOG as CN_CONTROL_PERIODO_LOG_5', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_CONTROL_PERIODO_LOG as CN_CONTROL_PERIODO_LOG_6', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

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

        $this->hasMany('CN_CONTROL_PERIODO as CN_CONTROL_PERIODO_4', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_CONTROL_PERIODO as CN_CONTROL_PERIODO_5', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_CONTROL_PERIODO as CN_CONTROL_PERIODO_6', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

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

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_8', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_9', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_10', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_CONTROL_PERIODO as CN_CONTROL_PERIODO_2', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_CONTROL_PERIODO as CN_CONTROL_PERIODO_3', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_2', array(
             'local' => 'id_cia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('CN_CONTROL_CAD as CN_CONTROL_CAD_3', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cia'));

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