# Class BaseDelivzoneQuery

Base class that represents a query for the 'delivzone' table.

  ModelCriteria
  Thelia\Model\om\BaseDelivzoneQuery

#### Direct known subclasses

Thelia\Model\DelivzoneQuery
Abstract
Namespace: Thelia\Model\om
Package: propel\generator\Thelia\Model\om
Located at core/lib/Thelia/Model/om/BaseDelivzoneQuery.php

Methods summary
`public` | # `__construct( string $dbName = 'thelia', string $modelName = 'Thelia\\Model\\Delivzone', string $modelAlias = null )` Initializes internal state of BaseDelivzoneQuery object. Initializes internal state of BaseDelivzoneQuery object. #### Parameters $dbName `string` $dbName The dabase name $modelName `string` $modelName The phpName of a model, e.g. 'Book' $modelAlias `string` $modelAlias The alias for the model in this query, e.g. 'b'
`public static `Thelia\Model\DelivzoneQuery`` | # `create( string $modelAlias = null, `Thelia\Model\DelivzoneQuery`|Criteria $criteria = null )` Returns a new DelivzoneQuery object. Returns a new DelivzoneQuery object. #### Parameters $modelAlias `string` $modelAlias The alias of a model in the query $criteria ``Thelia\Model\DelivzoneQuery`|Criteria` $criteria Optional Criteria to build the query from #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\Delivzone`|`Thelia\Model\Delivzone[]`|mixed` | # `findPk( mixed $key, PropelPDO $con = null )` Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched. Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched.
    $obj  = $c->findPk(12, $con);
#### Parameters $key `mixed` $key Primary key to use for the query $con `PropelPDO` $con an optional connection object #### Returns ``Thelia\Model\Delivzone`|`Thelia\Model\Delivzone[]`|mixed` the result, formatted by the current formatter
`public `Thelia\Model\Delivzone`` | # `findOneById( mixed $key, PropelPDO $con = null )` Alias of findPk to use instance pooling Alias of findPk to use instance pooling #### Parameters $key `mixed` $key Primary key to use for the query $con `PropelPDO` $con A connection object #### Returns ``Thelia\Model\Delivzone`` A model object, or null if the key is not found #### Throws `PropelException`
`protected `Thelia\Model\Delivzone`` | # `findPkSimple( mixed $key, PropelPDO $con )` Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code. Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code. #### Parameters $key `mixed` $key Primary key to use for the query $con `PropelPDO` $con A connection object #### Returns ``Thelia\Model\Delivzone`` A model object, or null if the key is not found #### Throws `PropelException`
`protected `Thelia\Model\Delivzone`|`Thelia\Model\Delivzone[]`|mixed` | # `findPkComplex( mixed $key, PropelPDO $con )` Find object by primary key. Find object by primary key. #### Parameters $key `mixed` $key Primary key to use for the query $con `PropelPDO` $con A connection object #### Returns ``Thelia\Model\Delivzone`|`Thelia\Model\Delivzone[]`|mixed` the result, formatted by the current formatter
`public PropelObjectCollection|`Thelia\Model\Delivzone[]`|mixed` | # `findPks( array $keys, PropelPDO $con = null )` Find objects by primary key
    $objs = $c->findPks(array(12, 56, 832), $con);
Find objects by primary key
    $objs = $c->findPks(array(12, 56, 832), $con);
#### Parameters $keys `array` $keys Primary keys to use for the query $con `PropelPDO` $con an optional connection object #### Returns `PropelObjectCollection|`Thelia\Model\Delivzone[]`|mixed` the list of results, formatted by the current formatter
`public `Thelia\Model\DelivzoneQuery`` | # `filterByPrimaryKey( mixed $key )` Filter the query by primary key Filter the query by primary key #### Parameters $key `mixed` $key Primary key to use for the query #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `filterByPrimaryKeys( array $keys )` Filter the query by a list of primary keys Filter the query by a list of primary keys #### Parameters $keys `array` $keys The list of primary key to use for the query #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `filterById( mixed $id = null, string $comparison = null )` Filter the query on the id column Filter the query on the id column Example usage:
    $query->filterById(1234); // WHERE id = 1234
    $query->filterById(array(12, 34)); // WHERE id IN (12, 34)
    $query->filterById(array('min' => 12)); // WHERE id >= 12
    $query->filterById(array('max' => 12)); // WHERE id <= 12
