src/CronHelper/Model/JobMapper.php
public function deleteByWhere($where = null, array $options = array())
	{
		$delete = $this->sql->delete();

		if ($where instanceof Where) {
			$delete->where($where);
		} elseif (is_string($where) && !empty($where)) {
			$delete->where($where);
		}

		$delete->where($where);

		// Options: limit
		$limit = array_key_exists('limit', $options) ? (int) $limit : null;

		if (!is_null($limit) && (int) $limit > 0) {
			$delete->limit($limit);
		}

		$stmt = $this->sql->prepareStatementForSqlObject($delete);

		return $stmt->execute();
	}
public function deleteByWhere($where = null, array $options = array())
	{
		$delete = $this->sql->delete();

		if ($where instanceof Where) {
			$delete->where($where);
		} elseif (is_string($where) && !empty($where)) {
			$delete->where($where);
		}

		$delete->where($where);

		// Options: limit
		$limit = array_key_exists('limit', $options) ? (int) $limit : null;

		if (!is_null($limit) && (int) $limit > 0) {
			$delete->limit($limit);
		}

		$stmt = $this->sql->prepareStatementForSqlObject($delete);

		return $stmt->execute();
	}
public function deleteByWhere ( $ where = null , array $ options = array ( ) ) { $ delete = $ this -> sql -> delete ( ) ; if ( $ where instanceof Where ) { $ delete -> where ( $ where ) ; } elseif ( is_string ( $ where ) && ! empty ( $ where ) ) { $ delete -> where ( $ where ) ; } $ delete -> where ( $ where ) ; // Options: limit $ limit = array_key_exists ( 'limit' , $ options ) ? ( int ) $ limit : null ; if ( ! is_null ( $ limit ) && ( int ) $ limit > 0 ) { $ delete -> limit ( $ limit ) ; } $ stmt = $ this -> sql -> prepareStatementForSqlObject ( $ delete ) ; return $ stmt -> execute ( ) ; }
Delete jobs.

@param Where|string|null $where
@param array $options (Optional.)
@return Result
Delete jobs .