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

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

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

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

@param     mixed $created 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 CustomerQuery The current query, for fluid interface
Filter the query on the created column