<?php

/**
 * BaseGender
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $name
 * @property string $honorific_title
 * @property Doctrine_Collection $Guests
 * 
 * @method string              getName()            Returns the current record's "name" value
 * @method string              getHonorificTitle()  Returns the current record's "honorific_title" value
 * @method Doctrine_Collection getGuests()          Returns the current record's "Guests" collection
 * @method Gender              setName()            Sets the current record's "name" value
 * @method Gender              setHonorificTitle()  Sets the current record's "honorific_title" value
 * @method Gender              setGuests()          Sets the current record's "Guests" collection
 * 
 * @package    balsit
 * @subpackage model
 * @author     Krzysiek Wesołowski
 * @version    SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
 */
abstract class BaseGender extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('gender');
        $this->hasColumn('name', 'string', 255, array(
             'type' => 'string',
             'notnull' => false,
             'length' => '255',
             ));
        $this->hasColumn('honorific_title', 'string', 255, array(
             'type' => 'string',
             'notnull' => false,
             'length' => '255',
             ));

        $this->option('type', 'INNODB');
        $this->option('collate', 'utf8_general_ci');
        $this->option('charset', 'utf8');
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('Guest as Guests', array(
             'local' => 'id',
             'foreign' => 'gender_id'));
    }
}