# Class BaseContentVersionQuery

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

  ModelCriteria
  Thelia\Model\om\BaseContentVersionQuery

#### Direct known subclasses

Thelia\Model\ContentVersionQuery
Abstract
Namespace: Thelia\Model\om
Package: propel\generator\Thelia\Model\om
Located at core/lib/Thelia/Model/om/BaseContentVersionQuery.php

Methods summary
`public` | # `__construct( string $dbName = 'thelia', string $modelName = 'Thelia\\Model\\ContentVersion', string $modelAlias = null )` Initializes internal state of BaseContentVersionQuery object. Initializes internal state of BaseContentVersionQuery object. #### Parameters $dbName `string` $dbName The dabase name $modelName `string` $modelName The phpName of a model, e.g. 'Book' $modelAlias `string` $modelAlias The alias for the model in this query, e.g. 'b'
`public static `Thelia\Model\ContentVersionQuery`` | # `create( string $modelAlias = null, `Thelia\Model\ContentVersionQuery`|Criteria $criteria = null )` Returns a new ContentVersionQuery object. Returns a new ContentVersionQuery object. #### Parameters $modelAlias `string` $modelAlias The alias of a model in the query $criteria ``Thelia\Model\ContentVersionQuery`|Criteria` $criteria Optional Criteria to build the query from #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersion`|`Thelia\Model\ContentVersion[]`|mixed` | # `findPk( array $key, PropelPDO $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. 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 `array` $key Primary key to use for the query A Primary key composition: [$id, $version] $con `PropelPDO` $con an optional connection object #### Returns ``Thelia\Model\ContentVersion`|`Thelia\Model\ContentVersion[]`|mixed` the result, formatted by the current formatter
`protected `Thelia\Model\ContentVersion`` | # `findPkSimple( mixed $key, PropelPDO $con )` Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code. Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code. #### Parameters $key `mixed` $key Primary key to use for the query $con `PropelPDO` $con A connection object #### Returns ``Thelia\Model\ContentVersion`` A model object, or null if the key is not found #### Throws `PropelException`
`protected `Thelia\Model\ContentVersion`|`Thelia\Model\ContentVersion[]`|mixed` | # `findPkComplex( mixed $key, PropelPDO $con )` Find object by primary key. Find object by primary key. #### Parameters $key `mixed` $key Primary key to use for the query $con `PropelPDO` $con A connection object #### Returns ``Thelia\Model\ContentVersion`|`Thelia\Model\ContentVersion[]`|mixed` the result, formatted by the current formatter
`public PropelObjectCollection|`Thelia\Model\ContentVersion[]`|mixed` | # `findPks( array $keys, PropelPDO $con = null )` Find objects by primary key
    $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);
Find objects by primary key
    $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);
#### Parameters $keys `array` $keys Primary keys to use for the query $con `PropelPDO` $con an optional connection object #### Returns `PropelObjectCollection|`Thelia\Model\ContentVersion[]`|mixed` the list of results, formatted by the current formatter
`public `Thelia\Model\ContentVersionQuery`` | # `filterByPrimaryKey( mixed $key )` Filter the query by primary key Filter the query by primary key #### Parameters $key `mixed` $key Primary key to use for the query #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByPrimaryKeys( array $keys )` Filter the query by a list of primary keys Filter the query by a list of primary keys #### Parameters $keys `array` $keys The list of primary key to use for the query #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterById( mixed $id = null, string $comparison = null )` Filter the query on the id column 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
    $query->filterById(array('max' => 12)); // WHERE id <= 12
#### Parameters $id `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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface #### See ``Thelia\Model\om\BaseContentVersionQuery::filterByContent()``
`public `Thelia\Model\ContentVersionQuery`` | # `filterByVisible( mixed $visible = null, string $comparison = null )` Filter the query on the visible column 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
    $query->filterByVisible(array('max' => 12)); // WHERE visible <= 12
#### Parameters $visible `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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByPosition( mixed $position = null, string $comparison = null )` Filter the query on the position column 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
    $query->filterByPosition(array('max' => 12)); // WHERE position <= 12
#### Parameters $position `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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByCreatedAt( mixed $createdAt = null, string $comparison = null )` Filter the query on the created_at column 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 $createdAt `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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null )` Filter the query on the updated_at column 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 $updatedAt `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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByVersion( mixed $version = null, string $comparison = null )` Filter the query on the version column 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
    $query->filterByVersion(array('max' => 12)); // WHERE version <= 12
