diff -r 56befcb22751 -r 94a1dc255022 thd/lib/model/doctrine/base/BaseThdFilm.class.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thd/lib/model/doctrine/base/BaseThdFilm.class.php Tue Sep 22 16:40:38 2009 +0200 @@ -0,0 +1,71 @@ +setTableName('thd_film'); + $this->hasColumn('id', 'integer', 4, array( + 'type' => 'integer', + 'primary' => true, + 'length' => '4', + )); + $this->hasColumn('ref', 'integer', 4, array( + 'type' => 'integer', + 'notnull' => true, + 'length' => '4', + )); + $this->hasColumn('title', 'string', 255, array( + 'type' => 'string', + 'notnull' => true, + 'length' => '255', + )); + $this->hasColumn('pitch', 'string', 2147483647, array( + 'type' => 'string', + 'notnull' => true, + 'length' => '2147483647', + )); + $this->hasColumn('duration', 'integer', 4, array( + 'type' => 'integer', + 'notnull' => true, + 'length' => '4', + )); + $this->hasColumn('directors', 'string', 2147483647, array( + 'type' => 'string', + 'notnull' => true, + 'length' => '2147483647', + )); + $this->hasColumn('actors', 'string', 2147483647, array( + 'type' => 'string', + 'notnull' => true, + 'length' => '2147483647', + )); + $this->hasColumn('slug_url', 'string', 255, array( + 'type' => 'string', + 'notnull' => true, + 'length' => '255', + )); + $this->hasColumn('original_title', 'string', 255, array( + 'type' => 'string', + 'length' => '255', + )); + $this->hasColumn('production_year', 'integer', 8, array( + 'type' => 'integer', + 'length' => '8', + )); + } + + public function setUp() + { + $this->hasMany('ThdImage as images', array( + 'local' => 'ref', + 'foreign' => 'film_ref')); + + $this->hasMany('ThdVideo as videos', array( + 'local' => 'ref', + 'foreign' => 'film_ref')); + } +} \ No newline at end of file