\Thelia\ModelOrderFeatureQuery

Skeleton subclass for performing query and update operations on the 'order_feature' 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
__construct()
create()
findPk()
findPks()
filterByPrimaryKey()
filterByPrimaryKeys()
filterById()
filterByOrderProductId()
filterByFeatureDesc()
filterByFeatureAvDesc()
filterByCreatedAt()
filterByUpdatedAt()
filterByOrderProduct()
joinOrderProduct()
useOrderProductQuery()
prune()
doDeleteAll()
delete()
recentlyUpdated()
recentlyCreated()
lastUpdatedFirst()
firstUpdatedFirst()
lastCreatedFirst()
firstCreatedFirst()
orderById()
orderByOrderProductId()
orderByFeatureDesc()
orderByFeatureAvDesc()
orderByCreatedAt()
orderByUpdatedAt()
groupById()
groupByOrderProductId()
groupByFeatureDesc()
groupByFeatureAvDesc()
groupByCreatedAt()
groupByUpdatedAt()
leftJoin()
rightJoin()
innerJoin()
leftJoinOrderProduct()
rightJoinOrderProduct()
innerJoinOrderProduct()
findOne()
findOneOrCreate()
findOneById()
findOneByOrderProductId()
findOneByFeatureDesc()
findOneByFeatureAvDesc()
findOneByCreatedAt()
findOneByUpdatedAt()
findById()
findByOrderProductId()
findByFeatureDesc()
findByFeatureAvDesc()
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

__construct()

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

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

Returns a new ChildOrderFeatureQuery 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\OrderFeatureQuery

findPk()

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

Filter the query by primary key

Parameters

mixed $key

Primary key to use for the query

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

filterByPrimaryKeys()

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

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

The current query, for fluid interface

filterById()

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

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

The current query, for fluid interface

filterByOrderProductId()

filterByOrderProductId(mixed $orderProductId, string $comparison) : \Thelia\Model\OrderFeatureQuery

Filter the query on the order_product_id column

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

Parameters

mixed $orderProductId

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

The current query, for fluid interface

filterByFeatureDesc()

filterByFeatureDesc(string $featureDesc, string $comparison) : \Thelia\Model\OrderFeatureQuery

Filter the query on the feature_desc column

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

Parameters

string $featureDesc

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

The current query, for fluid interface

filterByFeatureAvDesc()

filterByFeatureAvDesc(string $featureAvDesc, string $comparison) : \Thelia\Model\OrderFeatureQuery

Filter the query on the feature_av_desc column

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

Parameters

string $featureAvDesc

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

The current query, for fluid interface

filterByCreatedAt()

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

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

The current query, for fluid interface

filterByUpdatedAt()

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

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

The current query, for fluid interface

filterByOrderProduct()

filterByOrderProduct(\Thelia\Model\OrderProduct|\Propel\Runtime\Collection\ObjectCollection $orderProduct, string $comparison) : \Thelia\Model\OrderFeatureQuery

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

Parameters

\Thelia\Model\OrderProduct|\Propel\Runtime\Collection\ObjectCollection $orderProduct

The related object(s) to use as filter

string $comparison

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

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

joinOrderProduct()

joinOrderProduct(string $relationAlias, string $joinType) : \Thelia\Model\OrderFeatureQuery

Adds a JOIN clause to the query using the OrderProduct relation

Parameters

string $relationAlias

optional alias for the relation

string $joinType

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

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

useOrderProductQuery()

useOrderProductQuery(string $relationAlias, string $joinType) : \Thelia\Model\OrderProductQuery

Use the OrderProduct relation OrderProduct 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\OrderProductQuery

A secondary query class using the current class as primary query

prune()

prune(\Thelia\Model\OrderFeature $orderFeature) : \Thelia\Model\OrderFeatureQuery

Exclude object from result

Parameters

\Thelia\Model\OrderFeature $orderFeature

Object to remove from the list of results

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

doDeleteAll()

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

Deletes all rows from the order_feature 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 ChildOrderFeature 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\OrderFeatureQuery

Filter by the latest updated

Parameters

int $nbDays

Maximum age of the latest update in days

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

recentlyCreated()

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

Filter by the latest created

Parameters

int $nbDays

Maximum age of in days

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

lastUpdatedFirst()

lastUpdatedFirst() : \Thelia\Model\OrderFeatureQuery

Order by update date desc

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

firstUpdatedFirst()

firstUpdatedFirst() : \Thelia\Model\OrderFeatureQuery

Order by update date asc

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

lastCreatedFirst()

lastCreatedFirst() : \Thelia\Model\OrderFeatureQuery

Order by create date desc

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

firstCreatedFirst()

firstCreatedFirst() : \Thelia\Model\OrderFeatureQuery

Order by create date asc

Returns

\Thelia\Model\OrderFeatureQuery

The current query, for fluid interface

orderById()

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

Order by the id column

Parameters

$order =

Returns

\Thelia\Model\OrderFeatureQuery

orderByOrderProductId()

orderByOrderProductId($order =) : \Thelia\Model\OrderFeatureQuery

Order by the order_product_id column

Parameters

$order =

Returns

\Thelia\Model\OrderFeatureQuery

orderByFeatureDesc()

