setName('mitarbeiter'); $this->setPhpName('Mitarbeiter'); $this->setClassname('Mitarbeiter'); $this->setPackage('propel'); $this->setUseIdGenerator(true); // columns $this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null); $this->addColumn('mod', 'Mod', 'INTEGER', true, null, null); $this->addColumn('nachname', 'Nachname', 'VARCHAR', true, 255, null); $this->addColumn('vorname', 'Vorname', 'VARCHAR', true, 255, null); $this->addColumn('anrede', 'Anrede', 'CHAR', true, 4, null); $this->addColumn('strasse', 'Strasse', 'VARCHAR', true, 255, null); $this->addColumn('plz', 'Plz', 'CHAR', true, 5, null); $this->addColumn('ort', 'Ort', 'VARCHAR', true, 255, null); $this->addColumn('iban', 'Iban', 'CHAR', true, 30, null); $this->addColumn('bank', 'Bank', 'VARCHAR', true, 255, null); $this->addColumn('email', 'Email', 'VARCHAR', true, 255, null); $this->addColumn('basis_betrag', 'BasisBetrag', 'NUMERIC', true, 10, 0); $this->addColumn('steuermerkmal', 'Steuermerkmal', 'VARCHAR', true, 30, null); $this->addColumn('aktiv', 'Aktiv', 'BOOLEAN', true, 1, null); $this->addForeignKey('lp_id', 'LpId', 'INTEGER', 'lohnprofil', 'id', true, null, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('Lohnprofil', 'Lohnprofil', RelationMap::MANY_TO_ONE, array('lp_id' => 'id', ), null, null); $this->addRelation('LA', 'Lohnabrechnung', RelationMap::ONE_TO_MANY, array('id' => 'ma_id', ), null, null, 'LAs'); } // buildRelations() } // MitarbeiterTableMap