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, 0); $this->addColumn('brutto', 'Brutto', 'NUMERIC', true, 10, 0); $this->addColumn('zulage', 'Zulage', 'NUMERIC', true, 10, 0); $this->addColumn('netto', 'Netto', 'NUMERIC', true, 10, 0); $this->addColumn('lohnsteuer', 'Lohnsteuer', 'NUMERIC', true, 10, 0); $this->addColumn('kirchensteuer_rk', 'KirchensteuerRk', 'DECIMAL', true, 10, 0); $this->addColumn('kirchensteuer_ev', 'KirchensteuerEv', 'NUMERIC', true, 10, 0); $this->addColumn('soli', 'Soli', 'NUMERIC', true, 10, 0); $this->addColumn('rentenversicherung', 'Rentenversicherung', 'NUMERIC', true, 10, 0); $this->addColumn('krankenversicherung', 'Krankenversicherung', 'NUMERIC', true, 10, 0); $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