OrderCouponCountryQuery
class OrderCouponCountryQuery extends OrderCouponCountryQuery
Skeleton subclass for performing query and update operations on the 'ordercouponcountry' 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\OrderCouponCountryQuery object.
Returns a new ChildOrderCouponCountryQuery 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 country_id column
Filter the query by a related \Thelia\Model\Country object
Adds a JOIN clause to the query using the Country relation
Use the Country relation Country object
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
Deletes all rows from the ordercouponcountry table.
Performs a DELETE on the database, given a ChildOrderCouponCountry or Criteria object OR a primary key value.
Order by the coupon_id column
Order by the country_id column
Group by the coupon_id column
Group by the country_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 Country relation
Adds a RIGHT JOIN clause to the query using the Country relation
Adds a INNER JOIN clause to the query using the Country relation
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
Return the first ChildOrderCouponCountry matching the query
Return the first ChildOrderCouponCountry matching the query, or a new ChildOrderCouponCountry object populated from the query conditions when no match is found
Return the first ChildOrderCouponCountry filtered by the coupon_id column
Return the first ChildOrderCouponCountry filtered by the country_id column
Return ChildOrderCouponCountry objects filtered by the coupon_id column
Return ChildOrderCouponCountry objects filtered by the country_id column
Details
in
OrderCouponCountryQuery at line 62
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\OrderCouponCountry',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\OrderCouponCountryQuery object.
in
OrderCouponCountryQuery at line 75
static
OrderCouponCountryQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildOrderCouponCountryQuery object.
in
OrderCouponCountryQuery at line 105
OrderCouponCountry|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
OrderCouponCountryQuery 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
OrderCouponCountryQuery at line 209
OrderCouponCountryQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
in
OrderCouponCountryQuery at line 224
OrderCouponCountryQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
in
OrderCouponCountryQuery at line 259
OrderCouponCountryQuery
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
OrderCouponCountryQuery at line 302
OrderCouponCountryQuery
filterByCountryId(
mixed $countryId = null,
string $comparison = null)
Filter the query on the country_id column
Example usage:
$query->filterByCountryId(1234); // WHERE countryid = 1234
$query->filterByCountryId(array(12, 34)); // WHERE countryid IN (12, 34)
$query->filterByCountryId(array('min' => 12)); // WHERE country_id > 12
in
OrderCouponCountryQuery at line 333
OrderCouponCountryQuery
filterByCountry(
Country|ObjectCollection $country,
string $comparison = null)
Filter the query by a related \Thelia\Model\Country object
in
OrderCouponCountryQuery at line 358
OrderCouponCountryQuery
joinCountry(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Country relation
in
OrderCouponCountryQuery at line 393
CountryQuery
useCountryQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Country relation Country object
in
OrderCouponCountryQuery at line 408
OrderCouponCountryQuery
filterByOrderCoupon(
OrderCoupon|ObjectCollection $orderCoupon,
string $comparison = null)
Filter the query by a related \Thelia\Model\OrderCoupon object
in
OrderCouponCountryQuery at line 433
OrderCouponCountryQuery
joinOrderCoupon(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the OrderCoupon relation
in
OrderCouponCountryQuery at line 468
OrderCouponQuery
useOrderCouponQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the OrderCoupon relation OrderCoupon object
in
OrderCouponCountryQuery at line 482
OrderCouponCountryQuery
prune(
OrderCouponCountry $orderCouponCountry = null)
Exclude object from result
in
OrderCouponCountryQuery at line 499
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the ordercouponcountry table.
in
OrderCouponCountryQuery at line 536
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildOrderCouponCountry or Criteria object OR a primary key value.
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
orderByCouponId($order = Criteria::ASC)
Order by the coupon_id column
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
orderByCountryId($order = Criteria::ASC)
Order by the country_id column
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
groupByCouponId()
Group by the coupon_id column
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
groupByCountryId()
Group by the country_id column
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
leftJoinCountry($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Country relation
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
rightJoinCountry($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Country relation
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
innerJoinCountry($relationAlias = null)
Adds a INNER JOIN clause to the query using the Country relation
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
leftJoinOrderCoupon($relationAlias = null)
Adds a LEFT JOIN clause to the query using the OrderCoupon relation
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
rightJoinOrderCoupon($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the OrderCoupon relation
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountryQuery
innerJoinOrderCoupon($relationAlias = null)
Adds a INNER JOIN clause to the query using the OrderCoupon relation
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountry
findOne(
ConnectionInterface $con = null)
Return the first ChildOrderCouponCountry matching the query
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountry
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildOrderCouponCountry matching the query, or a new ChildOrderCouponCountry object populated from the query conditions when no match is found
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountry
findOneByCouponId(
int $coupon_id)
Return the first ChildOrderCouponCountry filtered by the coupon_id column
in
OrderCouponCountryQuery at line 52
ChildOrderCouponCountry
findOneByCountryId(
int $country_id)
Return the first ChildOrderCouponCountry filtered by the country_id column
in
OrderCouponCountryQuery at line 52
array
findByCouponId(
int $coupon_id)
Return ChildOrderCouponCountry objects filtered by the coupon_id column
in
OrderCouponCountryQuery at line 52
array
findByCountryId(
int $country_id)
Return ChildOrderCouponCountry objects filtered by the country_id column