CouponCountryQuery
class CouponCountryQuery extends ModelCriteria
Base class that represents a query for the 'coupon_country' table.
Methods
Initializes internal state of \Thelia\Model\Base\CouponCountryQuery object.
Returns a new ChildCouponCountryQuery 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\Coupon object
Adds a JOIN clause to the query using the Coupon relation
Use the Coupon relation Coupon object
Deletes all rows from the coupon_country table.
Performs a DELETE on the database, given a ChildCouponCountry 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 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 ChildCouponCountry matching the query
Return the first ChildCouponCountry matching the query, or a new ChildCouponCountry object populated from the query conditions when no match is found
Return the first ChildCouponCountry filtered by the coupon_id column
Return the first ChildCouponCountry filtered by the country_id column
Return ChildCouponCountry objects filtered by the coupon_id column
Return ChildCouponCountry objects filtered by the country_id column
Details
at line 62
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\CouponCountry',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\CouponCountryQuery object.
at line 75
static
CouponCountryQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildCouponCountryQuery object.
at line 105
CouponCountry|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
CouponCountryQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
at line 224
CouponCountryQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
at line 259
CouponCountryQuery
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
CouponCountryQuery
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
at line 333
CouponCountryQuery
filterByCountry(
Country|ObjectCollection $country,
string $comparison = null)
Filter the query by a related \Thelia\Model\Country object
at line 358
CouponCountryQuery
joinCountry(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Country relation
at line 393
CountryQuery
useCountryQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Country relation Country object
at line 408
CouponCountryQuery
filterByCoupon(
Coupon|ObjectCollection $coupon,
string $comparison = null)
Filter the query by a related \Thelia\Model\Coupon object
at line 433
CouponCountryQuery
joinCoupon(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Coupon relation
at line 468
CouponQuery
useCouponQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Coupon relation Coupon object
at line 482
CouponCountryQuery
prune(
CouponCountry $couponCountry = null)
Exclude object from result
at line 499
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the coupon_country table.
at line 536
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildCouponCountry or Criteria object OR a primary key value.
at line 52
ChildCouponCountryQuery
orderByCouponId($order = Criteria::ASC)
Order by the coupon_id column
at line 52
ChildCouponCountryQuery
orderByCountryId($order = Criteria::ASC)
Order by the country_id column
at line 52
ChildCouponCountryQuery
groupByCouponId()
Group by the coupon_id column
at line 52
ChildCouponCountryQuery
groupByCountryId()
Group by the country_id column
at line 52
ChildCouponCountryQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
at line 52
ChildCouponCountryQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
at line 52
ChildCouponCountryQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
at line 52
ChildCouponCountryQuery
leftJoinCountry($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Country relation
at line 52
ChildCouponCountryQuery
rightJoinCountry($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Country relation
at line 52
ChildCouponCountryQuery
innerJoinCountry($relationAlias = null)
Adds a INNER JOIN clause to the query using the Country relation
at line 52
ChildCouponCountryQuery
leftJoinCoupon($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Coupon relation
at line 52
ChildCouponCountryQuery
rightJoinCoupon($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Coupon relation
at line 52
ChildCouponCountryQuery
innerJoinCoupon($relationAlias = null)
Adds a INNER JOIN clause to the query using the Coupon relation
at line 52
ChildCouponCountry
findOne(
ConnectionInterface $con = null)
Return the first ChildCouponCountry matching the query
at line 52
ChildCouponCountry
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildCouponCountry matching the query, or a new ChildCouponCountry object populated from the query conditions when no match is found
at line 52
ChildCouponCountry
findOneByCouponId(
int $coupon_id)
Return the first ChildCouponCountry filtered by the coupon_id column
at line 52
ChildCouponCountry
findOneByCountryId(
int $country_id)
Return the first ChildCouponCountry filtered by the country_id column
at line 52
array
findByCouponId(
int $coupon_id)
Return ChildCouponCountry objects filtered by the coupon_id column
at line 52
array
findByCountryId(
int $country_id)
Return ChildCouponCountry objects filtered by the country_id column