class CouponQuery extends ModelCriteria

Base class that represents a query for the 'coupon' table.

Properties

static $isVersioningEnabled Whether the versioning is enabled

Methods

__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\Coupon', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\CouponQuery object.

static  CouponQuery
create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildCouponQuery object.

Coupon|array|mixed
findPk( mixed $key, ConnectionInterface $con = null)

Find object by primary key.

ObjectCollection|array|mixed
findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $con);

filterByPrimaryKey( mixed $key)

Filter the query by primary key

filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

filterById( mixed $id = null, string $comparison = null)

Filter the query on the id column

filterByCode( string $code = null, string $comparison = null)

Filter the query on the code column

filterByType( string $type = null, string $comparison = null)

Filter the query on the type column

filterBySerializedEffects( string $serializedEffects = null, string $comparison = null)

Filter the query on the serialized_effects column

filterByIsEnabled( boolean|string $isEnabled = null, string $comparison = null)

Filter the query on the is_enabled column

filterByStartDate( mixed $startDate = null, string $comparison = null)

Filter the query on the start_date column

filterByExpirationDate( mixed $expirationDate = null, string $comparison = null)

Filter the query on the expiration_date column

filterByMaxUsage( mixed $maxUsage = null, string $comparison = null)

Filter the query on the max_usage column

filterByIsCumulative( boolean|string $isCumulative = null, string $comparison = null)

Filter the query on the is_cumulative column

filterByIsRemovingPostage( boolean|string $isRemovingPostage = null, string $comparison = null)

Filter the query on the isremovingpostage column

filterByIsAvailableOnSpecialOffers( boolean|string $isAvailableOnSpecialOffers = null, string $comparison = null)

Filter the query on the isavailableonspecialoffers column

filterByIsUsed( boolean|string $isUsed = null, string $comparison = null)

Filter the query on the is_used column

filterBySerializedConditions( string $serializedConditions = null, string $comparison = null)

Filter the query on the serialized_conditions column

filterByPerCustomerUsageCount( boolean|string $perCustomerUsageCount = null, string $comparison = null)

Filter the query on the percustomerusage_count column

filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

filterByVersion( mixed $version = null, string $comparison = null)

Filter the query on the version column

filterByVersionCreatedAt( mixed $versionCreatedAt = null, string $comparison = null)

Filter the query on the versioncreatedat column

filterByVersionCreatedBy( string $versionCreatedBy = null, string $comparison = null)

Filter the query on the versioncreatedby column