#### Parameters $id `mixed` $id The value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `filterByAreaId( mixed $areaId = null, string $comparison = null )` Filter the query on the area_id column Filter the query on the area_id column Example usage:
    $query->filterByAreaId(1234); // WHERE area_id = 1234
    $query->filterByAreaId(array(12, 34)); // WHERE area_id IN (12, 34)
    $query->filterByAreaId(array('min' => 12)); // WHERE area_id >= 12
    $query->filterByAreaId(array('max' => 12)); // WHERE area_id <= 12
#### Parameters $areaId `mixed` $areaId The value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface #### See ``Thelia\Model\om\BaseDelivzoneQuery::filterByArea()``
`public `Thelia\Model\DelivzoneQuery`` | # `filterByDelivery( string $delivery = null, string $comparison = null )` Filter the query on the delivery column Filter the query on the delivery column Example usage:
    $query->filterByDelivery('fooValue');   // WHERE delivery = 'fooValue'
    $query->filterByDelivery('%fooValue%'); // WHERE delivery LIKE '%fooValue%'
#### Parameters $delivery `string` $delivery The value to use as filter. Accepts wildcards (* and % trigger a LIKE) $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `filterByCreatedAt( mixed $createdAt = null, string $comparison = null )` Filter the query on the created_at column Filter the query on the created_at column Example usage:
    $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14'
    $query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14'
    $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13'
#### Parameters $createdAt `mixed` $createdAt 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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null )` Filter the query on the updated_at column Filter the query on the updated_at column Example usage:
    $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14'
    $query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14'
    $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13'
#### Parameters $updatedAt `mixed` $updatedAt 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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `filterByArea( `Thelia\Model\Area`|PropelObjectCollection $area, string $comparison = null )` Filter the query by a related Area object Filter the query by a related Area object #### Parameters $area ``Thelia\Model\Area`|PropelObjectCollection` $area The related object(s) to use as filter $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface #### Throws `PropelException` - if the provided filter is invalid.
`public `Thelia\Model\DelivzoneQuery`` | # `joinArea( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )` Adds a JOIN clause to the query using the Area relation Adds a JOIN clause to the query using the Area relation #### Parameters $relationAlias `string` $relationAlias optional alias for the relation $joinType `string` $joinType Accepted values are null, 'left join', 'right join', 'inner join' #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `useAreaQuery( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )` Use the Area relation Area object Use the Area relation Area object #### Parameters $relationAlias `string` $relationAlias optional alias for the relation, to be used as main alias in the secondary query $joinType `string` $joinType Accepted values are null, 'left join', 'right join', 'inner join' #### Returns ``Thelia\Model\AreaQuery`` A secondary query class using the current class as primary query #### See useQuery()
`public `Thelia\Model\DelivzoneQuery`` | # `prune( `Thelia\Model\Delivzone` $delivzone = null )` Exclude object from result Exclude object from result #### Parameters $delivzone ``Thelia\Model\Delivzone`` $delivzone Object to remove from the list of results #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `recentlyUpdated( integer $nbDays = 7 )` Filter by the latest updated Filter by the latest updated #### Parameters $nbDays `integer` $nbDays Maximum age of the latest update in days #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `lastUpdatedFirst( )` Order by update date desc Order by update date desc #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `firstUpdatedFirst( )` Order by update date asc Order by update date asc #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `recentlyCreated( integer $nbDays = 7 )` Filter by the latest created Filter by the latest created #### Parameters $nbDays `integer` $nbDays Maximum age of in days #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `lastCreatedFirst( )` Order by create date desc Order by create date desc #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `firstCreatedFirst( )` Order by create date asc Order by create date asc #### Returns ``Thelia\Model\DelivzoneQuery`` The current query, for fluid interface

