<?php


/**
 * Skeleton subclass for representing a query for one of the subclasses of the 'lohnabrechnung' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package    propel.generator.propel.om
 */
class BaseLaKurzfristQuery extends LaSozialbefreitQuery {

	/**
	 * Returns a new LaKurzfristQuery object.
	 *
	 * @param     string $modelAlias The alias of a model in the query
	 * @param     Criteria $criteria Optional Criteria to build the query from
	 *
	 * @return    LaKurzfristQuery
	 */
	public static function create($modelAlias = null, $criteria = null)
	{
		if ($criteria instanceof LaKurzfristQuery) {
			return $criteria;
		}
		$query = new LaKurzfristQuery();
		if (null !== $modelAlias) {
			$query->setModelAlias($modelAlias);
		}
		if ($criteria instanceof Criteria) {
			$query->mergeWith($criteria);
		}
		return $query;
	}

	/**
	 * Filters the query to target only LaKurzfrist objects.
	 */
	public function preSelect(PropelPDO $con)
	{
		$this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, LohnabrechnungPeer::CLASSKEY_3);
	}

	/**
	 * Filters the query to target only LaKurzfrist objects.
	 */
	public function preUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false)
	{
		$this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, LohnabrechnungPeer::CLASSKEY_3);
	}

	/**
	 * Filters the query to target only LaKurzfrist objects.
	 */
	public function preDelete(PropelPDO $con)
	{
		$this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, LohnabrechnungPeer::CLASSKEY_3);
	}

	/**
	 * Issue a DELETE query based on the current ModelCriteria deleting all rows in the table
	 * Having the LaKurzfrist class.
	 * This method is called by ModelCriteria::deleteAll() inside a transaction
	 * 
	 * @param PropelPDO $con a connection object
	 *
	 * @return integer the number of deleted rows
	 */
	public function doDeleteAll($con)
	{
		// condition on class key is already added in preDelete()
		return parent::doDelete($con);
	}

} // BaseLaKurzfristQuery