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

/**
 * BaseRMN_PERSONA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_persona
 * @property string $nombre
 * @property string $primer_apellido
 * @property string $segundo_apellido
 * @property string $telefono
 * @property string $celular
 * @property string $correo
 * @property string $correo_alt
 * @property string $raz_soc
 * @property string $num_doc
 * @property Doctrine_Collection $RMN_TITULO_PERSONA
 * @property Doctrine_Collection $RMN_SOLICITUD_PERSONA
 * 
 * @method integer             getIdPersona()             Returns the current record's "id_persona" value
 * @method string              getNombre()                Returns the current record's "nombre" value
 * @method string              getPrimerApellido()        Returns the current record's "primer_apellido" value
 * @method string              getSegundoApellido()       Returns the current record's "segundo_apellido" value
 * @method string              getTelefono()              Returns the current record's "telefono" value
 * @method string              getCelular()               Returns the current record's "celular" value
 * @method string              getCorreo()                Returns the current record's "correo" value
 * @method string              getCorreoAlt()             Returns the current record's "correo_alt" value
 * @method string              getRazSoc()                Returns the current record's "raz_soc" value
 * @method string              getNumDoc()                Returns the current record's "num_doc" value
 * @method Doctrine_Collection getRMNTITULOPERSONA()      Returns the current record's "RMN_TITULO_PERSONA" collection
 * @method Doctrine_Collection getRMNSOLICITUDPERSONA()   Returns the current record's "RMN_SOLICITUD_PERSONA" collection
 * @method RMN_PERSONA         setIdPersona()             Sets the current record's "id_persona" value
 * @method RMN_PERSONA         setNombre()                Sets the current record's "nombre" value
 * @method RMN_PERSONA         setPrimerApellido()        Sets the current record's "primer_apellido" value
 * @method RMN_PERSONA         setSegundoApellido()       Sets the current record's "segundo_apellido" value
 * @method RMN_PERSONA         setTelefono()              Sets the current record's "telefono" value
 * @method RMN_PERSONA         setCelular()               Sets the current record's "celular" value
 * @method RMN_PERSONA         setCorreo()                Sets the current record's "correo" value
 * @method RMN_PERSONA         setCorreoAlt()             Sets the current record's "correo_alt" value
 * @method RMN_PERSONA         setRazSoc()                Sets the current record's "raz_soc" value
 * @method RMN_PERSONA         setNumDoc()                Sets the current record's "num_doc" value
 * @method RMN_PERSONA         setRMNTITULOPERSONA()      Sets the current record's "RMN_TITULO_PERSONA" collection
 * @method RMN_PERSONA         setRMNSOLICITUDPERSONA()   Sets the current record's "RMN_SOLICITUD_PERSONA" collection
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRMN_PERSONA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RMN_PERSONA');
        $this->hasColumn('id_persona', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('primer_apellido', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('segundo_apellido', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telefono', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('celular', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('correo', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('correo_alt', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('raz_soc', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('num_doc', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RMN_TITULO_PERSONA', array(
             'local' => 'id_persona',
             'foreign' => 'id_titular'));

        $this->hasMany('RMN_SOLICITUD_PERSONA', array(
             'local' => 'id_persona',
             'foreign' => 'id_persona'));
    }
}