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

/**
 * BaseCBR_ABOGADO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_abogado
 * @property string $email
 * @property integer $estado
 * @property integer $id_mae_ter
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $CO_REPARTO
 * 
 * @method integer             getIdAbogado()  Returns the current record's "id_abogado" value
 * @method string              getEmail()      Returns the current record's "email" value
 * @method integer             getEstado()     Returns the current record's "estado" value
 * @method integer             getIdMaeTer()   Returns the current record's "id_mae_ter" value
 * @method INTERCEROS          getINTERCEROS() Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection getCOREPARTO()  Returns the current record's "CO_REPARTO" collection
 * @method CBR_ABOGADO         setIdAbogado()  Sets the current record's "id_abogado" value
 * @method CBR_ABOGADO         setEmail()      Sets the current record's "email" value
 * @method CBR_ABOGADO         setEstado()     Sets the current record's "estado" value
 * @method CBR_ABOGADO         setIdMaeTer()   Sets the current record's "id_mae_ter" value
 * @method CBR_ABOGADO         setINTERCEROS() Sets the current record's "INTERCEROS" value
 * @method CBR_ABOGADO         setCOREPARTO()  Sets the current record's "CO_REPARTO" 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 BaseCBR_ABOGADO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_ABOGADO');
        $this->hasColumn('id_abogado', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('email', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('CO_REPARTO', array(
             'local' => 'id_abogado',
             'foreign' => 'id_abogado'));
    }
}