CouponModuleQuery
class CouponModuleQuery extends ModelCriteria
Base class that represents a query for the 'coupon_module' table.
Methods
Initializes internal state of \Thelia\Model\Base\CouponModuleQuery object.
Returns a new ChildCouponModuleQuery 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\Coupon object
Adds a JOIN clause to the query using the Coupon relation
Use the Coupon relation Coupon 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 coupon_module table.
Performs a DELETE on the database, given a ChildCouponModule 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 Coupon relation
Adds a RIGHT JOIN clause to the query using the Coupon relation
Adds a INNER JOIN clause to the query using the Coupon 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 ChildCouponModule matching the query
Return the first ChildCouponModule matching the query, or a new ChildCouponModule object populated from the query conditions when no match is found
Return the first ChildCouponModule filtered by the coupon_id column
Return the first ChildCouponModule filtered by the module_id column
Return ChildCouponModule objects filtered by the coupon_id column
Return ChildCouponModule objects filtered by the module_id column
Details
at line 62
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\CouponModule',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\CouponModuleQuery object.
at line 75
static
CouponModuleQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildCouponModuleQuery object.
at line 105
CouponModule|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);
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);
at line 209
CouponModuleQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
at line 224
CouponModuleQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
at line 259
CouponModuleQuery
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
at line 302
CouponModuleQuery
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
at line 333
CouponModuleQuery
filterByCoupon(
Coupon|ObjectCollection $coupon,
string $comparison = null)
Filter the query by a related \Thelia\Model\Coupon object
at line 358
CouponModuleQuery
joinCoupon(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Coupon relation
at line 393
CouponQuery
useCouponQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Coupon relation Coupon object
at line 408
CouponModuleQuery
filterByModule(
Module|ObjectCollection $module,
string $comparison = null)
Filter the query by a related \Thelia\Model\Module object
at line 433
CouponModuleQuery
joinModule(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Module relation
at line 468
ModuleQuery
useModuleQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Module relation Module object
at line 482
CouponModuleQuery
prune(
CouponModule $couponModule = null)
Exclude object from result
at line 499
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the coupon_module table.
at line 536
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildCouponModule or Criteria object OR a primary key value.
at line 52
ChildCouponModuleQuery
orderByCouponId($order = Criteria::ASC)
Order by the coupon_id column
at line 52
ChildCouponModuleQuery
orderByModuleId($order = Criteria::ASC)
Order by the module_id column
at line 52
ChildCouponModuleQuery
groupByCouponId()
Group by the coupon_id column
at line 52
ChildCouponModuleQuery
groupByModuleId()
Group by the module_id column
at line 52
ChildCouponModuleQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
at line 52
ChildCouponModuleQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
at line 52
ChildCouponModuleQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
at line 52
ChildCouponModuleQuery
leftJoinCoupon($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Coupon relation
at line 52
ChildCouponModuleQuery
rightJoinCoupon($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Coupon relation
at line 52
ChildCouponModuleQuery
innerJoinCoupon($relationAlias = null)
Adds a INNER JOIN clause to the query using the Coupon relation
at line 52
ChildCouponModuleQuery
leftJoinModule($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Module relation
at line 52
ChildCouponModuleQuery
rightJoinModule($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Module relation
at line 52
ChildCouponModuleQuery
innerJoinModule($relationAlias = null)
Adds a INNER JOIN clause to the query using the Module relation
at line 52
ChildCouponModule
findOne(
ConnectionInterface $con = null)
Return the first ChildCouponModule matching the query
at line 52
ChildCouponModule
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildCouponModule matching the query, or a new ChildCouponModule object populated from the query conditions when no match is found
at line 52
ChildCouponModule
findOneByCouponId(
int $coupon_id)
Return the first ChildCouponModule filtered by the coupon_id column
at line 52
ChildCouponModule
findOneByModuleId(
int $module_id)
Return the first ChildCouponModule filtered by the module_id column
at line 52
array
findByCouponId(
int $coupon_id)
Return ChildCouponModule objects filtered by the coupon_id column
at line 52
array
findByModuleId(
int $module_id)
Return ChildCouponModule objects filtered by the module_id column