<?php

/**
 * BaseMailNotification
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $user_id
 * @property integer $notification_type_id
 * @property integer $status
 * @property string $email
 * @property Users $Users
 * 
 * @method string           getUserId()               Returns the current record's "user_id" value
 * @method integer          getNotificationTypeId()   Returns the current record's "notification_type_id" value
 * @method integer          getStatus()               Returns the current record's "status" value
 * @method string           getEmail()                Returns the current record's "email" value
 * @method Users            getUsers()                Returns the current record's "Users" value
 * @method MailNotification setUserId()               Sets the current record's "user_id" value
 * @method MailNotification setNotificationTypeId()   Sets the current record's "notification_type_id" value
 * @method MailNotification setStatus()               Sets the current record's "status" value
 * @method MailNotification setEmail()                Sets the current record's "email" value
 * @method MailNotification setUsers()                Sets the current record's "Users" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseMailNotification extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_mailnotifications');
        $this->hasColumn('user_id', 'string', 36, array(
             'type' => 'string',
             'primary' => true,
             'length' => 36,
             ));
        $this->hasColumn('notification_type_id', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('status', 'integer', 4, array(
             'type' => 'integer',
             'notnull' => true,
             'length' => 4,
             ));
        $this->hasColumn('email', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('Users', array(
             'local' => 'user_id',
             'foreign' => 'id'));
    }
}