setTableName('communication_message'); $this->hasColumn('text', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('typeOfMessage', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('communication_id', 'integer', null, array( 'type' => 'integer', )); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasOne('Communication', array( 'local' => 'Communication_id', 'foreign' => 'id', 'onDelete' => 'CASCADE')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }