class ImportCategoryQuery extends ModelCriteria

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

Methods

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

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

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

Returns a new ChildImportCategoryQuery object.

ImportCategory|array|mixed
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

filterByRef( string $ref = null, string $comparison = null)

Filter the query on the ref column

filterByPosition( mixed $position = null, string $comparison = null)

Filter the query on the position column

filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

filterByImport( Import|ObjectCollection $import, string $comparison = null)

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

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

Adds a JOIN clause to the query using the Import relation

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

Use the Import relation Import object

filterByImportCategoryI18n( ImportCategoryI18n|ObjectCollection $importCategoryI18n, string $comparison = null)

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

joinImportCategoryI18n( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Adds a JOIN clause to the query using the ImportCategoryI18n relation

useImportCategoryI18nQuery( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Use the ImportCategoryI18n relation ImportCategoryI18n object

prune( ImportCategory $importCategory = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the import_category table.

int
delete( ConnectionInterface $con = null)

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

recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

recentlyCreated( int $nbDays = 7)

Filter by the latest created

lastUpdatedFirst()

Order by update date desc

firstUpdatedFirst()

Order by update date asc

lastCreatedFirst()

Order by create date desc

firstCreatedFirst()

Order by create date asc

joinI18n( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the i18n relation

joinWithI18n( string $locale = 'en_US', string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query and hydrates the related I18n object.

useI18nQuery( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the I18n relation query object

ChildImportCategoryQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildImportCategoryQuery
orderByRef($order = Criteria::ASC)

Order by the ref column

ChildImportCategoryQuery
orderByPosition($order = Criteria::ASC)

Order by the position column

ChildImportCategoryQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildImportCategoryQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildImportCategoryQuery
groupById()

Group by the id column

ChildImportCategoryQuery
groupByRef()

Group by the ref column

ChildImportCategoryQuery
groupByPosition()

Group by the position column

ChildImportCategoryQuery
groupByCreatedAt()

Group by the created_at column

ChildImportCategoryQuery
groupByUpdatedAt()

Group by the updated_at column

ChildImportCategoryQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildImportCategoryQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildImportCategoryQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildImportCategoryQuery
leftJoinImport($relationAlias = null)

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

ChildImportCategoryQuery
rightJoinImport($relationAlias = null)

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

ChildImportCategoryQuery
innerJoinImport($relationAlias = null)

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

ChildImportCategoryQuery
leftJoinImportCategoryI18n($relationAlias = null)

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

ChildImportCategoryQuery
rightJoinImportCategoryI18n($relationAlias = null)

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

ChildImportCategoryQuery
innerJoinImportCategoryI18n($relationAlias = null)

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

ChildImportCategory
findOne( ConnectionInterface $con = null)

Return the first ChildImportCategory matching the query

ChildImportCategory
findOneOrCreate( ConnectionInterface $con = null)

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

ChildImportCategory
findOneById( int $id)

Return the first ChildImportCategory filtered by the id column

ChildImportCategory
findOneByRef( string $ref)

Return the first ChildImportCategory filtered by the ref column

ChildImportCategory
findOneByPosition( int $position)

Return the first ChildImportCategory filtered by the position column

ChildImportCategory
findOneByCreatedAt( string $created_at)

Return the first ChildImportCategory filtered by the created_at column

ChildImportCategory
findOneByUpdatedAt( string $updated_at)

Return the first ChildImportCategory filtered by the updated_at column

array
findById( int $id)

Return ChildImportCategory objects filtered by the id column

array
findByRef( string $ref)

Return ChildImportCategory objects filtered by the ref column

array
findByPosition( int $position)

Return ChildImportCategory objects filtered by the position column

array
findByCreatedAt( string $created_at)

Return ChildImportCategory objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildImportCategory objects filtered by the updated_at column

Details

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

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

Returns a new ChildImportCategoryQuery object.

Parameters

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

Return Value

ImportCategoryQuery

at line 118
ImportCategory|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

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

at line 200
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 221
ImportCategoryQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 234
ImportCategoryQuery 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

ImportCategoryQuery The current query, for fluid interface

at line 258
ImportCategoryQuery 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

ImportCategoryQuery The current query, for fluid interface

at line 296
ImportCategoryQuery filterByRef( string $ref = null, string $comparison = null)

Filter the query on the ref column

Example usage: $query->filterByRef('fooValue'); // WHERE ref = 'fooValue' $query->filterByRef('%fooValue%'); // WHERE ref LIKE '%fooValue%'

Parameters

string $ref The value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 328
ImportCategoryQuery filterByPosition( mixed $position = null, string $comparison = null)

Filter the query on the position column

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

Parameters

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

ImportCategoryQuery The current query, for fluid interface

at line 371
ImportCategoryQuery filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

Example usage: $query->filterByCreatedAt('2011-03-14'); // WHERE createdat = '2011-03-14' $query->filterByCreatedAt('now'); // WHERE createdat = '2011-03-14' $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13'

Parameters

mixed $createdAt The value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. 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

ImportCategoryQuery The current query, for fluid interface

at line 414
ImportCategoryQuery filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

Example usage: $query->filterByUpdatedAt('2011-03-14'); // WHERE updatedat = '2011-03-14' $query->filterByUpdatedAt('now'); // WHERE updatedat = '2011-03-14' $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13'

Parameters

mixed $updatedAt The value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. 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

ImportCategoryQuery The current query, for fluid interface

at line 445
ImportCategoryQuery filterByImport( Import|ObjectCollection $import, string $comparison = null)

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

Parameters

Import|ObjectCollection $import the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 468
ImportCategoryQuery joinImport( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Import relation

Parameters

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

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 503
ImportQuery useImportQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

at line 518
ImportCategoryQuery filterByImportCategoryI18n( ImportCategoryI18n|ObjectCollection $importCategoryI18n, string $comparison = null)

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

Parameters

ImportCategoryI18n|ObjectCollection $importCategoryI18n the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 541
ImportCategoryQuery joinImportCategoryI18n( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Adds a JOIN clause to the query using the ImportCategoryI18n relation

Parameters

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

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 576
ImportCategoryI18nQuery useImportCategoryI18nQuery( string $relationAlias = null, string $joinType = 'LEFT JOIN')

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

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

See also

useQuery()

at line 590
ImportCategoryQuery prune( ImportCategory $importCategory = null)

Exclude object from result

Parameters

ImportCategory $importCategory Object to remove from the list of results

Return Value

ImportCategoryQuery The current query, for fluid interface

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

Deletes all rows from the import_category table.

Parameters

ConnectionInterface $con the connection to use

Return Value

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

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

Performs a DELETE on the database, given a ChildImportCategory 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 683
ImportCategoryQuery recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

Parameters

int $nbDays Maximum age of the latest update in days

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 695
ImportCategoryQuery recentlyCreated( int $nbDays = 7)

Filter by the latest created

Parameters

int $nbDays Maximum age of in days

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 705
ImportCategoryQuery lastUpdatedFirst()

Order by update date desc

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 715
ImportCategoryQuery firstUpdatedFirst()

Order by update date asc

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 725
ImportCategoryQuery lastCreatedFirst()

Order by create date desc

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 735
ImportCategoryQuery firstCreatedFirst()

Order by create date asc

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 751
ImportCategoryQuery joinI18n( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the i18n relation

Parameters

string $locale Locale to use for the join condition, e.g. 'fr_FR'
string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 769
ImportCategoryQuery joinWithI18n( string $locale = 'en_US', string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query and hydrates the related I18n object.

Shortcut for $c->joinI18n($locale)->with()

Parameters

string $locale Locale to use for the join condition, e.g. 'fr_FR'
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.

Return Value

ImportCategoryQuery The current query, for fluid interface

at line 790
ImportCategoryI18nQuery useI18nQuery( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the I18n relation query object

Parameters

string $locale Locale to use for the join condition, e.g. 'fr_FR'
string $relationAlias optional alias for the relation
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join.

Return Value

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

See also

useQuery()

at line 65
ChildImportCategoryQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery orderByRef($order = Criteria::ASC)

Order by the ref column

Parameters

$order

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery orderByPosition($order = Criteria::ASC)

Order by the position column

Parameters

$order

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery groupById()

Group by the id column

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery groupByRef()

Group by the ref column

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery groupByPosition()

Group by the position column

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery leftJoinImport($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery rightJoinImport($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery innerJoinImport($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery leftJoinImportCategoryI18n($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery rightJoinImportCategoryI18n($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategoryQuery innerJoinImportCategoryI18n($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildImportCategoryQuery

at line 65
ChildImportCategory findOne( ConnectionInterface $con = null)

Return the first ChildImportCategory matching the query

Parameters

ConnectionInterface $con

Return Value

ChildImportCategory

at line 65
ChildImportCategory findOneOrCreate( ConnectionInterface $con = null)

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

Parameters

ConnectionInterface $con

Return Value

ChildImportCategory

at line 65
ChildImportCategory findOneById( int $id)

Return the first ChildImportCategory filtered by the id column

Parameters

int $id

Return Value

ChildImportCategory

at line 65
ChildImportCategory findOneByRef( string $ref)

Return the first ChildImportCategory filtered by the ref column

Parameters

string $ref

Return Value

ChildImportCategory

at line 65
ChildImportCategory findOneByPosition( int $position)

Return the first ChildImportCategory filtered by the position column

Parameters

int $position

Return Value

ChildImportCategory

at line 65
ChildImportCategory findOneByCreatedAt( string $created_at)

Return the first ChildImportCategory filtered by the created_at column

Parameters

string $created_at

Return Value

ChildImportCategory

at line 65
ChildImportCategory findOneByUpdatedAt( string $updated_at)

Return the first ChildImportCategory filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildImportCategory

at line 65
array findById( int $id)

Return ChildImportCategory objects filtered by the id column

Parameters

int $id

Return Value

array

at line 65
array findByRef( string $ref)

Return ChildImportCategory objects filtered by the ref column

Parameters

string $ref

Return Value

array

at line 65
array findByPosition( int $position)

Return ChildImportCategory objects filtered by the position column

Parameters

int $position

Return Value

array

at line 65
array findByCreatedAt( string $created_at)

Return ChildImportCategory objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

at line 65
array findByUpdatedAt( string $updated_at)

Return ChildImportCategory objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array