class ProductSaleElementsProductImageQuery extends ProductSaleElementsProductImageQuery

Skeleton subclass for performing query and update operations on the 'productsaleelementsproductimage' 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\\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);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

ChildProductSaleElementsProductImageQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery orderByProductSaleElementsId($order = Criteria::ASC)

Order by the productsaleelements_id column

Parameters

$order

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery orderByProductImageId($order = Criteria::ASC)

Order by the productimageid column

Parameters

$order

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery groupById()

Group by the id column

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery groupByProductSaleElementsId()

Group by the productsaleelements_id column

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery groupByProductImageId()

Group by the productimageid column

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery leftJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery rightJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery innerJoinProductSaleElements($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery leftJoinProductImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery rightJoinProductImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImageQuery innerJoinProductImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildProductSaleElementsProductImageQuery

ChildProductSaleElementsProductImage findOne( ConnectionInterface $con = null)

Return the first ChildProductSaleElementsProductImage matching the query

Parameters

ConnectionInterface $con

Return Value

ChildProductSaleElementsProductImage

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

ChildProductSaleElementsProductImage findOneById( int $id)

Return the first ChildProductSaleElementsProductImage filtered by the id column

Parameters

int $id

Return Value

ChildProductSaleElementsProductImage

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

ChildProductSaleElementsProductImage findOneByProductImageId( int $product_image_id)

Return the first ChildProductSaleElementsProductImage filtered by the productimageid column

Parameters

int $product_image_id

Return Value

ChildProductSaleElementsProductImage

array findById( int $id)

Return ChildProductSaleElementsProductImage objects filtered by the id column

Parameters

int $id

Return Value

array

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

array findByProductImageId( int $product_image_id)

Return ChildProductSaleElementsProductImage objects filtered by the productimageid column

Parameters

int $product_image_id

Return Value

array