setTableName('indent'); $this->hasColumn('tel', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('mail', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('delivery_first_name', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('delivery_last_name', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('delivery_company', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('delivery_street', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('delivery_city', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('delivery_zip', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('delivery_country', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('delivery_ic', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('delivery_dic', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('invoice_first_name', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('invoice_last_name', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('invoice_company', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('invoice_street', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('invoice_city', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('invoice_zip', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('invoice_country', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('invoice_ic', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('invoice_dic', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('shipping', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('shipping_price', 'decimal', null, array( 'type' => 'decimal', 'scale' => '2', 'notnull' => true, 'default' => 0, )); $this->hasColumn('payment', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('payment_price', 'decimal', null, array( 'type' => 'decimal', 'scale' => '2', 'notnull' => true, 'default' => 0, )); $this->hasColumn('pack', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('pack_price', 'decimal', null, array( 'type' => 'decimal', 'scale' => '2', 'notnull' => true, 'default' => 0, )); $this->hasColumn('pack_arra', 'decimal', null, array( 'type' => 'decimal', 'scale' => '2', 'notnull' => true, 'default' => 0, )); $this->hasColumn('note', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('total_price', 'decimal', null, array( 'type' => 'decimal', 'scale' => '2', )); $this->hasColumn('status_indent', 'enum', null, array( 'type' => 'enum', 'values' => array( 0 => 'inserted', 1 => 'accepted', 2 => 'adjustment', 3 => 'expirated', 4 => 'storno', ), 'default' => 'inserted', )); $this->hasColumn('communication_id', 'integer', null, array( 'type' => 'integer', )); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasMany('Indent_item as Items', array( 'local' => 'id', 'foreign' => 'indent_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }