class ProductSaleElementsProductImageQuery extends ModelCriteria

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

Methods

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

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

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

Returns a new ChildProductSaleElementsProductImageQuery 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

filterByProductImageId( mixed $productImageId = null, string $comparison = null)

Filter the query on the productimageid 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

filterByProductImage( ProductImage|ObjectCollection $productImage, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ProductImage relation

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

Use the ProductImage relation ProductImage object

prune( ProductSaleElementsProductImage $productSaleElementsProductImage = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the productsaleelementsproductimage table.

int
delete( ConnectionInterface $con = null)

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

ChildProductSaleElementsProductImageQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildProductSaleElementsProductImageQuery
orderByProductSaleElementsId($order = Criteria::ASC)

Order by the productsaleelements_id column

ChildProductSaleElementsProductImageQuery
orderByProductImageId($order = Criteria::ASC)

Order by the productimageid column

ChildProductSaleElementsProductImageQuery
groupById()

Group by the id column

ChildProductSaleElementsProductImageQuery
groupByProductSaleElementsId()

Group by the productsaleelements_id column

ChildProductSaleElementsProductImageQuery
groupByProductImageId()

Group by the productimageid column

ChildProductSaleElementsProductImageQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildProductSaleElementsProductImageQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildProductSaleElementsProductImageQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildProductSaleElementsProductImageQuery
leftJoinProductSaleElements($relationAlias = null)

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

ChildProductSaleElementsProductImageQuery
rightJoinProductSaleElements($relationAlias = null)

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

ChildProductSaleElementsProductImageQuery
innerJoinProductSaleElements($relationAlias = null)

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

ChildProductSaleElementsProductImageQuery
leftJoinProductImage($relationAlias = null)

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

ChildProductSaleElementsProductImageQuery
rightJoinProductImage($relationAlias = null)

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

ChildProductSaleElementsProductImageQuery
innerJoinProductImage($relationAlias = null)

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

ChildProductSaleElementsProductImage
findOne( ConnectionInterface $con = null)

Return the first ChildProductSaleElementsProductImage matching the query

ChildProductSaleElementsProductImage
findOneOrCreate( ConnectionInterface $con = null)

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

ChildProductSaleElementsProductImage
findOneById( int $id)

Return the first ChildProductSaleElementsProductImage filtered by the id column

ChildProductSaleElementsProductImage
findOneByProductSaleElementsId( int $product_sale_elements_id)

Return the first ChildProductSaleElementsProductImage filtered by the productsaleelements_id column

ChildProductSaleElementsProductImage
findOneByProductImageId( int $product_image_id)

Return the first ChildProductSaleElementsProductImage filtered by the productimageid column

array
findById( int $id)

Return ChildProductSaleElementsProductImage objects filtered by the id column

array
findByProductSaleElementsId( int $product_sale_elements_id)

Return ChildProductSaleElementsProductImage objects filtered by the productsaleelements_id column

array
findByProductImageId( int $product_image_id)

Return ChildProductSaleElementsProductImage objects filtered by the productimageid column

Details

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

Initializes internal state of \Thelia\Model\Base\ProductSaleElementsProductImageQuery 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 ProductSaleElementsProductImageQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildProductSaleElementsProductImageQuery object.

Parameters

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

Return Value

ProductSaleElementsProductImageQuery

at line 109
ProductSaleElementsProductImage|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

ProductSaleElementsProductImage|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
ProductSaleElementsProductImageQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

ProductSaleElementsProductImageQuery The current query, for fluid interface

at line 225
ProductSaleElementsProductImageQuery 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

ProductSaleElementsProductImageQuery The current query, for fluid interface

at line 249
ProductSaleElementsProductImageQuery 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

ProductSaleElementsProductImageQuery The current query, for fluid interface

at line 292
ProductSaleElementsProductImageQuery 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

ProductSaleElementsProductImageQuery The current query, for fluid interface

See also

filterByProductSaleElements()

at line 335
ProductSaleElementsProductImageQuery filterByProductImageId( mixed $productImageId = null, string $comparison = null)

Filter the query on the productimageid column

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

Parameters

mixed $productImageId 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

ProductSaleElementsProductImageQuery The current query, for fluid interface

See also

filterByProductImage()

at line 366
ProductSaleElementsProductImageQuery 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

ProductSaleElementsProductImageQuery The current query, for fluid interface

at line 391
ProductSaleElementsProductImageQuery 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

ProductSaleElementsProductImageQuery 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
ProductSaleElementsProductImageQuery filterByProductImage( ProductImage|ObjectCollection $productImage, string $comparison = null)

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

Parameters

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

Return Value

ProductSaleElementsProductImageQuery The current query, for fluid interface

at line 466
ProductSaleElementsProductImageQuery joinProductImage( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ProductImage relation

Parameters

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

Return Value

ProductSaleElementsProductImageQuery The current query, for fluid interface

at line 501
ProductImageQuery useProductImageQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Use the ProductImage relation ProductImage 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

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

See also

useQuery()

at line 515
ProductSaleElementsProductImageQuery prune( ProductSaleElementsProductImage $productSaleElementsProductImage = null)

Exclude object from result

Parameters

ProductSaleElementsProductImage $productSaleElementsProductImage Object to remove from the list of results

Return Value

ProductSaleElementsProductImageQuery The current query, for fluid interface

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

Deletes all rows from the productsaleelementsproductimage 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 ChildProductSaleElementsProductImage 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
ChildProductSaleElementsProductImageQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildProductSaleElementsProductImageQuery

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

Order by the productsaleelements_id column

Parameters

$order

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery orderByProductImageId($order = Criteria::ASC)

Order by the productimageid column

Parameters

$order

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery groupById()

Group by the id column

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery groupByProductSaleElementsId()

Group by the productsaleelements_id column

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery groupByProductImageId()

Group by the productimageid column

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery leftJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery rightJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery innerJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery leftJoinProductImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery rightJoinProductImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

at line 56
ChildProductSaleElementsProductImageQuery innerJoinProductImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

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

Return the first ChildProductSaleElementsProductImage matching the query

Parameters

ConnectionInterface $con

Return Value

ChildProductSaleElementsProductImage

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

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

Parameters

ConnectionInterface $con

Return Value

ChildProductSaleElementsProductImage

at line 56
ChildProductSaleElementsProductImage findOneById( int $id)

Return the first ChildProductSaleElementsProductImage filtered by the id column

Parameters

int $id

Return Value

ChildProductSaleElementsProductImage

at line 56
ChildProductSaleElementsProductImage findOneByProductSaleElementsId( int $product_sale_elements_id)

Return the first ChildProductSaleElementsProductImage filtered by the productsaleelements_id column

Parameters

int $product_sale_elements_id

Return Value

ChildProductSaleElementsProductImage

at line 56
ChildProductSaleElementsProductImage findOneByProductImageId( int $product_image_id)

Return the first ChildProductSaleElementsProductImage filtered by the productimageid column

Parameters

int $product_image_id

Return Value

ChildProductSaleElementsProductImage

at line 56
array findById( int $id)

Return ChildProductSaleElementsProductImage objects filtered by the id column

Parameters

int $id

Return Value

array

at line 56
array findByProductSaleElementsId( int $product_sale_elements_id)

Return ChildProductSaleElementsProductImage objects filtered by the productsaleelements_id column

Parameters

int $product_sale_elements_id

Return Value

array

at line 56
array findByProductImageId( int $product_image_id)

Return ChildProductSaleElementsProductImage objects filtered by the productimageid column

Parameters

int $product_image_id

Return Value

array