class AreaDeliveryModuleQuery extends AreaDeliveryModuleQuery

Skeleton subclass for performing query and update operations on the 'areadeliverymodule' table.

You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.

Methods

__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\AreaDeliveryModule', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\AreaDeliveryModuleQuery object.

create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildAreaDeliveryModuleQuery object.

AreaDeliveryModule|array|mixed
findPk( mixed $key, ConnectionInterface $con = null)

Find object by primary key.

ObjectCollection|array|mixed
findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $con);

filterByPrimaryKey( mixed $key)

Filter the query by primary key

filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

filterById( mixed $id = null, string $comparison = null)

Filter the query on the id column

filterByAreaId( mixed $areaId = null, string $comparison = null)

Filter the query on the area_id column

filterByDeliveryModuleId( mixed $deliveryModuleId = null, string $comparison = null)

Filter the query on the deliverymoduleid column

filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

filterByArea( Area|ObjectCollection $area, string $comparison = null)

Filter the query by a related \Thelia\Model\Area object

joinArea( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Area relation

useAreaQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Area relation Area object

filterByModule( Module|ObjectCollection $module, string $comparison = null)

Filter the query by a related \Thelia\Model\Module object

joinModule( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Module relation

useModuleQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Module relation Module object

prune( AreaDeliveryModule $areaDeliveryModule = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the areadeliverymodule table.

int
delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildAreaDeliveryModule or Criteria object OR a primary key value.

recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

recentlyCreated( int $nbDays = 7)

Filter by the latest created

ChildAreaDeliveryModuleQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildAreaDeliveryModuleQuery
orderByAreaId($order = Criteria::ASC)

Order by the area_id column

ChildAreaDeliveryModuleQuery
orderByDeliveryModuleId($order = Criteria::ASC)

Order by the deliverymoduleid column

ChildAreaDeliveryModuleQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildAreaDeliveryModuleQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildAreaDeliveryModuleQuery
groupById()

Group by the id column

ChildAreaDeliveryModuleQuery
groupByAreaId()

Group by the area_id column

ChildAreaDeliveryModuleQuery
groupByDeliveryModuleId()

Group by the deliverymoduleid column

ChildAreaDeliveryModuleQuery
groupByCreatedAt()

Group by the created_at column

ChildAreaDeliveryModuleQuery
groupByUpdatedAt()

Group by the updated_at column

ChildAreaDeliveryModuleQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildAreaDeliveryModuleQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildAreaDeliveryModuleQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildAreaDeliveryModuleQuery
leftJoinArea($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Area relation

ChildAreaDeliveryModuleQuery
rightJoinArea($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Area relation

ChildAreaDeliveryModuleQuery
innerJoinArea($relationAlias = null)

Adds a INNER JOIN clause to the query using the Area relation

ChildAreaDeliveryModuleQuery
leftJoinModule($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Module relation

ChildAreaDeliveryModuleQuery
rightJoinModule($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Module relation

ChildAreaDeliveryModuleQuery
innerJoinModule($relationAlias = null)

Adds a INNER JOIN clause to the query using the Module relation

ChildAreaDeliveryModule
findOne( ConnectionInterface $con = null)

Return the first ChildAreaDeliveryModule matching the query

ChildAreaDeliveryModule
findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildAreaDeliveryModule matching the query, or a new ChildAreaDeliveryModule object populated from the query conditions when no match is found

ChildAreaDeliveryModule
findOneById( int $id)

Return the first ChildAreaDeliveryModule filtered by the id column

ChildAreaDeliveryModule
findOneByAreaId( int $area_id)

Return the first ChildAreaDeliveryModule filtered by the area_id column

ChildAreaDeliveryModule
findOneByDeliveryModuleId( int $delivery_module_id)

Return the first ChildAreaDeliveryModule filtered by the deliverymoduleid column

ChildAreaDeliveryModule
findOneByCreatedAt( string $created_at)

Return the first ChildAreaDeliveryModule filtered by the created_at column

ChildAreaDeliveryModule
findOneByUpdatedAt( string $updated_at)

Return the first ChildAreaDeliveryModule filtered by the updated_at column

array
findById( int $id)

Return ChildAreaDeliveryModule objects filtered by the id column

array
findByAreaId( int $area_id)

Return ChildAreaDeliveryModule objects filtered by the area_id column

array
findByDeliveryModuleId( int $delivery_module_id)

Return ChildAreaDeliveryModule objects filtered by the deliverymoduleid column

array
findByCreatedAt( string $created_at)

Return ChildAreaDeliveryModule objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildAreaDeliveryModule objects filtered by the updated_at column

findByCountryAndModule( Country $country, Module $module, State $state = null)

Check if a delivery module is suitable for the given country.

Details

__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\AreaDeliveryModule', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\AreaDeliveryModuleQuery object.

Parameters

string $dbName The database name
string $modelName The phpName of a model, e.g. 'Book'
string $modelAlias The alias for the model in this query, e.g. 'b'

static AreaDeliveryModuleQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildAreaDeliveryModuleQuery object.

Parameters

string $modelAlias The alias of a model in the query
Criteria $criteria Optional Criteria to build the query from

Return Value

AreaDeliveryModuleQuery

AreaDeliveryModule|array|mixed findPk( mixed $key, ConnectionInterface $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.

$obj = $c->findPk(12, $con);

Parameters

mixed $key Primary key to use for the query
ConnectionInterface $con an optional connection object

Return Value

AreaDeliveryModule|array|mixed the result, formatted by the current formatter

ObjectCollection|array|mixed findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $con);

Parameters

array $keys Primary keys to use for the query
ConnectionInterface $con an optional connection object

Return Value

ObjectCollection|array|mixed the list of results, formatted by the current formatter

AreaDeliveryModuleQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

Parameters

array $keys The list of primary key to use for the query

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery filterById( mixed $id = null, string $comparison = null)

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

Parameters

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.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery filterByAreaId( mixed $areaId = null, string $comparison = null)

Filter the query on the area_id column

Example usage: $query->filterByAreaId(1234); // WHERE areaid = 1234 $query->filterByAreaId(array(12, 34)); // WHERE areaid IN (12, 34) $query->filterByAreaId(array('min' => 12)); // WHERE area_id > 12

Parameters

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.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

See also

filterByArea()

AreaDeliveryModuleQuery filterByDeliveryModuleId( mixed $deliveryModuleId = null, string $comparison = null)

Filter the query on the deliverymoduleid column

Example usage: $query->filterByDeliveryModuleId(1234); // WHERE deliverymoduleid = 1234 $query->filterByDeliveryModuleId(array(12, 34)); // WHERE deliverymoduleid IN (12, 34) $query->filterByDeliveryModuleId(array('min' => 12)); // WHERE deliverymoduleid > 12

Parameters

mixed $deliveryModuleId 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.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

See also

filterByModule()

AreaDeliveryModuleQuery filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

Example usage: $query->filterByCreatedAt('2011-03-14'); // WHERE createdat = '2011-03-14' $query->filterByCreatedAt('now'); // WHERE createdat = '2011-03-14' $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13'

Parameters

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.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

Example usage: $query->filterByUpdatedAt('2011-03-14'); // WHERE updatedat = '2011-03-14' $query->filterByUpdatedAt('now'); // WHERE updatedat = '2011-03-14' $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13'

Parameters

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.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery filterByArea( Area|ObjectCollection $area, string $comparison = null)

Filter the query by a related \Thelia\Model\Area object

Parameters

Area|ObjectCollection $area The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery joinArea( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Area relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaQuery useAreaQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Area relation Area object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

AreaQuery A secondary query class using the current class as primary query

See also

useQuery()

AreaDeliveryModuleQuery filterByModule( Module|ObjectCollection $module, string $comparison = null)

Filter the query by a related \Thelia\Model\Module object

Parameters

Module|ObjectCollection $module The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery joinModule( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Module relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

ModuleQuery useModuleQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the Module relation Module object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

ModuleQuery A secondary query class using the current class as primary query

See also

useQuery()

AreaDeliveryModuleQuery prune( AreaDeliveryModule $areaDeliveryModule = null)

Exclude object from result

Parameters

AreaDeliveryModule $areaDeliveryModule Object to remove from the list of results

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

int doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the areadeliverymodule table.

Parameters

ConnectionInterface $con the connection to use

Return Value

int The number of affected rows (if supported by underlying database driver).

int delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildAreaDeliveryModule or Criteria object OR a primary key value.

Parameters

ConnectionInterface $con

Return Value

int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows if supported by native driver or if emulated using Propel.

Exceptions

PropelException Any exceptions caught during processing will be rethrown wrapped into a PropelException.

AreaDeliveryModuleQuery recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

Parameters

int $nbDays Maximum age of the latest update in days

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery recentlyCreated( int $nbDays = 7)

Filter by the latest created

Parameters

int $nbDays Maximum age of in days

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery lastUpdatedFirst()

Order by update date desc

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery firstUpdatedFirst()

Order by update date asc

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery lastCreatedFirst()

Order by create date desc

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

AreaDeliveryModuleQuery firstCreatedFirst()

Order by create date asc

Return Value

AreaDeliveryModuleQuery The current query, for fluid interface

ChildAreaDeliveryModuleQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery orderByAreaId($order = Criteria::ASC)

Order by the area_id column

Parameters

$order

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery orderByDeliveryModuleId($order = Criteria::ASC)

Order by the deliverymoduleid column

Parameters

$order

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery groupById()

Group by the id column

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery groupByAreaId()

Group by the area_id column

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery groupByDeliveryModuleId()

Group by the deliverymoduleid column

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery leftJoinArea($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Area relation

Parameters

$relationAlias

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery rightJoinArea($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Area relation

Parameters

$relationAlias

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery innerJoinArea($relationAlias = null)

Adds a INNER JOIN clause to the query using the Area relation

Parameters

$relationAlias

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery leftJoinModule($relationAlias = null)

Adds a LEFT JOIN clause to the query using the Module relation

Parameters

$relationAlias

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery rightJoinModule($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the Module relation

Parameters

$relationAlias

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModuleQuery innerJoinModule($relationAlias = null)

Adds a INNER JOIN clause to the query using the Module relation

Parameters

$relationAlias

Return Value

ChildAreaDeliveryModuleQuery

ChildAreaDeliveryModule findOne( ConnectionInterface $con = null)

Return the first ChildAreaDeliveryModule matching the query

Parameters

ConnectionInterface $con

Return Value

ChildAreaDeliveryModule

ChildAreaDeliveryModule findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildAreaDeliveryModule matching the query, or a new ChildAreaDeliveryModule object populated from the query conditions when no match is found

Parameters

ConnectionInterface $con

Return Value

ChildAreaDeliveryModule

ChildAreaDeliveryModule findOneById( int $id)

Return the first ChildAreaDeliveryModule filtered by the id column

Parameters

int $id

Return Value

ChildAreaDeliveryModule

ChildAreaDeliveryModule findOneByAreaId( int $area_id)

Return the first ChildAreaDeliveryModule filtered by the area_id column

Parameters

int $area_id

Return Value

ChildAreaDeliveryModule

ChildAreaDeliveryModule findOneByDeliveryModuleId( int $delivery_module_id)

Return the first ChildAreaDeliveryModule filtered by the deliverymoduleid column

Parameters

int $delivery_module_id

Return Value

ChildAreaDeliveryModule

ChildAreaDeliveryModule findOneByCreatedAt( string $created_at)

Return the first ChildAreaDeliveryModule filtered by the created_at column

Parameters

string $created_at

Return Value

ChildAreaDeliveryModule

ChildAreaDeliveryModule findOneByUpdatedAt( string $updated_at)

Return the first ChildAreaDeliveryModule filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildAreaDeliveryModule

array findById( int $id)

Return ChildAreaDeliveryModule objects filtered by the id column

Parameters

int $id

Return Value

array

array findByAreaId( int $area_id)

Return ChildAreaDeliveryModule objects filtered by the area_id column

Parameters

int $area_id

Return Value

array

array findByDeliveryModuleId( int $delivery_module_id)

Return ChildAreaDeliveryModule objects filtered by the deliverymoduleid column

Parameters

int $delivery_module_id

Return Value

array

array findByCreatedAt( string $created_at)

Return ChildAreaDeliveryModule objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

array findByUpdatedAt( string $updated_at)

Return ChildAreaDeliveryModule objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array

at line 29
null|AreaDeliveryModule findByCountryAndModule( Country $country, Module $module, State $state = null)

Check if a delivery module is suitable for the given country.

Parameters

Country $country
Module $module
State $state

Return Value

null|AreaDeliveryModule

Exceptions

PropelException