Methods

__construct()

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

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

Returns a new ChildCustomerTitleQuery 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\CustomerTitleQuery

findPk()

findPk(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\CustomerTitle|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\CustomerTitle|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\CustomerTitleQuery

Filter the query by primary key

Parameters

mixed $key

Primary key to use for the query

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

filterByPrimaryKeys()

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

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\CustomerTitleQuery

The current query, for fluid interface

filterById()

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

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\CustomerTitleQuery

The current query, for fluid interface

filterByByDefault()

filterByByDefault(mixed $byDefault, string $comparison) : \Thelia\Model\CustomerTitleQuery

Filter the query on the by_default column

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

Parameters

mixed $byDefault

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\CustomerTitleQuery

The current query, for fluid interface

filterByPosition()

filterByPosition(string $position, string $comparison) : \Thelia\Model\CustomerTitleQuery

Filter the query on the position column

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

Parameters

string $position

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\CustomerTitleQuery

The current query, for fluid interface

filterByCreatedAt()

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

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\CustomerTitleQuery

The current query, for fluid interface

filterByUpdatedAt()

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

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\CustomerTitleQuery

The current query, for fluid interface

filterByCustomer()

filterByCustomer(\Thelia\Model\Customer|\Propel\Runtime\Collection\ObjectCollection $customer, string $comparison) : \Thelia\Model\CustomerTitleQuery

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

Parameters

\Thelia\Model\Customer|\Propel\Runtime\Collection\ObjectCollection $customer

the related object to use as filter

string $comparison

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

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

joinCustomer()

joinCustomer(string $relationAlias, string $joinType) : \Thelia\Model\CustomerTitleQuery

Adds a JOIN clause to the query using the Customer relation

Parameters

string $relationAlias

optional alias for the relation

string $joinType

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

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

useCustomerQuery()

useCustomerQuery(string $relationAlias, string $joinType) : \Thelia\Model\CustomerQuery

Use the Customer relation Customer 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\CustomerQuery

A secondary query class using the current class as primary query

filterByAddress()

filterByAddress(\Thelia\Model\Address|\Propel\Runtime\Collection\ObjectCollection $address, string $comparison) : \Thelia\Model\CustomerTitleQuery

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

Parameters

\Thelia\Model\Address|\Propel\Runtime\Collection\ObjectCollection $address

the related object to use as filter

string $comparison

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

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

joinAddress()

joinAddress(string $relationAlias, string $joinType) : \Thelia\Model\CustomerTitleQuery

Adds a JOIN clause to the query using the Address relation

Parameters

string $relationAlias

optional alias for the relation

string $joinType

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

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

useAddressQuery()

useAddressQuery(string $relationAlias, string $joinType) : \Thelia\Model\AddressQuery

Use the Address relation Address 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\AddressQuery

A secondary query class using the current class as primary query

filterByCustomerTitleI18n()

filterByCustomerTitleI18n(\Thelia\Model\CustomerTitleI18n|\Propel\Runtime\Collection\ObjectCollection $customerTitleI18n, string $comparison) : \Thelia\Model\CustomerTitleQuery

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

Parameters

\Thelia\Model\CustomerTitleI18n|\Propel\Runtime\Collection\ObjectCollection $customerTitleI18n

the related object to use as filter

string $comparison

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

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

joinCustomerTitleI18n()

joinCustomerTitleI18n(string $relationAlias, string $joinType) : \Thelia\Model\CustomerTitleQuery

Adds a JOIN clause to the query using the CustomerTitleI18n relation

Parameters

string $relationAlias

optional alias for the relation

string $joinType

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

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

useCustomerTitleI18nQuery()

useCustomerTitleI18nQuery(string $relationAlias, string $joinType) : \Thelia\Model\CustomerTitleI18nQuery

Use the CustomerTitleI18n relation CustomerTitleI18n 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\CustomerTitleI18nQuery

A secondary query class using the current class as primary query

prune()

prune(\Thelia\Model\CustomerTitle $customerTitle) : \Thelia\Model\CustomerTitleQuery

Exclude object from result

Parameters

\Thelia\Model\CustomerTitle $customerTitle

Object to remove from the list of results

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

doDeleteAll()

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

Deletes all rows from the customer_title 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 ChildCustomerTitle 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\CustomerTitleQuery

Filter by the latest updated

Parameters

int $nbDays

Maximum age of the latest update in days

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

recentlyCreated()

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

Filter by the latest created

Parameters

int $nbDays

Maximum age of in days

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

lastUpdatedFirst()

lastUpdatedFirst() : \Thelia\Model\CustomerTitleQuery

Order by update date desc

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

firstUpdatedFirst()

firstUpdatedFirst() : \Thelia\Model\CustomerTitleQuery

Order by update date asc

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

lastCreatedFirst()

lastCreatedFirst() : \Thelia\Model\CustomerTitleQuery

Order by create date desc

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

firstCreatedFirst()

firstCreatedFirst() : \Thelia\Model\CustomerTitleQuery

Order by create date asc

Returns

\Thelia\Model\CustomerTitleQuery

The current query, for fluid interface

joinI18n()

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

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\CustomerTitleQuery

The current query, for fluid interface

joinWithI18n()

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

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\CustomerTitleQuery

The current query, for fluid interface

useI18nQuery()

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

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\CustomerTitleI18nQuery

A secondary query class using the current class as primary query

orderById()

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

Order by the id column

Parameters

$order =

Returns

\Thelia\Model\CustomerTitleQuery

orderByByDefault()

orderByByDefault($order =) : \Thelia\Model\CustomerTitleQuery

Order by the by_default column

Parameters

$order =

Returns

\Thelia\Model\CustomerTitleQuery

orderByPosition()

orderByPosition($order =) : \Thelia\Model\CustomerTitleQuery

Order by the position column

Parameters

$order =

Returns

\Thelia\Model\CustomerTitleQuery

orderByCreatedAt()

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

Order by the created_at column

Parameters

$order =

Returns

\Thelia\Model\CustomerTitleQuery

orderByUpdatedAt()

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

Order by the updated_at column

Parameters

$order =

Returns

\Thelia\Model\CustomerTitleQuery

groupById()

groupById() : \Thelia\Model\CustomerTitleQuery

Group by the id column

Returns

\Thelia\Model\CustomerTitleQuery

groupByByDefault()

groupByByDefault() : \Thelia\Model\CustomerTitleQuery

Group by the by_default column

Returns

\Thelia\Model\CustomerTitleQuery

groupByPosition()

groupByPosition() : \Thelia\Model\CustomerTitleQuery

Group by the position column

Returns

\Thelia\Model\CustomerTitleQuery

groupByCreatedAt()

groupByCreatedAt() : \Thelia\Model\CustomerTitleQuery

Group by the created_at column

Returns

\Thelia\Model\CustomerTitleQuery

groupByUpdatedAt()

groupByUpdatedAt() : \Thelia\Model\CustomerTitleQuery

Group by the updated_at column

Returns

\Thelia\Model\CustomerTitleQuery

leftJoin()

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

Adds a LEFT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\CustomerTitleQuery

rightJoin()

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

Adds a RIGHT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\CustomerTitleQuery

innerJoin()

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

Adds a INNER JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\CustomerTitleQuery

leftJoinCustomer()

leftJoinCustomer($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

rightJoinCustomer()

rightJoinCustomer($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

innerJoinCustomer()

innerJoinCustomer($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

leftJoinAddress()

leftJoinAddress($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

rightJoinAddress()

rightJoinAddress($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

innerJoinAddress()

innerJoinAddress($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

leftJoinCustomerTitleI18n()

leftJoinCustomerTitleI18n($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

rightJoinCustomerTitleI18n()

rightJoinCustomerTitleI18n($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

innerJoinCustomerTitleI18n()

innerJoinCustomerTitleI18n($relationAlias =) : \Thelia\Model\CustomerTitleQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\CustomerTitleQuery

findOne()

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

Return the first ChildCustomerTitle matching the query

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\CustomerTitle

findOneOrCreate()

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

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

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\CustomerTitle

findOneById()

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

Return the first ChildCustomerTitle filtered by the id column

Parameters

int $id

Returns

\Thelia\Model\CustomerTitle

findOneByByDefault()

findOneByByDefault(int $by_default) : \Thelia\Model\CustomerTitle

Return the first ChildCustomerTitle filtered by the by_default column

Parameters

int $by_default

Returns

\Thelia\Model\CustomerTitle

findOneByPosition()

findOneByPosition(string $position) : \Thelia\Model\CustomerTitle

Return the first ChildCustomerTitle filtered by the position column

Parameters

string $position

Returns

\Thelia\Model\CustomerTitle

findOneByCreatedAt()

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

Return the first ChildCustomerTitle filtered by the created_at column

Parameters

string $created_at

Returns

\Thelia\Model\CustomerTitle

findOneByUpdatedAt()

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

Return the first ChildCustomerTitle filtered by the updated_at column

Parameters

string $updated_at

Returns

\Thelia\Model\CustomerTitle

findById()

findById(int $id) : array

Return ChildCustomerTitle objects filtered by the id column

Parameters

int $id

Returns

array

findByByDefault()

findByByDefault(int $by_default) : array

Return ChildCustomerTitle objects filtered by the by_default column

Parameters

int $by_default

Returns

array

findByPosition()

findByPosition(string $position) : array

Return ChildCustomerTitle objects filtered by the position column

Parameters

string $position

Returns

array

findByCreatedAt()

findByCreatedAt(string $created_at) : array

Return ChildCustomerTitle objects filtered by the created_at column

Parameters

string $created_at

Returns

array

findByUpdatedAt()

findByUpdatedAt(string $updated_at) : array

Return ChildCustomerTitle objects filtered by the updated_at column

Parameters

string $updated_at

Returns

array

findPkSimple()

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

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\CustomerTitle

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

findPkComplex()

findPkComplex(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\CustomerTitle|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\CustomerTitle|array|mixed —

the result, formatted by the current formatter