|
1 <?php |
|
2 |
|
3 /** |
|
4 * This class has been auto-generated by the Doctrine ORM Framework |
|
5 */ |
|
6 abstract class BaseThdFilm extends sfDoctrineRecord |
|
7 { |
|
8 public function setTableDefinition() |
|
9 { |
|
10 $this->setTableName('thd_film'); |
|
11 $this->hasColumn('id', 'integer', 4, array( |
|
12 'type' => 'integer', |
|
13 'primary' => true, |
|
14 'length' => '4', |
|
15 )); |
|
16 $this->hasColumn('ref', 'integer', 4, array( |
|
17 'type' => 'integer', |
|
18 'notnull' => true, |
|
19 'length' => '4', |
|
20 )); |
|
21 $this->hasColumn('title', 'string', 255, array( |
|
22 'type' => 'string', |
|
23 'notnull' => true, |
|
24 'length' => '255', |
|
25 )); |
|
26 $this->hasColumn('pitch', 'string', 2147483647, array( |
|
27 'type' => 'string', |
|
28 'notnull' => true, |
|
29 'length' => '2147483647', |
|
30 )); |
|
31 $this->hasColumn('duration', 'integer', 4, array( |
|
32 'type' => 'integer', |
|
33 'notnull' => true, |
|
34 'length' => '4', |
|
35 )); |
|
36 $this->hasColumn('directors', 'string', 2147483647, array( |
|
37 'type' => 'string', |
|
38 'notnull' => true, |
|
39 'length' => '2147483647', |
|
40 )); |
|
41 $this->hasColumn('actors', 'string', 2147483647, array( |
|
42 'type' => 'string', |
|
43 'notnull' => true, |
|
44 'length' => '2147483647', |
|
45 )); |
|
46 $this->hasColumn('slug_url', 'string', 255, array( |
|
47 'type' => 'string', |
|
48 'notnull' => true, |
|
49 'length' => '255', |
|
50 )); |
|
51 $this->hasColumn('original_title', 'string', 255, array( |
|
52 'type' => 'string', |
|
53 'length' => '255', |
|
54 )); |
|
55 $this->hasColumn('production_year', 'integer', 8, array( |
|
56 'type' => 'integer', |
|
57 'length' => '8', |
|
58 )); |
|
59 } |
|
60 |
|
61 public function setUp() |
|
62 { |
|
63 $this->hasMany('ThdImage as images', array( |
|
64 'local' => 'ref', |
|
65 'foreign' => 'film_ref')); |
|
66 |
|
67 $this->hasMany('ThdVideo as videos', array( |
|
68 'local' => 'ref', |
|
69 'foreign' => 'film_ref')); |
|
70 } |
|
71 } |