orderByFeatureDesc($order =) : \Thelia\Model\OrderFeatureQuery

Order by the feature_desc column

Parameters

$order =

Returns

\Thelia\Model\OrderFeatureQuery

orderByFeatureAvDesc()

orderByFeatureAvDesc($order =) : \Thelia\Model\OrderFeatureQuery

Order by the feature_av_desc column

Parameters

$order =

Returns

\Thelia\Model\OrderFeatureQuery

orderByCreatedAt()

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

Order by the created_at column

Parameters

$order =

Returns

\Thelia\Model\OrderFeatureQuery

orderByUpdatedAt()

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

Order by the updated_at column

Parameters

$order =

Returns

\Thelia\Model\OrderFeatureQuery

groupById()

groupById() : \Thelia\Model\OrderFeatureQuery

Group by the id column

Returns

\Thelia\Model\OrderFeatureQuery

groupByOrderProductId()

groupByOrderProductId() : \Thelia\Model\OrderFeatureQuery

Group by the order_product_id column

Returns

\Thelia\Model\OrderFeatureQuery

groupByFeatureDesc()

groupByFeatureDesc() : \Thelia\Model\OrderFeatureQuery

Group by the feature_desc column

Returns

\Thelia\Model\OrderFeatureQuery

groupByFeatureAvDesc()

groupByFeatureAvDesc() : \Thelia\Model\OrderFeatureQuery

Group by the feature_av_desc column

Returns

\Thelia\Model\OrderFeatureQuery

groupByCreatedAt()

groupByCreatedAt() : \Thelia\Model\OrderFeatureQuery

Group by the created_at column

Returns

\Thelia\Model\OrderFeatureQuery

groupByUpdatedAt()

groupByUpdatedAt() : \Thelia\Model\OrderFeatureQuery

Group by the updated_at column

Returns

\Thelia\Model\OrderFeatureQuery

leftJoin()

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

Adds a LEFT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\OrderFeatureQuery

rightJoin()

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

Adds a RIGHT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\OrderFeatureQuery

innerJoin()

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

Adds a INNER JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\OrderFeatureQuery

leftJoinOrderProduct()

leftJoinOrderProduct($relationAlias =) : \Thelia\Model\OrderFeatureQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\OrderFeatureQuery

rightJoinOrderProduct()

rightJoinOrderProduct($relationAlias =) : \Thelia\Model\OrderFeatureQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\OrderFeatureQuery

innerJoinOrderProduct()

innerJoinOrderProduct($relationAlias =) : \Thelia\Model\OrderFeatureQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\OrderFeatureQuery

findOne()

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

Return the first ChildOrderFeature matching the query

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\OrderFeature

findOneOrCreate()

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

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

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\OrderFeature

findOneById()

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

Return the first ChildOrderFeature filtered by the id column

Parameters

int $id

Returns

\Thelia\Model\OrderFeature

findOneByOrderProductId()

findOneByOrderProductId(int $order_product_id) : \Thelia\Model\OrderFeature

Return the first ChildOrderFeature filtered by the order_product_id column

Parameters

int $order_product_id

Returns

\Thelia\Model\OrderFeature

findOneByFeatureDesc()

findOneByFeatureDesc(string $feature_desc) : \Thelia\Model\OrderFeature

Return the first ChildOrderFeature filtered by the feature_desc column

Parameters

string $feature_desc

Returns

\Thelia\Model\OrderFeature

findOneByFeatureAvDesc()

findOneByFeatureAvDesc(string $feature_av_desc) : \Thelia\Model\OrderFeature

Return the first ChildOrderFeature filtered by the feature_av_desc column

Parameters

string $feature_av_desc

Returns

\Thelia\Model\OrderFeature

findOneByCreatedAt()

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

Return the first ChildOrderFeature filtered by the created_at column

Parameters

string $created_at

Returns

\Thelia\Model\OrderFeature

findOneByUpdatedAt()

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

Return the first ChildOrderFeature filtered by the updated_at column

Parameters

string $updated_at

Returns

\Thelia\Model\OrderFeature

findById()

findById(int $id) : array

Return ChildOrderFeature objects filtered by the id column

Parameters

int $id

Returns

array

findByOrderProductId()

findByOrderProductId(int $order_product_id) : array

Return ChildOrderFeature objects filtered by the order_product_id column

Parameters

int $order_product_id

Returns

array

findByFeatureDesc()

findByFeatureDesc(string $feature_desc) : array

Return ChildOrderFeature objects filtered by the feature_desc column

Parameters

string $feature_desc

Returns

array

findByFeatureAvDesc()

findByFeatureAvDesc(string $feature_av_desc) : array

Return ChildOrderFeature objects filtered by the feature_av_desc column

Parameters

string $feature_av_desc

Returns

array

findByCreatedAt()

findByCreatedAt(string $created_at) : array

Return ChildOrderFeature objects filtered by the created_at column

Parameters

string $created_at

Returns

array

findByUpdatedAt()

findByUpdatedAt(string $updated_at) : array

Return ChildOrderFeature objects filtered by the updated_at column

Parameters

string $updated_at

Returns

array

findPkSimple()

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

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

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

findPkComplex()

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

the result, formatted by the current formatter