#### Parameters $version `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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByVersionCreatedAt( mixed $versionCreatedAt = null, string $comparison = null )` Filter the query on the version_created_at column Filter the query on the version_created_at column Example usage:
    $query->filterByVersionCreatedAt('2011-03-14'); // WHERE version_created_at = '2011-03-14'
    $query->filterByVersionCreatedAt('now'); // WHERE version_created_at = '2011-03-14'
    $query->filterByVersionCreatedAt(array('max' => 'yesterday')); // WHERE version_created_at > '2011-03-13'
#### Parameters $versionCreatedAt `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. $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByVersionCreatedBy( string $versionCreatedBy = null, string $comparison = null )` Filter the query on the version_created_by column Filter the query on the version_created_by column Example usage:
    $query->filterByVersionCreatedBy('fooValue');   // WHERE version_created_by = 'fooValue'
    $query->filterByVersionCreatedBy('%fooValue%'); // WHERE version_created_by LIKE '%fooValue%'
#### Parameters $versionCreatedBy `string` $versionCreatedBy The value to use as filter. Accepts wildcards (* and % trigger a LIKE) $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentVersionQuery`` | # `filterByContent( `Thelia\Model\Content`|PropelObjectCollection $content, string $comparison = null )` Filter the query by a related Content object Filter the query by a related Content object #### Parameters $content ``Thelia\Model\Content`|PropelObjectCollection` $content The related object(s) to use as filter $comparison `string` $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface #### Throws `PropelException` - if the provided filter is invalid.
`public `Thelia\Model\ContentVersionQuery`` | # `joinContent( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::INNER_JOIN )` Adds a JOIN clause to the query using the Content relation Adds a JOIN clause to the query using the Content relation #### Parameters $relationAlias `string` $relationAlias optional alias for the relation $joinType `string` $joinType Accepted values are null, 'left join', 'right join', 'inner join' #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface
`public `Thelia\Model\ContentQuery`` | # `useContentQuery( string $relationAlias = null, string $joinType = Thelia\Model\om\Criteria::INNER_JOIN )` Use the Content relation Content object Use the Content relation Content object #### Parameters $relationAlias `string` $relationAlias optional alias for the relation, to be used as main alias in the secondary query $joinType `string` $joinType Accepted values are null, 'left join', 'right join', 'inner join' #### Returns ``Thelia\Model\ContentQuery`` A secondary query class using the current class as primary query #### See useQuery()
`public `Thelia\Model\ContentVersionQuery`` | # `prune( `Thelia\Model\ContentVersion` $contentVersion = null )` Exclude object from result Exclude object from result #### Parameters $contentVersion ``Thelia\Model\ContentVersion`` $contentVersion Object to remove from the list of results #### Returns ``Thelia\Model\ContentVersionQuery`` The current query, for fluid interface

