class ContentVersionQuery extends ModelCriteria

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

Methods

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

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

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

Returns a new ChildContentVersionQuery object.

ContentVersion|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

filterByVisible( mixed $visible = null, string $comparison = null)

Filter the query on the visible 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

filterByVersion( mixed $version = null, string $comparison = null)

Filter the query on the version column

filterByVersionCreatedAt( mixed $versionCreatedAt = null, string $comparison = null)

Filter the query on the versioncreatedat column

filterByVersionCreatedBy( string $versionCreatedBy = null, string $comparison = null)

Filter the query on the versioncreatedby column

filterByContent( Content|ObjectCollection $content, string $comparison = null)

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

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

Adds a JOIN clause to the query using the Content relation

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

Use the Content relation Content object

prune( ContentVersion $contentVersion = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the content_version table.

int
delete( ConnectionInterface $con = null)

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

ChildContentVersionQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildContentVersionQuery
orderByVisible($order = Criteria::ASC)

Order by the visible column

ChildContentVersionQuery
orderByPosition($order = Criteria::ASC)

Order by the position column

ChildContentVersionQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildContentVersionQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildContentVersionQuery
orderByVersion($order = Criteria::ASC)

Order by the version column

ChildContentVersionQuery
orderByVersionCreatedAt($order = Criteria::ASC)

Order by the versioncreatedat column

ChildContentVersionQuery
orderByVersionCreatedBy($order = Criteria::ASC)

Order by the versioncreatedby column

ChildContentVersionQuery
groupById()

Group by the id column

ChildContentVersionQuery
groupByVisible()

Group by the visible column

ChildContentVersionQuery
groupByPosition()

Group by the position column

ChildContentVersionQuery
groupByCreatedAt()

Group by the created_at column

ChildContentVersionQuery
groupByUpdatedAt()

Group by the updated_at column

ChildContentVersionQuery
groupByVersion()

Group by the version column

ChildContentVersionQuery
groupByVersionCreatedAt()

Group by the versioncreatedat column

ChildContentVersionQuery
groupByVersionCreatedBy()

Group by the versioncreatedby column

ChildContentVersionQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildContentVersionQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildContentVersionQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildContentVersionQuery
leftJoinContent($relationAlias = null)

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

ChildContentVersionQuery
rightJoinContent($relationAlias = null)

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

ChildContentVersionQuery
innerJoinContent($relationAlias = null)

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

ChildContentVersion
findOne( ConnectionInterface $con = null)

Return the first ChildContentVersion matching the query

ChildContentVersion
findOneOrCreate( ConnectionInterface $con = null)

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

ChildContentVersion
findOneById( int $id)

Return the first ChildContentVersion filtered by the id column

ChildContentVersion
findOneByVisible( int $visible)

Return the first ChildContentVersion filtered by the visible column

ChildContentVersion
findOneByPosition( int $position)

Return the first ChildContentVersion filtered by the position column

ChildContentVersion
findOneByCreatedAt( string $created_at)

Return the first ChildContentVersion filtered by the created_at column

ChildContentVersion
findOneByUpdatedAt( string $updated_at)

Return the first ChildContentVersion filtered by the updated_at column

ChildContentVersion
findOneByVersion( int $version)

Return the first ChildContentVersion filtered by the version column

ChildContentVersion
findOneByVersionCreatedAt( string $version_created_at)

Return the first ChildContentVersion filtered by the versioncreatedat column

ChildContentVersion
findOneByVersionCreatedBy( string $version_created_by)

Return the first ChildContentVersion filtered by the versioncreatedby column

array
findById( int $id)

Return ChildContentVersion objects filtered by the id column

array
findByVisible( int $visible)

Return ChildContentVersion objects filtered by the visible column

array
findByPosition( int $position)

Return ChildContentVersion objects filtered by the position column

array
findByCreatedAt( string $created_at)

Return ChildContentVersion objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildContentVersion objects filtered by the updated_at column

array
findByVersion( int $version)

Return ChildContentVersion objects filtered by the version column

array
findByVersionCreatedAt( string $version_created_at)

Return ChildContentVersion objects filtered by the versioncreatedat column

array
findByVersionCreatedBy( string $version_created_by)

Return ChildContentVersion objects filtered by the versioncreatedby column

Details

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

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

Returns a new ChildContentVersionQuery object.

Parameters

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

Return Value

ContentVersionQuery

at line 125
ContentVersion|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

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

at line 208
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 229
ContentVersionQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

ContentVersionQuery The current query, for fluid interface

at line 244
ContentVersionQuery 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

ContentVersionQuery The current query, for fluid interface

at line 279
ContentVersionQuery 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

ContentVersionQuery The current query, for fluid interface

See also

filterByContent()

at line 320
ContentVersionQuery filterByVisible( mixed $visible = null, string $comparison = null)

Filter the query on the visible column

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

Parameters

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

ContentVersionQuery The current query, for fluid interface

at line 361
ContentVersionQuery 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

ContentVersionQuery The current query, for fluid interface

at line 404
ContentVersionQuery 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

ContentVersionQuery The current query, for fluid interface

at line 447
ContentVersionQuery 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

ContentVersionQuery The current query, for fluid interface

at line 488
ContentVersionQuery filterByVersion( mixed $version = null, string $comparison = null)

Filter the query on the version column

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

Parameters

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

ContentVersionQuery The current query, for fluid interface

at line 531
ContentVersionQuery filterByVersionCreatedAt( mixed $versionCreatedAt = null, string $comparison = null)

Filter the query on the versioncreatedat column

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

Parameters

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

ContentVersionQuery The current query, for fluid interface

at line 569
ContentVersionQuery filterByVersionCreatedBy( string $versionCreatedBy = null, string $comparison = null)

Filter the query on the versioncreatedby column

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

Parameters

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

ContentVersionQuery The current query, for fluid interface

at line 591
ContentVersionQuery filterByContent( Content|ObjectCollection $content, string $comparison = null)

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

Parameters

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

Return Value

ContentVersionQuery The current query, for fluid interface

at line 616
ContentVersionQuery joinContent( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Content relation

Parameters

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

Return Value

ContentVersionQuery The current query, for fluid interface

at line 651
ContentQuery useContentQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

at line 665
ContentVersionQuery prune( ContentVersion $contentVersion = null)

Exclude object from result

Parameters

ContentVersion $contentVersion Object to remove from the list of results

Return Value

ContentVersionQuery The current query, for fluid interface

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

Deletes all rows from the content_version table.

Parameters

ConnectionInterface $con the connection to use

Return Value

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

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

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

Order by the id column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery orderByVisible($order = Criteria::ASC)

Order by the visible column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery orderByPosition($order = Criteria::ASC)

Order by the position column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery orderByVersion($order = Criteria::ASC)

Order by the version column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery orderByVersionCreatedAt($order = Criteria::ASC)

Order by the versioncreatedat column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery orderByVersionCreatedBy($order = Criteria::ASC)

Order by the versioncreatedby column

Parameters

$order

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupById()

Group by the id column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupByVisible()

Group by the visible column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupByPosition()

Group by the position column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupByVersion()

Group by the version column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupByVersionCreatedAt()

Group by the versioncreatedat column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery groupByVersionCreatedBy()

Group by the versioncreatedby column

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery leftJoinContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery rightJoinContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersionQuery innerJoinContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentVersionQuery

at line 72
ChildContentVersion findOne( ConnectionInterface $con = null)

Return the first ChildContentVersion matching the query

Parameters

ConnectionInterface $con

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneOrCreate( ConnectionInterface $con = null)

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

Parameters

ConnectionInterface $con

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneById( int $id)

Return the first ChildContentVersion filtered by the id column

Parameters

int $id

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneByVisible( int $visible)

Return the first ChildContentVersion filtered by the visible column

Parameters

int $visible

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneByPosition( int $position)

Return the first ChildContentVersion filtered by the position column

Parameters

int $position

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneByCreatedAt( string $created_at)

Return the first ChildContentVersion filtered by the created_at column

Parameters

string $created_at

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneByUpdatedAt( string $updated_at)

Return the first ChildContentVersion filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneByVersion( int $version)

Return the first ChildContentVersion filtered by the version column

Parameters

int $version

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneByVersionCreatedAt( string $version_created_at)

Return the first ChildContentVersion filtered by the versioncreatedat column

Parameters

string $version_created_at

Return Value

ChildContentVersion

at line 72
ChildContentVersion findOneByVersionCreatedBy( string $version_created_by)

Return the first ChildContentVersion filtered by the versioncreatedby column

Parameters

string $version_created_by

Return Value

ChildContentVersion

at line 72
array findById( int $id)

Return ChildContentVersion objects filtered by the id column

Parameters

int $id

Return Value

array

at line 72
array findByVisible( int $visible)

Return ChildContentVersion objects filtered by the visible column

Parameters

int $visible

Return Value

array

at line 72
array findByPosition( int $position)

Return ChildContentVersion objects filtered by the position column

Parameters

int $position

Return Value

array

at line 72
array findByCreatedAt( string $created_at)

Return ChildContentVersion objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

at line 72
array findByUpdatedAt( string $updated_at)

Return ChildContentVersion objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array

at line 72
array findByVersion( int $version)

Return ChildContentVersion objects filtered by the version column

Parameters

int $version

Return Value

array

at line 72
array findByVersionCreatedAt( string $version_created_at)

Return ChildContentVersion objects filtered by the versioncreatedat column

Parameters

string $version_created_at

Return Value

array

at line 72
array findByVersionCreatedBy( string $version_created_by)

Return ChildContentVersion objects filtered by the versioncreatedby column

Parameters

string $version_created_by

Return Value

array