Magic methods summary
`public `Thelia\Model\DelivzoneQuery`` | # `orderById( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the id column Order by the id column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `orderByAreaId( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the area_id column Order by the area_id column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `orderByDelivery( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the delivery column Order by the delivery column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `orderByCreatedAt( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the created_at column Order by the created_at column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `orderByUpdatedAt( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the updated_at column Order by the updated_at column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `groupById( )` Group by the id column Group by the id column #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `groupByAreaId( )` Group by the area_id column Group by the area_id column #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `groupByDelivery( )` Group by the delivery column Group by the delivery column #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `groupByCreatedAt( )` Group by the created_at column Group by the created_at column #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `groupByUpdatedAt( )` Group by the updated_at column Group by the updated_at column #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `leftJoin( mixed $relation = )` Adds a LEFT JOIN clause to the query Adds a LEFT JOIN clause to the query #### Parameters $relation `mixed` $relation #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `rightJoin( mixed $relation = )` Adds a RIGHT JOIN clause to the query Adds a RIGHT JOIN clause to the query #### Parameters $relation `mixed` $relation #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `innerJoin( mixed $relation = )` Adds a INNER JOIN clause to the query Adds a INNER JOIN clause to the query #### Parameters $relation `mixed` $relation #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `leftJoinArea( mixed $relationAlias = null )` Adds a LEFT JOIN clause to the query using the Area relation Adds a LEFT JOIN clause to the query using the Area relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `rightJoinArea( mixed $relationAlias = null )` Adds a RIGHT JOIN clause to the query using the Area relation Adds a RIGHT JOIN clause to the query using the Area relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\DelivzoneQuery`` | # `innerJoinArea( mixed $relationAlias = null )` Adds a INNER JOIN clause to the query using the Area relation Adds a INNER JOIN clause to the query using the Area relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\DelivzoneQuery``
`public `Thelia\Model\Delivzone`` | # `findOne( PropelPDO $con = null )` Return the first Delivzone matching the query Return the first Delivzone matching the query #### Parameters $con `PropelPDO` $con #### Returns ``Thelia\Model\Delivzone``
`public `Thelia\Model\Delivzone`` | # `findOneOrCreate( PropelPDO $con = null )` Return the first Delivzone matching the query, or a new Delivzone object populated from the query conditions when no match is found Return the first Delivzone matching the query, or a new Delivzone object populated from the query conditions when no match is found #### Parameters $con `PropelPDO` $con #### Returns ``Thelia\Model\Delivzone``
`public `Thelia\Model\Delivzone`` | # `findOneByAreaId( integer $area_id = )` Return the first Delivzone filtered by the area_id column Return the first Delivzone filtered by the area_id column #### Parameters $area_id `integer` $area_id #### Returns ``Thelia\Model\Delivzone``
`public `Thelia\Model\Delivzone`` | # `findOneByDelivery( string $delivery = )` Return the first Delivzone filtered by the delivery column Return the first Delivzone filtered by the delivery column #### Parameters $delivery `string` $delivery #### Returns ``Thelia\Model\Delivzone``
`public `Thelia\Model\Delivzone`` | # `findOneByCreatedAt( string $created_at = )` Return the first Delivzone filtered by the created_at column Return the first Delivzone filtered by the created_at column #### Parameters $created_at `string` $created_at #### Returns ``Thelia\Model\Delivzone``
`public `Thelia\Model\Delivzone`` | # `findOneByUpdatedAt( string $updated_at = )` Return the first Delivzone filtered by the updated_at column Return the first Delivzone filtered by the updated_at column #### Parameters $updated_at `string` $updated_at #### Returns ``Thelia\Model\Delivzone``
`public array` | # `findById( integer $id = )` Return Delivzone objects filtered by the id column Return Delivzone objects filtered by the id column #### Parameters $id `integer` $id #### Returns `array`
`public array` | # `findByAreaId( integer $area_id = )` Return Delivzone objects filtered by the area_id column Return Delivzone objects filtered by the area_id column #### Parameters $area_id `integer` $area_id #### Returns `array`
`public array` | # `findByDelivery( string $delivery = )` Return Delivzone objects filtered by the delivery column Return Delivzone objects filtered by the delivery column #### Parameters $delivery `string` $delivery #### Returns `array`
`public array` | # `findByCreatedAt( string $created_at = )` Return Delivzone objects filtered by the created_at column Return Delivzone objects filtered by the created_at column #### Parameters $created_at `string` $created_at #### Returns `array`
`public array` | # `findByUpdatedAt( string $updated_at = )` Return Delivzone objects filtered by the updated_at column Return Delivzone objects filtered by the updated_at column #### Parameters $updated_at `string` $updated_at #### Returns `array`