<?php

/**
 * BaseNotificationEmails
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $email
 * @property boolean $is_active
 * @property enum $notic_type
 * 
 * @method string             getEmail()      Returns the current record's "email" value
 * @method boolean            getIsActive()   Returns the current record's "is_active" value
 * @method enum               getNoticType()  Returns the current record's "notic_type" value
 * @method NotificationEmails setEmail()      Sets the current record's "email" value
 * @method NotificationEmails setIsActive()   Sets the current record's "is_active" value
 * @method NotificationEmails setNoticType()  Sets the current record's "notic_type" value
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseNotificationEmails extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('notification_emails');
        $this->hasColumn('email', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('is_active', 'boolean', null, array(
             'type' => 'boolean',
             'default' => 1,
             ));
        $this->hasColumn('notic_type', 'enum', null, array(
             'type' => 'enum',
             'values' => 
             array(
              0 => 'call',
              1 => 'order',
              2 => 'exchange',
              3 => 'all',
             ),
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $timestampable0 = new Doctrine_Template_Timestampable();
        $this->actAs($timestampable0);
    }
}