class ProductSaleElementsProductDocumentQuery extends ProductSaleElementsProductDocumentQuery

Skeleton subclass for performing query and update operations on the 'productsaleelementsproductdocument' table.

You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.

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);

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

__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'

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

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

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

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

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

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

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()

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()

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

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

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()

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

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

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()

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

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).

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.

ChildProductSaleElementsProductDocumentQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery orderByProductSaleElementsId($order = Criteria::ASC)

Order by the productsaleelements_id column

Parameters

$order

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery orderByProductDocumentId($order = Criteria::ASC)

Order by the productdocumentid column

Parameters

$order

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery groupById()

Group by the id column

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery groupByProductSaleElementsId()

Group by the productsaleelements_id column

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery groupByProductDocumentId()

Group by the productdocumentid column

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery leftJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery rightJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery innerJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery leftJoinProductDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery rightJoinProductDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocumentQuery innerJoinProductDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductDocumentQuery

ChildProductSaleElementsProductDocument findOne( ConnectionInterface $con = null)

Return the first ChildProductSaleElementsProductDocument matching the query

Parameters

ConnectionInterface $con

Return Value

ChildProductSaleElementsProductDocument

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

ChildProductSaleElementsProductDocument findOneById( int $id)

Return the first ChildProductSaleElementsProductDocument filtered by the id column

Parameters

int $id

Return Value

ChildProductSaleElementsProductDocument

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

ChildProductSaleElementsProductDocument findOneByProductDocumentId( int $product_document_id)

Return the first ChildProductSaleElementsProductDocument filtered by the productdocumentid column

Parameters

int $product_document_id

Return Value

ChildProductSaleElementsProductDocument

array findById( int $id)

Return ChildProductSaleElementsProductDocument objects filtered by the id column

Parameters

int $id

Return Value

array

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

array findByProductDocumentId( int $product_document_id)

Return ChildProductSaleElementsProductDocument objects filtered by the productdocumentid column

Parameters

int $product_document_id

Return Value

array