thd/lib/model/doctrine/base/BaseThdImage.class.php
changeset 35 94a1dc255022
equal deleted inserted replaced
34:56befcb22751 35:94a1dc255022
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * This class has been auto-generated by the Doctrine ORM Framework
       
     5  */
       
     6 abstract class BaseThdImage extends sfDoctrineRecord
       
     7 {
       
     8     public function setTableDefinition()
       
     9     {
       
    10         $this->setTableName('thd_image');
       
    11         $this->hasColumn('id', 'integer', 4, array(
       
    12              'type' => 'integer',
       
    13              'primary' => true,
       
    14              'autoincrement' => true,
       
    15              'length' => '4',
       
    16              ));
       
    17         $this->hasColumn('film_ref', 'integer', 4, array(
       
    18              'type' => 'integer',
       
    19              'notnull' => true,
       
    20              'length' => '4',
       
    21              ));
       
    22         $this->hasColumn('type', 'integer', 1, array(
       
    23              'type' => 'integer',
       
    24              'notnull' => true,
       
    25              'length' => '1',
       
    26              ));
       
    27         $this->hasColumn('file', 'string', 255, array(
       
    28              'type' => 'string',
       
    29              'notnull' => true,
       
    30              'length' => '255',
       
    31              ));
       
    32     }
       
    33 
       
    34     public function setUp()
       
    35     {
       
    36         $this->hasOne('ThdFilm', array(
       
    37              'local' => 'film_ref',
       
    38              'foreign' => 'ref'));
       
    39     }
       
    40 }