src/Slashworks/AppBundle/Model/om/BaseRemoteAppQuery.php
public function filterByLastRun($lastRun = null, $comparison = null)
    {
        if (is_array($lastRun)) {
            $useMinMax = false;
            if (isset($lastRun['min'])) {
                $this->addUsingAlias(RemoteAppPeer::LAST_RUN, $lastRun['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($lastRun['max'])) {
                $this->addUsingAlias(RemoteAppPeer::LAST_RUN, $lastRun['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(RemoteAppPeer::LAST_RUN, $lastRun, $comparison);
    }
public function filterByLastRun($lastRun = null, $comparison = null)
    {
        if (is_array($lastRun)) {
            $useMinMax = false;
            if (isset($lastRun['min'])) {
                $this->addUsingAlias(RemoteAppPeer::LAST_RUN, $lastRun['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($lastRun['max'])) {
                $this->addUsingAlias(RemoteAppPeer::LAST_RUN, $lastRun['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        return $this->addUsingAlias(RemoteAppPeer::LAST_RUN, $lastRun, $comparison);
    }
public function filterByLastRun ( $ lastRun = null , $ comparison = null ) { if ( is_array ( $ lastRun ) ) { $ useMinMax = false ; if ( isset ( $ lastRun [ 'min' ] ) ) { $ this -> addUsingAlias ( RemoteAppPeer :: LAST_RUN , $ lastRun [ 'min' ] , Criteria :: GREATER_EQUAL ) ; $ useMinMax = true ; } if ( isset ( $ lastRun [ 'max' ] ) ) { $ this -> addUsingAlias ( RemoteAppPeer :: LAST_RUN , $ lastRun [ 'max' ] , Criteria :: LESS_EQUAL ) ; $ useMinMax = true ; } if ( $ useMinMax ) { return $ this ; } if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } } return $ this -> addUsingAlias ( RemoteAppPeer :: LAST_RUN , $ lastRun , $ comparison ) ; }
Filter the query on the last_run column

Example usage:
<code>
$query->filterByLastRun('2011-03-14'); // WHERE last_run = '2011-03-14'
$query->filterByLastRun('now'); // WHERE last_run = '2011-03-14'
$query->filterByLastRun(array('max' => 'yesterday')); // WHERE last_run < '2011-03-13'
</code>

@param     mixed $lastRun The value to use as filter.
Values can be integers (unix timestamps), DateTime objects, or strings.
Empty strings are treated as NULL.
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 RemoteAppQuery The current query, for fluid interface
Filter the query on the last_run column