CouponCustomerCountQuery
class CouponCustomerCountQuery extends CouponCustomerCountQuery
Skeleton subclass for performing query and update operations on the 'couponcustomercount' 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\CouponCustomerCountQuery object.
Returns a new ChildCouponCustomerCountQuery 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 customer_id column
Filter the query on the count column
Filter the query by a related \Thelia\Model\Customer object
Adds a JOIN clause to the query using the Customer relation
Use the Customer relation Customer object
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
Deletes all rows from the couponcustomercount table.
Performs a DELETE on the database, given a ChildCouponCustomerCount or Criteria object OR a primary key value.
Order by the coupon_id column
Order by the customer_id column
Order by the count column
Group by the coupon_id column
Group by the customer_id column
Group by the count 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 Customer relation
Adds a RIGHT JOIN clause to the query using the Customer relation
Adds a INNER JOIN clause to the query using the Customer relation
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
Return the first ChildCouponCustomerCount matching the query
Return the first ChildCouponCustomerCount matching the query, or a new ChildCouponCustomerCount object populated from the query conditions when no match is found
Return the first ChildCouponCustomerCount filtered by the coupon_id column
Return the first ChildCouponCustomerCount filtered by the customer_id column
Return the first ChildCouponCustomerCount filtered by the count column
Return ChildCouponCustomerCount objects filtered by the coupon_id column
Return ChildCouponCustomerCount objects filtered by the customer_id column
Return ChildCouponCustomerCount objects filtered by the count column
Details
in
CouponCustomerCountQuery at line 66
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\CouponCustomerCount',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\CouponCustomerCountQuery object.
in
CouponCustomerCountQuery at line 79
static
CouponCustomerCountQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildCouponCustomerCountQuery object.
in
CouponCustomerCountQuery at line 109
CouponCustomerCount|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
CouponCustomerCountQuery at line 192
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
CouponCustomerCountQuery at line 213
CouponCustomerCountQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
in
CouponCustomerCountQuery at line 228
CouponCustomerCountQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
in
CouponCustomerCountQuery at line 263
CouponCustomerCountQuery
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
CouponCustomerCountQuery at line 306
CouponCustomerCountQuery
filterByCustomerId(
mixed $customerId = null,
string $comparison = null)
Filter the query on the customer_id column
Example usage:
$query->filterByCustomerId(1234); // WHERE customerid = 1234
$query->filterByCustomerId(array(12, 34)); // WHERE customerid IN (12, 34)
$query->filterByCustomerId(array('min' => 12)); // WHERE customer_id > 12
in
CouponCustomerCountQuery at line 347
CouponCustomerCountQuery
filterByCount(
mixed $count = null,
string $comparison = null)
Filter the query on the count column
Example usage:
$query->filterByCount(1234); // WHERE count = 1234
$query->filterByCount(array(12, 34)); // WHERE count IN (12, 34)
$query->filterByCount(array('min' => 12)); // WHERE count > 12
in
CouponCustomerCountQuery at line 378
CouponCustomerCountQuery
filterByCustomer(
Customer|ObjectCollection $customer,
string $comparison = null)
Filter the query by a related \Thelia\Model\Customer object
in
CouponCustomerCountQuery at line 403
CouponCustomerCountQuery
joinCustomer(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Customer relation
in
CouponCustomerCountQuery at line 438
CustomerQuery
useCustomerQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Customer relation Customer object
in
CouponCustomerCountQuery at line 453
CouponCustomerCountQuery
filterByCoupon(
Coupon|ObjectCollection $coupon,
string $comparison = null)
Filter the query by a related \Thelia\Model\Coupon object
in
CouponCustomerCountQuery at line 478
CouponCustomerCountQuery
joinCoupon(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Coupon relation
in
CouponCustomerCountQuery at line 513
CouponQuery
useCouponQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Coupon relation Coupon object
in
CouponCustomerCountQuery at line 527
CouponCustomerCountQuery
prune(
CouponCustomerCount $couponCustomerCount = null)
Exclude object from result
in
CouponCustomerCountQuery at line 544
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the couponcustomercount table.
in
CouponCustomerCountQuery at line 581
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildCouponCustomerCount or Criteria object OR a primary key value.
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
orderByCouponId($order = Criteria::ASC)
Order by the coupon_id column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
orderByCustomerId($order = Criteria::ASC)
Order by the customer_id column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
orderByCount($order = Criteria::ASC)
Order by the count column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
groupByCouponId()
Group by the coupon_id column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
groupByCustomerId()
Group by the customer_id column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
groupByCount()
Group by the count column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
leftJoinCustomer($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Customer relation
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
rightJoinCustomer($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Customer relation
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
innerJoinCustomer($relationAlias = null)
Adds a INNER JOIN clause to the query using the Customer relation
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
leftJoinCoupon($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Coupon relation
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
rightJoinCoupon($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Coupon relation
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCountQuery
innerJoinCoupon($relationAlias = null)
Adds a INNER JOIN clause to the query using the Coupon relation
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCount
findOne(
ConnectionInterface $con = null)
Return the first ChildCouponCustomerCount matching the query
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCount
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildCouponCustomerCount matching the query, or a new ChildCouponCustomerCount object populated from the query conditions when no match is found
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCount
findOneByCouponId(
int $coupon_id)
Return the first ChildCouponCustomerCount filtered by the coupon_id column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCount
findOneByCustomerId(
int $customer_id)
Return the first ChildCouponCustomerCount filtered by the customer_id column
in
CouponCustomerCountQuery at line 56
ChildCouponCustomerCount
findOneByCount(
int $count)
Return the first ChildCouponCustomerCount filtered by the count column
in
CouponCustomerCountQuery at line 56
array
findByCouponId(
int $coupon_id)
Return ChildCouponCustomerCount objects filtered by the coupon_id column
in
CouponCustomerCountQuery at line 56
array
findByCustomerId(
int $customer_id)
Return ChildCouponCustomerCount objects filtered by the customer_id column
in
CouponCustomerCountQuery at line 56
array
findByCount(
int $count)
Return ChildCouponCustomerCount objects filtered by the count column