<?php

/**
 * BaseI18NSource
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                                   $id                                         Type: integer, primary key
 * @property string                                $source                                     Type: string, unique
 * @property string                                $modifiedAt                                 Type: datetime, Date and time in ISO-8601 format (YYYY-MM-DD HH:MI)
 * @property Doctrine_Collection|I18NLangString[]  $I18NLangString                             
 *  
 * @method int                                     getId()                                     Type: integer, primary key
 * @method string                                  getSource()                                 Type: string, unique
 * @method string                                  getModifiedat()                             Type: datetime, Date and time in ISO-8601 format (YYYY-MM-DD HH:MI)
 * @method Doctrine_Collection|I18NLangString[]    getI18NLangString()                         
 *  
 * @method I18NSource                              setId(int $val)                             Type: integer, primary key
 * @method I18NSource                              setSource(string $val)                      Type: string, unique
 * @method I18NSource                              setModifiedat(string $val)                  Type: datetime, Date and time in ISO-8601 format (YYYY-MM-DD HH:MI)
 * @method I18NSource                              setI18NLangString(Doctrine_Collection $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseI18NSource extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_i18n_source');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('source', 'string', null, array(
             'type' => 'string',
             'unique' => true,
             ));
        $this->hasColumn('modified_at as modifiedAt', 'datetime', null, array(
             'type' => 'datetime',
             ));
    }

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