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

/**
 * BaseCOMPANIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cia
 * @property string $raz_soc
 * @property integer $nro_iden
 * @property integer $estado
 * @property Doctrine_Collection $CENTRO_OPERACION
 * @property Doctrine_Collection $ACTIVIDAD_FORMACION
 * @property Doctrine_Collection $ACTIVIDAD
 * @property Doctrine_Collection $RH_DP
 * 
 * @method integer             getIdCia()               Returns the current record's "id_cia" value
 * @method string              getRazSoc()              Returns the current record's "raz_soc" value
 * @method integer             getNroIden()             Returns the current record's "nro_iden" value
 * @method integer             getEstado()              Returns the current record's "estado" value
 * @method Doctrine_Collection getCENTROOPERACION()     Returns the current record's "CENTRO_OPERACION" collection
 * @method Doctrine_Collection getACTIVIDADFORMACION()  Returns the current record's "ACTIVIDAD_FORMACION" collection
 * @method Doctrine_Collection getACTIVIDAD()           Returns the current record's "ACTIVIDAD" collection
 * @method Doctrine_Collection getRHDP()                Returns the current record's "RH_DP" collection
 * @method COMPANIA            setIdCia()               Sets the current record's "id_cia" value
 * @method COMPANIA            setRazSoc()              Sets the current record's "raz_soc" value
 * @method COMPANIA            setNroIden()             Sets the current record's "nro_iden" value
 * @method COMPANIA            setEstado()              Sets the current record's "estado" value
 * @method COMPANIA            setCENTROOPERACION()     Sets the current record's "CENTRO_OPERACION" collection
 * @method COMPANIA            setACTIVIDADFORMACION()  Sets the current record's "ACTIVIDAD_FORMACION" collection
 * @method COMPANIA            setACTIVIDAD()           Sets the current record's "ACTIVIDAD" collection
 * @method COMPANIA            setRHDP()                Sets the current record's "RH_DP" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOMPANIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COMPANIA');
        $this->hasColumn('id_cia', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('raz_soc', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('nro_iden', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('ACTIVIDAD_FORMACION', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

        $this->hasMany('ACTIVIDAD', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));

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