filterByCouponCountry( CouponCountry|ObjectCollection $couponCountry, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponCountry object

joinCouponCountry( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponCountry relation

useCouponCountryQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponCountry relation CouponCountry object

filterByCouponModule( CouponModule|ObjectCollection $couponModule, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponModule object

joinCouponModule( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponModule relation

useCouponModuleQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponModule relation CouponModule object

filterByCouponCustomerCount( CouponCustomerCount|ObjectCollection $couponCustomerCount, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponCustomerCount object

joinCouponCustomerCount( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponCustomerCount relation

useCouponCustomerCountQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponCustomerCount relation CouponCustomerCount object

filterByCouponI18n( CouponI18n|ObjectCollection $couponI18n, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponI18n object

joinCouponI18n( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Adds a JOIN clause to the query using the CouponI18n relation

useCouponI18nQuery( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Use the CouponI18n relation CouponI18n object

filterByCouponVersion( CouponVersion|ObjectCollection $couponVersion, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponVersion object

joinCouponVersion( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponVersion relation

useCouponVersionQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponVersion relation CouponVersion object

filterByCountry( Country $country, string $comparison = Criteria::EQUAL)

Filter the query by a related Country object using the coupon_country table as cross reference

filterByModule( Module $module, string $comparison = Criteria::EQUAL)

Filter the query by a related Module object using the coupon_module table as cross reference

filterByCustomer( Customer $customer, string $comparison = Criteria::EQUAL)

Filter the query by a related Customer object using the couponcustomercount table as cross reference

prune( Coupon $coupon = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the coupon table.

int
delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildCoupon or Criteria object OR a primary key value.

recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

recentlyCreated( int $nbDays = 7)

Filter by the latest created

lastUpdatedFirst()

Order by update date desc

firstUpdatedFirst()

Order by update date asc

lastCreatedFirst()

Order by create date desc

firstCreatedFirst()

Order by create date asc

joinI18n( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the i18n relation

joinWithI18n( string $locale = 'en_US', string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query and hydrates the related I18n object.

useI18nQuery( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the I18n relation query object

static  boolean
isVersioningEnabled()

Checks whether versioning is enabled

static 
enableVersioning()

Enables versioning

static 
disableVersioning()

Disables versioning

ChildCouponQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildCouponQuery
orderByCode($order = Criteria::ASC)

Order by the code column

ChildCouponQuery
orderByType($order = Criteria::ASC)

Order by the type column

ChildCouponQuery
orderBySerializedEffects($order = Criteria::ASC)

Order by the serialized_effects column

ChildCouponQuery
orderByIsEnabled($order = Criteria::ASC)

Order by the is_enabled column

ChildCouponQuery
orderByStartDate($order = Criteria::ASC)

Order by the start_date column

ChildCouponQuery
orderByExpirationDate($order = Criteria::ASC)

Order by the expiration_date column

ChildCouponQuery
orderByMaxUsage($order = Criteria::ASC)

Order by the max_usage column

ChildCouponQuery
orderByIsCumulative($order = Criteria::ASC)

Order by the is_cumulative column

ChildCouponQuery
orderByIsRemovingPostage($order = Criteria::ASC)

Order by the isremovingpostage column

ChildCouponQuery
orderByIsAvailableOnSpecialOffers($order = Criteria::ASC)

Order by the isavailableonspecialoffers column

ChildCouponQuery
orderByIsUsed($order = Criteria::ASC)

Order by the is_used column

ChildCouponQuery
orderBySerializedConditions($order = Criteria::ASC)

Order by the serialized_conditions column

ChildCouponQuery
orderByPerCustomerUsageCount($order = Criteria::ASC)

Order by the percustomerusage_count column

ChildCouponQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildCouponQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildCouponQuery
orderByVersion($order = Criteria::ASC)

Order by the version column

ChildCouponQuery
orderByVersionCreatedAt($order = Criteria::ASC)

Order by the versioncreatedat column

ChildCouponQuery
orderByVersionCreatedBy($order = Criteria::ASC)

Order by the versioncreatedby column

ChildCouponQuery
groupById()

Group by the id column

ChildCouponQuery
groupByCode()

Group by the code column

ChildCouponQuery
groupByType()

Group by the type column

ChildCouponQuery
groupBySerializedEffects()

Group by the serialized_effects column

ChildCouponQuery
groupByIsEnabled()

Group by the is_enabled column

ChildCouponQuery
groupByStartDate()

Group by the start_date column

ChildCouponQuery
groupByExpirationDate()

Group by the expiration_date column

ChildCouponQuery
groupByMaxUsage()

Group by the max_usage column

ChildCouponQuery
groupByIsCumulative()

Group by the is_cumulative column

ChildCouponQuery
groupByIsRemovingPostage()

Group by the isremovingpostage column

ChildCouponQuery
groupByIsAvailableOnSpecialOffers()

Group by the isavailableonspecialoffers column

ChildCouponQuery
groupByIsUsed()

Group by the is_used column

ChildCouponQuery
groupBySerializedConditions()

Group by the serialized_conditions column

ChildCouponQuery
groupByPerCustomerUsageCount()

Group by the percustomerusage_count column

ChildCouponQuery
groupByCreatedAt()

Group by the created_at column

ChildCouponQuery
groupByUpdatedAt()

Group by the updated_at column

ChildCouponQuery
groupByVersion()

Group by the version column

ChildCouponQuery
groupByVersionCreatedAt()

Group by the versioncreatedat column

ChildCouponQuery
groupByVersionCreatedBy()

Group by the versioncreatedby column

ChildCouponQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildCouponQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildCouponQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildCouponQuery
leftJoinCouponCountry($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponCountry relation

ChildCouponQuery
rightJoinCouponCountry($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponCountry relation

ChildCouponQuery
innerJoinCouponCountry($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponCountry relation

ChildCouponQuery
leftJoinCouponModule($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponModule relation

ChildCouponQuery
rightJoinCouponModule($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponModule relation

ChildCouponQuery
innerJoinCouponModule($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponModule relation

ChildCouponQuery
leftJoinCouponCustomerCount($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponCustomerCount relation

ChildCouponQuery
rightJoinCouponCustomerCount($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponCustomerCount relation

ChildCouponQuery
innerJoinCouponCustomerCount($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponCustomerCount relation

ChildCouponQuery
leftJoinCouponI18n($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponI18n relation

ChildCouponQuery
rightJoinCouponI18n($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponI18n relation

ChildCouponQuery
innerJoinCouponI18n($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponI18n relation

ChildCouponQuery
leftJoinCouponVersion($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponVersion relation

ChildCouponQuery
rightJoinCouponVersion($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponVersion relation

ChildCouponQuery
innerJoinCouponVersion($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponVersion relation

ChildCoupon
findOne( ConnectionInterface $con = null)

Return the first ChildCoupon matching the query

ChildCoupon
findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildCoupon matching the query, or a new ChildCoupon object populated from the query conditions when no match is found

ChildCoupon
findOneById( int $id)

Return the first ChildCoupon filtered by the id column

ChildCoupon
findOneByCode( string $code)

Return the first ChildCoupon filtered by the code column

ChildCoupon
findOneByType( string $type)

Return the first ChildCoupon filtered by the type column

ChildCoupon
findOneBySerializedEffects( string $serialized_effects)

Return the first ChildCoupon filtered by the serialized_effects column

ChildCoupon
findOneByIsEnabled( boolean $is_enabled)

Return the first ChildCoupon filtered by the is_enabled column

ChildCoupon
findOneByStartDate( string $start_date)

Return the first ChildCoupon filtered by the start_date column

ChildCoupon
findOneByExpirationDate( string $expiration_date)

Return the first ChildCoupon filtered by the expiration_date column

ChildCoupon
findOneByMaxUsage( int $max_usage)

Return the first ChildCoupon filtered by the max_usage column

ChildCoupon
findOneByIsCumulative( boolean $is_cumulative)

Return the first ChildCoupon filtered by the is_cumulative column

ChildCoupon
findOneByIsRemovingPostage( boolean $is_removing_postage)

Return the first ChildCoupon filtered by the isremovingpostage column

ChildCoupon
findOneByIsAvailableOnSpecialOffers( boolean $is_available_on_special_offers)

Return the first ChildCoupon filtered by the isavailableonspecialoffers column

ChildCoupon
findOneByIsUsed( boolean $is_used)

Return the first ChildCoupon filtered by the is_used column

ChildCoupon
findOneBySerializedConditions( string $serialized_conditions)

Return the first ChildCoupon filtered by the serialized_conditions column

ChildCoupon
findOneByPerCustomerUsageCount( boolean $per_customer_usage_count)

Return the first ChildCoupon filtered by the percustomerusage_count column

ChildCoupon
findOneByCreatedAt( string $created_at)

Return the first ChildCoupon filtered by the created_at column

ChildCoupon
findOneByUpdatedAt( string $updated_at)

Return the first ChildCoupon filtered by the updated_at column

ChildCoupon
findOneByVersion( int $version)

Return the first ChildCoupon filtered by the version column

ChildCoupon
findOneByVersionCreatedAt( string $version_created_at)

Return the first ChildCoupon filtered by the versioncreatedat column

ChildCoupon
findOneByVersionCreatedBy( string $version_created_by)

Return the first ChildCoupon filtered by the versioncreatedby column

array
findById( int $id)

Return ChildCoupon objects filtered by the id column

array
findByCode( string $code)

Return ChildCoupon objects filtered by the code column

array
findByType( string $type)

Return ChildCoupon objects filtered by the type column

array
findBySerializedEffects( string $serialized_effects)

Return ChildCoupon objects filtered by the serialized_effects column

array
findByIsEnabled( boolean $is_enabled)

Return ChildCoupon objects filtered by the is_enabled column

array
findByStartDate( string $start_date)

Return ChildCoupon objects filtered by the start_date column

array
findByExpirationDate( string $expiration_date)

Return ChildCoupon objects filtered by the expiration_date column

array
findByMaxUsage( int $max_usage)

Return ChildCoupon objects filtered by the max_usage column

array
findByIsCumulative( boolean $is_cumulative)

Return ChildCoupon objects filtered by the is_cumulative column

array
findByIsRemovingPostage( boolean $is_removing_postage)

Return ChildCoupon objects filtered by the isremovingpostage column

array
findByIsAvailableOnSpecialOffers( boolean $is_available_on_special_offers)

Return ChildCoupon objects filtered by the isavailableonspecialoffers column

array
findByIsUsed( boolean $is_used)

Return ChildCoupon objects filtered by the is_used column

array
findBySerializedConditions( string $serialized_conditions)

Return ChildCoupon objects filtered by the serialized_conditions column

array
findByPerCustomerUsageCount( boolean $per_customer_usage_count)

Return ChildCoupon objects filtered by the percustomerusage_count column

array
findByCreatedAt( string $created_at)

Return ChildCoupon objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildCoupon objects filtered by the updated_at column

array
findByVersion( int $version)

Return ChildCoupon objects filtered by the version column

array
findByVersionCreatedAt( string $version_created_at)

Return ChildCoupon objects filtered by the versioncreatedat column

array
findByVersionCreatedBy( string $version_created_by)

Return ChildCoupon objects filtered by the versioncreatedby column

Details

at line 150
__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\Coupon', string $modelAlias = null)

Initializes internal state of \Thelia\Model\Base\CouponQuery object.

Parameters

string $dbName The database name
string $modelName The phpName of a model, e.g. 'Book'
string $modelAlias The alias for the model in this query, e.g. 'b'

at line 163
static CouponQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildCouponQuery object.

Parameters

string $modelAlias The alias of a model in the query
Criteria $criteria Optional Criteria to build the query from

Return Value

CouponQuery

at line 193
Coupon|array|mixed findPk( mixed $key, ConnectionInterface $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(12, $con);

Parameters

mixed $key Primary key to use for the query
ConnectionInterface $con an optional connection object

Return Value

Coupon|array|mixed the result, formatted by the current formatter

at line 275
ObjectCollection|array|mixed findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $con);

Parameters

array $keys Primary keys to use for the query
ConnectionInterface $con an optional connection object

Return Value

ObjectCollection|array|mixed the list of results, formatted by the current formatter

at line 296
CouponQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

CouponQuery The current query, for fluid interface

at line 309
CouponQuery filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

Parameters

array $keys The list of primary key to use for the query

Return Value

CouponQuery The current query, for fluid interface

at line 333
CouponQuery filterById( mixed $id = null, string $comparison = null)

Filter the query on the id column

Example usage: $query->filterById(1234); // WHERE id = 1234 $query->filterById(array(12, 34)); // WHERE id IN (12, 34) $query->filterById(array('min' => 12)); // WHERE id > 12

Parameters

mixed $id The value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 371
CouponQuery filterByCode( string $code = null, string $comparison = null)

Filter the query on the code column

Example usage: $query->filterByCode('fooValue'); // WHERE code = 'fooValue' $query->filterByCode('%fooValue%'); // WHERE code LIKE '%fooValue%'

Parameters

string $code The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 400
CouponQuery filterByType( string $type = null, string $comparison = null)

Filter the query on the type column

Example usage: $query->filterByType('fooValue'); // WHERE type = 'fooValue' $query->filterByType('%fooValue%'); // WHERE type LIKE '%fooValue%'

Parameters

string $type The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 429
CouponQuery filterBySerializedEffects( string $serializedEffects = null, string $comparison = null)

Filter the query on the serialized_effects column

Example usage: $query->filterBySerializedEffects('fooValue'); // WHERE serializedeffects = 'fooValue' $query->filterBySerializedEffects('%fooValue%'); // WHERE serializedeffects LIKE '%fooValue%'

Parameters

string $serializedEffects The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 461
CouponQuery filterByIsEnabled( boolean|string $isEnabled = null, string $comparison = null)

Filter the query on the is_enabled column

Example usage: $query->filterByIsEnabled(true); // WHERE isenabled = true $query->filterByIsEnabled('yes'); // WHERE isenabled = true

Parameters

boolean|string $isEnabled The value to use as filter. Non-boolean arguments are converted using the following rules: * 1, '1', 'true', 'on', and 'yes' are converted to boolean true * 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 490
CouponQuery filterByStartDate( mixed $startDate = null, string $comparison = null)

Filter the query on the start_date column

Example usage: $query->filterByStartDate('2011-03-14'); // WHERE startdate = '2011-03-14' $query->filterByStartDate('now'); // WHERE startdate = '2011-03-14' $query->filterByStartDate(array('max' => 'yesterday')); // WHERE start_date > '2011-03-13'

Parameters

mixed $startDate The value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 533
CouponQuery filterByExpirationDate( mixed $expirationDate = null, string $comparison = null)

Filter the query on the expiration_date column

Example usage: $query->filterByExpirationDate('2011-03-14'); // WHERE expirationdate = '2011-03-14' $query->filterByExpirationDate('now'); // WHERE expirationdate = '2011-03-14' $query->filterByExpirationDate(array('max' => 'yesterday')); // WHERE expiration_date > '2011-03-13'

Parameters

mixed $expirationDate The value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 574
CouponQuery filterByMaxUsage( mixed $maxUsage = null, string $comparison = null)

Filter the query on the max_usage column

Example usage: $query->filterByMaxUsage(1234); // WHERE maxusage = 1234 $query->filterByMaxUsage(array(12, 34)); // WHERE maxusage IN (12, 34) $query->filterByMaxUsage(array('min' => 12)); // WHERE max_usage > 12

Parameters

mixed $maxUsage The value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 615
CouponQuery filterByIsCumulative( boolean|string $isCumulative = null, string $comparison = null)

Filter the query on the is_cumulative column

Example usage: $query->filterByIsCumulative(true); // WHERE iscumulative = true $query->filterByIsCumulative('yes'); // WHERE iscumulative = true

Parameters

boolean|string $isCumulative The value to use as filter. Non-boolean arguments are converted using the following rules: * 1, '1', 'true', 'on', and 'yes' are converted to boolean true * 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 642
CouponQuery filterByIsRemovingPostage( boolean|string $isRemovingPostage = null, string $comparison = null)

Filter the query on the isremovingpostage column

Example usage: $query->filterByIsRemovingPostage(true); // WHERE isremovingpostage = true $query->filterByIsRemovingPostage('yes'); // WHERE isremovingpostage = true

Parameters

boolean|string $isRemovingPostage The value to use as filter. Non-boolean arguments are converted using the following rules: * 1, '1', 'true', 'on', and 'yes' are converted to boolean true * 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 669
CouponQuery filterByIsAvailableOnSpecialOffers( boolean|string $isAvailableOnSpecialOffers = null, string $comparison = null)

Filter the query on the isavailableonspecialoffers column

Example usage: $query->filterByIsAvailableOnSpecialOffers(true); // WHERE isavailableonspecialoffers = true $query->filterByIsAvailableOnSpecialOffers('yes'); // WHERE isavailableonspecialoffers = true

Parameters

boolean|string $isAvailableOnSpecialOffers The value to use as filter. Non-boolean arguments are converted using the following rules: * 1, '1', 'true', 'on', and 'yes' are converted to boolean true * 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 696
CouponQuery filterByIsUsed( boolean|string $isUsed = null, string $comparison = null)

Filter the query on the is_used column

Example usage: $query->filterByIsUsed(true); // WHERE isused = true $query->filterByIsUsed('yes'); // WHERE isused = true

Parameters

boolean|string $isUsed The value to use as filter. Non-boolean arguments are converted using the following rules: * 1, '1', 'true', 'on', and 'yes' are converted to boolean true * 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 720
CouponQuery filterBySerializedConditions( string $serializedConditions = null, string $comparison = null)

Filter the query on the serialized_conditions column

Example usage: $query->filterBySerializedConditions('fooValue'); // WHERE serializedconditions = 'fooValue' $query->filterBySerializedConditions('%fooValue%'); // WHERE serializedconditions LIKE '%fooValue%'

Parameters

string $serializedConditions The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 752
CouponQuery filterByPerCustomerUsageCount( boolean|string $perCustomerUsageCount = null, string $comparison = null)

Filter the query on the percustomerusage_count column

Example usage: $query->filterByPerCustomerUsageCount(true); // WHERE percustomerusagecount = true $query->filterByPerCustomerUsageCount('yes'); // WHERE percustomerusagecount = true

Parameters

boolean|string $perCustomerUsageCount The value to use as filter. Non-boolean arguments are converted using the following rules: * 1, '1', 'true', 'on', and 'yes' are converted to boolean true * 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 781
CouponQuery filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

Example usage: $query->filterByCreatedAt('2011-03-14'); // WHERE createdat = '2011-03-14' $query->filterByCreatedAt('now'); // WHERE createdat = '2011-03-14' $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13'

Parameters

mixed $createdAt The value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 824
CouponQuery filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

Example usage: $query->filterByUpdatedAt('2011-03-14'); // WHERE updatedat = '2011-03-14' $query->filterByUpdatedAt('now'); // WHERE updatedat = '2011-03-14' $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13'

Parameters

mixed $updatedAt The value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 865
CouponQuery filterByVersion( mixed $version = null, string $comparison = null)

Filter the query on the version column

Example usage: $query->filterByVersion(1234); // WHERE version = 1234 $query->filterByVersion(array(12, 34)); // WHERE version IN (12, 34) $query->filterByVersion(array('min' => 12)); // WHERE version > 12

Parameters

mixed $version The value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 908
CouponQuery filterByVersionCreatedAt( mixed $versionCreatedAt = null, string $comparison = null)

Filter the query on the versioncreatedat column

Example usage: $query->filterByVersionCreatedAt('2011-03-14'); // WHERE versioncreatedat = '2011-03-14' $query->filterByVersionCreatedAt('now'); // WHERE versioncreatedat = '2011-03-14' $query->filterByVersionCreatedAt(array('max' => 'yesterday')); // WHERE versioncreatedat > '2011-03-13'

Parameters

mixed $versionCreatedAt The value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 946
CouponQuery filterByVersionCreatedBy( string $versionCreatedBy = null, string $comparison = null)

Filter the query on the versioncreatedby column

Example usage: $query->filterByVersionCreatedBy('fooValue'); // WHERE versioncreatedby = 'fooValue' $query->filterByVersionCreatedBy('%fooValue%'); // WHERE versioncreatedby LIKE '%fooValue%'

Parameters

string $versionCreatedBy The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 968
CouponQuery filterByCouponCountry( CouponCountry|ObjectCollection $couponCountry, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponCountry object

Parameters

CouponCountry|ObjectCollection $couponCountry the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 991
CouponQuery joinCouponCountry( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponCountry relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponQuery The current query, for fluid interface

at line 1026
CouponCountryQuery useCouponCountryQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponCountry relation CouponCountry object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponCountryQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 1041
CouponQuery filterByCouponModule( CouponModule|ObjectCollection $couponModule, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponModule object

Parameters

CouponModule|ObjectCollection $couponModule the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 1064
CouponQuery joinCouponModule( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponModule relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponQuery The current query, for fluid interface

at line 1099
CouponModuleQuery useCouponModuleQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponModule relation CouponModule object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponModuleQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 1114
CouponQuery filterByCouponCustomerCount( CouponCustomerCount|ObjectCollection $couponCustomerCount, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponCustomerCount object

Parameters

CouponCustomerCount|ObjectCollection $couponCustomerCount the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 1137
CouponQuery joinCouponCustomerCount( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponCustomerCount relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponQuery The current query, for fluid interface

at line 1172
CouponCustomerCountQuery useCouponCustomerCountQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponCustomerCount relation CouponCustomerCount object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponCustomerCountQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 1187
CouponQuery filterByCouponI18n( CouponI18n|ObjectCollection $couponI18n, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponI18n object

Parameters

CouponI18n|ObjectCollection $couponI18n the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 1210
CouponQuery joinCouponI18n( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Adds a JOIN clause to the query using the CouponI18n relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponQuery The current query, for fluid interface

at line 1245
CouponI18nQuery useCouponI18nQuery( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Use the CouponI18n relation CouponI18n object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponI18nQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 1260
CouponQuery filterByCouponVersion( CouponVersion|ObjectCollection $couponVersion, string $comparison = null)

Filter the query by a related \Thelia\Model\CouponVersion object

Parameters

CouponVersion|ObjectCollection $couponVersion the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 1283
CouponQuery joinCouponVersion( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CouponVersion relation

Parameters

string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponQuery The current query, for fluid interface

at line 1318
CouponVersionQuery useCouponVersionQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the CouponVersion relation CouponVersion object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

CouponVersionQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 1334
CouponQuery filterByCountry( Country $country, string $comparison = Criteria::EQUAL)

Filter the query by a related Country object using the coupon_country table as cross reference

Parameters

Country $country the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 1351
CouponQuery filterByModule( Module $module, string $comparison = Criteria::EQUAL)

Filter the query by a related Module object using the coupon_module table as cross reference

Parameters

Module $module the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 1368
CouponQuery filterByCustomer( Customer $customer, string $comparison = Criteria::EQUAL)

Filter the query by a related Customer object using the couponcustomercount table as cross reference

Parameters

Customer $customer the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

CouponQuery The current query, for fluid interface

at line 1383
CouponQuery prune( Coupon $coupon = null)

Exclude object from result

Parameters

Coupon $coupon Object to remove from the list of results

Return Value

CouponQuery The current query, for fluid interface

at line 1398
int doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the coupon table.

Parameters

ConnectionInterface $con the connection to use

Return Value

int The number of affected rows (if supported by underlying database driver).

at line 1435
int delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildCoupon or Criteria object OR a primary key value.

Parameters

ConnectionInterface $con

Return Value

int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows if supported by native driver or if emulated using Propel.

Exceptions

PropelException Any exceptions caught during processing will be rethrown wrapped into a PropelException.

at line 1476
CouponQuery recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

Parameters

int $nbDays Maximum age of the latest update in days

Return Value

CouponQuery The current query, for fluid interface

at line 1488
CouponQuery recentlyCreated( int $nbDays = 7)

Filter by the latest created

Parameters

int $nbDays Maximum age of in days

Return Value

CouponQuery The current query, for fluid interface

at line 1498
CouponQuery lastUpdatedFirst()

Order by update date desc

Return Value

CouponQuery The current query, for fluid interface

at line 1508
CouponQuery firstUpdatedFirst()

Order by update date asc

Return Value

CouponQuery The current query, for fluid interface

at line 1518
CouponQuery lastCreatedFirst()

Order by create date desc

Return Value

CouponQuery The current query, for fluid interface

at line 1528
CouponQuery firstCreatedFirst()

Order by create date asc

Return Value

CouponQuery The current query, for fluid interface

at line 1544
CouponQuery joinI18n( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the i18n relation

Parameters

string $locale Locale to use for the join condition, e.g. 'fr_FR'
string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.

Return Value

CouponQuery The current query, for fluid interface

at line 1562
CouponQuery joinWithI18n( string $locale = 'en_US', string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query and hydrates the related I18n object.

Shortcut for $c->joinI18n($locale)->with()

Parameters

string $locale Locale to use for the join condition, e.g. 'fr_FR'
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.

Return Value

CouponQuery The current query, for fluid interface

at line 1583
CouponI18nQuery useI18nQuery( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the I18n relation query object

Parameters

string $locale Locale to use for the join condition, e.g. 'fr_FR'
string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.

Return Value

CouponI18nQuery A secondary query class using the current class as primary query

See also

useQuery()

at line 1597
static boolean isVersioningEnabled()

Checks whether versioning is enabled

Return Value

boolean

at line 1605
static enableVersioning()

Enables versioning

at line 1613
static disableVersioning()

Disables versioning

at line 133
ChildCouponQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByCode($order = Criteria::ASC)

Order by the code column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByType($order = Criteria::ASC)

Order by the type column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderBySerializedEffects($order = Criteria::ASC)

Order by the serialized_effects column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByIsEnabled($order = Criteria::ASC)

Order by the is_enabled column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByStartDate($order = Criteria::ASC)

Order by the start_date column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByExpirationDate($order = Criteria::ASC)

Order by the expiration_date column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByMaxUsage($order = Criteria::ASC)

Order by the max_usage column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByIsCumulative($order = Criteria::ASC)

Order by the is_cumulative column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByIsRemovingPostage($order = Criteria::ASC)

Order by the isremovingpostage column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByIsAvailableOnSpecialOffers($order = Criteria::ASC)

Order by the isavailableonspecialoffers column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByIsUsed($order = Criteria::ASC)

Order by the is_used column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderBySerializedConditions($order = Criteria::ASC)

Order by the serialized_conditions column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByPerCustomerUsageCount($order = Criteria::ASC)

Order by the percustomerusage_count column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByVersion($order = Criteria::ASC)

Order by the version column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByVersionCreatedAt($order = Criteria::ASC)

Order by the versioncreatedat column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery orderByVersionCreatedBy($order = Criteria::ASC)

Order by the versioncreatedby column

Parameters

$order

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupById()

Group by the id column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByCode()

Group by the code column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByType()

Group by the type column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupBySerializedEffects()

Group by the serialized_effects column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByIsEnabled()

Group by the is_enabled column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByStartDate()

Group by the start_date column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByExpirationDate()

Group by the expiration_date column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByMaxUsage()

Group by the max_usage column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByIsCumulative()

Group by the is_cumulative column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByIsRemovingPostage()

Group by the isremovingpostage column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByIsAvailableOnSpecialOffers()

Group by the isavailableonspecialoffers column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByIsUsed()

Group by the is_used column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupBySerializedConditions()

Group by the serialized_conditions column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByPerCustomerUsageCount()

Group by the percustomerusage_count column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByVersion()

Group by the version column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByVersionCreatedAt()

Group by the versioncreatedat column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery groupByVersionCreatedBy()

Group by the versioncreatedby column

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery leftJoinCouponCountry($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponCountry relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery rightJoinCouponCountry($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponCountry relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery innerJoinCouponCountry($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponCountry relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery leftJoinCouponModule($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponModule relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery rightJoinCouponModule($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponModule relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery innerJoinCouponModule($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponModule relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery leftJoinCouponCustomerCount($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponCustomerCount relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery rightJoinCouponCustomerCount($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponCustomerCount relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery innerJoinCouponCustomerCount($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponCustomerCount relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery leftJoinCouponI18n($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponI18n relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery rightJoinCouponI18n($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponI18n relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery innerJoinCouponI18n($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponI18n relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery leftJoinCouponVersion($relationAlias = null)

Adds a LEFT JOIN clause to the query using the CouponVersion relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery rightJoinCouponVersion($relationAlias = null)

Adds a RIGHT JOIN clause to the query using the CouponVersion relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCouponQuery innerJoinCouponVersion($relationAlias = null)

Adds a INNER JOIN clause to the query using the CouponVersion relation

Parameters

$relationAlias

Return Value

ChildCouponQuery

at line 133
ChildCoupon findOne( ConnectionInterface $con = null)

Return the first ChildCoupon matching the query

Parameters

ConnectionInterface $con

Return Value

ChildCoupon

at line 133
ChildCoupon findOneOrCreate( ConnectionInterface $con = null)

Return the first ChildCoupon matching the query, or a new ChildCoupon object populated from the query conditions when no match is found

Parameters

ConnectionInterface $con

Return Value

ChildCoupon

at line 133
ChildCoupon findOneById( int $id)

Return the first ChildCoupon filtered by the id column

Parameters

int $id

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByCode( string $code)

Return the first ChildCoupon filtered by the code column

Parameters

string $code

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByType( string $type)

Return the first ChildCoupon filtered by the type column

Parameters

string $type

Return Value

ChildCoupon

at line 133
ChildCoupon findOneBySerializedEffects( string $serialized_effects)

Return the first ChildCoupon filtered by the serialized_effects column

Parameters

string $serialized_effects

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByIsEnabled( boolean $is_enabled)

Return the first ChildCoupon filtered by the is_enabled column

Parameters

boolean $is_enabled

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByStartDate( string $start_date)

Return the first ChildCoupon filtered by the start_date column

Parameters

string $start_date

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByExpirationDate( string $expiration_date)

Return the first ChildCoupon filtered by the expiration_date column

Parameters

string $expiration_date

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByMaxUsage( int $max_usage)

Return the first ChildCoupon filtered by the max_usage column

Parameters

int $max_usage

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByIsCumulative( boolean $is_cumulative)

Return the first ChildCoupon filtered by the is_cumulative column

Parameters

boolean $is_cumulative

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByIsRemovingPostage( boolean $is_removing_postage)

Return the first ChildCoupon filtered by the isremovingpostage column

Parameters

boolean $is_removing_postage

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByIsAvailableOnSpecialOffers( boolean $is_available_on_special_offers)

Return the first ChildCoupon filtered by the isavailableonspecialoffers column

Parameters

boolean $is_available_on_special_offers

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByIsUsed( boolean $is_used)

Return the first ChildCoupon filtered by the is_used column

Parameters

boolean $is_used

Return Value

ChildCoupon

at line 133
ChildCoupon findOneBySerializedConditions( string $serialized_conditions)

Return the first ChildCoupon filtered by the serialized_conditions column

Parameters

string $serialized_conditions

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByPerCustomerUsageCount( boolean $per_customer_usage_count)

Return the first ChildCoupon filtered by the percustomerusage_count column

Parameters

boolean $per_customer_usage_count

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByCreatedAt( string $created_at)

Return the first ChildCoupon filtered by the created_at column

Parameters

string $created_at

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByUpdatedAt( string $updated_at)

Return the first ChildCoupon filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByVersion( int $version)

Return the first ChildCoupon filtered by the version column

Parameters

int $version

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByVersionCreatedAt( string $version_created_at)

Return the first ChildCoupon filtered by the versioncreatedat column

Parameters

string $version_created_at

Return Value

ChildCoupon

at line 133
ChildCoupon findOneByVersionCreatedBy( string $version_created_by)

Return the first ChildCoupon filtered by the versioncreatedby column

Parameters

string $version_created_by

Return Value

ChildCoupon

at line 133
array findById( int $id)

Return ChildCoupon objects filtered by the id column

Parameters

int $id

Return Value

array

at line 133
array findByCode( string $code)

Return ChildCoupon objects filtered by the code column

Parameters

string $code

Return Value

array

at line 133
array findByType( string $type)

Return ChildCoupon objects filtered by the type column

Parameters

string $type

Return Value

array

at line 133
array findBySerializedEffects( string $serialized_effects)

Return ChildCoupon objects filtered by the serialized_effects column

Parameters

string $serialized_effects

Return Value

array

at line 133
array findByIsEnabled( boolean $is_enabled)

Return ChildCoupon objects filtered by the is_enabled column

Parameters

boolean $is_enabled

Return Value

array

at line 133
array findByStartDate( string $start_date)

Return ChildCoupon objects filtered by the start_date column

Parameters

string $start_date

Return Value

array

at line 133
array findByExpirationDate( string $expiration_date)

Return ChildCoupon objects filtered by the expiration_date column

Parameters

string $expiration_date

Return Value

array

at line 133
array findByMaxUsage( int $max_usage)

Return ChildCoupon objects filtered by the max_usage column

Parameters

int $max_usage

Return Value

array

at line 133
array findByIsCumulative( boolean $is_cumulative)

Return ChildCoupon objects filtered by the is_cumulative column

Parameters

boolean $is_cumulative

Return Value

array

at line 133
array findByIsRemovingPostage( boolean $is_removing_postage)

Return ChildCoupon objects filtered by the isremovingpostage column

Parameters

boolean $is_removing_postage

Return Value

array

at line 133
array findByIsAvailableOnSpecialOffers( boolean $is_available_on_special_offers)

Return ChildCoupon objects filtered by the isavailableonspecialoffers column

Parameters

boolean $is_available_on_special_offers

Return Value

array

at line 133
array findByIsUsed( boolean $is_used)

Return ChildCoupon objects filtered by the is_used column

Parameters

boolean $is_used

Return Value

array

at line 133
array findBySerializedConditions( string $serialized_conditions)

Return ChildCoupon objects filtered by the serialized_conditions column

Parameters

string $serialized_conditions

Return Value

array

at line 133
array findByPerCustomerUsageCount( boolean $per_customer_usage_count)

Return ChildCoupon objects filtered by the percustomerusage_count column

Parameters

boolean $per_customer_usage_count

Return Value

array

at line 133
array findByCreatedAt( string $created_at)

Return ChildCoupon objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

at line 133
array findByUpdatedAt( string $updated_at)

Return ChildCoupon objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array

at line 133
array findByVersion( int $version)

Return ChildCoupon objects filtered by the version column

Parameters

int $version

Return Value

array

at line 133
array findByVersionCreatedAt( string $version_created_at)

Return ChildCoupon objects filtered by the versioncreatedat column

Parameters

string $version_created_at

Return Value

array

at line 133
array findByVersionCreatedBy( string $version_created_by)

Return ChildCoupon objects filtered by the versioncreatedby column

Parameters

string $version_created_by

Return Value

array