# Class BaseAreaQuery

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

  ModelCriteria
  Thelia\Model\om\BaseAreaQuery

#### Direct known subclasses

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

Methods summary
`public` | # `__construct( string $dbName = 'thelia', string $modelName = 'Thelia\\Model\\Area', string $modelAlias = null )` Initializes internal state of BaseAreaQuery object. Initializes internal state of BaseAreaQuery 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\AreaQuery`` | # `create( string $modelAlias = null, `Thelia\Model\AreaQuery`|Criteria $criteria = null )` Returns a new AreaQuery object. Returns a new AreaQuery object. #### Parameters $modelAlias `string` $modelAlias The alias of a model in the query $criteria ``Thelia\Model\AreaQuery`|Criteria` $criteria Optional Criteria to build the query from #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\Area`|`Thelia\Model\Area[]`|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\Area`|`Thelia\Model\Area[]`|mixed` the result, formatted by the current formatter
`public `Thelia\Model\Area`` | # `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\Area`` A model object, or null if the key is not found #### Throws `PropelException`
`protected `Thelia\Model\Area`` | # `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\Area`` A model object, or null if the key is not found #### Throws `PropelException`
`protected `Thelia\Model\Area`|`Thelia\Model\Area[]`|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\Area`|`Thelia\Model\Area[]`|mixed` the result, formatted by the current formatter
`public PropelObjectCollection|`Thelia\Model\Area[]`|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\Area[]`|mixed` the list of results, formatted by the current formatter
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `filterByName( string $name = null, string $comparison = null )` Filter the query on the name column Filter the query on the name column Example usage:
    $query->filterByName('fooValue');   // WHERE name = 'fooValue'
    $query->filterByName('%fooValue%'); // WHERE name LIKE '%fooValue%'
#### Parameters $name `string` $name 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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `filterByUnit( mixed $unit = null, string $comparison = null )` Filter the query on the unit column Filter the query on the unit column Example usage:
    $query->filterByUnit(1234); // WHERE unit = 1234
    $query->filterByUnit(array(12, 34)); // WHERE unit IN (12, 34)
    $query->filterByUnit(array('min' => 12)); // WHERE unit >= 12
    $query->filterByUnit(array('max' => 12)); // WHERE unit <= 12
#### Parameters $unit `mixed` $unit 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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `filterByCountry( `Thelia\Model\Country`|PropelObjectCollection $country, string $comparison = null )` Filter the query by a related Country object Filter the query by a related Country object #### Parameters $country ``Thelia\Model\Country`|PropelObjectCollection` $country the related object to use as filter $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\AreaQuery`` The current query, for fluid interface #### Throws `PropelException` - if the provided filter is invalid.
`public `Thelia\Model\AreaQuery`` | # `joinCountry( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )` Adds a JOIN clause to the query using the Country relation Adds a JOIN clause to the query using the Country 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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\CountryQuery`` | # `useCountryQuery( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )` Use the Country relation Country object Use the Country relation Country 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\CountryQuery`` A secondary query class using the current class as primary query #### See useQuery()
`public `Thelia\Model\AreaQuery`` | # `filterByDelivzone( `Thelia\Model\Delivzone`|PropelObjectCollection $delivzone, string $comparison = null )` Filter the query by a related Delivzone object Filter the query by a related Delivzone object #### Parameters $delivzone ``Thelia\Model\Delivzone`|PropelObjectCollection` $delivzone the related object to use as filter $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\AreaQuery`` The current query, for fluid interface #### Throws `PropelException` - if the provided filter is invalid.
`public `Thelia\Model\AreaQuery`` | # `joinDelivzone( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )` Adds a JOIN clause to the query using the Delivzone relation Adds a JOIN clause to the query using the Delivzone 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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\DelivzoneQuery`` | # `useDelivzoneQuery( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::LEFT_JOIN )` Use the Delivzone relation Delivzone object Use the Delivzone relation Delivzone 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\DelivzoneQuery`` A secondary query class using the current class as primary query #### See useQuery()
`public `Thelia\Model\AreaQuery`` | # `prune( `Thelia\Model\Area` $area = null )` Exclude object from result Exclude object from result #### Parameters $area ``Thelia\Model\Area`` $area Object to remove from the list of results #### Returns ``Thelia\Model\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `lastUpdatedFirst( )` Order by update date desc Order by update date desc #### Returns ``Thelia\Model\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `firstUpdatedFirst( )` Order by update date asc Order by update date asc #### Returns ``Thelia\Model\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `lastCreatedFirst( )` Order by create date desc Order by create date desc #### Returns ``Thelia\Model\AreaQuery`` The current query, for fluid interface
`public `Thelia\Model\AreaQuery`` | # `firstCreatedFirst( )` Order by create date asc Order by create date asc #### Returns ``Thelia\Model\AreaQuery`` The current query, for fluid interface

