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

/**
 * BaseCA_DEBITO_REF
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_debito
 * @property integer $id_referencia1
 * @property string $id_referencia2
 * @property CA_DEBITO $CA_DEBITO
 * 
 * @method integer       getIdDebito()       Returns the current record's "id_debito" value
 * @method integer       getIdReferencia1()  Returns the current record's "id_referencia1" value
 * @method string        getIdReferencia2()  Returns the current record's "id_referencia2" value
 * @method CA_DEBITO     getCADEBITO()       Returns the current record's "CA_DEBITO" value
 * @method CA_DEBITO_REF setIdDebito()       Sets the current record's "id_debito" value
 * @method CA_DEBITO_REF setIdReferencia1()  Sets the current record's "id_referencia1" value
 * @method CA_DEBITO_REF setIdReferencia2()  Sets the current record's "id_referencia2" value
 * @method CA_DEBITO_REF setCADEBITO()       Sets the current record's "CA_DEBITO" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_DEBITO_REF extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_DEBITO_REF');
        $this->hasColumn('id_debito', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_referencia1', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_referencia2', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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