class TemplateI18nQuery extends ModelCriteria

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

Methods

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

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

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

Returns a new ChildTemplateI18nQuery object.

TemplateI18n|array|mixed
findPk($key, $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(array(12, 56), array(832, 123), array(123, 456)), $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

filterByLocale( string $locale = null, string $comparison = null)

Filter the query on the locale column

filterByName( string $name = null, string $comparison = null)

Filter the query on the name column

filterByTemplate( Template|ObjectCollection $template, string $comparison = null)

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

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

Adds a JOIN clause to the query using the Template relation

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

Use the Template relation Template object

prune( TemplateI18n $templateI18n = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the template_i18n table.

int
delete( ConnectionInterface $con = null)

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

ChildTemplateI18nQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildTemplateI18nQuery
orderByLocale($order = Criteria::ASC)

Order by the locale column

ChildTemplateI18nQuery
orderByName($order = Criteria::ASC)

Order by the name column

ChildTemplateI18nQuery
groupById()

Group by the id column

ChildTemplateI18nQuery
groupByLocale()

Group by the locale column

ChildTemplateI18nQuery
groupByName()

Group by the name column

ChildTemplateI18nQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildTemplateI18nQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildTemplateI18nQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildTemplateI18nQuery
leftJoinTemplate($relationAlias = null)

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

ChildTemplateI18nQuery
rightJoinTemplate($relationAlias = null)

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

ChildTemplateI18nQuery
innerJoinTemplate($relationAlias = null)

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

ChildTemplateI18n
findOne( ConnectionInterface $con = null)

Return the first ChildTemplateI18n matching the query

ChildTemplateI18n
findOneOrCreate( ConnectionInterface $con = null)

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

ChildTemplateI18n
findOneById( int $id)

Return the first ChildTemplateI18n filtered by the id column

ChildTemplateI18n
findOneByLocale( string $locale)

Return the first ChildTemplateI18n filtered by the locale column

ChildTemplateI18n
findOneByName( string $name)

Return the first ChildTemplateI18n filtered by the name column

array
findById( int $id)

Return ChildTemplateI18n objects filtered by the id column

array
findByLocale( string $locale)

Return ChildTemplateI18n objects filtered by the locale column

array
findByName( string $name)

Return ChildTemplateI18n objects filtered by the name column

Details

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

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

Returns a new ChildTemplateI18nQuery object.

Parameters

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

Return Value

TemplateI18nQuery

at line 105
TemplateI18n|array|mixed findPk($key, $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(array(12, 34), $con);

Parameters

$key
$con

Return Value

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

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

Find objects by primary key $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $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 209
TemplateI18nQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

TemplateI18nQuery The current query, for fluid interface

at line 224
TemplateI18nQuery 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

TemplateI18nQuery The current query, for fluid interface

at line 259
TemplateI18nQuery 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

TemplateI18nQuery The current query, for fluid interface

See also

filterByTemplate()

at line 297
TemplateI18nQuery filterByLocale( string $locale = null, string $comparison = null)

Filter the query on the locale column

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

Parameters

string $locale 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

TemplateI18nQuery The current query, for fluid interface

at line 326
TemplateI18nQuery filterByName( string $name = null, string $comparison = null)

Filter the query on the name column

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

Parameters

string $name 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

TemplateI18nQuery The current query, for fluid interface

at line 348
TemplateI18nQuery filterByTemplate( Template|ObjectCollection $template, string $comparison = null)

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

Parameters

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

Return Value

TemplateI18nQuery The current query, for fluid interface

at line 373
TemplateI18nQuery joinTemplate( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Adds a JOIN clause to the query using the Template relation

Parameters

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

Return Value

TemplateI18nQuery The current query, for fluid interface

at line 408
TemplateQuery useTemplateQuery( string $relationAlias = null, string $joinType = 'LEFT JOIN')

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

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

See also

useQuery()

at line 422
TemplateI18nQuery prune( TemplateI18n $templateI18n = null)

Exclude object from result

Parameters

TemplateI18n $templateI18n Object to remove from the list of results

Return Value

TemplateI18nQuery The current query, for fluid interface

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

Deletes all rows from the template_i18n table.

Parameters

ConnectionInterface $con the connection to use

Return Value

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

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

Performs a DELETE on the database, given a ChildTemplateI18n 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 52
ChildTemplateI18nQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery orderByLocale($order = Criteria::ASC)

Order by the locale column

Parameters

$order

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery orderByName($order = Criteria::ASC)

Order by the name column

Parameters

$order

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery groupById()

Group by the id column

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery groupByLocale()

Group by the locale column

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery groupByName()

Group by the name column

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery leftJoinTemplate($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery rightJoinTemplate($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18nQuery innerJoinTemplate($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildTemplateI18nQuery

at line 52
ChildTemplateI18n findOne( ConnectionInterface $con = null)

Return the first ChildTemplateI18n matching the query

Parameters

ConnectionInterface $con

Return Value

ChildTemplateI18n

at line 52
ChildTemplateI18n findOneOrCreate( ConnectionInterface $con = null)

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

Parameters

ConnectionInterface $con

Return Value

ChildTemplateI18n

at line 52
ChildTemplateI18n findOneById( int $id)

Return the first ChildTemplateI18n filtered by the id column

Parameters

int $id

Return Value

ChildTemplateI18n

at line 52
ChildTemplateI18n findOneByLocale( string $locale)

Return the first ChildTemplateI18n filtered by the locale column

Parameters

string $locale

Return Value

ChildTemplateI18n

at line 52
ChildTemplateI18n findOneByName( string $name)

Return the first ChildTemplateI18n filtered by the name column

Parameters

string $name

Return Value

ChildTemplateI18n

at line 52
array findById( int $id)

Return ChildTemplateI18n objects filtered by the id column

Parameters

int $id

Return Value

array

at line 52
array findByLocale( string $locale)

Return ChildTemplateI18n objects filtered by the locale column

Parameters

string $locale

Return Value

array

at line 52
array findByName( string $name)

Return ChildTemplateI18n objects filtered by the name column

Parameters

string $name

Return Value

array