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

/**
 * BaseESTADO_CIVIL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_estado_civil
 * @property string $descripcion
 * @property Doctrine_Collection $DATOS_FUNCIONARIO
 * 
 * @method integer             getIdEstadoCivil()     Returns the current record's "id_estado_civil" value
 * @method string              getDescripcion()       Returns the current record's "descripcion" value
 * @method Doctrine_Collection getDATOSFUNCIONARIO()  Returns the current record's "DATOS_FUNCIONARIO" collection
 * @method ESTADO_CIVIL        setIdEstadoCivil()     Sets the current record's "id_estado_civil" value
 * @method ESTADO_CIVIL        setDescripcion()       Sets the current record's "descripcion" value
 * @method ESTADO_CIVIL        setDATOSFUNCIONARIO()  Sets the current record's "DATOS_FUNCIONARIO" 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 BaseESTADO_CIVIL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ESTADO_CIVIL');
        $this->hasColumn('id_estado_civil', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('DATOS_FUNCIONARIO', array(
             'local' => 'id_estado_civil',
             'foreign' => 'id_estado_civil'));
    }
}