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