TABLE_MAP
TABLE_MAP
TableMap class name
$aTaxRule : \Thelia\Model\Base\TaxRule
equals( $obj) : \Thelia\Model\Base\Whether
Compares this with another <code>Product</code> instance. If <code>obj</code> is an instance of <code>Product</code>, delegates to <code>equals(Product)</code>. Otherwise, returns <code>false</code>.
| $obj |
equal to the object specified.
setVirtualColumn(string $name, mixed $value) : \Thelia\Model\Base\Product
Set the value of a virtual column in this object
| string | $name | The virtual column name |
| mixed | $value | The value to give to the virtual column |
The current object, for fluid interface
importFrom(mixed $parser, string $data) : \Thelia\Model\Base\Product
Populate the current object from a string, using a given parser format <code> $book = new Book(); $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); </code>
| mixed | $parser | A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') |
| string | $data | The source data to import from |
The current object, for fluid interface
exportTo(mixed $parser, boolean $includeLazyLoadColumns) : string
Export the current object properties to a string, using a given parser format <code> $book = BookQuery::create()->findPk(9012); echo $book->exportTo('JSON'); => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); </code>
| mixed | $parser | A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') |
| boolean | $includeLazyLoadColumns | (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. |
The exported data
getCreatedAt(string $format) : mixed
Get the [optionally formatted] temporal [created_at] column value.
| string | $format | The date/time format string (either date()-style or strftime()-style). If format is NULL, then the raw \DateTime object will be returned. |
Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00
getUpdatedAt(string $format) : mixed
Get the [optionally formatted] temporal [updated_at] column value.
| string | $format | The date/time format string (either date()-style or strftime()-style). If format is NULL, then the raw \DateTime object will be returned. |
Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00
getVersionCreatedAt(string $format) : mixed
Get the [optionally formatted] temporal [version_created_at] column value.
| string | $format | The date/time format string (either date()-style or strftime()-style). If format is NULL, then the raw \DateTime object will be returned. |
Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00
setId(int $v) : \Thelia\Model\Product
Set the value of [id] column.
| int | $v | new value |
The current object (for fluent API support)
setTaxRuleId(int $v) : \Thelia\Model\Product
Set the value of [tax_rule_id] column.
| int | $v | new value |
The current object (for fluent API support)
setRef(string $v) : \Thelia\Model\Product
Set the value of [ref] column.
| string | $v | new value |
The current object (for fluent API support)
setVisible(int $v) : \Thelia\Model\Product
Set the value of [visible] column.
| int | $v | new value |
The current object (for fluent API support)
setPosition(int $v) : \Thelia\Model\Product
Set the value of [position] column.
| int | $v | new value |
The current object (for fluent API support)
setCreatedAt(mixed $v) : \Thelia\Model\Product
Sets the value of [created_at] column to a normalized version of the date/time value specified.
| mixed | $v | string, integer (timestamp), or \DateTime value. Empty strings are treated as NULL. |
The current object (for fluent API support)
setUpdatedAt(mixed $v) : \Thelia\Model\Product
Sets the value of [updated_at] column to a normalized version of the date/time value specified.
| mixed | $v | string, integer (timestamp), or \DateTime value. Empty strings are treated as NULL. |
The current object (for fluent API support)
setVersion(int $v) : \Thelia\Model\Product
Set the value of [version] column.
| int | $v | new value |
The current object (for fluent API support)
setVersionCreatedAt(mixed $v) : \Thelia\Model\Product
Sets the value of [version_created_at] column to a normalized version of the date/time value specified.
| mixed | $v | string, integer (timestamp), or \DateTime value. Empty strings are treated as NULL. |
The current object (for fluent API support)
setVersionCreatedBy(string $v) : \Thelia\Model\Product
Set the value of [version_created_by] column.
| string | $v | new value |
The current object (for fluent API support)
hasOnlyDefaultValues() : boolean
Indicates whether the columns in this object are only set to default values.
This method can be used in conjunction with isModified() to indicate whether an object is both modified and has some values set which are non-default.
Whether the columns in this object are only been set with default values.
hydrate(array $row, int $startcol, boolean $rehydrate, string $indexType) : int
Hydrates (populates) the object variables with values from the database resultset.
An offset (0-based "start column") is specified so that objects can be hydrated with a subset of the columns in the resultset rows. This is needed, for example, for results of JOIN queries where the resultset row includes columns from two or more tables.
| array | $row | The row returned by DataFetcher->fetch(). |
| int | $startcol | 0-based offset column which indicates which restultset column to start with. |
| boolean | $rehydrate | Whether this object is being re-hydrated from the database. |
| string | $indexType | The index type of $row. Mostly DataFetcher->getIndexType(). One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
next starting column
ensureConsistency()
Checks and repairs the internal consistency of the object.
This method is executed after an already-instantiated object is re-hydrated from the database. It exists to check any foreign keys to make sure that the objects related to the current object are correct based on foreign key.
You can override this method in the stub class, but you should always invoke the base method from the overridden method (i.e. parent::ensureConsistency()), in case your model changes.
reload(boolean $deep, \Propel\Runtime\Connection\ConnectionInterface $con) : void
Reloads this object from datastore based on primary key and (optionally) resets all associated objects.
This will only work if the object has been saved and has a valid primary key set.
| boolean | $deep | (optional) Whether to also de-associated any related objects. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | (optional) The ConnectionInterface connection to use. |
save(\Propel\Runtime\Connection\ConnectionInterface $con) : int
Persists this object to the database.
If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction.
| \Propel\Runtime\Connection\ConnectionInterface | $con |
The number of rows affected by this insert/update and any referring fk objects' save() operations.
getByName(string $name, string $type) : mixed
Retrieves a field from the object by name passed in as a string.
| string | $name | name |
| string | $type | The type of fieldname the $name is of: one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. Defaults to TableMap::TYPE_PHPNAME. |
Value of field.
toArray(string $keyType, boolean $includeLazyLoadColumns, array $alreadyDumpedObjects, boolean $includeForeignObjects) : array
Exports the object as an array.
You can specify the key type of the array by passing one of the class type constants.
| string | $keyType | (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. Defaults to TableMap::TYPE_PHPNAME. |
| boolean | $includeLazyLoadColumns | (optional) Whether to include lazy loaded columns. Defaults to TRUE. |
| array | $alreadyDumpedObjects | List of objects to skip to avoid recursion |
| boolean | $includeForeignObjects | (optional) Whether to include hydrated related objects. Default to FALSE. |
an associative array containing the field names (as keys) and field values
setByName(string $name, mixed $value, string $type) : void
Sets a field from the object by name passed in as a string.
| string | $name | |
| mixed | $value | field value |
| string | $type | The type of fieldname the $name is of: one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. Defaults to TableMap::TYPE_PHPNAME. |
fromArray(array $arr, string $keyType) : void
Populates the object using an array.
This is particularly useful when populating an object from one of the request arrays (e.g. $_POST). This method goes through the column names, checking to see whether a matching key exists in populated array. If so the setByName() method is called for that column.
You can specify the key type of the array by additionally passing one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. The default key type is the column's TableMap::TYPE_PHPNAME.
| array | $arr | An array to populate the object from. |
| string | $keyType | The type of keys the array uses. |
buildPkeyCriteria() : \Propel\Runtime\ActiveQuery\Criteria
Builds a Criteria object containing the primary key for this object.
Unlike buildCriteria() this method includes the primary key values regardless of whether or not they have been modified.
The Criteria object containing value(s) for primary key(s).
copyInto(object $copyObj, boolean $deepCopy, boolean $makeNew)
Sets contents of passed object to values from current object.
If desired, this method can also make copies of all associated (fkey referrers) objects.
| object | $copyObj | An object of \Thelia\Model\Product (or compatible) type. |
| boolean | $deepCopy | Whether to also copy all rows that refer (by fkey) to the current row. |
| boolean | $makeNew | Whether to reset autoincrement PKs and make the object new. |
copy(boolean $deepCopy) : \Thelia\Model\Product
Makes a copy of this object that will be inserted as a new row in table when saved.
It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table.
If desired, this method can also make copies of all associated (fkey referrers) objects.
| boolean | $deepCopy | Whether to also copy all rows that refer (by fkey) to the current row. |
Clone of current object.
setTaxRule(\Thelia\Model\TaxRule $v) : \Thelia\Model\Product
Declares an association between this object and a ChildTaxRule object.
| \Thelia\Model\TaxRule | $v |
The current object (for fluent API support)
getTaxRule(\Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\TaxRule
Get the associated ChildTaxRule object
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional Connection object. |
The associated ChildTaxRule object.
initProductCategories(boolean $overrideExisting) : void
Initializes the collProductCategories collection.
By default this just sets the collProductCategories collection to an empty array (like clearcollProductCategories()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getProductCategories(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ProductCategory[]
Gets an array of ChildProductCategory objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildProductCategory objects
setProductCategories(\Propel\Runtime\Collection\Collection $productCategories, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of ProductCategory objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $productCategories | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countProductCategories(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related ProductCategory objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related ProductCategory objects.
addProductCategory(\Thelia\Model\ProductCategory $l) : \Thelia\Model\Product
Method called to associate a ChildProductCategory object to this object through the ChildProductCategory foreign key attribute.
| \Thelia\Model\ProductCategory | $l | ChildProductCategory |
The current object (for fluent API support)
removeProductCategory(\Thelia\Model\Base\ProductCategory $productCategory) : \Thelia\Model\Product
| \Thelia\Model\Base\ProductCategory | $productCategory | The productCategory object to remove. |
The current object (for fluent API support)
getProductCategoriesJoinCategory(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ProductCategory[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related ProductCategories from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildProductCategory objects
initFeatureProducts(boolean $overrideExisting) : void
Initializes the collFeatureProducts collection.
By default this just sets the collFeatureProducts collection to an empty array (like clearcollFeatureProducts()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getFeatureProducts(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\FeatureProduct[]
Gets an array of ChildFeatureProduct objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildFeatureProduct objects
setFeatureProducts(\Propel\Runtime\Collection\Collection $featureProducts, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of FeatureProduct objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $featureProducts | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countFeatureProducts(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related FeatureProduct objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related FeatureProduct objects.
addFeatureProduct(\Thelia\Model\FeatureProduct $l) : \Thelia\Model\Product
Method called to associate a ChildFeatureProduct object to this object through the ChildFeatureProduct foreign key attribute.
| \Thelia\Model\FeatureProduct | $l | ChildFeatureProduct |
The current object (for fluent API support)
removeFeatureProduct(\Thelia\Model\Base\FeatureProduct $featureProduct) : \Thelia\Model\Product
| \Thelia\Model\Base\FeatureProduct | $featureProduct | The featureProduct object to remove. |
The current object (for fluent API support)
getFeatureProductsJoinFeature(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\FeatureProduct[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related FeatureProducts from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildFeatureProduct objects
getFeatureProductsJoinFeatureAv(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\FeatureProduct[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related FeatureProducts from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildFeatureProduct objects
initProductSaleElementss(boolean $overrideExisting) : void
Initializes the collProductSaleElementss collection.
By default this just sets the collProductSaleElementss collection to an empty array (like clearcollProductSaleElementss()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getProductSaleElementss(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ProductSaleElements[]
Gets an array of ChildProductSaleElements objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildProductSaleElements objects
setProductSaleElementss(\Propel\Runtime\Collection\Collection $productSaleElementss, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of ProductSaleElements objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $productSaleElementss | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countProductSaleElementss(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related ProductSaleElements objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related ProductSaleElements objects.
addProductSaleElements(\Thelia\Model\ProductSaleElements $l) : \Thelia\Model\Product
Method called to associate a ChildProductSaleElements object to this object through the ChildProductSaleElements foreign key attribute.
| \Thelia\Model\ProductSaleElements | $l | ChildProductSaleElements |
The current object (for fluent API support)
removeProductSaleElements(\Thelia\Model\Base\ProductSaleElements $productSaleElements) : \Thelia\Model\Product
| \Thelia\Model\Base\ProductSaleElements | $productSaleElements | The productSaleElements object to remove. |
The current object (for fluent API support)
initContentAssocs(boolean $overrideExisting) : void
Initializes the collContentAssocs collection.
By default this just sets the collContentAssocs collection to an empty array (like clearcollContentAssocs()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getContentAssocs(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ContentAssoc[]
Gets an array of ChildContentAssoc objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildContentAssoc objects
setContentAssocs(\Propel\Runtime\Collection\Collection $contentAssocs, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of ContentAssoc objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $contentAssocs | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countContentAssocs(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related ContentAssoc objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related ContentAssoc objects.
addContentAssoc(\Thelia\Model\ContentAssoc $l) : \Thelia\Model\Product
Method called to associate a ChildContentAssoc object to this object through the ChildContentAssoc foreign key attribute.
| \Thelia\Model\ContentAssoc | $l | ChildContentAssoc |
The current object (for fluent API support)
removeContentAssoc(\Thelia\Model\Base\ContentAssoc $contentAssoc) : \Thelia\Model\Product
| \Thelia\Model\Base\ContentAssoc | $contentAssoc | The contentAssoc object to remove. |
The current object (for fluent API support)
getContentAssocsJoinCategory(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ContentAssoc[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related ContentAssocs from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildContentAssoc objects
getContentAssocsJoinContent(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ContentAssoc[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related ContentAssocs from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildContentAssoc objects
initImages(boolean $overrideExisting) : void
Initializes the collImages collection.
By default this just sets the collImages collection to an empty array (like clearcollImages()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getImages(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Image[]
Gets an array of ChildImage objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildImage objects
setImages(\Propel\Runtime\Collection\Collection $images, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of Image objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $images | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countImages(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related Image objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related Image objects.
addImage(\Thelia\Model\Image $l) : \Thelia\Model\Product
Method called to associate a ChildImage object to this object through the ChildImage foreign key attribute.
| \Thelia\Model\Image | $l | ChildImage |
The current object (for fluent API support)
removeImage(\Thelia\Model\Base\Image $image) : \Thelia\Model\Product
| \Thelia\Model\Base\Image | $image | The image object to remove. |
The current object (for fluent API support)
getImagesJoinCategory(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Image[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Images from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildImage objects
getImagesJoinContent(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Image[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Images from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildImage objects
getImagesJoinFolder(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Image[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Images from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildImage objects
initDocuments(boolean $overrideExisting) : void
Initializes the collDocuments collection.
By default this just sets the collDocuments collection to an empty array (like clearcollDocuments()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getDocuments(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Document[]
Gets an array of ChildDocument objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildDocument objects
setDocuments(\Propel\Runtime\Collection\Collection $documents, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of Document objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $documents | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countDocuments(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related Document objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related Document objects.
addDocument(\Thelia\Model\Document $l) : \Thelia\Model\Product
Method called to associate a ChildDocument object to this object through the ChildDocument foreign key attribute.
| \Thelia\Model\Document | $l | ChildDocument |
The current object (for fluent API support)
removeDocument(\Thelia\Model\Base\Document $document) : \Thelia\Model\Product
| \Thelia\Model\Base\Document | $document | The document object to remove. |
The current object (for fluent API support)
getDocumentsJoinCategory(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Document[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildDocument objects
getDocumentsJoinContent(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Document[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildDocument objects
getDocumentsJoinFolder(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Document[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildDocument objects
initAccessoriesRelatedByProductId(boolean $overrideExisting) : void
Initializes the collAccessoriesRelatedByProductId collection.
By default this just sets the collAccessoriesRelatedByProductId collection to an empty array (like clearcollAccessoriesRelatedByProductId()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getAccessoriesRelatedByProductId(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Accessory[]
Gets an array of ChildAccessory objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildAccessory objects
setAccessoriesRelatedByProductId(\Propel\Runtime\Collection\Collection $accessoriesRelatedByProductId, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of AccessoryRelatedByProductId objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $accessoriesRelatedByProductId | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countAccessoriesRelatedByProductId(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related Accessory objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related Accessory objects.
addAccessoryRelatedByProductId(\Thelia\Model\Accessory $l) : \Thelia\Model\Product
Method called to associate a ChildAccessory object to this object through the ChildAccessory foreign key attribute.
| \Thelia\Model\Accessory | $l | ChildAccessory |
The current object (for fluent API support)
removeAccessoryRelatedByProductId(\Thelia\Model\Base\AccessoryRelatedByProductId $accessoryRelatedByProductId) : \Thelia\Model\Product
| \Thelia\Model\Base\AccessoryRelatedByProductId | $accessoryRelatedByProductId | The accessoryRelatedByProductId object to remove. |
The current object (for fluent API support)
initAccessoriesRelatedByAccessory(boolean $overrideExisting) : void
Initializes the collAccessoriesRelatedByAccessory collection.
By default this just sets the collAccessoriesRelatedByAccessory collection to an empty array (like clearcollAccessoriesRelatedByAccessory()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getAccessoriesRelatedByAccessory(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Accessory[]
Gets an array of ChildAccessory objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildAccessory objects
setAccessoriesRelatedByAccessory(\Propel\Runtime\Collection\Collection $accessoriesRelatedByAccessory, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of AccessoryRelatedByAccessory objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $accessoriesRelatedByAccessory | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countAccessoriesRelatedByAccessory(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related Accessory objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related Accessory objects.
addAccessoryRelatedByAccessory(\Thelia\Model\Accessory $l) : \Thelia\Model\Product
Method called to associate a ChildAccessory object to this object through the ChildAccessory foreign key attribute.
| \Thelia\Model\Accessory | $l | ChildAccessory |
The current object (for fluent API support)
removeAccessoryRelatedByAccessory(\Thelia\Model\Base\AccessoryRelatedByAccessory $accessoryRelatedByAccessory) : \Thelia\Model\Product
| \Thelia\Model\Base\AccessoryRelatedByAccessory | $accessoryRelatedByAccessory | The accessoryRelatedByAccessory object to remove. |
The current object (for fluent API support)
initRewritings(boolean $overrideExisting) : void
Initializes the collRewritings collection.
By default this just sets the collRewritings collection to an empty array (like clearcollRewritings()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getRewritings(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Rewriting[]
Gets an array of ChildRewriting objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildRewriting objects
setRewritings(\Propel\Runtime\Collection\Collection $rewritings, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of Rewriting objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $rewritings | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countRewritings(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related Rewriting objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related Rewriting objects.
addRewriting(\Thelia\Model\Rewriting $l) : \Thelia\Model\Product
Method called to associate a ChildRewriting object to this object through the ChildRewriting foreign key attribute.
| \Thelia\Model\Rewriting | $l | ChildRewriting |
The current object (for fluent API support)
removeRewriting(\Thelia\Model\Base\Rewriting $rewriting) : \Thelia\Model\Product
| \Thelia\Model\Base\Rewriting | $rewriting | The rewriting object to remove. |
The current object (for fluent API support)
getRewritingsJoinCategory(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Rewriting[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Rewritings from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildRewriting objects
getRewritingsJoinFolder(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Rewriting[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Rewritings from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildRewriting objects
getRewritingsJoinContent(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\Rewriting[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related Rewritings from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildRewriting objects
initCartItems(boolean $overrideExisting) : void
Initializes the collCartItems collection.
By default this just sets the collCartItems collection to an empty array (like clearcollCartItems()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getCartItems(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\CartItem[]
Gets an array of ChildCartItem objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildCartItem objects
setCartItems(\Propel\Runtime\Collection\Collection $cartItems, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of CartItem objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $cartItems | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countCartItems(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related CartItem objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related CartItem objects.
addCartItem(\Thelia\Model\CartItem $l) : \Thelia\Model\Product
Method called to associate a ChildCartItem object to this object through the ChildCartItem foreign key attribute.
| \Thelia\Model\CartItem | $l | ChildCartItem |
The current object (for fluent API support)
removeCartItem(\Thelia\Model\Base\CartItem $cartItem) : \Thelia\Model\Product
| \Thelia\Model\Base\CartItem | $cartItem | The cartItem object to remove. |
The current object (for fluent API support)
getCartItemsJoinCart(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\CartItem[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related CartItems from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildCartItem objects
getCartItemsJoinProductSaleElements(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con, string $joinBehavior) : \Propel\Runtime\Collection\Collection|\Thelia\Model\CartItem[]
If this collection has already been initialized with an identical criteria, it returns the collection.
Otherwise if this Product is new, it will return an empty collection; or if this Product has previously been saved, it will retrieve related CartItems from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in Product.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
| string | $joinBehavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
List of ChildCartItem objects
initProductI18ns(boolean $overrideExisting) : void
Initializes the collProductI18ns collection.
By default this just sets the collProductI18ns collection to an empty array (like clearcollProductI18ns()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getProductI18ns(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ProductI18n[]
Gets an array of ChildProductI18n objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildProductI18n objects
setProductI18ns(\Propel\Runtime\Collection\Collection $productI18ns, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of ProductI18n objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $productI18ns | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countProductI18ns(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related ProductI18n objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related ProductI18n objects.
addProductI18n(\Thelia\Model\ProductI18n $l) : \Thelia\Model\Product
Method called to associate a ChildProductI18n object to this object through the ChildProductI18n foreign key attribute.
| \Thelia\Model\ProductI18n | $l | ChildProductI18n |
The current object (for fluent API support)
removeProductI18n(\Thelia\Model\Base\ProductI18n $productI18n) : \Thelia\Model\Product
| \Thelia\Model\Base\ProductI18n | $productI18n | The productI18n object to remove. |
The current object (for fluent API support)
initProductVersions(boolean $overrideExisting) : void
Initializes the collProductVersions collection.
By default this just sets the collProductVersions collection to an empty array (like clearcollProductVersions()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
| boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
getProductVersions(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\Collection|\Thelia\Model\ProductVersion[]
Gets an array of ChildProductVersion objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | optional Criteria object to narrow the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | optional connection object |
List of ChildProductVersion objects
setProductVersions(\Propel\Runtime\Collection\Collection $productVersions, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of ProductVersion objects related by a one-to-many relationship to the current object.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $productVersions | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countProductVersions(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Returns the number of related ProductVersion objects.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | |
| boolean | $distinct | |
| \Propel\Runtime\Connection\ConnectionInterface | $con |
Count of related ProductVersion objects.
addProductVersion(\Thelia\Model\ProductVersion $l) : \Thelia\Model\Product
Method called to associate a ChildProductVersion object to this object through the ChildProductVersion foreign key attribute.
| \Thelia\Model\ProductVersion | $l | ChildProductVersion |
The current object (for fluent API support)
removeProductVersion(\Thelia\Model\Base\ProductVersion $productVersion) : \Thelia\Model\Product
| \Thelia\Model\Base\ProductVersion | $productVersion | The productVersion object to remove. |
The current object (for fluent API support)
initCategories() : void
Initializes the collCategories collection.
By default this just sets the collCategories collection to an empty collection (like clearCategories()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
getCategories(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection|\Thelia\Model\Category[]
Gets a collection of ChildCategory objects related by a many-to-many relationship to the current object by way of the product_category cross-reference table.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional query object to filter the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
List of ChildCategory objects
setCategories(\Propel\Runtime\Collection\Collection $categories, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of Category objects related by a many-to-many relationship to the current object by way of the product_category cross-reference table.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $categories | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countCategories(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Gets the number of ChildCategory objects related by a many-to-many relationship to the current object by way of the product_category cross-reference table.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional query object to filter the query |
| boolean | $distinct | Set to true to force count distinct |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
the number of related ChildCategory objects
addCategory(\Thelia\Model\Category $category) : \Thelia\Model\Product
Associate a ChildCategory object to this object through the product_category cross reference table.
| \Thelia\Model\Category | $category | The ChildProductCategory object to relate |
The current object (for fluent API support)
removeCategory(\Thelia\Model\Category $category) : \Thelia\Model\Product
Remove a ChildCategory object to this object through the product_category cross reference table.
| \Thelia\Model\Category | $category | The ChildProductCategory object to relate |
The current object (for fluent API support)
initProductsRelatedByAccessory() : void
Initializes the collProductsRelatedByAccessory collection.
By default this just sets the collProductsRelatedByAccessory collection to an empty collection (like clearProductsRelatedByAccessory()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
getProductsRelatedByAccessory(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection|\Thelia\Model\Product[]
Gets a collection of ChildProduct objects related by a many-to-many relationship to the current object by way of the accessory cross-reference table.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional query object to filter the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
List of ChildProduct objects
setProductsRelatedByAccessory(\Propel\Runtime\Collection\Collection $productsRelatedByAccessory, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of Product objects related by a many-to-many relationship to the current object by way of the accessory cross-reference table.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $productsRelatedByAccessory | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countProductsRelatedByAccessory(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Gets the number of ChildProduct objects related by a many-to-many relationship to the current object by way of the accessory cross-reference table.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional query object to filter the query |
| boolean | $distinct | Set to true to force count distinct |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
the number of related ChildProduct objects
addProductRelatedByAccessory(\Thelia\Model\Product $product) : \Thelia\Model\Product
Associate a ChildProduct object to this object through the accessory cross reference table.
| \Thelia\Model\Product | $product | The ChildAccessory object to relate |
The current object (for fluent API support)
removeProductRelatedByAccessory(\Thelia\Model\Product $product) : \Thelia\Model\Product
Remove a ChildProduct object to this object through the accessory cross reference table.
| \Thelia\Model\Product | $product | The ChildAccessory object to relate |
The current object (for fluent API support)
initProductsRelatedByProductId() : void
Initializes the collProductsRelatedByProductId collection.
By default this just sets the collProductsRelatedByProductId collection to an empty collection (like clearProductsRelatedByProductId()); however, you may wish to override this method in your stub class to provide setting appropriate to your application -- for example, setting the initial array to the values stored in database.
getProductsRelatedByProductId(\Propel\Runtime\ActiveQuery\Criteria $criteria, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection|\Thelia\Model\Product[]
Gets a collection of ChildProduct objects related by a many-to-many relationship to the current object by way of the accessory cross-reference table.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this ChildProduct is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional query object to filter the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
List of ChildProduct objects
setProductsRelatedByProductId(\Propel\Runtime\Collection\Collection $productsRelatedByProductId, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets a collection of Product objects related by a many-to-many relationship to the current object by way of the accessory cross-reference table.
It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
| \Propel\Runtime\Collection\Collection | $productsRelatedByProductId | A Propel collection. |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
The current object (for fluent API support)
countProductsRelatedByProductId(\Propel\Runtime\ActiveQuery\Criteria $criteria, boolean $distinct, \Propel\Runtime\Connection\ConnectionInterface $con) : int
Gets the number of ChildProduct objects related by a many-to-many relationship to the current object by way of the accessory cross-reference table.
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional query object to filter the query |
| boolean | $distinct | Set to true to force count distinct |
| \Propel\Runtime\Connection\ConnectionInterface | $con | Optional connection object |
the number of related ChildProduct objects
addProductRelatedByProductId(\Thelia\Model\Product $product) : \Thelia\Model\Product
Associate a ChildProduct object to this object through the accessory cross reference table.
| \Thelia\Model\Product | $product | The ChildAccessory object to relate |
The current object (for fluent API support)
removeProductRelatedByProductId(\Thelia\Model\Product $product) : \Thelia\Model\Product
Remove a ChildProduct object to this object through the accessory cross reference table.
| \Thelia\Model\Product | $product | The ChildAccessory object to relate |
The current object (for fluent API support)
clearAllReferences(boolean $deep)
Resets all references to other model objects or collections of model objects.
This method is a user-space workaround for PHP's inability to garbage collect objects with circular references (even in PHP 5.3). This is currently necessary when using Propel in certain daemon or large-volume/high-memory operations.
| boolean | $deep | Whether to also clear the references on all referrer objects. |
keepUpdateDateUnchanged() : \Thelia\Model\Product
Mark the current object so that the update date doesn't get updated during next save
The current object (for fluent API support)
setLocale(string $locale) : \Thelia\Model\Product
Sets the locale for translations
| string | $locale | Locale to use for the translation, e.g. 'fr_FR' |
The current object (for fluent API support)
getTranslation(string $locale, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\ProductI18n
Returns the current translation for a given locale
| string | $locale | Locale to use for the translation, e.g. 'fr_FR' |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
removeTranslation(string $locale, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Remove the translation for a given locale
| string | $locale | Locale to use for the translation, e.g. 'fr_FR' |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
The current object (for fluent API support)
getCurrentTranslation(\Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\ProductI18n
Returns the current translation
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
setTitle(string $v) : \Thelia\Model\ProductI18n
Set the value of [title] column.
| string | $v | new value |
The current object (for fluent API support)
setDescription(string $v) : \Thelia\Model\ProductI18n
Set the value of [description] column.
| string | $v | new value |
The current object (for fluent API support)
setChapo(string $v) : \Thelia\Model\ProductI18n
Set the value of [chapo] column.
| string | $v | new value |
The current object (for fluent API support)
setPostscriptum(string $v) : \Thelia\Model\ProductI18n
Set the value of [postscriptum] column.
| string | $v | new value |
The current object (for fluent API support)
enforceVersioning() : \Thelia\Model\Product
Enforce a new Version of this object upon next save.
addVersion(\Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\ProductVersion
Creates a version of the current object and saves it.
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
A version object
toVersion(integer $versionNumber, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Product
Sets the properties of the current object to the value they had at a specific version
| integer | $versionNumber | The version number to read |
| \Propel\Runtime\Connection\ConnectionInterface | $con | The connection to use |
The current object (for fluent API support)
populateFromVersion(\Thelia\Model\ProductVersion $version, \Propel\Runtime\Connection\ConnectionInterface $con, array $loadedObjects) : \Thelia\Model\Product
Sets the properties of the current object to the value they had at a specific version
| \Thelia\Model\ProductVersion | $version | The version object to use |
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
| array | $loadedObjects | objects that been loaded in a chain of populateFromVersion calls on referrer or fk objects. |
The current object (for fluent API support)
getOneVersion(integer $versionNumber, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\ProductVersion
Retrieves a version object for this entity and a version number
| integer | $versionNumber | The version number to read |
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
A version object
getAllVersions(\Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection
Gets all the versions of this object, in incremental order
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
A list of ChildProductVersion objects
compareVersion(integer $versionNumber, string $keys, \Propel\Runtime\Connection\ConnectionInterface $con, array $ignoredColumns) : array
Compares the current object with another of its version.
print_r($book->compareVersion(1));
=> array(
'1' => array('Title' => 'Book title at version 1'),
'2' => array('Title' => 'Book title at version 2')
);
| integer | $versionNumber | |
| string | $keys | Main key used for the result diff (versions|columns) |
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
| array | $ignoredColumns | The columns to exclude from the diff. |
A list of differences
compareVersions(integer $fromVersionNumber, integer $toVersionNumber, string $keys, \Propel\Runtime\Connection\ConnectionInterface $con, array $ignoredColumns) : array
Compares two versions of the current object.
print_r($book->compareVersions(1, 2));
=> array(
'1' => array('Title' => 'Book title at version 1'),
'2' => array('Title' => 'Book title at version 2')
);
| integer | $fromVersionNumber | |
| integer | $toVersionNumber | |
| string | $keys | Main key used for the result diff (versions|columns) |
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
| array | $ignoredColumns | The columns to exclude from the diff. |
A list of differences
getLastVersions(Integer $number, $criteria, $con) : \Thelia\Model\Base\PropelCollection|array
retrieve the last $number versions.
| Integer | $number | the number of record to return. |
| $criteria | ||
| $con |
\Thelia\Model\ProductVersion[] List of \Thelia\Model\ProductVersion objects
__call(string $name, mixed $params) : array|string
Derived method to catches calls to undefined methods.
Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). Allows to define default __call() behavior if you overwrite __call()
| string | $name | |
| mixed | $params |
doSave(\Propel\Runtime\Connection\ConnectionInterface $con) : int
Performs the work of inserting or updating the row in the database.
If the object is new, it inserts it; otherwise an update is performed. All related objects are also updated in this method.
| \Propel\Runtime\Connection\ConnectionInterface | $con |
The number of rows affected by this insert/update and any referring fk objects' save() operations.
doAddProductCategory(\Thelia\Model\Base\ProductCategory $productCategory)
| \Thelia\Model\Base\ProductCategory | $productCategory | The productCategory object to add. |
doAddFeatureProduct(\Thelia\Model\Base\FeatureProduct $featureProduct)
| \Thelia\Model\Base\FeatureProduct | $featureProduct | The featureProduct object to add. |
doAddProductSaleElements(\Thelia\Model\Base\ProductSaleElements $productSaleElements)
| \Thelia\Model\Base\ProductSaleElements | $productSaleElements | The productSaleElements object to add. |
doAddContentAssoc(\Thelia\Model\Base\ContentAssoc $contentAssoc)
| \Thelia\Model\Base\ContentAssoc | $contentAssoc | The contentAssoc object to add. |
doAddImage(\Thelia\Model\Base\Image $image)
| \Thelia\Model\Base\Image | $image | The image object to add. |
doAddDocument(\Thelia\Model\Base\Document $document)
| \Thelia\Model\Base\Document | $document | The document object to add. |
doAddRewriting(\Thelia\Model\Base\Rewriting $rewriting)
| \Thelia\Model\Base\Rewriting | $rewriting | The rewriting object to add. |
doAddCartItem(\Thelia\Model\Base\CartItem $cartItem)
| \Thelia\Model\Base\CartItem | $cartItem | The cartItem object to add. |
doAddProductI18n(\Thelia\Model\Base\ProductI18n $productI18n)
| \Thelia\Model\Base\ProductI18n | $productI18n | The productI18n object to add. |
doAddProductVersion(\Thelia\Model\Base\ProductVersion $productVersion)
| \Thelia\Model\Base\ProductVersion | $productVersion | The productVersion object to add. |
doAddCategory(\Thelia\Model\Base\Category $category)
| \Thelia\Model\Base\Category | $category | The category object to add. |
computeDiff(array $fromVersion, array $toVersion, string $keys, array $ignoredColumns) : array
Computes the diff between two versions.
print_r($book->computeDiff(1, 2));
=> array(
'1' => array('Title' => 'Book title at version 1'),
'2' => array('Title' => 'Book title at version 2')
);
| array | $fromVersion | An array representing the original version. |
| array | $toVersion | An array representing the destination version. |
| string | $keys | Main key used for the result diff (versions|columns). |
| array | $ignoredColumns | The columns to exclude from the diff. |
A list of differences