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

/**
 * BaseRH_SA_AFI_SS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_afi_ss
 * @property string $num_doc
 * @property integer $id_cia
 * @property integer $id_cen_op
 * @property Doctrine_Collection $RH_SA_AFI_SS2
 * 
 * @method integer             getIdAfiSs()       Returns the current record's "id_afi_ss" value
 * @method string              getNumDoc()        Returns the current record's "num_doc" value
 * @method integer             getIdCia()         Returns the current record's "id_cia" value
 * @method integer             getIdCenOp()       Returns the current record's "id_cen_op" value
 * @method Doctrine_Collection getRHSAAFISS2()    Returns the current record's "RH_SA_AFI_SS2" collection
 * @method RH_SA_AFI_SS        setIdAfiSs()       Sets the current record's "id_afi_ss" value
 * @method RH_SA_AFI_SS        setNumDoc()        Sets the current record's "num_doc" value
 * @method RH_SA_AFI_SS        setIdCia()         Sets the current record's "id_cia" value
 * @method RH_SA_AFI_SS        setIdCenOp()       Sets the current record's "id_cen_op" value
 * @method RH_SA_AFI_SS        setRHSAAFISS2()    Sets the current record's "RH_SA_AFI_SS2" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_SA_AFI_SS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_SA_AFI_SS');
        $this->hasColumn('id_afi_ss', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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