setName('lohnabrechnung'); $this->setPhpName('Lohnabrechnung'); $this->setClassname('Lohnabrechnung'); $this->setPackage('propel'); $this->setUseIdGenerator(true); $this->setSingleTableInheritance(true); // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); $this->addColumn('MOD', 'Mod', 'INTEGER', true, null, null); $this->addColumn('MONAT', 'Monat', 'CHAR', true, 6, null); $this->addColumn('ARBEITSSTUNDEN', 'Arbeitsstunden', 'NUMERIC', true, 10, null); $this->addColumn('BRUTTO', 'Brutto', 'NUMERIC', true, 10, null); $this->addColumn('ZULAGE', 'Zulage', 'NUMERIC', true, 10, null); $this->addColumn('NETTO', 'Netto', 'NUMERIC', true, 10, null); $this->addColumn('LOHNSTEUER', 'Lohnsteuer', 'NUMERIC', true, 10, null); $this->addColumn('KIRCHENSTEUER_RK', 'KirchensteuerRk', 'DECIMAL', true, 10, null); $this->addColumn('KIRCHENSTEUER_EV', 'KirchensteuerEv', 'NUMERIC', true, 10, null); $this->addColumn('SOLI', 'Soli', 'NUMERIC', true, 10, null); $this->addColumn('RENTENVERSICHERUNG', 'Rentenversicherung', 'NUMERIC', true, 10, null); $this->addColumn('KRANKENVERSICHERUNG', 'Krankenversicherung', 'NUMERIC', true, 10, null); $this->addForeignKey('MA_ID', 'MaId', 'INTEGER', 'mitarbeiter', 'ID', true, null, null); $this->addForeignKey('LP_ID', 'LpId', 'INTEGER', 'lohnprofil', 'ID', true, null, null); $this->addColumn('CLASS_KEY', 'ClassKey', 'INTEGER', false, null, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('Mitarbeiter', 'Mitarbeiter', RelationMap::MANY_TO_ONE, array('ma_id' => 'id', ), null, null); $this->addRelation('Lohnprofil', 'Lohnprofil', RelationMap::MANY_TO_ONE, array('lp_id' => 'id', ), null, null); } // buildRelations() } // LohnabrechnungTableMap