setTableName('message'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('card_id', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('description', 'clob', null, array( 'type' => 'clob', 'notnull' => true, )); $this->hasColumn('state', 'string', 50, array( 'type' => 'string', 'length' => '50', )); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasOne('Card', array( 'local' => 'card_id', 'foreign' => 'id')); $this->hasMany('Message_file as Files', array( 'local' => 'id', 'foreign' => 'message_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $auditable0 = new Doctrine_Template_Auditable(array( 'user_id' => array( 'expression' => array( 'symfony_context' => 'getUser()->getGuardUser()->id', ), ), )); $this->actAs($timestampable0); $this->actAs($auditable0); } }