$isVersioningEnabled
$isVersioningEnabled
Whether the versioning is enabled
Base class that represents a query for the 'product' table.
__construct(string $dbName, string $modelName, string $modelAlias)
Initializes internal state of \Thelia\Model\Base\ProductQuery object.
| 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' |
create(string $modelAlias, \Propel\Runtime\ActiveQuery\Criteria $criteria) : \Thelia\Model\ProductQuery
Returns a new ChildProductQuery object.
| string | $modelAlias | The alias of a model in the query |
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional Criteria to build the query from |
findPk(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product|array|mixed
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);
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
the result, formatted by the current formatter
findPks(array $keys, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection|array|mixed
Find objects by primary key <code> $objs = $c->findPks(array(12, 56, 832), $con); </code>
| array | $keys | Primary keys to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
the list of results, formatted by the current formatter
filterByPrimaryKey(mixed $key) : \Thelia\Model\ProductQuery
Filter the query by primary key
| mixed | $key | Primary key to use for the query |
The current query, for fluid interface
filterByPrimaryKeys(array $keys) : \Thelia\Model\ProductQuery
Filter the query by a list of primary keys
| array | $keys | The list of primary key to use for the query |
The current query, for fluid interface
filterById(mixed $id, string $comparison) : \Thelia\Model\ProductQuery
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
| 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 |
The current query, for fluid interface
filterByTaxRuleId(mixed $taxRuleId, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the tax_rule_id column
Example usage:
$query->filterByTaxRuleId(1234); // WHERE tax_rule_id = 1234
$query->filterByTaxRuleId(array(12, 34)); // WHERE tax_rule_id IN (12, 34)
$query->filterByTaxRuleId(array('min' => 12)); // WHERE tax_rule_id > 12
| mixed | $taxRuleId | 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 |
The current query, for fluid interface
filterByRef(string $ref, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the ref column
Example usage:
$query->filterByRef('fooValue'); // WHERE ref = 'fooValue'
$query->filterByRef('%fooValue%'); // WHERE ref LIKE '%fooValue%'
| string | $ref | 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 |
The current query, for fluid interface
filterByVisible(mixed $visible, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the visible column
Example usage:
$query->filterByVisible(1234); // WHERE visible = 1234
$query->filterByVisible(array(12, 34)); // WHERE visible IN (12, 34)
$query->filterByVisible(array('min' => 12)); // WHERE visible > 12
| mixed | $visible | 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 |
The current query, for fluid interface
filterByPosition(mixed $position, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the position column
Example usage:
$query->filterByPosition(1234); // WHERE position = 1234
$query->filterByPosition(array(12, 34)); // WHERE position IN (12, 34)
$query->filterByPosition(array('min' => 12)); // WHERE position > 12
| mixed | $position | 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 |
The current query, for fluid interface
filterByCreatedAt(mixed $createdAt, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the created_at column
Example usage:
$query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14'
$query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14'
$query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13'
| 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 |
The current query, for fluid interface
filterByUpdatedAt(mixed $updatedAt, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the updated_at column
Example usage:
$query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14'
$query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14'
$query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13'
| 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 |
The current query, for fluid interface
filterByVersion(mixed $version, string $comparison) : \Thelia\Model\ProductQuery
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
| 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 |
The current query, for fluid interface
filterByVersionCreatedAt(mixed $versionCreatedAt, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the version_created_at column
Example usage:
$query->filterByVersionCreatedAt('2011-03-14'); // WHERE version_created_at = '2011-03-14'
$query->filterByVersionCreatedAt('now'); // WHERE version_created_at = '2011-03-14'
$query->filterByVersionCreatedAt(array('max' => 'yesterday')); // WHERE version_created_at > '2011-03-13'
| 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 |
The current query, for fluid interface
filterByVersionCreatedBy(string $versionCreatedBy, string $comparison) : \Thelia\Model\ProductQuery
Filter the query on the version_created_by column
Example usage:
$query->filterByVersionCreatedBy('fooValue'); // WHERE version_created_by = 'fooValue'
$query->filterByVersionCreatedBy('%fooValue%'); // WHERE version_created_by LIKE '%fooValue%'
| 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 |
The current query, for fluid interface
filterByTaxRule(\Thelia\Model\TaxRule|\Propel\Runtime\Collection\ObjectCollection $taxRule, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\TaxRule object
| \Thelia\Model\TaxRule|\Propel\Runtime\Collection\ObjectCollection | $taxRule | The related object(s) to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinTaxRule(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the TaxRule relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useTaxRuleQuery(string $relationAlias, string $joinType) : \Thelia\Model\TaxRuleQuery
Use the TaxRule relation TaxRule object
| 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' |
A secondary query class using the current class as primary query
filterByProductCategory(\Thelia\Model\ProductCategory|\Propel\Runtime\Collection\ObjectCollection $productCategory, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\ProductCategory object
| \Thelia\Model\ProductCategory|\Propel\Runtime\Collection\ObjectCollection | $productCategory | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinProductCategory(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the ProductCategory relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useProductCategoryQuery(string $relationAlias, string $joinType) : \Thelia\Model\ProductCategoryQuery
Use the ProductCategory relation ProductCategory object
| 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' |
A secondary query class using the current class as primary query
filterByFeatureProduct(\Thelia\Model\FeatureProduct|\Propel\Runtime\Collection\ObjectCollection $featureProduct, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\FeatureProduct object
| \Thelia\Model\FeatureProduct|\Propel\Runtime\Collection\ObjectCollection | $featureProduct | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinFeatureProduct(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the FeatureProduct relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useFeatureProductQuery(string $relationAlias, string $joinType) : \Thelia\Model\FeatureProductQuery
Use the FeatureProduct relation FeatureProduct object
| 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' |
A secondary query class using the current class as primary query
filterByProductSaleElements(\Thelia\Model\ProductSaleElements|\Propel\Runtime\Collection\ObjectCollection $productSaleElements, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\ProductSaleElements object
| \Thelia\Model\ProductSaleElements|\Propel\Runtime\Collection\ObjectCollection | $productSaleElements | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinProductSaleElements(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the ProductSaleElements relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useProductSaleElementsQuery(string $relationAlias, string $joinType) : \Thelia\Model\ProductSaleElementsQuery
Use the ProductSaleElements relation ProductSaleElements object
| 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' |
A secondary query class using the current class as primary query
filterByContentAssoc(\Thelia\Model\ContentAssoc|\Propel\Runtime\Collection\ObjectCollection $contentAssoc, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\ContentAssoc object
| \Thelia\Model\ContentAssoc|\Propel\Runtime\Collection\ObjectCollection | $contentAssoc | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinContentAssoc(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the ContentAssoc relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useContentAssocQuery(string $relationAlias, string $joinType) : \Thelia\Model\ContentAssocQuery
Use the ContentAssoc relation ContentAssoc object
| 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' |
A secondary query class using the current class as primary query
filterByImage(\Thelia\Model\Image|\Propel\Runtime\Collection\ObjectCollection $image, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\Image object
| \Thelia\Model\Image|\Propel\Runtime\Collection\ObjectCollection | $image | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinImage(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the Image relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useImageQuery(string $relationAlias, string $joinType) : \Thelia\Model\ImageQuery
Use the Image relation Image object
| 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' |
A secondary query class using the current class as primary query
filterByDocument(\Thelia\Model\Document|\Propel\Runtime\Collection\ObjectCollection $document, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\Document object
| \Thelia\Model\Document|\Propel\Runtime\Collection\ObjectCollection | $document | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinDocument(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the Document relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useDocumentQuery(string $relationAlias, string $joinType) : \Thelia\Model\DocumentQuery
Use the Document relation Document object
| 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' |
A secondary query class using the current class as primary query
filterByAccessoryRelatedByProductId(\Thelia\Model\Accessory|\Propel\Runtime\Collection\ObjectCollection $accessory, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\Accessory object
| \Thelia\Model\Accessory|\Propel\Runtime\Collection\ObjectCollection | $accessory | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinAccessoryRelatedByProductId(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the AccessoryRelatedByProductId relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useAccessoryRelatedByProductIdQuery(string $relationAlias, string $joinType) : \Thelia\Model\AccessoryQuery
Use the AccessoryRelatedByProductId relation Accessory object
| 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' |
A secondary query class using the current class as primary query
filterByAccessoryRelatedByAccessory(\Thelia\Model\Accessory|\Propel\Runtime\Collection\ObjectCollection $accessory, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\Accessory object
| \Thelia\Model\Accessory|\Propel\Runtime\Collection\ObjectCollection | $accessory | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinAccessoryRelatedByAccessory(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the AccessoryRelatedByAccessory relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useAccessoryRelatedByAccessoryQuery(string $relationAlias, string $joinType) : \Thelia\Model\AccessoryQuery
Use the AccessoryRelatedByAccessory relation Accessory object
| 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' |
A secondary query class using the current class as primary query
filterByRewriting(\Thelia\Model\Rewriting|\Propel\Runtime\Collection\ObjectCollection $rewriting, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\Rewriting object
| \Thelia\Model\Rewriting|\Propel\Runtime\Collection\ObjectCollection | $rewriting | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinRewriting(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the Rewriting relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useRewritingQuery(string $relationAlias, string $joinType) : \Thelia\Model\RewritingQuery
Use the Rewriting relation Rewriting object
| 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' |
A secondary query class using the current class as primary query
filterByCartItem(\Thelia\Model\CartItem|\Propel\Runtime\Collection\ObjectCollection $cartItem, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\CartItem object
| \Thelia\Model\CartItem|\Propel\Runtime\Collection\ObjectCollection | $cartItem | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinCartItem(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the CartItem relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useCartItemQuery(string $relationAlias, string $joinType) : \Thelia\Model\CartItemQuery
Use the CartItem relation CartItem object
| 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' |
A secondary query class using the current class as primary query
filterByProductI18n(\Thelia\Model\ProductI18n|\Propel\Runtime\Collection\ObjectCollection $productI18n, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\ProductI18n object
| \Thelia\Model\ProductI18n|\Propel\Runtime\Collection\ObjectCollection | $productI18n | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinProductI18n(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the ProductI18n relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useProductI18nQuery(string $relationAlias, string $joinType) : \Thelia\Model\ProductI18nQuery
Use the ProductI18n relation ProductI18n object
| 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' |
A secondary query class using the current class as primary query
filterByProductVersion(\Thelia\Model\ProductVersion|\Propel\Runtime\Collection\ObjectCollection $productVersion, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related \Thelia\Model\ProductVersion object
| \Thelia\Model\ProductVersion|\Propel\Runtime\Collection\ObjectCollection | $productVersion | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinProductVersion(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the ProductVersion relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useProductVersionQuery(string $relationAlias, string $joinType) : \Thelia\Model\ProductVersionQuery
Use the ProductVersion relation ProductVersion object
| 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' |
A secondary query class using the current class as primary query
filterByCategory(\Thelia\Model\Base\Category $category, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related Category object using the product_category table as cross reference
| \Thelia\Model\Base\Category | $category | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
filterByProductRelatedByAccessory(\Thelia\Model\Base\Product $product, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related Product object using the accessory table as cross reference
| \Thelia\Model\Base\Product | $product | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
filterByProductRelatedByProductId(\Thelia\Model\Base\Product $product, string $comparison) : \Thelia\Model\ProductQuery
Filter the query by a related Product object using the accessory table as cross reference
| \Thelia\Model\Base\Product | $product | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
prune(\Thelia\Model\Product $product) : \Thelia\Model\ProductQuery
Exclude object from result
| \Thelia\Model\Product | $product | Object to remove from the list of results |
The current query, for fluid interface
delete(\Propel\Runtime\Connection\ConnectionInterface $con) : int
Performs a DELETE on the database, given a ChildProduct or Criteria object OR a primary key value.
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
Any exceptions caught during processing will be rethrown wrapped into a PropelException.
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.
recentlyUpdated(int $nbDays) : \Thelia\Model\ProductQuery
Filter by the latest updated
| int | $nbDays | Maximum age of the latest update in days |
The current query, for fluid interface
recentlyCreated(int $nbDays) : \Thelia\Model\ProductQuery
Filter by the latest created
| int | $nbDays | Maximum age of in days |
The current query, for fluid interface
lastUpdatedFirst() : \Thelia\Model\ProductQuery
Order by update date desc
The current query, for fluid interface
firstUpdatedFirst() : \Thelia\Model\ProductQuery
Order by update date asc
The current query, for fluid interface
lastCreatedFirst() : \Thelia\Model\ProductQuery
Order by create date desc
The current query, for fluid interface
firstCreatedFirst() : \Thelia\Model\ProductQuery
Order by create date asc
The current query, for fluid interface
joinI18n(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query using the i18n relation
| 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. |
The current query, for fluid interface
joinWithI18n(string $locale, string $joinType) : \Thelia\Model\ProductQuery
Adds a JOIN clause to the query and hydrates the related I18n object.
Shortcut for $c->joinI18n($locale)->with()
| 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. |
The current query, for fluid interface
useI18nQuery(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ProductI18nQuery
Use the I18n relation query object
| 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. |
A secondary query class using the current class as primary query
findPkSimple(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Find object by primary key using raw SQL to go fast.
Bypass doSelect() and the object formatter by using generated code.
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | A connection object |
A model object, or null if the key is not found
findPkComplex(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product|array|mixed
Find object by primary key.
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | A connection object |
the result, formatted by the current formatter