\Thelia\ModelConfigQuery

Skeleton subclass for performing query and update operations on the 'config' 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.

Summary

Methods
Properties
Constants
read()
__construct()
create()
findPk()
findPks()
filterByPrimaryKey()
filterByPrimaryKeys()
filterById()
filterByName()
filterByValue()
filterBySecured()
filterByHidden()
filterByCreatedAt()
filterByUpdatedAt()
filterByConfigI18n()
joinConfigI18n()
useConfigI18nQuery()
prune()
doDeleteAll()
delete()
recentlyUpdated()
recentlyCreated()
lastUpdatedFirst()
firstUpdatedFirst()
lastCreatedFirst()
firstCreatedFirst()
joinI18n()
joinWithI18n()
useI18nQuery()
orderById()
orderByName()
orderByValue()
orderBySecured()
orderByHidden()
orderByCreatedAt()
orderByUpdatedAt()
groupById()
groupByName()
groupByValue()
groupBySecured()
groupByHidden()
groupByCreatedAt()
groupByUpdatedAt()
leftJoin()
rightJoin()
innerJoin()
leftJoinConfigI18n()
rightJoinConfigI18n()
innerJoinConfigI18n()
findOne()
findOneOrCreate()
findOneById()
findOneByName()
findOneByValue()
findOneBySecured()
findOneByHidden()
findOneByCreatedAt()
findOneByUpdatedAt()
findById()
findByName()
findByValue()
findBySecured()
findByHidden()
findByCreatedAt()
findByUpdatedAt()
No public properties found
No constants found
findPkSimple()
findPkComplex()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

read()

read( $search,  $default)

Parameters

$search
$default

__construct()

__construct(string $dbName, string $modelName, string $modelAlias)

Initializes internal state of \Thelia\Model\Base\ConfigQuery 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'

create()

create(string $modelAlias, \Propel\Runtime\ActiveQuery\Criteria $criteria) : \Thelia\Model\ConfigQuery

Returns a new ChildConfigQuery object.

Parameters

string $modelAlias

The alias of a model in the query

\Propel\Runtime\ActiveQuery\Criteria $criteria

Optional Criteria to build the query from

Returns

\Thelia\Model\ConfigQuery

findPk()

