mergeWith($criteria); } return $query; } /** * Find object by primary key. * Propel uses the instance pool to skip the database if the object exists. * Go fast if the query is untouched. * * * $obj = $c->findPk(12, $con); * * * @param mixed $key Primary key to use for the query * @param PropelPDO $con an optional connection object * * @return Lohnabrechnung|Lohnabrechnung[]|mixed the result, formatted by the current formatter */ public function findPk($key, $con = null) { if ($key === null) { return null; } if ((null !== ($obj = LohnabrechnungPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { // the object is already in the instance pool return $obj; } if ($con === null) { $con = Propel::getConnection(LohnabrechnungPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $this->basePreSelect($con); if ($this->formatter || $this->modelAlias || $this->with || $this->select || $this->selectColumns || $this->asColumns || $this->selectModifiers || $this->map || $this->having || $this->joins) { return $this->findPkComplex($key, $con); } else { return $this->findPkSimple($key, $con); } } /** * Alias of findPk to use instance pooling * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return Lohnabrechnung A model object, or null if the key is not found * @throws PropelException */ public function findOneById($key, $con = null) { return $this->findPk($key, $con); } /** * Find object by primary key using raw SQL to go fast. * Bypass doSelect() and the object formatter by using generated code. * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return Lohnabrechnung A model object, or null if the key is not found * @throws PropelException */ protected function findPkSimple($key, $con) { $sql = 'SELECT `id`, `mod`, `monat`, `arbeitsstunden`, `brutto`, `zulage`, `netto`, `lohnsteuer`, `kirchensteuer_rk`, `kirchensteuer_ev`, `soli`, `rentenversicherung`, `krankenversicherung`, `ma_id`, `lp_id`, `class_key` FROM `lohnabrechnung` WHERE `id` = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); $stmt->execute(); } catch (Exception $e) { Propel::log($e->getMessage(), Propel::LOG_ERR); throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e); } $obj = null; if ($row = $stmt->fetch(PDO::FETCH_NUM)) { $cls = LohnabrechnungPeer::getOMClass($row, 0); $obj = new $cls(); $obj->hydrate($row); LohnabrechnungPeer::addInstanceToPool($obj, (string) $key); } $stmt->closeCursor(); return $obj; } /** * Find object by primary key. * * @param mixed $key Primary key to use for the query * @param PropelPDO $con A connection object * * @return Lohnabrechnung|Lohnabrechnung[]|mixed the result, formatted by the current formatter */ protected function findPkComplex($key, $con) { // As the query uses a PK condition, no limit(1) is necessary. $criteria = $this->isKeepQuery() ? clone $this : $this; $stmt = $criteria ->filterByPrimaryKey($key) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->formatOne($stmt); } /** * Find objects by primary key * * $objs = $c->findPks(array(12, 56, 832), $con); * * @param array $keys Primary keys to use for the query * @param PropelPDO $con an optional connection object * * @return PropelObjectCollection|Lohnabrechnung[]|mixed the list of results, formatted by the current formatter */ public function findPks($keys, $con = null) { if ($con === null) { $con = Propel::getConnection($this->getDbName(), Propel::CONNECTION_READ); } $this->basePreSelect($con); $criteria = $this->isKeepQuery() ? clone $this : $this; $stmt = $criteria ->filterByPrimaryKeys($keys) ->doSelect($con); return $criteria->getFormatter()->init($criteria)->format($stmt); } /** * Filter the query by primary key * * @param mixed $key Primary key to use for the query * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByPrimaryKey($key) { return $this->addUsingAlias(LohnabrechnungPeer::ID, $key, Criteria::EQUAL); } /** * Filter the query by a list of primary keys * * @param array $keys The list of primary key to use for the query * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByPrimaryKeys($keys) { return $this->addUsingAlias(LohnabrechnungPeer::ID, $keys, Criteria::IN); } /** * Filter the query on the id column * * Example usage: * * $query->filterById(1234); // WHERE id = 1234 * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) * $query->filterById(array('min' => 12)); // WHERE id >= 12 * $query->filterById(array('max' => 12)); // WHERE id <= 12 * * * @param mixed $id The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterById($id = null, $comparison = null) { if (is_array($id)) { $useMinMax = false; if (isset($id['min'])) { $this->addUsingAlias(LohnabrechnungPeer::ID, $id['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($id['max'])) { $this->addUsingAlias(LohnabrechnungPeer::ID, $id['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::ID, $id, $comparison); } /** * Filter the query on the mod column * * Example usage: * * $query->filterByMod(1234); // WHERE mod = 1234 * $query->filterByMod(array(12, 34)); // WHERE mod IN (12, 34) * $query->filterByMod(array('min' => 12)); // WHERE mod >= 12 * $query->filterByMod(array('max' => 12)); // WHERE mod <= 12 * * * @param mixed $mod The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByMod($mod = null, $comparison = null) { if (is_array($mod)) { $useMinMax = false; if (isset($mod['min'])) { $this->addUsingAlias(LohnabrechnungPeer::MOD, $mod['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($mod['max'])) { $this->addUsingAlias(LohnabrechnungPeer::MOD, $mod['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::MOD, $mod, $comparison); } /** * Filter the query on the monat column * * Example usage: * * $query->filterByMonat('fooValue'); // WHERE monat = 'fooValue' * $query->filterByMonat('%fooValue%'); // WHERE monat LIKE '%fooValue%' * * * @param string $monat The value to use as filter. * Accepts wildcards (* and % trigger a LIKE) * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByMonat($monat = null, $comparison = null) { if (null === $comparison) { if (is_array($monat)) { $comparison = Criteria::IN; } elseif (preg_match('/[\%\*]/', $monat)) { $monat = str_replace('*', '%', $monat); $comparison = Criteria::LIKE; } } return $this->addUsingAlias(LohnabrechnungPeer::MONAT, $monat, $comparison); } /** * Filter the query on the arbeitsstunden column * * Example usage: * * $query->filterByArbeitsstunden(1234); // WHERE arbeitsstunden = 1234 * $query->filterByArbeitsstunden(array(12, 34)); // WHERE arbeitsstunden IN (12, 34) * $query->filterByArbeitsstunden(array('min' => 12)); // WHERE arbeitsstunden >= 12 * $query->filterByArbeitsstunden(array('max' => 12)); // WHERE arbeitsstunden <= 12 * * * @param mixed $arbeitsstunden The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByArbeitsstunden($arbeitsstunden = null, $comparison = null) { if (is_array($arbeitsstunden)) { $useMinMax = false; if (isset($arbeitsstunden['min'])) { $this->addUsingAlias(LohnabrechnungPeer::ARBEITSSTUNDEN, $arbeitsstunden['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($arbeitsstunden['max'])) { $this->addUsingAlias(LohnabrechnungPeer::ARBEITSSTUNDEN, $arbeitsstunden['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::ARBEITSSTUNDEN, $arbeitsstunden, $comparison); } /** * Filter the query on the brutto column * * Example usage: * * $query->filterByBrutto(1234); // WHERE brutto = 1234 * $query->filterByBrutto(array(12, 34)); // WHERE brutto IN (12, 34) * $query->filterByBrutto(array('min' => 12)); // WHERE brutto >= 12 * $query->filterByBrutto(array('max' => 12)); // WHERE brutto <= 12 * * * @param mixed $brutto The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByBrutto($brutto = null, $comparison = null) { if (is_array($brutto)) { $useMinMax = false; if (isset($brutto['min'])) { $this->addUsingAlias(LohnabrechnungPeer::BRUTTO, $brutto['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($brutto['max'])) { $this->addUsingAlias(LohnabrechnungPeer::BRUTTO, $brutto['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::BRUTTO, $brutto, $comparison); } /** * Filter the query on the zulage column * * Example usage: * * $query->filterByZulage(1234); // WHERE zulage = 1234 * $query->filterByZulage(array(12, 34)); // WHERE zulage IN (12, 34) * $query->filterByZulage(array('min' => 12)); // WHERE zulage >= 12 * $query->filterByZulage(array('max' => 12)); // WHERE zulage <= 12 * * * @param mixed $zulage The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByZulage($zulage = null, $comparison = null) { if (is_array($zulage)) { $useMinMax = false; if (isset($zulage['min'])) { $this->addUsingAlias(LohnabrechnungPeer::ZULAGE, $zulage['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($zulage['max'])) { $this->addUsingAlias(LohnabrechnungPeer::ZULAGE, $zulage['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::ZULAGE, $zulage, $comparison); } /** * Filter the query on the netto column * * Example usage: * * $query->filterByNetto(1234); // WHERE netto = 1234 * $query->filterByNetto(array(12, 34)); // WHERE netto IN (12, 34) * $query->filterByNetto(array('min' => 12)); // WHERE netto >= 12 * $query->filterByNetto(array('max' => 12)); // WHERE netto <= 12 * * * @param mixed $netto The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByNetto($netto = null, $comparison = null) { if (is_array($netto)) { $useMinMax = false; if (isset($netto['min'])) { $this->addUsingAlias(LohnabrechnungPeer::NETTO, $netto['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($netto['max'])) { $this->addUsingAlias(LohnabrechnungPeer::NETTO, $netto['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::NETTO, $netto, $comparison); } /** * Filter the query on the lohnsteuer column * * Example usage: * * $query->filterByLohnsteuer(1234); // WHERE lohnsteuer = 1234 * $query->filterByLohnsteuer(array(12, 34)); // WHERE lohnsteuer IN (12, 34) * $query->filterByLohnsteuer(array('min' => 12)); // WHERE lohnsteuer >= 12 * $query->filterByLohnsteuer(array('max' => 12)); // WHERE lohnsteuer <= 12 * * * @param mixed $lohnsteuer The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByLohnsteuer($lohnsteuer = null, $comparison = null) { if (is_array($lohnsteuer)) { $useMinMax = false; if (isset($lohnsteuer['min'])) { $this->addUsingAlias(LohnabrechnungPeer::LOHNSTEUER, $lohnsteuer['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($lohnsteuer['max'])) { $this->addUsingAlias(LohnabrechnungPeer::LOHNSTEUER, $lohnsteuer['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::LOHNSTEUER, $lohnsteuer, $comparison); } /** * Filter the query on the kirchensteuer_rk column * * Example usage: * * $query->filterByKirchensteuerRk(1234); // WHERE kirchensteuer_rk = 1234 * $query->filterByKirchensteuerRk(array(12, 34)); // WHERE kirchensteuer_rk IN (12, 34) * $query->filterByKirchensteuerRk(array('min' => 12)); // WHERE kirchensteuer_rk >= 12 * $query->filterByKirchensteuerRk(array('max' => 12)); // WHERE kirchensteuer_rk <= 12 * * * @param mixed $kirchensteuerRk The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByKirchensteuerRk($kirchensteuerRk = null, $comparison = null) { if (is_array($kirchensteuerRk)) { $useMinMax = false; if (isset($kirchensteuerRk['min'])) { $this->addUsingAlias(LohnabrechnungPeer::KIRCHENSTEUER_RK, $kirchensteuerRk['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($kirchensteuerRk['max'])) { $this->addUsingAlias(LohnabrechnungPeer::KIRCHENSTEUER_RK, $kirchensteuerRk['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::KIRCHENSTEUER_RK, $kirchensteuerRk, $comparison); } /** * Filter the query on the kirchensteuer_ev column * * Example usage: * * $query->filterByKirchensteuerEv(1234); // WHERE kirchensteuer_ev = 1234 * $query->filterByKirchensteuerEv(array(12, 34)); // WHERE kirchensteuer_ev IN (12, 34) * $query->filterByKirchensteuerEv(array('min' => 12)); // WHERE kirchensteuer_ev >= 12 * $query->filterByKirchensteuerEv(array('max' => 12)); // WHERE kirchensteuer_ev <= 12 * * * @param mixed $kirchensteuerEv The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByKirchensteuerEv($kirchensteuerEv = null, $comparison = null) { if (is_array($kirchensteuerEv)) { $useMinMax = false; if (isset($kirchensteuerEv['min'])) { $this->addUsingAlias(LohnabrechnungPeer::KIRCHENSTEUER_EV, $kirchensteuerEv['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($kirchensteuerEv['max'])) { $this->addUsingAlias(LohnabrechnungPeer::KIRCHENSTEUER_EV, $kirchensteuerEv['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::KIRCHENSTEUER_EV, $kirchensteuerEv, $comparison); } /** * Filter the query on the soli column * * Example usage: * * $query->filterBySoli(1234); // WHERE soli = 1234 * $query->filterBySoli(array(12, 34)); // WHERE soli IN (12, 34) * $query->filterBySoli(array('min' => 12)); // WHERE soli >= 12 * $query->filterBySoli(array('max' => 12)); // WHERE soli <= 12 * * * @param mixed $soli The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterBySoli($soli = null, $comparison = null) { if (is_array($soli)) { $useMinMax = false; if (isset($soli['min'])) { $this->addUsingAlias(LohnabrechnungPeer::SOLI, $soli['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($soli['max'])) { $this->addUsingAlias(LohnabrechnungPeer::SOLI, $soli['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::SOLI, $soli, $comparison); } /** * Filter the query on the rentenversicherung column * * Example usage: * * $query->filterByRentenversicherung(1234); // WHERE rentenversicherung = 1234 * $query->filterByRentenversicherung(array(12, 34)); // WHERE rentenversicherung IN (12, 34) * $query->filterByRentenversicherung(array('min' => 12)); // WHERE rentenversicherung >= 12 * $query->filterByRentenversicherung(array('max' => 12)); // WHERE rentenversicherung <= 12 * * * @param mixed $rentenversicherung The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByRentenversicherung($rentenversicherung = null, $comparison = null) { if (is_array($rentenversicherung)) { $useMinMax = false; if (isset($rentenversicherung['min'])) { $this->addUsingAlias(LohnabrechnungPeer::RENTENVERSICHERUNG, $rentenversicherung['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($rentenversicherung['max'])) { $this->addUsingAlias(LohnabrechnungPeer::RENTENVERSICHERUNG, $rentenversicherung['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::RENTENVERSICHERUNG, $rentenversicherung, $comparison); } /** * Filter the query on the krankenversicherung column * * Example usage: * * $query->filterByKrankenversicherung(1234); // WHERE krankenversicherung = 1234 * $query->filterByKrankenversicherung(array(12, 34)); // WHERE krankenversicherung IN (12, 34) * $query->filterByKrankenversicherung(array('min' => 12)); // WHERE krankenversicherung >= 12 * $query->filterByKrankenversicherung(array('max' => 12)); // WHERE krankenversicherung <= 12 * * * @param mixed $krankenversicherung The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByKrankenversicherung($krankenversicherung = null, $comparison = null) { if (is_array($krankenversicherung)) { $useMinMax = false; if (isset($krankenversicherung['min'])) { $this->addUsingAlias(LohnabrechnungPeer::KRANKENVERSICHERUNG, $krankenversicherung['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($krankenversicherung['max'])) { $this->addUsingAlias(LohnabrechnungPeer::KRANKENVERSICHERUNG, $krankenversicherung['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::KRANKENVERSICHERUNG, $krankenversicherung, $comparison); } /** * Filter the query on the ma_id column * * Example usage: * * $query->filterByMaId(1234); // WHERE ma_id = 1234 * $query->filterByMaId(array(12, 34)); // WHERE ma_id IN (12, 34) * $query->filterByMaId(array('min' => 12)); // WHERE ma_id >= 12 * $query->filterByMaId(array('max' => 12)); // WHERE ma_id <= 12 * * * @see filterByMitarbeiter() * * @param mixed $maId The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByMaId($maId = null, $comparison = null) { if (is_array($maId)) { $useMinMax = false; if (isset($maId['min'])) { $this->addUsingAlias(LohnabrechnungPeer::MA_ID, $maId['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($maId['max'])) { $this->addUsingAlias(LohnabrechnungPeer::MA_ID, $maId['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::MA_ID, $maId, $comparison); } /** * Filter the query on the lp_id column * * Example usage: * * $query->filterByLpId(1234); // WHERE lp_id = 1234 * $query->filterByLpId(array(12, 34)); // WHERE lp_id IN (12, 34) * $query->filterByLpId(array('min' => 12)); // WHERE lp_id >= 12 * $query->filterByLpId(array('max' => 12)); // WHERE lp_id <= 12 * * * @see filterByLohnprofil() * * @param mixed $lpId The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByLpId($lpId = null, $comparison = null) { if (is_array($lpId)) { $useMinMax = false; if (isset($lpId['min'])) { $this->addUsingAlias(LohnabrechnungPeer::LP_ID, $lpId['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($lpId['max'])) { $this->addUsingAlias(LohnabrechnungPeer::LP_ID, $lpId['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::LP_ID, $lpId, $comparison); } /** * Filter the query on the class_key column * * Example usage: * * $query->filterByClassKey(1234); // WHERE class_key = 1234 * $query->filterByClassKey(array(12, 34)); // WHERE class_key IN (12, 34) * $query->filterByClassKey(array('min' => 12)); // WHERE class_key >= 12 * $query->filterByClassKey(array('max' => 12)); // WHERE class_key <= 12 * * * @param mixed $classKey The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface */ public function filterByClassKey($classKey = null, $comparison = null) { if (is_array($classKey)) { $useMinMax = false; if (isset($classKey['min'])) { $this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, $classKey['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($classKey['max'])) { $this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, $classKey['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { return $this; } if (null === $comparison) { $comparison = Criteria::IN; } } return $this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, $classKey, $comparison); } /** * Filter the query by a related Mitarbeiter object * * @param Mitarbeiter|PropelObjectCollection $mitarbeiter The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByMitarbeiter($mitarbeiter, $comparison = null) { if ($mitarbeiter instanceof Mitarbeiter) { return $this ->addUsingAlias(LohnabrechnungPeer::MA_ID, $mitarbeiter->getId(), $comparison); } elseif ($mitarbeiter instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(LohnabrechnungPeer::MA_ID, $mitarbeiter->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByMitarbeiter() only accepts arguments of type Mitarbeiter or PropelCollection'); } } /** * Adds a JOIN clause to the query using the Mitarbeiter relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return LohnabrechnungQuery The current query, for fluid interface */ public function joinMitarbeiter($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Mitarbeiter'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'Mitarbeiter'); } return $this; } /** * Use the Mitarbeiter relation Mitarbeiter object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return MitarbeiterQuery A secondary query class using the current class as primary query */ public function useMitarbeiterQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinMitarbeiter($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'Mitarbeiter', 'MitarbeiterQuery'); } /** * Filter the query by a related Lohnprofil object * * @param Lohnprofil|PropelObjectCollection $lohnprofil The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return LohnabrechnungQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByLohnprofil($lohnprofil, $comparison = null) { if ($lohnprofil instanceof Lohnprofil) { return $this ->addUsingAlias(LohnabrechnungPeer::LP_ID, $lohnprofil->getId(), $comparison); } elseif ($lohnprofil instanceof PropelObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(LohnabrechnungPeer::LP_ID, $lohnprofil->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByLohnprofil() only accepts arguments of type Lohnprofil or PropelCollection'); } } /** * Adds a JOIN clause to the query using the Lohnprofil relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return LohnabrechnungQuery The current query, for fluid interface */ public function joinLohnprofil($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Lohnprofil'); // create a ModelJoin object for this join $join = new ModelJoin(); $join->setJoinType($joinType); $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); if ($previousJoin = $this->getPreviousJoin()) { $join->setPreviousJoin($previousJoin); } // add the ModelJoin to the current object if ($relationAlias) { $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { $this->addJoinObject($join, 'Lohnprofil'); } return $this; } /** * Use the Lohnprofil relation Lohnprofil object * * @see useQuery() * * @param string $relationAlias optional alias for the relation, * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return LohnprofilQuery A secondary query class using the current class as primary query */ public function useLohnprofilQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinLohnprofil($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'Lohnprofil', 'LohnprofilQuery'); } /** * Exclude object from result * * @param Lohnabrechnung $lohnabrechnung Object to remove from the list of results * * @return LohnabrechnungQuery The current query, for fluid interface */ public function prune($lohnabrechnung = null) { if ($lohnabrechnung) { $this->addUsingAlias(LohnabrechnungPeer::ID, $lohnabrechnung->getId(), Criteria::NOT_EQUAL); } return $this; } }