BaseMailTemplate.class.php 2.46 KB
Newer Older
Игорь's avatar
init    
Игорь committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php

/**
 * BaseMailTemplate
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $title
 * @property string $event
 * @property string $theme
 * @property string $copy
 * @property string $params
 * @property text $body
 * 
 * @method string       getTitle()  Returns the current record's "title" value
 * @method string       getEvent()  Returns the current record's "event" value
 * @method string       getTheme()  Returns the current record's "theme" value
 * @method string       getCopy()   Returns the current record's "copy" value
 * @method string       getParams() Returns the current record's "params" value
 * @method text         getBody()   Returns the current record's "body" value
 * @method MailTemplate setTitle()  Sets the current record's "title" value
 * @method MailTemplate setEvent()  Sets the current record's "event" value
 * @method MailTemplate setTheme()  Sets the current record's "theme" value
 * @method MailTemplate setCopy()   Sets the current record's "copy" value
 * @method MailTemplate setParams() Sets the current record's "params" value
 * @method MailTemplate setBody()   Sets the current record's "body" value
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseMailTemplate extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('mail_template');
        $this->hasColumn('title', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('event', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'unique' => true,
             'length' => 255,
             ));
        $this->hasColumn('theme', 'string', 1000, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 1000,
             ));
        $this->hasColumn('copy', 'string', 1000, array(
             'type' => 'string',
             'length' => 1000,
             ));
        $this->hasColumn('params', 'string', 10000, array(
             'type' => 'string',
             'length' => 10000,
             ));
        $this->hasColumn('body', 'text', null, array(
             'type' => 'text',
             'notnull' => true,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}