findPk(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Config|array|mixed

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

\Propel\Runtime\Connection\ConnectionInterface $con

an optional connection object

Returns

\Thelia\Model\Config|array|mixed —

the result, formatted by the current formatter

findPks()

findPks(array $keys, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection|array|mixed

Find objects by primary key <code> $objs = $c->findPks(array(12, 56, 832), $con); </code>

Parameters

array $keys

Primary keys to use for the query

\Propel\Runtime\Connection\ConnectionInterface $con

an optional connection object

Returns

\Propel\Runtime\Collection\ObjectCollection|array|mixed —

the list of results, formatted by the current formatter

filterByPrimaryKey()

filterByPrimaryKey(mixed $key) : \Thelia\Model\ConfigQuery

Filter the query by primary key

Parameters

mixed $key

Primary key to use for the query

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterByPrimaryKeys()

filterByPrimaryKeys(array $keys) : \Thelia\Model\ConfigQuery

Filter the query by a list of primary keys

Parameters

array $keys

The list of primary key to use for the query

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterById()

filterById(mixed $id, string $comparison) : \Thelia\Model\ConfigQuery

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

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterByName()

filterByName(string $name, string $comparison) : \Thelia\Model\ConfigQuery

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

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterByValue()

filterByValue(string $value, string $comparison) : \Thelia\Model\ConfigQuery

Filter the query on the value column

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

Parameters

string $value

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

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterBySecured()

filterBySecured(mixed $secured, string $comparison) : \Thelia\Model\ConfigQuery

Filter the query on the secured column

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

Parameters

mixed $secured

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

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterByHidden()

filterByHidden(mixed $hidden, string $comparison) : \Thelia\Model\ConfigQuery

Filter the query on the hidden column

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

Parameters

mixed $hidden

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

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterByCreatedAt()

filterByCreatedAt(mixed $createdAt, string $comparison) : \Thelia\Model\ConfigQuery

Filter the query on the created_at column

Example usage: $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14' $query->filterByCreatedAt('now'); // WHERE created_at = '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

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterByUpdatedAt()

filterByUpdatedAt(mixed $updatedAt, string $comparison) : \Thelia\Model\ConfigQuery

Filter the query on the updated_at column

Example usage: $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14' $query->filterByUpdatedAt('now'); // WHERE updated_at = '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

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

filterByConfigI18n()

filterByConfigI18n(\Thelia\Model\ConfigI18n|\Propel\Runtime\Collection\ObjectCollection $configI18n, string $comparison) : \Thelia\Model\ConfigQuery

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

Parameters

\Thelia\Model\ConfigI18n|\Propel\Runtime\Collection\ObjectCollection $configI18n

the related object to use as filter

string $comparison

Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

joinConfigI18n()

joinConfigI18n(string $relationAlias, string $joinType) : \Thelia\Model\ConfigQuery

Adds a JOIN clause to the query using the ConfigI18n relation

Parameters

string $relationAlias

optional alias for the relation

string $joinType

Accepted values are null, 'left join', 'right join', 'inner join'

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

useConfigI18nQuery()

useConfigI18nQuery(string $relationAlias, string $joinType) : \Thelia\Model\ConfigI18nQuery

Use the ConfigI18n relation ConfigI18n 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'

Returns

\Thelia\Model\ConfigI18nQuery

A secondary query class using the current class as primary query

prune()

prune(\Thelia\Model\Config $config) : \Thelia\Model\ConfigQuery

Exclude object from result

Parameters

\Thelia\Model\Config $config

Object to remove from the list of results

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

doDeleteAll()

doDeleteAll(\Propel\Runtime\Connection\ConnectionInterface $con) : int

Deletes all rows from the config table.

Parameters

\Propel\Runtime\Connection\ConnectionInterface $con

the connection to use

Returns

int —

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

delete()

delete(\Propel\Runtime\Connection\ConnectionInterface $con) : int

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

Parameters

\Propel\Runtime\Connection\ConnectionInterface $con

the connection to use

Throws

\Propel\Runtime\Exception\PropelException

Any exceptions caught during processing will be rethrown wrapped into a PropelException.

Returns

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.

recentlyUpdated()

recentlyUpdated(int $nbDays) : \Thelia\Model\ConfigQuery

Filter by the latest updated

Parameters

int $nbDays

Maximum age of the latest update in days

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

recentlyCreated()

recentlyCreated(int $nbDays) : \Thelia\Model\ConfigQuery

Filter by the latest created

Parameters

int $nbDays

Maximum age of in days

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

lastUpdatedFirst()

lastUpdatedFirst() : \Thelia\Model\ConfigQuery

Order by update date desc

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

firstUpdatedFirst()

firstUpdatedFirst() : \Thelia\Model\ConfigQuery

Order by update date asc

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

lastCreatedFirst()

lastCreatedFirst() : \Thelia\Model\ConfigQuery

Order by create date desc

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

firstCreatedFirst()

firstCreatedFirst() : \Thelia\Model\ConfigQuery

Order by create date asc

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

joinI18n()

joinI18n(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ConfigQuery

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.

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

joinWithI18n()

joinWithI18n(string $locale, string $joinType) : \Thelia\Model\ConfigQuery

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.

Returns

\Thelia\Model\ConfigQuery

The current query, for fluid interface

useI18nQuery()

useI18nQuery(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ConfigI18nQuery

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.

Returns

\Thelia\Model\ConfigI18nQuery

A secondary query class using the current class as primary query

orderById()

orderById($order =) : \Thelia\Model\ConfigQuery

Order by the id column

Parameters

$order =

Returns

\Thelia\Model\ConfigQuery

orderByName()

orderByName($order =) : \Thelia\Model\ConfigQuery

Order by the name column

Parameters

$order =

Returns

\Thelia\Model\ConfigQuery

orderByValue()

orderByValue($order =) : \Thelia\Model\ConfigQuery

Order by the value column

Parameters

$order =

Returns

\Thelia\Model\ConfigQuery

orderBySecured()

orderBySecured($order =) : \Thelia\Model\ConfigQuery

Order by the secured column

Parameters

$order =

Returns

\Thelia\Model\ConfigQuery

orderByHidden()

orderByHidden($order =) : \Thelia\Model\ConfigQuery

Order by the hidden column

Parameters

$order =

Returns

\Thelia\Model\ConfigQuery

orderByCreatedAt()

orderByCreatedAt($order =) : \Thelia\Model\ConfigQuery

Order by the created_at column

Parameters

$order =

Returns

\Thelia\Model\ConfigQuery

orderByUpdatedAt()

orderByUpdatedAt($order =) : \Thelia\Model\ConfigQuery

Order by the updated_at column

Parameters

$order =

Returns

\Thelia\Model\ConfigQuery

groupById()

groupById() : \Thelia\Model\ConfigQuery

Group by the id column

Returns

\Thelia\Model\ConfigQuery

groupByName()

groupByName() : \Thelia\Model\ConfigQuery

Group by the name column

Returns

\Thelia\Model\ConfigQuery

groupByValue()

groupByValue() : \Thelia\Model\ConfigQuery

Group by the value column

Returns

\Thelia\Model\ConfigQuery

groupBySecured()

groupBySecured() : \Thelia\Model\ConfigQuery

Group by the secured column

Returns

\Thelia\Model\ConfigQuery

groupByHidden()

groupByHidden() : \Thelia\Model\ConfigQuery

Group by the hidden column

Returns

\Thelia\Model\ConfigQuery

groupByCreatedAt()

groupByCreatedAt() : \Thelia\Model\ConfigQuery

Group by the created_at column

Returns

\Thelia\Model\ConfigQuery

groupByUpdatedAt()

groupByUpdatedAt() : \Thelia\Model\ConfigQuery

Group by the updated_at column

Returns

\Thelia\Model\ConfigQuery

leftJoin()

leftJoin(mixed $relation) : \Thelia\Model\ConfigQuery

Adds a LEFT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\ConfigQuery

rightJoin()

rightJoin(mixed $relation) : \Thelia\Model\ConfigQuery

Adds a RIGHT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\ConfigQuery

innerJoin()

innerJoin(mixed $relation) : \Thelia\Model\ConfigQuery

Adds a INNER JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\ConfigQuery

leftJoinConfigI18n()

leftJoinConfigI18n($relationAlias =) : \Thelia\Model\ConfigQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ConfigQuery

rightJoinConfigI18n()

rightJoinConfigI18n($relationAlias =) : \Thelia\Model\ConfigQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ConfigQuery

innerJoinConfigI18n()

innerJoinConfigI18n($relationAlias =) : \Thelia\Model\ConfigQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ConfigQuery

findOne()

findOne(ConnectionInterface $con) : \Thelia\Model\Config

Return the first ChildConfig matching the query

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\Config

findOneOrCreate()

findOneOrCreate(ConnectionInterface $con) : \Thelia\Model\Config

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

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\Config

findOneById()

findOneById(int $id) : \Thelia\Model\Config

Return the first ChildConfig filtered by the id column

Parameters

int $id

Returns

\Thelia\Model\Config

findOneByName()

findOneByName(string $name) : \Thelia\Model\Config

Return the first ChildConfig filtered by the name column

Parameters

string $name

Returns

\Thelia\Model\Config

findOneByValue()

findOneByValue(string $value) : \Thelia\Model\Config

Return the first ChildConfig filtered by the value column

Parameters

string $value

Returns

\Thelia\Model\Config

findOneBySecured()

findOneBySecured(int $secured) : \Thelia\Model\Config

Return the first ChildConfig filtered by the secured column

Parameters

int $secured

Returns

\Thelia\Model\Config

findOneByHidden()

findOneByHidden(int $hidden) : \Thelia\Model\Config

Return the first ChildConfig filtered by the hidden column

Parameters

int $hidden

Returns

\Thelia\Model\Config

findOneByCreatedAt()

findOneByCreatedAt(string $created_at) : \Thelia\Model\Config

Return the first ChildConfig filtered by the created_at column

Parameters

string $created_at

Returns

\Thelia\Model\Config

findOneByUpdatedAt()

findOneByUpdatedAt(string $updated_at) : \Thelia\Model\Config

Return the first ChildConfig filtered by the updated_at column

Parameters

string $updated_at

Returns

\Thelia\Model\Config

findById()

findById(int $id) : array

Return ChildConfig objects filtered by the id column

Parameters

int $id

Returns

array

findByName()

findByName(string $name) : array

Return ChildConfig objects filtered by the name column

Parameters

string $name

Returns

array

findByValue()

findByValue(string $value) : array

Return ChildConfig objects filtered by the value column

Parameters

string $value

Returns

array

findBySecured()

findBySecured(int $secured) : array

Return ChildConfig objects filtered by the secured column

Parameters

int $secured

Returns

array

findByHidden()

findByHidden(int $hidden) : array

Return ChildConfig objects filtered by the hidden column

Parameters

int $hidden

Returns

array

findByCreatedAt()

findByCreatedAt(string $created_at) : array

Return ChildConfig objects filtered by the created_at column

Parameters

string $created_at

Returns

array

findByUpdatedAt()

findByUpdatedAt(string $updated_at) : array

Return ChildConfig objects filtered by the updated_at column

Parameters

string $updated_at

Returns

array

findPkSimple()

findPkSimple(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Config

Find object by primary key using raw SQL to go fast.

Bypass doSelect() and the object formatter by using generated code.

Parameters

mixed $key

Primary key to use for the query

\Propel\Runtime\Connection\ConnectionInterface $con

A connection object

Returns

\Thelia\Model\Config

A model object, or null if the key is not found

findPkComplex()

findPkComplex(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Config|array|mixed

Find object by primary key.

Parameters

mixed $key

Primary key to use for the query

\Propel\Runtime\Connection\ConnectionInterface $con

A connection object

Returns

\Thelia\Model\Config|array|mixed —

the result, formatted by the current formatter