setTableName('document_beh'); $this->hasColumn('document_id', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('beh_id', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasOne('Document', array( 'local' => 'document_id', 'foreign' => 'id', 'onDelete' => 'CASCADE')); $this->hasOne('Kurz_beh as Beh', array( 'local' => 'beh_id', 'foreign' => 'id', 'onDelete' => 'CASCADE')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }