| author | Gautier Thibault <gthibault@universcine.com> |
| Tue, 22 Sep 2009 16:40:38 +0200 | |
| changeset 35 | 94a1dc255022 |
| permissions | -rw-r--r-- |
|
35
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
1 |
<?php |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
2 |
|
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
3 |
/** |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
4 |
* This class has been auto-generated by the Doctrine ORM Framework |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
5 |
*/ |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
6 |
abstract class BaseThdSegment extends sfDoctrineRecord |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
7 |
{ |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
8 |
public function setTableDefinition() |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
9 |
{ |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
10 |
$this->setTableName('thd_segment'); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
11 |
$this->hasColumn('id', 'integer', 4, array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
12 |
'type' => 'integer', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
13 |
'primary' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
14 |
'autoincrement' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
15 |
'length' => '4', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
16 |
)); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
17 |
$this->hasColumn('title', 'string', 255, array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
18 |
'type' => 'string', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
19 |
'notnull' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
20 |
'length' => '255', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
21 |
)); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
22 |
$this->hasColumn('video_ref', 'integer', 4, array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
23 |
'type' => 'integer', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
24 |
'notnull' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
25 |
'length' => '4', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
26 |
)); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
27 |
$this->hasColumn('start', 'float', 2147483647, array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
28 |
'type' => 'float', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
29 |
'notnull' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
30 |
'length' => '2147483647', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
31 |
)); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
32 |
$this->hasColumn('end', 'float', 2147483647, array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
33 |
'type' => 'float', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
34 |
'notnull' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
35 |
'length' => '2147483647', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
36 |
)); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
37 |
$this->hasColumn('user_id', 'integer', 4, array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
38 |
'type' => 'integer', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
39 |
'notnull' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
40 |
'length' => '4', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
41 |
)); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
42 |
$this->hasColumn('creation_date', 'timestamp', 25, array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
43 |
'type' => 'timestamp', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
44 |
'notnull' => true, |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
45 |
'length' => '25', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
46 |
)); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
47 |
} |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
48 |
|
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
49 |
public function setUp() |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
50 |
{ |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
51 |
$this->hasOne('ThdVideo', array( |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
52 |
'local' => 'video_ref', |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
53 |
'foreign' => 'ref')); |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
54 |
} |
|
94a1dc255022
Commit the all thd project created with the framework symfony
Gautier Thibault <gthibault@universcine.com>
parents:
diff
changeset
|
55 |
} |