Magic methods summary
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `orderByName( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the name column Order by the name column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `orderByUnit( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the unit column Order by the unit column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `groupById( )` Group by the id column Group by the id column #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `groupByName( )` Group by the name column Group by the name column #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `groupByUnit( )` Group by the unit column Group by the unit column #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `groupByCreatedAt( )` Group by the created_at column Group by the created_at column #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `groupByUpdatedAt( )` Group by the updated_at column Group by the updated_at column #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `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\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `leftJoinCountry( mixed $relationAlias = null )` Adds a LEFT JOIN clause to the query using the Country relation Adds a LEFT JOIN clause to the query using the Country relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `rightJoinCountry( mixed $relationAlias = null )` Adds a RIGHT JOIN clause to the query using the Country relation Adds a RIGHT JOIN clause to the query using the Country relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `innerJoinCountry( mixed $relationAlias = null )` Adds a INNER JOIN clause to the query using the Country relation Adds a INNER JOIN clause to the query using the Country relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `leftJoinDelivzone( mixed $relationAlias = null )` Adds a LEFT JOIN clause to the query using the Delivzone relation Adds a LEFT JOIN clause to the query using the Delivzone relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `rightJoinDelivzone( mixed $relationAlias = null )` Adds a RIGHT JOIN clause to the query using the Delivzone relation Adds a RIGHT JOIN clause to the query using the Delivzone relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\AreaQuery`` | # `innerJoinDelivzone( mixed $relationAlias = null )` Adds a INNER JOIN clause to the query using the Delivzone relation Adds a INNER JOIN clause to the query using the Delivzone relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\AreaQuery``
`public `Thelia\Model\Area`` | # `findOne( PropelPDO $con = null )` Return the first Area matching the query Return the first Area matching the query #### Parameters $con `PropelPDO` $con #### Returns ``Thelia\Model\Area``
`public `Thelia\Model\Area`` | # `findOneOrCreate( PropelPDO $con = null )` Return the first Area matching the query, or a new Area object populated from the query conditions when no match is found Return the first Area matching the query, or a new Area object populated from the query conditions when no match is found #### Parameters $con `PropelPDO` $con #### Returns ``Thelia\Model\Area``
`public `Thelia\Model\Area`` | # `findOneByName( string $name = )` Return the first Area filtered by the name column Return the first Area filtered by the name column #### Parameters $name `string` $name #### Returns ``Thelia\Model\Area``
`public `Thelia\Model\Area`` | # `findOneByUnit( float $unit = )` Return the first Area filtered by the unit column Return the first Area filtered by the unit column #### Parameters $unit `float` $unit #### Returns ``Thelia\Model\Area``
`public `Thelia\Model\Area`` | # `findOneByCreatedAt( string $created_at = )` Return the first Area filtered by the created_at column Return the first Area filtered by the created_at column #### Parameters $created_at `string` $created_at #### Returns ``Thelia\Model\Area``
`public `Thelia\Model\Area`` | # `findOneByUpdatedAt( string $updated_at = )` Return the first Area filtered by the updated_at column Return the first Area filtered by the updated_at column #### Parameters $updated_at `string` $updated_at #### Returns ``Thelia\Model\Area``
`public array` | # `findById( integer $id = )` Return Area objects filtered by the id column Return Area objects filtered by the id column #### Parameters $id `integer` $id #### Returns `array`
`public array` | # `findByName( string $name = )` Return Area objects filtered by the name column Return Area objects filtered by the name column #### Parameters $name `string` $name #### Returns `array`
`public array` | # `findByUnit( float $unit = )` Return Area objects filtered by the unit column Return Area objects filtered by the unit column #### Parameters $unit `float` $unit #### Returns `array`
`public array` | # `findByCreatedAt( string $created_at = )` Return Area objects filtered by the created_at column Return Area objects filtered by the created_at column #### Parameters $created_at `string` $created_at #### Returns `array`
`public array` | # `findByUpdatedAt( string $updated_at = )` Return Area objects filtered by the updated_at column Return Area objects filtered by the updated_at column #### Parameters $updated_at `string` $updated_at #### Returns `array`