class ProductSaleElementsProductDocumentQuery extends ModelCriteria

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

Methods

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

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

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

Returns a new ChildProductSaleElementsProductDocumentQuery object.

findPk( mixed $key, ConnectionInterface $con = null)

Find object by primary key.

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

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

filterByPrimaryKey( mixed $key)

Filter the query by primary key

filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

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

Filter the query on the id column

filterByProductSaleElementsId( mixed $productSaleElementsId = null, string $comparison = null)

Filter the query on the productsaleelements_id column

filterByProductDocumentId( mixed $productDocumentId = null, string $comparison = null)

Filter the query on the productdocumentid column

filterByProductSaleElements( ProductSaleElements|ObjectCollection $productSaleElements, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ProductSaleElements relation

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

Use the ProductSaleElements relation ProductSaleElements object

filterByProductDocument( ProductDocument|ObjectCollection $productDocument, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ProductDocument relation

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

Use the ProductDocument relation ProductDocument object

prune( ProductSaleElementsProductDocument $productSaleElementsProductDocument = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the productsaleelementsproductdocument table.

int
delete( ConnectionInterface $con = null)

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

ChildProductSaleElementsProductDocumentQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildProductSaleElementsProductDocumentQuery
orderByProductSaleElementsId($order = Criteria::ASC)

Order by the productsaleelements_id column

ChildProductSaleElementsProductDocumentQuery
orderByProductDocumentId($order = Criteria::ASC)

Order by the productdocumentid column

ChildProductSaleElementsProductDocumentQuery
groupById()

Group by the id column

ChildProductSaleElementsProductDocumentQuery
groupByProductSaleElementsId()

Group by the productsaleelements_id column

ChildProductSaleElementsProductDocumentQuery
groupByProductDocumentId()

Group by the productdocumentid column

ChildProductSaleElementsProductDocumentQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildProductSaleElementsProductDocumentQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildProductSaleElementsProductDocumentQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildProductSaleElementsProductDocumentQuery
leftJoinProductSaleElements($relationAlias = null)

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

ChildProductSaleElementsProductDocumentQuery
rightJoinProductSaleElements($relationAlias = null)

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

ChildProductSaleElementsProductDocumentQuery
innerJoinProductSaleElements($relationAlias = null)

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

ChildProductSaleElementsProductDocumentQuery
leftJoinProductDocument($relationAlias = null)

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

ChildProductSaleElementsProductDocumentQuery
rightJoinProductDocument($relationAlias = null)

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

ChildProductSaleElementsProductDocumentQuery
innerJoinProductDocument($relationAlias = null)

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

ChildProductSaleElementsProductDocument
findOne( ConnectionInterface $con = null)

Return the first ChildProductSaleElementsProductDocument matching the query

ChildProductSaleElementsProductDocument
findOneOrCreate( ConnectionInterface $con = null)

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

ChildProductSaleElementsProductDocument
findOneById( int $id)

Return the first ChildProductSaleElementsProductDocument filtered by the id column

ChildProductSaleElementsProductDocument
findOneByProductSaleElementsId( int $product_sale_elements_id)

Return the first ChildProductSaleElementsProductDocument filtered by the productsaleelements_id column

ChildProductSaleElementsProductDocument
findOneByProductDocumentId( int $product_document_id)

Return the first ChildProductSaleElementsProductDocument filtered by the productdocumentid column

array
findById( int $id)

Return ChildProductSaleElementsProductDocument objects filtered by the id column

array
findByProductSaleElementsId( int $product_sale_elements_id)

Return ChildProductSaleElementsProductDocument objects filtered by the productsaleelements_id column

array
findByProductDocumentId( int $product_document_id)

Return ChildProductSaleElementsProductDocument objects filtered by the productdocumentid column

Details

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

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

Parameters

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

at line 79
static ProductSaleElementsProductDocumentQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildProductSaleElementsProductDocumentQuery object.

Parameters

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

Return Value

ProductSaleElementsProductDocumentQuery

at line 109
ProductSaleElementsProductDocument|array|mixed findPk( mixed $key, ConnectionInterface $con = null)

Find object by primary key.

Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched.

$obj = $c->findPk(12, $con);

Parameters

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

Return Value

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

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

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

Parameters

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

Return Value

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

at line 212
ProductSaleElementsProductDocumentQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

at line 225
ProductSaleElementsProductDocumentQuery filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

Parameters

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

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

at line 249
ProductSaleElementsProductDocumentQuery filterById( mixed $id = null, string $comparison = null)

Filter the query on the id column

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

Parameters

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

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

at line 292
ProductSaleElementsProductDocumentQuery filterByProductSaleElementsId( mixed $productSaleElementsId = null, string $comparison = null)

Filter the query on the productsaleelements_id column

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

Parameters

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

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

See also

filterByProductSaleElements()

at line 335
ProductSaleElementsProductDocumentQuery filterByProductDocumentId( mixed $productDocumentId = null, string $comparison = null)

Filter the query on the productdocumentid column

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

Parameters

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

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

See also

filterByProductDocument()

at line 366
ProductSaleElementsProductDocumentQuery filterByProductSaleElements( ProductSaleElements|ObjectCollection $productSaleElements, string $comparison = null)

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

Parameters

ProductSaleElements|ObjectCollection $productSaleElements The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

at line 391
ProductSaleElementsProductDocumentQuery joinProductSaleElements( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ProductSaleElements relation

Parameters

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

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

at line 426
ProductSaleElementsQuery useProductSaleElementsQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the ProductSaleElements relation ProductSaleElements object

Parameters

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

Return Value

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

See also

useQuery()

at line 441
ProductSaleElementsProductDocumentQuery filterByProductDocument( ProductDocument|ObjectCollection $productDocument, string $comparison = null)

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

Parameters

ProductDocument|ObjectCollection $productDocument The related object(s) to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

at line 466
ProductSaleElementsProductDocumentQuery joinProductDocument( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ProductDocument relation

Parameters

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

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

at line 501
ProductDocumentQuery useProductDocumentQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the ProductDocument relation ProductDocument object

Parameters

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

Return Value

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

See also

useQuery()

at line 515
ProductSaleElementsProductDocumentQuery prune( ProductSaleElementsProductDocument $productSaleElementsProductDocument = null)

Exclude object from result

Parameters

ProductSaleElementsProductDocument $productSaleElementsProductDocument Object to remove from the list of results

Return Value

ProductSaleElementsProductDocumentQuery The current query, for fluid interface

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

Deletes all rows from the productsaleelementsproductdocument table.

Parameters

ConnectionInterface $con the connection to use

Return Value

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

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

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

Parameters

ConnectionInterface $con

Return Value

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

Exceptions

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

at line 56
ChildProductSaleElementsProductDocumentQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery orderByProductSaleElementsId($order = Criteria::ASC)

Order by the productsaleelements_id column

Parameters

$order

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery orderByProductDocumentId($order = Criteria::ASC)

Order by the productdocumentid column

Parameters

$order

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery groupById()

Group by the id column

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery groupByProductSaleElementsId()

Group by the productsaleelements_id column

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery groupByProductDocumentId()

Group by the productdocumentid column

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery leftJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery rightJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery innerJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery leftJoinProductDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery rightJoinProductDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocumentQuery innerJoinProductDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

at line 56
ChildProductSaleElementsProductDocument findOne( ConnectionInterface $con = null)

Return the first ChildProductSaleElementsProductDocument matching the query

Parameters

ConnectionInterface $con

Return Value

ChildProductSaleElementsProductDocument

at line 56
ChildProductSaleElementsProductDocument findOneOrCreate( ConnectionInterface $con = null)

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

Parameters

ConnectionInterface $con

Return Value

ChildProductSaleElementsProductDocument

at line 56
ChildProductSaleElementsProductDocument findOneById( int $id)

Return the first ChildProductSaleElementsProductDocument filtered by the id column

Parameters

int $id

Return Value

ChildProductSaleElementsProductDocument

at line 56
ChildProductSaleElementsProductDocument findOneByProductSaleElementsId( int $product_sale_elements_id)

Return the first ChildProductSaleElementsProductDocument filtered by the productsaleelements_id column

Parameters

int $product_sale_elements_id

Return Value

ChildProductSaleElementsProductDocument

at line 56
ChildProductSaleElementsProductDocument findOneByProductDocumentId( int $product_document_id)

Return the first ChildProductSaleElementsProductDocument filtered by the productdocumentid column

Parameters

int $product_document_id

Return Value

ChildProductSaleElementsProductDocument

at line 56
array findById( int $id)

Return ChildProductSaleElementsProductDocument objects filtered by the id column

Parameters

int $id

Return Value

array

at line 56
array findByProductSaleElementsId( int $product_sale_elements_id)

Return ChildProductSaleElementsProductDocument objects filtered by the productsaleelements_id column

Parameters

int $product_sale_elements_id

Return Value

array

at line 56
array findByProductDocumentId( int $product_document_id)

Return ChildProductSaleElementsProductDocument objects filtered by the productdocumentid column

Parameters

int $product_document_id

Return Value

array