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 Lohnprofil|Lohnprofil[]|mixed the result, formatted by the current formatter
*/
public function findPk($key, $con = null)
{
if ($key === null) {
return null;
}
if ((null !== ($obj = LohnprofilPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {
// the object is already in the instance pool
return $obj;
}
if ($con === null) {
$con = Propel::getConnection(LohnprofilPeer::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 Lohnprofil 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 Lohnprofil A model object, or null if the key is not found
* @throws PropelException
*/
protected function findPkSimple($key, $con)
{
$sql = 'SELECT `id`, `mod`, `name`, `periode`, `lohnsteuer`, `kirchensteuer_rk`, `kirchensteuer_ev`, `soli`, `rentenversicherung_an`, `rentenversicherung_ag`, `krankenversicherung_an`, `krankenversicherung_ag`, `u1`, `u2`, `inso`, `pauschalsteuer`, `la_typ` FROM `lohnprofil` 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)) {
$obj = new Lohnprofil();
$obj->hydrate($row);
LohnprofilPeer::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 Lohnprofil|Lohnprofil[]|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|Lohnprofil[]|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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByPrimaryKey($key)
{
return $this->addUsingAlias(LohnprofilPeer::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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByPrimaryKeys($keys)
{
return $this->addUsingAlias(LohnprofilPeer::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 LohnprofilQuery 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(LohnprofilPeer::ID, $id['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($id['max'])) {
$this->addUsingAlias(LohnprofilPeer::ID, $id['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::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 LohnprofilQuery 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(LohnprofilPeer::MOD, $mod['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($mod['max'])) {
$this->addUsingAlias(LohnprofilPeer::MOD, $mod['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::MOD, $mod, $comparison);
}
/**
* Filter the query on the name column
*
* Example usage:
*
* $query->filterByName('fooValue'); // WHERE name = 'fooValue'
* $query->filterByName('%fooValue%'); // WHERE name LIKE '%fooValue%'
*
*
* @param string $name 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByName($name = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($name)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $name)) {
$name = str_replace('*', '%', $name);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(LohnprofilPeer::NAME, $name, $comparison);
}
/**
* Filter the query on the periode column
*
* Example usage:
*
* $query->filterByPeriode(1234); // WHERE periode = 1234
* $query->filterByPeriode(array(12, 34)); // WHERE periode IN (12, 34)
* $query->filterByPeriode(array('min' => 12)); // WHERE periode >= 12
* $query->filterByPeriode(array('max' => 12)); // WHERE periode <= 12
*
*
* @param mixed $periode 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByPeriode($periode = null, $comparison = null)
{
if (is_array($periode)) {
$useMinMax = false;
if (isset($periode['min'])) {
$this->addUsingAlias(LohnprofilPeer::PERIODE, $periode['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($periode['max'])) {
$this->addUsingAlias(LohnprofilPeer::PERIODE, $periode['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::PERIODE, $periode, $comparison);
}
/**
* Filter the query on the lohnsteuer column
*
* Example usage:
*
* $query->filterByLohnsteuer(true); // WHERE lohnsteuer = true
* $query->filterByLohnsteuer('yes'); // WHERE lohnsteuer = true
*
*
* @param boolean|string $lohnsteuer The value to use as filter.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return LohnprofilQuery The current query, for fluid interface
*/
public function filterByLohnsteuer($lohnsteuer = null, $comparison = null)
{
if (is_string($lohnsteuer)) {
$lohnsteuer = in_array(strtolower($lohnsteuer), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
}
return $this->addUsingAlias(LohnprofilPeer::LOHNSTEUER, $lohnsteuer, $comparison);
}
/**
* Filter the query on the kirchensteuer_rk column
*
* Example usage:
*
* $query->filterByKirchensteuerRk(true); // WHERE kirchensteuer_rk = true
* $query->filterByKirchensteuerRk('yes'); // WHERE kirchensteuer_rk = true
*
*
* @param boolean|string $kirchensteuerRk The value to use as filter.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return LohnprofilQuery The current query, for fluid interface
*/
public function filterByKirchensteuerRk($kirchensteuerRk = null, $comparison = null)
{
if (is_string($kirchensteuerRk)) {
$kirchensteuerRk = in_array(strtolower($kirchensteuerRk), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
}
return $this->addUsingAlias(LohnprofilPeer::KIRCHENSTEUER_RK, $kirchensteuerRk, $comparison);
}
/**
* Filter the query on the kirchensteuer_ev column
*
* Example usage:
*
* $query->filterByKirchensteuerEv(true); // WHERE kirchensteuer_ev = true
* $query->filterByKirchensteuerEv('yes'); // WHERE kirchensteuer_ev = true
*
*
* @param boolean|string $kirchensteuerEv The value to use as filter.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return LohnprofilQuery The current query, for fluid interface
*/
public function filterByKirchensteuerEv($kirchensteuerEv = null, $comparison = null)
{
if (is_string($kirchensteuerEv)) {
$kirchensteuerEv = in_array(strtolower($kirchensteuerEv), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
}
return $this->addUsingAlias(LohnprofilPeer::KIRCHENSTEUER_EV, $kirchensteuerEv, $comparison);
}
/**
* Filter the query on the soli column
*
* Example usage:
*
* $query->filterBySoli(true); // WHERE soli = true
* $query->filterBySoli('yes'); // WHERE soli = true
*
*
* @param boolean|string $soli The value to use as filter.
* Non-boolean arguments are converted using the following rules:
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return LohnprofilQuery The current query, for fluid interface
*/
public function filterBySoli($soli = null, $comparison = null)
{
if (is_string($soli)) {
$soli = in_array(strtolower($soli), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
}
return $this->addUsingAlias(LohnprofilPeer::SOLI, $soli, $comparison);
}
/**
* Filter the query on the rentenversicherung_an column
*
* Example usage:
*
* $query->filterByRentenversicherungAn(1234); // WHERE rentenversicherung_an = 1234
* $query->filterByRentenversicherungAn(array(12, 34)); // WHERE rentenversicherung_an IN (12, 34)
* $query->filterByRentenversicherungAn(array('min' => 12)); // WHERE rentenversicherung_an >= 12
* $query->filterByRentenversicherungAn(array('max' => 12)); // WHERE rentenversicherung_an <= 12
*
*
* @param mixed $rentenversicherungAn 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByRentenversicherungAn($rentenversicherungAn = null, $comparison = null)
{
if (is_array($rentenversicherungAn)) {
$useMinMax = false;
if (isset($rentenversicherungAn['min'])) {
$this->addUsingAlias(LohnprofilPeer::RENTENVERSICHERUNG_AN, $rentenversicherungAn['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($rentenversicherungAn['max'])) {
$this->addUsingAlias(LohnprofilPeer::RENTENVERSICHERUNG_AN, $rentenversicherungAn['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::RENTENVERSICHERUNG_AN, $rentenversicherungAn, $comparison);
}
/**
* Filter the query on the rentenversicherung_ag column
*
* Example usage:
*
* $query->filterByRentenversicherungAg(1234); // WHERE rentenversicherung_ag = 1234
* $query->filterByRentenversicherungAg(array(12, 34)); // WHERE rentenversicherung_ag IN (12, 34)
* $query->filterByRentenversicherungAg(array('min' => 12)); // WHERE rentenversicherung_ag >= 12
* $query->filterByRentenversicherungAg(array('max' => 12)); // WHERE rentenversicherung_ag <= 12
*
*
* @param mixed $rentenversicherungAg 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByRentenversicherungAg($rentenversicherungAg = null, $comparison = null)
{
if (is_array($rentenversicherungAg)) {
$useMinMax = false;
if (isset($rentenversicherungAg['min'])) {
$this->addUsingAlias(LohnprofilPeer::RENTENVERSICHERUNG_AG, $rentenversicherungAg['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($rentenversicherungAg['max'])) {
$this->addUsingAlias(LohnprofilPeer::RENTENVERSICHERUNG_AG, $rentenversicherungAg['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::RENTENVERSICHERUNG_AG, $rentenversicherungAg, $comparison);
}
/**
* Filter the query on the krankenversicherung_an column
*
* Example usage:
*
* $query->filterByKrankenversicherungAn(1234); // WHERE krankenversicherung_an = 1234
* $query->filterByKrankenversicherungAn(array(12, 34)); // WHERE krankenversicherung_an IN (12, 34)
* $query->filterByKrankenversicherungAn(array('min' => 12)); // WHERE krankenversicherung_an >= 12
* $query->filterByKrankenversicherungAn(array('max' => 12)); // WHERE krankenversicherung_an <= 12
*
*
* @param mixed $krankenversicherungAn 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByKrankenversicherungAn($krankenversicherungAn = null, $comparison = null)
{
if (is_array($krankenversicherungAn)) {
$useMinMax = false;
if (isset($krankenversicherungAn['min'])) {
$this->addUsingAlias(LohnprofilPeer::KRANKENVERSICHERUNG_AN, $krankenversicherungAn['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($krankenversicherungAn['max'])) {
$this->addUsingAlias(LohnprofilPeer::KRANKENVERSICHERUNG_AN, $krankenversicherungAn['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::KRANKENVERSICHERUNG_AN, $krankenversicherungAn, $comparison);
}
/**
* Filter the query on the krankenversicherung_ag column
*
* Example usage:
*
* $query->filterByKrankenversicherungAg(1234); // WHERE krankenversicherung_ag = 1234
* $query->filterByKrankenversicherungAg(array(12, 34)); // WHERE krankenversicherung_ag IN (12, 34)
* $query->filterByKrankenversicherungAg(array('min' => 12)); // WHERE krankenversicherung_ag >= 12
* $query->filterByKrankenversicherungAg(array('max' => 12)); // WHERE krankenversicherung_ag <= 12
*
*
* @param mixed $krankenversicherungAg 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByKrankenversicherungAg($krankenversicherungAg = null, $comparison = null)
{
if (is_array($krankenversicherungAg)) {
$useMinMax = false;
if (isset($krankenversicherungAg['min'])) {
$this->addUsingAlias(LohnprofilPeer::KRANKENVERSICHERUNG_AG, $krankenversicherungAg['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($krankenversicherungAg['max'])) {
$this->addUsingAlias(LohnprofilPeer::KRANKENVERSICHERUNG_AG, $krankenversicherungAg['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::KRANKENVERSICHERUNG_AG, $krankenversicherungAg, $comparison);
}
/**
* Filter the query on the u1 column
*
* Example usage:
*
* $query->filterByU1(1234); // WHERE u1 = 1234
* $query->filterByU1(array(12, 34)); // WHERE u1 IN (12, 34)
* $query->filterByU1(array('min' => 12)); // WHERE u1 >= 12
* $query->filterByU1(array('max' => 12)); // WHERE u1 <= 12
*
*
* @param mixed $u1 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByU1($u1 = null, $comparison = null)
{
if (is_array($u1)) {
$useMinMax = false;
if (isset($u1['min'])) {
$this->addUsingAlias(LohnprofilPeer::U1, $u1['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($u1['max'])) {
$this->addUsingAlias(LohnprofilPeer::U1, $u1['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::U1, $u1, $comparison);
}
/**
* Filter the query on the u2 column
*
* Example usage:
*
* $query->filterByU2(1234); // WHERE u2 = 1234
* $query->filterByU2(array(12, 34)); // WHERE u2 IN (12, 34)
* $query->filterByU2(array('min' => 12)); // WHERE u2 >= 12
* $query->filterByU2(array('max' => 12)); // WHERE u2 <= 12
*
*
* @param mixed $u2 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByU2($u2 = null, $comparison = null)
{
if (is_array($u2)) {
$useMinMax = false;
if (isset($u2['min'])) {
$this->addUsingAlias(LohnprofilPeer::U2, $u2['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($u2['max'])) {
$this->addUsingAlias(LohnprofilPeer::U2, $u2['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::U2, $u2, $comparison);
}
/**
* Filter the query on the inso column
*
* Example usage:
*
* $query->filterByInso(1234); // WHERE inso = 1234
* $query->filterByInso(array(12, 34)); // WHERE inso IN (12, 34)
* $query->filterByInso(array('min' => 12)); // WHERE inso >= 12
* $query->filterByInso(array('max' => 12)); // WHERE inso <= 12
*
*
* @param mixed $inso 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByInso($inso = null, $comparison = null)
{
if (is_array($inso)) {
$useMinMax = false;
if (isset($inso['min'])) {
$this->addUsingAlias(LohnprofilPeer::INSO, $inso['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($inso['max'])) {
$this->addUsingAlias(LohnprofilPeer::INSO, $inso['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::INSO, $inso, $comparison);
}
/**
* Filter the query on the pauschalsteuer column
*
* Example usage:
*
* $query->filterByPauschalsteuer(1234); // WHERE pauschalsteuer = 1234
* $query->filterByPauschalsteuer(array(12, 34)); // WHERE pauschalsteuer IN (12, 34)
* $query->filterByPauschalsteuer(array('min' => 12)); // WHERE pauschalsteuer >= 12
* $query->filterByPauschalsteuer(array('max' => 12)); // WHERE pauschalsteuer <= 12
*
*
* @param mixed $pauschalsteuer 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByPauschalsteuer($pauschalsteuer = null, $comparison = null)
{
if (is_array($pauschalsteuer)) {
$useMinMax = false;
if (isset($pauschalsteuer['min'])) {
$this->addUsingAlias(LohnprofilPeer::PAUSCHALSTEUER, $pauschalsteuer['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($pauschalsteuer['max'])) {
$this->addUsingAlias(LohnprofilPeer::PAUSCHALSTEUER, $pauschalsteuer['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::PAUSCHALSTEUER, $pauschalsteuer, $comparison);
}
/**
* Filter the query on the la_typ column
*
* Example usage:
*
* $query->filterByLaTyp(1234); // WHERE la_typ = 1234
* $query->filterByLaTyp(array(12, 34)); // WHERE la_typ IN (12, 34)
* $query->filterByLaTyp(array('min' => 12)); // WHERE la_typ >= 12
* $query->filterByLaTyp(array('max' => 12)); // WHERE la_typ <= 12
*
*
* @param mixed $laTyp 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 LohnprofilQuery The current query, for fluid interface
*/
public function filterByLaTyp($laTyp = null, $comparison = null)
{
if (is_array($laTyp)) {
$useMinMax = false;
if (isset($laTyp['min'])) {
$this->addUsingAlias(LohnprofilPeer::LA_TYP, $laTyp['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($laTyp['max'])) {
$this->addUsingAlias(LohnprofilPeer::LA_TYP, $laTyp['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(LohnprofilPeer::LA_TYP, $laTyp, $comparison);
}
/**
* Filter the query by a related Lohnabrechnung object
*
* @param Lohnabrechnung|PropelObjectCollection $lohnabrechnung the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return LohnprofilQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid.
*/
public function filterByLA($lohnabrechnung, $comparison = null)
{
if ($lohnabrechnung instanceof Lohnabrechnung) {
return $this
->addUsingAlias(LohnprofilPeer::ID, $lohnabrechnung->getLpId(), $comparison);
} elseif ($lohnabrechnung instanceof PropelObjectCollection) {
return $this
->useLAQuery()
->filterByPrimaryKeys($lohnabrechnung->getPrimaryKeys())
->endUse();
} else {
throw new PropelException('filterByLA() only accepts arguments of type Lohnabrechnung or PropelCollection');
}
}
/**
* Adds a JOIN clause to the query using the LA relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return LohnprofilQuery The current query, for fluid interface
*/
public function joinLA($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('LA');
// 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, 'LA');
}
return $this;
}
/**
* Use the LA relation Lohnabrechnung 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 LohnabrechnungQuery A secondary query class using the current class as primary query
*/
public function useLAQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
return $this
->joinLA($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'LA', 'LohnabrechnungQuery');
}
/**
* Filter the query by a related Mitarbeiter object
*
* @param Mitarbeiter|PropelObjectCollection $mitarbeiter the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return LohnprofilQuery The current query, for fluid interface
* @throws PropelException - if the provided filter is invalid.
*/
public function filterByMA($mitarbeiter, $comparison = null)
{
if ($mitarbeiter instanceof Mitarbeiter) {
return $this
->addUsingAlias(LohnprofilPeer::ID, $mitarbeiter->getLpId(), $comparison);
} elseif ($mitarbeiter instanceof PropelObjectCollection) {
return $this
->useMAQuery()
->filterByPrimaryKeys($mitarbeiter->getPrimaryKeys())
->endUse();
} else {
throw new PropelException('filterByMA() only accepts arguments of type Mitarbeiter or PropelCollection');
}
}
/**
* Adds a JOIN clause to the query using the MA relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return LohnprofilQuery The current query, for fluid interface
*/
public function joinMA($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('MA');
// 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, 'MA');
}
return $this;
}
/**
* Use the MA 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 useMAQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
{
return $this
->joinMA($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'MA', 'MitarbeiterQuery');
}
/**
* Exclude object from result
*
* @param Lohnprofil $lohnprofil Object to remove from the list of results
*
* @return LohnprofilQuery The current query, for fluid interface
*/
public function prune($lohnprofil = null)
{
if ($lohnprofil) {
$this->addUsingAlias(LohnprofilPeer::ID, $lohnprofil->getId(), Criteria::NOT_EQUAL);
}
return $this;
}
}