/
BaseProjetEvent.class.php
103 lines (97 loc) · 4.28 KB
/
BaseProjetEvent.class.php
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/**
* BaseProjetEvent
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property date $date
* @property string $commentaire
* @property string $url
* @property integer $type_id
* @property integer $membre_id
* @property integer $membreread_id
* @property integer $projet_id
* @property ProjetEventType $ProjetEventType
* @property Membre $Membre
* @property Membre $Membreread
* @property Projet $Projet
*
* @method date getDate() Returns the current record's "date" value
* @method string getCommentaire() Returns the current record's "commentaire" value
* @method string getUrl() Returns the current record's "url" value
* @method integer getTypeId() Returns the current record's "type_id" value
* @method integer getMembreId() Returns the current record's "membre_id" value
* @method integer getMembrereadId() Returns the current record's "membreread_id" value
* @method integer getProjetId() Returns the current record's "projet_id" value
* @method ProjetEventType getProjetEventType() Returns the current record's "ProjetEventType" value
* @method Membre getMembre() Returns the current record's "Membre" value
* @method Membre getMembreread() Returns the current record's "Membreread" value
* @method Projet getProjet() Returns the current record's "Projet" value
* @method ProjetEvent setDate() Sets the current record's "date" value
* @method ProjetEvent setCommentaire() Sets the current record's "commentaire" value
* @method ProjetEvent setUrl() Sets the current record's "url" value
* @method ProjetEvent setTypeId() Sets the current record's "type_id" value
* @method ProjetEvent setMembreId() Sets the current record's "membre_id" value
* @method ProjetEvent setMembrereadId() Sets the current record's "membreread_id" value
* @method ProjetEvent setProjetId() Sets the current record's "projet_id" value
* @method ProjetEvent setProjetEventType() Sets the current record's "ProjetEventType" value
* @method ProjetEvent setMembre() Sets the current record's "Membre" value
* @method ProjetEvent setMembreread() Sets the current record's "Membreread" value
* @method ProjetEvent setProjet() Sets the current record's "Projet" value
*
* @package Annuaire
* @subpackage model
* @author Michael Muré
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
*/
abstract class BaseProjetEvent extends sfDoctrineRecord
{
public function setTableDefinition()
{
$this->setTableName('projet_event');
$this->hasColumn('date', 'date', null, array(
'type' => 'date',
));
$this->hasColumn('commentaire', 'string', 4000, array(
'type' => 'string',
'length' => 4000,
));
$this->hasColumn('url', 'string', 255, array(
'type' => 'string',
'length' => 255,
));
$this->hasColumn('type_id', 'integer', null, array(
'type' => 'integer',
'notnull' => true,
));
$this->hasColumn('membre_id', 'integer', null, array(
'type' => 'integer',
'notnull' => true,
));
$this->hasColumn('membreread_id', 'integer', null, array(
'type' => 'integer',
));
$this->hasColumn('projet_id', 'integer', null, array(
'type' => 'integer',
'notnull' => true,
));
}
public function setUp()
{
parent::setUp();
$this->hasOne('ProjetEventType', array(
'local' => 'type_id',
'foreign' => 'id'));
$this->hasOne('Membre', array(
'local' => 'membre_id',
'foreign' => 'id'));
$this->hasOne('Membre as Membreread', array(
'local' => 'membreread_id',
'foreign' => 'id'));
$this->hasOne('Projet', array(
'local' => 'projet_id',
'foreign' => 'id'));
$timestampable0 = new Doctrine_Template_Timestampable();
$this->actAs($timestampable0);
}
}