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