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

/**
 * BaseCONTRATISTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property string $razon_social
 * @property string $ciudad
 * @property string $telefono
 * @property string $direccion
 * @property string $email
 * @property string $estado
 * @property string $primer_nombre
 * @property string $segundo_nombre
 * @property string $primer_apellido
 * @property string $segundo_apellido
 * @property TIPO_DOCUMENTO $TIPO_DOCUMENTO
 * @property Doctrine_Collection $CONT_LIQUIDA_APORTE
 * @property Doctrine_Collection $CONT_LIQUIDA_APORTE_7
 * @property Doctrine_Collection $CONT_LIQUIDA_APORTE_8
 * @property Doctrine_Collection $CONT_LIQUIDA_APORTE_9
 * @property Doctrine_Collection $CONT_CONTRATO
 * @property Doctrine_Collection $CONT_CONTRATO_2
 * @property Doctrine_Collection $CONT_CONTRATO_3
 * @property Doctrine_Collection $CONT_CONTRATO_4
 * @property Doctrine_Collection $CONT_AFILIA_FONDO
 * @property Doctrine_Collection $CONT_AFILIA_FONDO_6
 * @property Doctrine_Collection $CONT_AFILIA_FONDO_7
 * @property Doctrine_Collection $CONT_AFILIA_FONDO_8
 * 
 * @method integer             getIdTipoDoc()             Returns the current record's "id_tipo_doc" value
 * @method string              getNumDoc()                Returns the current record's "num_doc" value
 * @method string              getRazonSocial()           Returns the current record's "razon_social" value
 * @method string              getCiudad()                Returns the current record's "ciudad" value
 * @method string              getTelefono()              Returns the current record's "telefono" value
 * @method string              getDireccion()             Returns the current record's "direccion" value
 * @method string              getEmail()                 Returns the current record's "email" value
 * @method string              getEstado()                Returns the current record's "estado" value
 * @method string              getPrimerNombre()          Returns the current record's "primer_nombre" value
 * @method string              getSegundoNombre()         Returns the current record's "segundo_nombre" value
 * @method string              getPrimerApellido()        Returns the current record's "primer_apellido" value
 * @method string              getSegundoApellido()       Returns the current record's "segundo_apellido" value
 * @method TIPO_DOCUMENTO      getTIPODOCUMENTO()         Returns the current record's "TIPO_DOCUMENTO" value
 * @method Doctrine_Collection getCONTLIQUIDAAPORTE()     Returns the current record's "CONT_LIQUIDA_APORTE" collection
 * @method Doctrine_Collection getCONTLIQUIDAAPORTE7()    Returns the current record's "CONT_LIQUIDA_APORTE_7" collection
 * @method Doctrine_Collection getCONTLIQUIDAAPORTE8()    Returns the current record's "CONT_LIQUIDA_APORTE_8" collection
 * @method Doctrine_Collection getCONTLIQUIDAAPORTE9()    Returns the current record's "CONT_LIQUIDA_APORTE_9" collection
 * @method Doctrine_Collection getCONTCONTRATO()          Returns the current record's "CONT_CONTRATO" collection
 * @method Doctrine_Collection getCONTCONTRATO2()         Returns the current record's "CONT_CONTRATO_2" collection
 * @method Doctrine_Collection getCONTCONTRATO3()         Returns the current record's "CONT_CONTRATO_3" collection
 * @method Doctrine_Collection getCONTCONTRATO4()         Returns the current record's "CONT_CONTRATO_4" collection
 * @method Doctrine_Collection getCONTAFILIAFONDO()       Returns the current record's "CONT_AFILIA_FONDO" collection
 * @method Doctrine_Collection getCONTAFILIAFONDO6()      Returns the current record's "CONT_AFILIA_FONDO_6" collection
 * @method Doctrine_Collection getCONTAFILIAFONDO7()      Returns the current record's "CONT_AFILIA_FONDO_7" collection
 * @method Doctrine_Collection getCONTAFILIAFONDO8()      Returns the current record's "CONT_AFILIA_FONDO_8" collection
 * @method CONTRATISTA         setIdTipoDoc()             Sets the current record's "id_tipo_doc" value
 * @method CONTRATISTA         setNumDoc()                Sets the current record's "num_doc" value
 * @method CONTRATISTA         setRazonSocial()           Sets the current record's "razon_social" value
 * @method CONTRATISTA         setCiudad()                Sets the current record's "ciudad" value
 * @method CONTRATISTA         setTelefono()              Sets the current record's "telefono" value
 * @method CONTRATISTA         setDireccion()             Sets the current record's "direccion" value
 * @method CONTRATISTA         setEmail()                 Sets the current record's "email" value
 * @method CONTRATISTA         setEstado()                Sets the current record's "estado" value
 * @method CONTRATISTA         setPrimerNombre()          Sets the current record's "primer_nombre" value
 * @method CONTRATISTA         setSegundoNombre()         Sets the current record's "segundo_nombre" value
 * @method CONTRATISTA         setPrimerApellido()        Sets the current record's "primer_apellido" value
 * @method CONTRATISTA         setSegundoApellido()       Sets the current record's "segundo_apellido" value
 * @method CONTRATISTA         setTIPODOCUMENTO()         Sets the current record's "TIPO_DOCUMENTO" value
 * @method CONTRATISTA         setCONTLIQUIDAAPORTE()     Sets the current record's "CONT_LIQUIDA_APORTE" collection
 * @method CONTRATISTA         setCONTLIQUIDAAPORTE7()    Sets the current record's "CONT_LIQUIDA_APORTE_7" collection
 * @method CONTRATISTA         setCONTLIQUIDAAPORTE8()    Sets the current record's "CONT_LIQUIDA_APORTE_8" collection
 * @method CONTRATISTA         setCONTLIQUIDAAPORTE9()    Sets the current record's "CONT_LIQUIDA_APORTE_9" collection
 * @method CONTRATISTA         setCONTCONTRATO()          Sets the current record's "CONT_CONTRATO" collection
 * @method CONTRATISTA         setCONTCONTRATO2()         Sets the current record's "CONT_CONTRATO_2" collection
 * @method CONTRATISTA         setCONTCONTRATO3()         Sets the current record's "CONT_CONTRATO_3" collection
 * @method CONTRATISTA         setCONTCONTRATO4()         Sets the current record's "CONT_CONTRATO_4" collection
 * @method CONTRATISTA         setCONTAFILIAFONDO()       Sets the current record's "CONT_AFILIA_FONDO" collection
 * @method CONTRATISTA         setCONTAFILIAFONDO6()      Sets the current record's "CONT_AFILIA_FONDO_6" collection
 * @method CONTRATISTA         setCONTAFILIAFONDO7()      Sets the current record's "CONT_AFILIA_FONDO_7" collection
 * @method CONTRATISTA         setCONTAFILIAFONDO8()      Sets the current record's "CONT_AFILIA_FONDO_8" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCONTRATISTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CONTRATISTA');
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('razon_social', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('ciudad', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telefono', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('direccion', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('email', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('primer_nombre', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('segundo_nombre', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('primer_apellido', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('segundo_apellido', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
    }

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

        $this->hasMany('CONT_LIQUIDA_APORTE', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasMany('CONT_LIQUIDA_APORTE as CONT_LIQUIDA_APORTE_7', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'num_doc'));

        $this->hasMany('CONT_LIQUIDA_APORTE as CONT_LIQUIDA_APORTE_8', array(
             'local' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasMany('CONT_LIQUIDA_APORTE as CONT_LIQUIDA_APORTE_9', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));

        $this->hasMany('CONT_CONTRATO', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasMany('CONT_CONTRATO as CONT_CONTRATO_2', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'num_doc'));

        $this->hasMany('CONT_CONTRATO as CONT_CONTRATO_3', array(
             'local' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasMany('CONT_CONTRATO as CONT_CONTRATO_4', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));

        $this->hasMany('CONT_AFILIA_FONDO', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasMany('CONT_AFILIA_FONDO as CONT_AFILIA_FONDO_6', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'num_doc'));

        $this->hasMany('CONT_AFILIA_FONDO as CONT_AFILIA_FONDO_7', array(
             'local' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasMany('CONT_AFILIA_FONDO as CONT_AFILIA_FONDO_8', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));
    }
}