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

/**
 * BaseINTERCER_CON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ter_con
 * @property integer $id_mae_ter
 * @property string $porcentaje
 * @property integer $id_mae_ter_con
 * @property INTERCEROS $INTERCEROS
 * @property INTERCEROS $INTERCEROS_2
 * 
 * @method integer      getIdTerCon()       Returns the current record's "id_ter_con" value
 * @method integer      getIdMaeTer()       Returns the current record's "id_mae_ter" value
 * @method string       getPorcentaje()     Returns the current record's "porcentaje" value
 * @method integer      getIdMaeTerCon()    Returns the current record's "id_mae_ter_con" value
 * @method INTERCEROS   getINTERCEROS()     Returns the current record's "INTERCEROS" value
 * @method INTERCEROS   getINTERCEROS2()    Returns the current record's "INTERCEROS_2" value
 * @method INTERCER_CON setIdTerCon()       Sets the current record's "id_ter_con" value
 * @method INTERCER_CON setIdMaeTer()       Sets the current record's "id_mae_ter" value
 * @method INTERCER_CON setPorcentaje()     Sets the current record's "porcentaje" value
 * @method INTERCER_CON setIdMaeTerCon()    Sets the current record's "id_mae_ter_con" value
 * @method INTERCER_CON setINTERCEROS()     Sets the current record's "INTERCEROS" value
 * @method INTERCER_CON setINTERCEROS2()    Sets the current record's "INTERCEROS_2" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseINTERCER_CON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCER_CON');
        $this->hasColumn('id_ter_con', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter_con', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCEROS as INTERCEROS_2', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));
    }
}