CouponVersionQuery
class CouponVersionQuery extends ModelCriteria
Base class that represents a query for the 'coupon_version' table.
Methods
Initializes internal state of \Thelia\Model\Base\CouponVersionQuery object.
Returns a new ChildCouponVersionQuery 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 id column
Filter the query on the code column
Filter the query on the type column
Filter the query on the serialized_effects column
Filter the query on the is_enabled column
Filter the query on the start_date column
Filter the query on the expiration_date column
Filter the query on the max_usage column
Filter the query on the is_cumulative column
Filter the query on the isremovingpostage column
Filter the query on the isavailableonspecialoffers column
Filter the query on the is_used column
Filter the query on the serialized_conditions column
Filter the query on the percustomerusage_count column
Filter the query on the created_at column
Filter the query on the updated_at column
Filter the query on the version column
Filter the query on the versioncreatedat column
Filter the query on the versioncreatedby column
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_version table.
Performs a DELETE on the database, given a ChildCouponVersion or Criteria object OR a primary key value.
Order by the id column
Order by the code column
Order by the type column
Order by the serialized_effects column
Order by the is_enabled column
Order by the start_date column
Order by the expiration_date column
Order by the max_usage column
Order by the is_cumulative column
Order by the isremovingpostage column
Order by the isavailableonspecialoffers column
Order by the is_used column
Order by the serialized_conditions column
Order by the percustomerusage_count column
Order by the created_at column
Order by the updated_at column
Order by the version column
Order by the versioncreatedat column
Order by the versioncreatedby column
Group by the id column
Group by the code column
Group by the type column
Group by the serialized_effects column
Group by the is_enabled column
Group by the start_date column
Group by the expiration_date column
Group by the max_usage column
Group by the is_cumulative column
Group by the isremovingpostage column
Group by the isavailableonspecialoffers column
Group by the is_used column
Group by the serialized_conditions column
Group by the percustomerusage_count column
Group by the created_at column
Group by the updated_at column
Group by the version column
Group by the versioncreatedat column
Group by the versioncreatedby 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 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 ChildCouponVersion matching the query
Return the first ChildCouponVersion matching the query, or a new ChildCouponVersion object populated from the query conditions when no match is found
Return the first ChildCouponVersion filtered by the id column
Return the first ChildCouponVersion filtered by the code column
Return the first ChildCouponVersion filtered by the type column
Return the first ChildCouponVersion filtered by the serialized_effects column
Return the first ChildCouponVersion filtered by the is_enabled column
Return the first ChildCouponVersion filtered by the start_date column
Return the first ChildCouponVersion filtered by the expiration_date column
Return the first ChildCouponVersion filtered by the max_usage column
Return the first ChildCouponVersion filtered by the is_cumulative column
Return the first ChildCouponVersion filtered by the isremovingpostage column
Return the first ChildCouponVersion filtered by the isavailableonspecialoffers column
Return the first ChildCouponVersion filtered by the is_used column
Return the first ChildCouponVersion filtered by the serialized_conditions column
Return the first ChildCouponVersion filtered by the percustomerusage_count column
Return the first ChildCouponVersion filtered by the created_at column
Return the first ChildCouponVersion filtered by the updated_at column
Return the first ChildCouponVersion filtered by the version column
Return the first ChildCouponVersion filtered by the versioncreatedat column
Return the first ChildCouponVersion filtered by the versioncreatedby column
Return ChildCouponVersion objects filtered by the id column
Return ChildCouponVersion objects filtered by the code column
Return ChildCouponVersion objects filtered by the type column
Return ChildCouponVersion objects filtered by the serialized_effects column
Return ChildCouponVersion objects filtered by the is_enabled column
Return ChildCouponVersion objects filtered by the start_date column
Return ChildCouponVersion objects filtered by the expiration_date column
Return ChildCouponVersion objects filtered by the max_usage column
Return ChildCouponVersion objects filtered by the is_cumulative column
Return ChildCouponVersion objects filtered by the isremovingpostage column
Return ChildCouponVersion objects filtered by the isavailableonspecialoffers column
Return ChildCouponVersion objects filtered by the is_used column
Return ChildCouponVersion objects filtered by the serialized_conditions column
Return ChildCouponVersion objects filtered by the percustomerusage_count column
Return ChildCouponVersion objects filtered by the created_at column
Return ChildCouponVersion objects filtered by the updated_at column
Return ChildCouponVersion objects filtered by the version column
Return ChildCouponVersion objects filtered by the versioncreatedat column
Return ChildCouponVersion objects filtered by the versioncreatedby column
Details
at line 126
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\CouponVersion',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\CouponVersionQuery object.
at line 139
static
CouponVersionQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildCouponVersionQuery object.
at line 169
CouponVersion|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 252
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 273
CouponVersionQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
at line 288
CouponVersionQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
at line 323
CouponVersionQuery
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
at line 361
CouponVersionQuery
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%'
at line 390
CouponVersionQuery
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%'
at line 419
CouponVersionQuery
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%'
at line 451
CouponVersionQuery
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
at line 480
CouponVersionQuery
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'
at line 523
CouponVersionQuery
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'
at line 564
CouponVersionQuery
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
at line 605
CouponVersionQuery
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
at line 632
CouponVersionQuery
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
at line 659
CouponVersionQuery
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
at line 686
CouponVersionQuery
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
at line 710
CouponVersionQuery
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%'
at line 742
CouponVersionQuery
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
at line 771
CouponVersionQuery
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'
at line 814
CouponVersionQuery
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'
at line 855
CouponVersionQuery
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
at line 898
CouponVersionQuery
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'
at line 936
CouponVersionQuery
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%'
at line 958
CouponVersionQuery
filterByCoupon(
Coupon|ObjectCollection $coupon,
string $comparison = null)
Filter the query by a related \Thelia\Model\Coupon object
at line 983
CouponVersionQuery
joinCoupon(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Coupon relation
at line 1018
CouponQuery
useCouponQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Coupon relation Coupon object
at line 1032
CouponVersionQuery
prune(
CouponVersion $couponVersion = null)
Exclude object from result
at line 1049
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the coupon_version table.
at line 1086
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildCouponVersion or Criteria object OR a primary key value.
at line 116
ChildCouponVersionQuery
orderById($order = Criteria::ASC)
Order by the id column
at line 116
ChildCouponVersionQuery
orderByCode($order = Criteria::ASC)
Order by the code column
at line 116
ChildCouponVersionQuery
orderByType($order = Criteria::ASC)
Order by the type column
at line 116
ChildCouponVersionQuery
orderBySerializedEffects($order = Criteria::ASC)
Order by the serialized_effects column
at line 116
ChildCouponVersionQuery
orderByIsEnabled($order = Criteria::ASC)
Order by the is_enabled column
at line 116
ChildCouponVersionQuery
orderByStartDate($order = Criteria::ASC)
Order by the start_date column
at line 116
ChildCouponVersionQuery
orderByExpirationDate($order = Criteria::ASC)
Order by the expiration_date column
at line 116
ChildCouponVersionQuery
orderByMaxUsage($order = Criteria::ASC)
Order by the max_usage column
at line 116
ChildCouponVersionQuery
orderByIsCumulative($order = Criteria::ASC)
Order by the is_cumulative column
at line 116
ChildCouponVersionQuery
orderByIsRemovingPostage($order = Criteria::ASC)
Order by the isremovingpostage column
at line 116
ChildCouponVersionQuery
orderByIsAvailableOnSpecialOffers($order = Criteria::ASC)
Order by the isavailableonspecialoffers column
at line 116
ChildCouponVersionQuery
orderByIsUsed($order = Criteria::ASC)
Order by the is_used column
at line 116
ChildCouponVersionQuery
orderBySerializedConditions($order = Criteria::ASC)
Order by the serialized_conditions column
at line 116
ChildCouponVersionQuery
orderByPerCustomerUsageCount($order = Criteria::ASC)
Order by the percustomerusage_count column
at line 116
ChildCouponVersionQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
at line 116
ChildCouponVersionQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
at line 116
ChildCouponVersionQuery
orderByVersion($order = Criteria::ASC)
Order by the version column
at line 116
ChildCouponVersionQuery
orderByVersionCreatedAt($order = Criteria::ASC)
Order by the versioncreatedat column
at line 116
ChildCouponVersionQuery
orderByVersionCreatedBy($order = Criteria::ASC)
Order by the versioncreatedby column
at line 116
ChildCouponVersionQuery
groupById()
Group by the id column
at line 116
ChildCouponVersionQuery
groupByCode()
Group by the code column
at line 116
ChildCouponVersionQuery
groupByType()
Group by the type column
at line 116
ChildCouponVersionQuery
groupBySerializedEffects()
Group by the serialized_effects column
at line 116
ChildCouponVersionQuery
groupByIsEnabled()
Group by the is_enabled column
at line 116
ChildCouponVersionQuery
groupByStartDate()
Group by the start_date column
at line 116
ChildCouponVersionQuery
groupByExpirationDate()
Group by the expiration_date column
at line 116
ChildCouponVersionQuery
groupByMaxUsage()
Group by the max_usage column
at line 116
ChildCouponVersionQuery
groupByIsCumulative()
Group by the is_cumulative column
at line 116
ChildCouponVersionQuery
groupByIsRemovingPostage()
Group by the isremovingpostage column
at line 116
ChildCouponVersionQuery
groupByIsAvailableOnSpecialOffers()
Group by the isavailableonspecialoffers column
at line 116
ChildCouponVersionQuery
groupByIsUsed()
Group by the is_used column
at line 116
ChildCouponVersionQuery
groupBySerializedConditions()
Group by the serialized_conditions column
at line 116
ChildCouponVersionQuery
groupByPerCustomerUsageCount()
Group by the percustomerusage_count column
at line 116
ChildCouponVersionQuery
groupByCreatedAt()
Group by the created_at column
at line 116
ChildCouponVersionQuery
groupByUpdatedAt()
Group by the updated_at column
at line 116
ChildCouponVersionQuery
groupByVersion()
Group by the version column
at line 116
ChildCouponVersionQuery
groupByVersionCreatedAt()
Group by the versioncreatedat column
at line 116
ChildCouponVersionQuery
groupByVersionCreatedBy()
Group by the versioncreatedby column
at line 116
ChildCouponVersionQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
at line 116
ChildCouponVersionQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
at line 116
ChildCouponVersionQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
at line 116
ChildCouponVersionQuery
leftJoinCoupon($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Coupon relation
at line 116
ChildCouponVersionQuery
rightJoinCoupon($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Coupon relation
at line 116
ChildCouponVersionQuery
innerJoinCoupon($relationAlias = null)
Adds a INNER JOIN clause to the query using the Coupon relation
at line 116
ChildCouponVersion
findOne(
ConnectionInterface $con = null)
Return the first ChildCouponVersion matching the query
at line 116
ChildCouponVersion
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildCouponVersion matching the query, or a new ChildCouponVersion object populated from the query conditions when no match is found
at line 116
ChildCouponVersion
findOneById(
int $id)
Return the first ChildCouponVersion filtered by the id column
at line 116
ChildCouponVersion
findOneByCode(
string $code)
Return the first ChildCouponVersion filtered by the code column
at line 116
ChildCouponVersion
findOneByType(
string $type)
Return the first ChildCouponVersion filtered by the type column
at line 116
ChildCouponVersion
findOneBySerializedEffects(
string $serialized_effects)
Return the first ChildCouponVersion filtered by the serialized_effects column
at line 116
ChildCouponVersion
findOneByIsEnabled(
boolean $is_enabled)
Return the first ChildCouponVersion filtered by the is_enabled column
at line 116
ChildCouponVersion
findOneByStartDate(
string $start_date)
Return the first ChildCouponVersion filtered by the start_date column
at line 116
ChildCouponVersion
findOneByExpirationDate(
string $expiration_date)
Return the first ChildCouponVersion filtered by the expiration_date column
at line 116
ChildCouponVersion
findOneByMaxUsage(
int $max_usage)
Return the first ChildCouponVersion filtered by the max_usage column
at line 116
ChildCouponVersion
findOneByIsCumulative(
boolean $is_cumulative)
Return the first ChildCouponVersion filtered by the is_cumulative column
at line 116
ChildCouponVersion
findOneByIsRemovingPostage(
boolean $is_removing_postage)
Return the first ChildCouponVersion filtered by the isremovingpostage column
at line 116
ChildCouponVersion
findOneByIsAvailableOnSpecialOffers(
boolean $is_available_on_special_offers)
Return the first ChildCouponVersion filtered by the isavailableonspecialoffers column
at line 116
ChildCouponVersion
findOneByIsUsed(
boolean $is_used)
Return the first ChildCouponVersion filtered by the is_used column
at line 116
ChildCouponVersion
findOneBySerializedConditions(
string $serialized_conditions)
Return the first ChildCouponVersion filtered by the serialized_conditions column
at line 116
ChildCouponVersion
findOneByPerCustomerUsageCount(
boolean $per_customer_usage_count)
Return the first ChildCouponVersion filtered by the percustomerusage_count column
at line 116
ChildCouponVersion
findOneByCreatedAt(
string $created_at)
Return the first ChildCouponVersion filtered by the created_at column
at line 116
ChildCouponVersion
findOneByUpdatedAt(
string $updated_at)
Return the first ChildCouponVersion filtered by the updated_at column
at line 116
ChildCouponVersion
findOneByVersion(
int $version)
Return the first ChildCouponVersion filtered by the version column
at line 116
ChildCouponVersion
findOneByVersionCreatedAt(
string $version_created_at)
Return the first ChildCouponVersion filtered by the versioncreatedat column
at line 116
ChildCouponVersion
findOneByVersionCreatedBy(
string $version_created_by)
Return the first ChildCouponVersion filtered by the versioncreatedby column
at line 116
array
findById(
int $id)
Return ChildCouponVersion objects filtered by the id column
at line 116
array
findByCode(
string $code)
Return ChildCouponVersion objects filtered by the code column
at line 116
array
findByType(
string $type)
Return ChildCouponVersion objects filtered by the type column
at line 116
array
findBySerializedEffects(
string $serialized_effects)
Return ChildCouponVersion objects filtered by the serialized_effects column
at line 116
array
findByIsEnabled(
boolean $is_enabled)
Return ChildCouponVersion objects filtered by the is_enabled column
at line 116
array
findByStartDate(
string $start_date)
Return ChildCouponVersion objects filtered by the start_date column
at line 116
array
findByExpirationDate(
string $expiration_date)
Return ChildCouponVersion objects filtered by the expiration_date column
at line 116
array
findByMaxUsage(
int $max_usage)
Return ChildCouponVersion objects filtered by the max_usage column
at line 116
array
findByIsCumulative(
boolean $is_cumulative)
Return ChildCouponVersion objects filtered by the is_cumulative column
at line 116
array
findByIsRemovingPostage(
boolean $is_removing_postage)
Return ChildCouponVersion objects filtered by the isremovingpostage column
at line 116
array
findByIsAvailableOnSpecialOffers(
boolean $is_available_on_special_offers)
Return ChildCouponVersion objects filtered by the isavailableonspecialoffers column
at line 116
array
findByIsUsed(
boolean $is_used)
Return ChildCouponVersion objects filtered by the is_used column
at line 116
array
findBySerializedConditions(
string $serialized_conditions)
Return ChildCouponVersion objects filtered by the serialized_conditions column
at line 116
array
findByPerCustomerUsageCount(
boolean $per_customer_usage_count)
Return ChildCouponVersion objects filtered by the percustomerusage_count column
at line 116
array
findByCreatedAt(
string $created_at)
Return ChildCouponVersion objects filtered by the created_at column
at line 116
array
findByUpdatedAt(
string $updated_at)
Return ChildCouponVersion objects filtered by the updated_at column
at line 116
array
findByVersion(
int $version)
Return ChildCouponVersion objects filtered by the version column
at line 116
array
findByVersionCreatedAt(
string $version_created_at)
Return ChildCouponVersion objects filtered by the versioncreatedat column
at line 116
array
findByVersionCreatedBy(
string $version_created_by)
Return ChildCouponVersion objects filtered by the versioncreatedby column