OrderCouponModuleQuery
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
Initializes internal state of \Thelia\Model\Base\OrderCouponModuleQuery object.
Returns a new ChildOrderCouponModuleQuery object.
Find object by primary key.
Find objects by primary key
$objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);
Filter the query by primary key
Filter the query by a list of primary keys
Filter the query on the coupon_id column
Filter the query on the module_id column
Filter the query by a related \Thelia\Model\OrderCoupon object
Adds a JOIN clause to the query using the OrderCoupon relation
Use the OrderCoupon relation OrderCoupon object
Filter the query by a related \Thelia\Model\Module object
Adds a JOIN clause to the query using the Module relation
Use the Module relation Module object
Deletes all rows from the ordercouponmodule table.
Performs a DELETE on the database, given a ChildOrderCouponModule or Criteria object OR a primary key value.
Order by the coupon_id column
Order by the module_id column
Group by the coupon_id column
Group by the module_id column
Adds a LEFT JOIN clause to the query
Adds a RIGHT JOIN clause to the query
Adds a INNER JOIN clause to the query
Adds a LEFT JOIN clause to the query using the OrderCoupon relation
Adds a RIGHT JOIN clause to the query using the OrderCoupon relation
Adds a INNER JOIN clause to the query using the OrderCoupon relation
Adds a LEFT JOIN clause to the query using the Module relation
Adds a RIGHT JOIN clause to the query using the Module relation
Adds a INNER JOIN clause to the query using the Module relation
Return the first ChildOrderCouponModule matching the query
Return the first ChildOrderCouponModule matching the query, or a new ChildOrderCouponModule object populated from the query conditions when no match is found
Return the first ChildOrderCouponModule filtered by the coupon_id column
Return the first ChildOrderCouponModule filtered by the module_id column
Return ChildOrderCouponModule objects filtered by the coupon_id column
Return ChildOrderCouponModule objects filtered by the module_id column
Details
in
OrderCouponModuleQuery at line 62
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\OrderCouponModule',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\OrderCouponModuleQuery object.
in
OrderCouponModuleQuery at line 75
static
OrderCouponModuleQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildOrderCouponModuleQuery object.
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);
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);
in
OrderCouponModuleQuery at line 209
OrderCouponModuleQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
in
OrderCouponModuleQuery at line 224
OrderCouponModuleQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
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
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
in
OrderCouponModuleQuery at line 333
OrderCouponModuleQuery
filterByOrderCoupon(
OrderCoupon|ObjectCollection $orderCoupon,
string $comparison = null)
Filter the query by a related \Thelia\Model\OrderCoupon object
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
in
OrderCouponModuleQuery at line 393
OrderCouponQuery
useOrderCouponQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the OrderCoupon relation OrderCoupon object
in
OrderCouponModuleQuery at line 408
OrderCouponModuleQuery
filterByModule(
Module|ObjectCollection $module,
string $comparison = null)
Filter the query by a related \Thelia\Model\Module object
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
in
OrderCouponModuleQuery at line 468
ModuleQuery
useModuleQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Module relation Module object
in
OrderCouponModuleQuery at line 482
OrderCouponModuleQuery
prune(
OrderCouponModule $orderCouponModule = null)
Exclude object from result
in
OrderCouponModuleQuery at line 499
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the ordercouponmodule table.
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.
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
orderByCouponId($order = Criteria::ASC)
Order by the coupon_id column
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
orderByModuleId($order = Criteria::ASC)
Order by the module_id column
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
groupByCouponId()
Group by the coupon_id column
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
groupByModuleId()
Group by the module_id column
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
leftJoinOrderCoupon($relationAlias = null)
Adds a LEFT JOIN clause to the query using the OrderCoupon relation
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
rightJoinOrderCoupon($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the OrderCoupon relation
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
innerJoinOrderCoupon($relationAlias = null)
Adds a INNER JOIN clause to the query using the OrderCoupon relation
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
leftJoinModule($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Module relation
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
rightJoinModule($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Module relation
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModuleQuery
innerJoinModule($relationAlias = null)
Adds a INNER JOIN clause to the query using the Module relation
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModule
findOne(
ConnectionInterface $con = null)
Return the first ChildOrderCouponModule matching the query
in
OrderCouponModuleQuery at line 52
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
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModule
findOneByCouponId(
int $coupon_id)
Return the first ChildOrderCouponModule filtered by the coupon_id column
in
OrderCouponModuleQuery at line 52
ChildOrderCouponModule
findOneByModuleId(
int $module_id)
Return the first ChildOrderCouponModule filtered by the module_id column
in
OrderCouponModuleQuery at line 52
array
findByCouponId(
int $coupon_id)
Return ChildOrderCouponModule objects filtered by the coupon_id column
in
OrderCouponModuleQuery at line 52
array
findByModuleId(
int $module_id)
Return ChildOrderCouponModule objects filtered by the module_id column