setModelAlias($modelAlias); } if ($criteria instanceof Criteria) { $query->mergeWith($criteria); } return $query; } /** * Filters the query to target only LaNormal objects. */ public function preSelect(PropelPDO $con) { $this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, LohnabrechnungPeer::CLASSKEY_4); } /** * Filters the query to target only LaNormal objects. */ public function preUpdate(&$values, PropelPDO $con, $forceIndividualSaves = false) { $this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, LohnabrechnungPeer::CLASSKEY_4); } /** * Filters the query to target only LaNormal objects. */ public function preDelete(PropelPDO $con) { $this->addUsingAlias(LohnabrechnungPeer::CLASS_KEY, LohnabrechnungPeer::CLASSKEY_4); } /** * Issue a DELETE query based on the current ModelCriteria deleting all rows in the table * Having the LaNormal 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); } /** * Issue a SELECT ... LIMIT 1 query based on the current ModelCriteria * and format the result with the current formatter * By default, returns a model object * * @param PropelPDO $con an optional connection object * * @return mixed the result, formatted by the current formatter * * @throws PropelException */ public function findOneOrCreate($con = null) { if ($this->joins) { throw new PropelException('findOneOrCreate() cannot be used on a query with a join, because Propel cannot transform a SQL JOIN into a subquery. You should split the query in two queries to avoid joins.'); } if (!$ret = $this->findOne($con)) { $class = LohnabrechnungPeer::CLASSNAME_4; $obj = new $class; foreach ($this->keys() as $key) { $obj->setByName($key, $this->getValue($key), BasePeer::TYPE_COLNAME); } $ret = $this->getFormatter()->formatRecord($obj); } return $ret; } } // BaseLaNormalQuery