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

/**
 * BaseDEPARTAMENTOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $coddepto
 * @property string $desdepto
 * @property Doctrine_Collection $INTERCER_DU
 * @property Doctrine_Collection $INTERCER_DU_DIR
 * 
 * @method string              getCoddepto()        Returns the current record's "coddepto" value
 * @method string              getDesdepto()        Returns the current record's "desdepto" value
 * @method Doctrine_Collection getINTERCERDU()      Returns the current record's "INTERCER_DU" collection
 * @method Doctrine_Collection getINTERCERDUDIR()   Returns the current record's "INTERCER_DU_DIR" collection
 * @method DEPARTAMENTOS       setCoddepto()        Sets the current record's "coddepto" value
 * @method DEPARTAMENTOS       setDesdepto()        Sets the current record's "desdepto" value
 * @method DEPARTAMENTOS       setINTERCERDU()      Sets the current record's "INTERCER_DU" collection
 * @method DEPARTAMENTOS       setINTERCERDUDIR()   Sets the current record's "INTERCER_DU_DIR" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseDEPARTAMENTOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('DEPARTAMENTOS');
        $this->hasColumn('coddepto', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('desdepto', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('id_pais', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('INTERCER_DU_DIR', array(
             'local' => 'coddepto',
             'foreign' => 'coddepto'));
    }
}