Magic methods summary
`public `Thelia\Model\ContentVersionQuery`` | # `orderById( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the id column Order by the id column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `orderByVisible( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the visible column Order by the visible column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `orderByPosition( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the position column Order by the position column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `orderByCreatedAt( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the created_at column Order by the created_at column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `orderByUpdatedAt( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the updated_at column Order by the updated_at column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `orderByVersion( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the version column Order by the version column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `orderByVersionCreatedAt( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the version_created_at column Order by the version_created_at column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `orderByVersionCreatedBy( mixed $order = Thelia\Model\om\Criteria::ASC )` Order by the version_created_by column Order by the version_created_by column #### Parameters $order `mixed` $order #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupById( )` Group by the id column Group by the id column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupByVisible( )` Group by the visible column Group by the visible column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupByPosition( )` Group by the position column Group by the position column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupByCreatedAt( )` Group by the created_at column Group by the created_at column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupByUpdatedAt( )` Group by the updated_at column Group by the updated_at column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupByVersion( )` Group by the version column Group by the version column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupByVersionCreatedAt( )` Group by the version_created_at column Group by the version_created_at column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `groupByVersionCreatedBy( )` Group by the version_created_by column Group by the version_created_by column #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `leftJoin( mixed $relation = )` Adds a LEFT JOIN clause to the query Adds a LEFT JOIN clause to the query #### Parameters $relation `mixed` $relation #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `rightJoin( mixed $relation = )` Adds a RIGHT JOIN clause to the query Adds a RIGHT JOIN clause to the query #### Parameters $relation `mixed` $relation #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `innerJoin( mixed $relation = )` Adds a INNER JOIN clause to the query Adds a INNER JOIN clause to the query #### Parameters $relation `mixed` $relation #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `leftJoinContent( mixed $relationAlias = null )` Adds a LEFT JOIN clause to the query using the Content relation Adds a LEFT JOIN clause to the query using the Content relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `rightJoinContent( mixed $relationAlias = null )` Adds a RIGHT JOIN clause to the query using the Content relation Adds a RIGHT JOIN clause to the query using the Content relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersionQuery`` | # `innerJoinContent( mixed $relationAlias = null )` Adds a INNER JOIN clause to the query using the Content relation Adds a INNER JOIN clause to the query using the Content relation #### Parameters $relationAlias `mixed` $relationAlias #### Returns ``Thelia\Model\ContentVersionQuery``
`public `Thelia\Model\ContentVersion`` | # `findOne( PropelPDO $con = null )` Return the first ContentVersion matching the query Return the first ContentVersion matching the query #### Parameters $con `PropelPDO` $con #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneOrCreate( PropelPDO $con = null )` Return the first ContentVersion matching the query, or a new ContentVersion object populated from the query conditions when no match is found Return the first ContentVersion matching the query, or a new ContentVersion object populated from the query conditions when no match is found #### Parameters $con `PropelPDO` $con #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneById( integer $id = )` Return the first ContentVersion filtered by the id column Return the first ContentVersion filtered by the id column #### Parameters $id `integer` $id #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneByVisible( integer $visible = )` Return the first ContentVersion filtered by the visible column Return the first ContentVersion filtered by the visible column #### Parameters $visible `integer` $visible #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneByPosition( integer $position = )` Return the first ContentVersion filtered by the position column Return the first ContentVersion filtered by the position column #### Parameters $position `integer` $position #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneByCreatedAt( string $created_at = )` Return the first ContentVersion filtered by the created_at column Return the first ContentVersion filtered by the created_at column #### Parameters $created_at `string` $created_at #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneByUpdatedAt( string $updated_at = )` Return the first ContentVersion filtered by the updated_at column Return the first ContentVersion filtered by the updated_at column #### Parameters $updated_at `string` $updated_at #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneByVersion( integer $version = )` Return the first ContentVersion filtered by the version column Return the first ContentVersion filtered by the version column #### Parameters $version `integer` $version #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneByVersionCreatedAt( string $version_created_at = )` Return the first ContentVersion filtered by the version_created_at column Return the first ContentVersion filtered by the version_created_at column #### Parameters $version_created_at `string` $version_created_at #### Returns ``Thelia\Model\ContentVersion``
`public `Thelia\Model\ContentVersion`` | # `findOneByVersionCreatedBy( string $version_created_by = )` Return the first ContentVersion filtered by the version_created_by column Return the first ContentVersion filtered by the version_created_by column #### Parameters $version_created_by `string` $version_created_by #### Returns ``Thelia\Model\ContentVersion``
`public array` | # `findById( integer $id = )` Return ContentVersion objects filtered by the id column Return ContentVersion objects filtered by the id column #### Parameters $id `integer` $id #### Returns `array`
`public array` | # `findByVisible( integer $visible = )` Return ContentVersion objects filtered by the visible column Return ContentVersion objects filtered by the visible column #### Parameters $visible `integer` $visible #### Returns `array`
`public array` | # `findByPosition( integer $position = )` Return ContentVersion objects filtered by the position column Return ContentVersion objects filtered by the position column #### Parameters $position `integer` $position #### Returns `array`
`public array` | # `findByCreatedAt( string $created_at = )` Return ContentVersion objects filtered by the created_at column Return ContentVersion objects filtered by the created_at column #### Parameters $created_at `string` $created_at #### Returns `array`
`public array` | # `findByUpdatedAt( string $updated_at = )` Return ContentVersion objects filtered by the updated_at column Return ContentVersion objects filtered by the updated_at column #### Parameters $updated_at `string` $updated_at #### Returns `array`
`public array` | # `findByVersion( integer $version = )` Return ContentVersion objects filtered by the version column Return ContentVersion objects filtered by the version column #### Parameters $version `integer` $version #### Returns `array`
`public array` | # `findByVersionCreatedAt( string $version_created_at = )` Return ContentVersion objects filtered by the version_created_at column Return ContentVersion objects filtered by the version_created_at column #### Parameters $version_created_at `string` $version_created_at #### Returns `array`
`public array` | # `findByVersionCreatedBy( string $version_created_by = )` Return ContentVersion objects filtered by the version_created_by column Return ContentVersion objects filtered by the version_created_by column #### Parameters $version_created_by `string` $version_created_by #### Returns `array`