CouponCustomerCountQuery
class CouponCustomerCountQuery extends ModelCriteria
Base class that represents a query for the 'couponcustomercount' table.
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
at line 66
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\CouponCustomerCount',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\CouponCustomerCountQuery object.
at line 79
static
CouponCustomerCountQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildCouponCustomerCountQuery object.
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);
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);
at line 213
CouponCustomerCountQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
at line 228
CouponCustomerCountQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
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
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
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
at line 378
CouponCustomerCountQuery
filterByCustomer(
Customer|ObjectCollection $customer,
string $comparison = null)
Filter the query by a related \Thelia\Model\Customer object
at line 403
CouponCustomerCountQuery
joinCustomer(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Customer relation
at line 438
CustomerQuery
useCustomerQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Customer relation Customer object
at line 453
CouponCustomerCountQuery
filterByCoupon(
Coupon|ObjectCollection $coupon,
string $comparison = null)
Filter the query by a related \Thelia\Model\Coupon object
at line 478
CouponCustomerCountQuery
joinCoupon(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Coupon relation
at line 513
CouponQuery
useCouponQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Coupon relation Coupon object
at line 527
CouponCustomerCountQuery
prune(
CouponCustomerCount $couponCustomerCount = null)
Exclude object from result
at line 544
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the couponcustomercount table.
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.
at line 56
ChildCouponCustomerCountQuery
orderByCouponId($order = Criteria::ASC)
Order by the coupon_id column
at line 56
ChildCouponCustomerCountQuery
orderByCustomerId($order = Criteria::ASC)
Order by the customer_id column
at line 56
ChildCouponCustomerCountQuery
orderByCount($order = Criteria::ASC)
Order by the count column
at line 56
ChildCouponCustomerCountQuery
groupByCouponId()
Group by the coupon_id column
at line 56
ChildCouponCustomerCountQuery
groupByCustomerId()
Group by the customer_id column
at line 56
ChildCouponCustomerCountQuery
groupByCount()
Group by the count column
at line 56
ChildCouponCustomerCountQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
at line 56
ChildCouponCustomerCountQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
at line 56
ChildCouponCustomerCountQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
at line 56
ChildCouponCustomerCountQuery
leftJoinCustomer($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Customer relation
at line 56
ChildCouponCustomerCountQuery
rightJoinCustomer($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Customer relation
at line 56
ChildCouponCustomerCountQuery
innerJoinCustomer($relationAlias = null)
Adds a INNER JOIN clause to the query using the Customer relation
at line 56
ChildCouponCustomerCountQuery
leftJoinCoupon($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Coupon relation
at line 56
ChildCouponCustomerCountQuery
rightJoinCoupon($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Coupon relation
at line 56
ChildCouponCustomerCountQuery
innerJoinCoupon($relationAlias = null)
Adds a INNER JOIN clause to the query using the Coupon relation
at line 56
ChildCouponCustomerCount
findOne(
ConnectionInterface $con = null)
Return the first ChildCouponCustomerCount matching the query
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
at line 56
ChildCouponCustomerCount
findOneByCouponId(
int $coupon_id)
Return the first ChildCouponCustomerCount filtered by the coupon_id column
at line 56
ChildCouponCustomerCount
findOneByCustomerId(
int $customer_id)
Return the first ChildCouponCustomerCount filtered by the customer_id column
at line 56
ChildCouponCustomerCount
findOneByCount(
int $count)
Return the first ChildCouponCustomerCount filtered by the count column
at line 56
array
findByCouponId(
int $coupon_id)
Return ChildCouponCustomerCount objects filtered by the coupon_id column
at line 56
array
findByCustomerId(
int $customer_id)
Return ChildCouponCustomerCount objects filtered by the customer_id column
at line 56
array
findByCount(
int $count)
Return ChildCouponCustomerCount objects filtered by the count column