class OrderCouponModuleQuery extends OrderCouponModuleQuery

Skeleton subclass for performing query and update operations on the 'ordercouponmodule' 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\\OrderCouponModule', string $modelAlias = null)

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

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

Returns a new ChildOrderCouponModuleQuery object.

OrderCouponModule|array|mixed
findPk($key, $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(array(12, 56), array(832, 123), array(123, 456)), $con);

filterByPrimaryKey( mixed $key)

Filter the query by primary key

filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

filterByCouponId( mixed $couponId = null, string $comparison = null)

Filter the query on the coupon_id column

filterByModuleId( mixed $moduleId = null, string $comparison = null)

Filter the query on the module_id column

filterByOrderCoupon( OrderCoupon|ObjectCollection $orderCoupon, string $comparison = null)

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

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

Adds a JOIN clause to the query using the OrderCoupon relation

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

Use the OrderCoupon relation OrderCoupon 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( OrderCouponModule $orderCouponModule = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the ordercouponmodule table.

int
delete( ConnectionInterface $con = null)

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

ChildOrderCouponModuleQuery
orderByCouponId($order = Criteria::ASC)

Order by the coupon_id column

ChildOrderCouponModuleQuery
orderByModuleId($order = Criteria::ASC)

Order by the module_id column

ChildOrderCouponModuleQuery
groupByCouponId()

Group by the coupon_id column

ChildOrderCouponModuleQuery
groupByModuleId()

Group by the module_id column

ChildOrderCouponModuleQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildOrderCouponModuleQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildOrderCouponModuleQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildOrderCouponModuleQuery
leftJoinOrderCoupon($relationAlias = null)

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

ChildOrderCouponModuleQuery
rightJoinOrderCoupon($relationAlias = null)

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

ChildOrderCouponModuleQuery
innerJoinOrderCoupon($relationAlias = null)

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

ChildOrderCouponModuleQuery
leftJoinModule($relationAlias = null)

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

ChildOrderCouponModuleQuery
rightJoinModule($relationAlias = null)

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

ChildOrderCouponModuleQuery
innerJoinModule($relationAlias = null)

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

ChildOrderCouponModule
findOne( ConnectionInterface $con = null)

Return the first ChildOrderCouponModule matching the query

ChildOrderCouponModule
findOneOrCreate( ConnectionInterface $con = null)

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

ChildOrderCouponModule
findOneByCouponId( int $coupon_id)

Return the first ChildOrderCouponModule filtered by the coupon_id column

ChildOrderCouponModule
findOneByModuleId( int $module_id)

Return the first ChildOrderCouponModule filtered by the module_id column

array
findByCouponId( int $coupon_id)

Return ChildOrderCouponModule objects filtered by the coupon_id column

array
findByModuleId( int $module_id)

Return ChildOrderCouponModule objects filtered by the module_id column

Details

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

Initializes internal state of \Thelia\Model\Base\OrderCouponModuleQuery 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 OrderCouponModuleQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildOrderCouponModuleQuery object.

Parameters

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

Return Value

OrderCouponModuleQuery

in OrderCouponModuleQuery at line 105
OrderCouponModule|array|mixed findPk($key, $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(array(12, 34), $con);

Parameters

$key
$con

Return Value

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

in OrderCouponModuleQuery at line 188
ObjectCollection|array|mixed findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $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

in OrderCouponModuleQuery at line 209
OrderCouponModuleQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

OrderCouponModuleQuery The current query, for fluid interface

in OrderCouponModuleQuery at line 224
OrderCouponModuleQuery 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

OrderCouponModuleQuery The current query, for fluid interface

in OrderCouponModuleQuery at line 259
OrderCouponModuleQuery filterByCouponId( mixed $couponId = null, string $comparison = null)

Filter the query on the coupon_id column

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

Parameters

mixed $couponId 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

OrderCouponModuleQuery The current query, for fluid interface

See also

filterByOrderCoupon()

in OrderCouponModuleQuery at line 302
OrderCouponModuleQuery filterByModuleId( mixed $moduleId = null, string $comparison = null)

Filter the query on the module_id column

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

Parameters

mixed $moduleId 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

OrderCouponModuleQuery The current query, for fluid interface

See also

filterByModule()

in OrderCouponModuleQuery at line 333
OrderCouponModuleQuery filterByOrderCoupon( OrderCoupon|ObjectCollection $orderCoupon, string $comparison = null)

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

Parameters

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

Return Value

OrderCouponModuleQuery The current query, for fluid interface

in OrderCouponModuleQuery at line 358
OrderCouponModuleQuery joinOrderCoupon( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the OrderCoupon relation

Parameters

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

Return Value

OrderCouponModuleQuery The current query, for fluid interface

in OrderCouponModuleQuery at line 393
OrderCouponQuery useOrderCouponQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the OrderCoupon relation OrderCoupon 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

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

See also

useQuery()

in OrderCouponModuleQuery at line 408
OrderCouponModuleQuery 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

OrderCouponModuleQuery The current query, for fluid interface

in OrderCouponModuleQuery at line 433
OrderCouponModuleQuery 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

OrderCouponModuleQuery The current query, for fluid interface

in OrderCouponModuleQuery at line 468
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()

in OrderCouponModuleQuery at line 482
OrderCouponModuleQuery prune( OrderCouponModule $orderCouponModule = null)

Exclude object from result

Parameters

OrderCouponModule $orderCouponModule Object to remove from the list of results

Return Value

OrderCouponModuleQuery The current query, for fluid interface

in OrderCouponModuleQuery at line 499
int doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the ordercouponmodule table.

Parameters

ConnectionInterface $con the connection to use

Return Value

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

in OrderCouponModuleQuery at line 536
int delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildOrderCouponModule 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.

ChildOrderCouponModuleQuery orderByCouponId($order = Criteria::ASC)

Order by the coupon_id column

Parameters

$order

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery orderByModuleId($order = Criteria::ASC)

Order by the module_id column

Parameters

$order

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery groupByCouponId()

Group by the coupon_id column

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery groupByModuleId()

Group by the module_id column

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery leftJoinOrderCoupon($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery rightJoinOrderCoupon($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery innerJoinOrderCoupon($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery leftJoinModule($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery rightJoinModule($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModuleQuery innerJoinModule($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildOrderCouponModuleQuery

ChildOrderCouponModule findOne( ConnectionInterface $con = null)

Return the first ChildOrderCouponModule matching the query

Parameters

ConnectionInterface $con

Return Value

ChildOrderCouponModule

ChildOrderCouponModule findOneOrCreate( ConnectionInterface $con = null)

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

Parameters

ConnectionInterface $con

Return Value

ChildOrderCouponModule

ChildOrderCouponModule findOneByCouponId( int $coupon_id)

Return the first ChildOrderCouponModule filtered by the coupon_id column

Parameters

int $coupon_id

Return Value

ChildOrderCouponModule

ChildOrderCouponModule findOneByModuleId( int $module_id)

Return the first ChildOrderCouponModule filtered by the module_id column

Parameters

int $module_id

Return Value

ChildOrderCouponModule

array findByCouponId( int $coupon_id)

Return ChildOrderCouponModule objects filtered by the coupon_id column

Parameters

int $coupon_id

Return Value

array

array findByModuleId( int $module_id)

Return ChildOrderCouponModule objects filtered by the module_id column

Parameters

int $module_id

Return Value

array