ContentVersionQuery
class ContentVersionQuery extends ContentVersionQuery
Skeleton subclass for performing query and update operations on the 'content_version' 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.
Methods
Initializes internal state of \Thelia\Model\Base\ContentVersionQuery object.
Returns a new ChildContentVersionQuery object.
Find object by primary key.
Find objects by primary key
$objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);
Filter the query by primary key
Filter the query by a list of primary keys
Filter the query on the id column
Filter the query on the visible column
Filter the query on the position column
Filter the query on the created_at column
Filter the query on the updated_at column
Filter the query on the version column
Filter the query on the versioncreatedat column
Filter the query on the versioncreatedby column
Filter the query by a related \Thelia\Model\Content object
Adds a JOIN clause to the query using the Content relation
Use the Content relation Content object
Deletes all rows from the content_version table.
Performs a DELETE on the database, given a ChildContentVersion or Criteria object OR a primary key value.
Order by the id column
Order by the visible column
Order by the position column
Order by the created_at column
Order by the updated_at column
Order by the version column
Order by the versioncreatedat column
Order by the versioncreatedby column
Group by the versioncreatedat column
Group by the versioncreatedby column
Adds a LEFT JOIN clause to the query
Adds a RIGHT JOIN clause to the query
Adds a INNER JOIN clause to the query
Adds a LEFT JOIN clause to the query using the Content relation
Adds a RIGHT JOIN clause to the query using the Content relation
Adds a INNER JOIN clause to the query using the Content relation
Return the first ChildContentVersion matching the query
Return the first ChildContentVersion matching the query, or a new ChildContentVersion object populated from the query conditions when no match is found
Return the first ChildContentVersion filtered by the id column
Return the first ChildContentVersion filtered by the visible column
Return the first ChildContentVersion filtered by the position column
Return the first ChildContentVersion filtered by the created_at column
Return the first ChildContentVersion filtered by the updated_at column
Return the first ChildContentVersion filtered by the version column
Return the first ChildContentVersion filtered by the versioncreatedat column
Return the first ChildContentVersion filtered by the versioncreatedby column
Return ChildContentVersion objects filtered by the id column
Return ChildContentVersion objects filtered by the visible column
Return ChildContentVersion objects filtered by the position column
Return ChildContentVersion objects filtered by the created_at column
Return ChildContentVersion objects filtered by the updated_at column
Return ChildContentVersion objects filtered by the version column
Return ChildContentVersion objects filtered by the versioncreatedat column
Return ChildContentVersion objects filtered by the versioncreatedby column
Details
in
ContentVersionQuery at line 82
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\ContentVersion',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\ContentVersionQuery object.
in
ContentVersionQuery at line 95
static
ContentVersionQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildContentVersionQuery object.
in
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);
in
ContentVersionQuery 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);
in
ContentVersionQuery at line 229
ContentVersionQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
in
ContentVersionQuery at line 244
ContentVersionQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
in
ContentVersionQuery 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
in
ContentVersionQuery 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
in
ContentVersionQuery 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
in
ContentVersionQuery 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'
in
ContentVersionQuery 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'
in
ContentVersionQuery 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
in
ContentVersionQuery 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'
in
ContentVersionQuery 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%'
in
ContentVersionQuery at line 591
ContentVersionQuery
filterByContent(
Content|ObjectCollection $content,
string $comparison = null)
Filter the query by a related \Thelia\Model\Content object
in
ContentVersionQuery at line 616
ContentVersionQuery
joinContent(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Content relation
in
ContentVersionQuery at line 651
ContentQuery
useContentQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Content relation Content object
in
ContentVersionQuery at line 665
ContentVersionQuery
prune(
ContentVersion $contentVersion = null)
Exclude object from result
in
ContentVersionQuery at line 682
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the content_version table.
in
ContentVersionQuery 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.
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderById($order = Criteria::ASC)
Order by the id column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderByVisible($order = Criteria::ASC)
Order by the visible column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderByPosition($order = Criteria::ASC)
Order by the position column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderByVersion($order = Criteria::ASC)
Order by the version column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderByVersionCreatedAt($order = Criteria::ASC)
Order by the versioncreatedat column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
orderByVersionCreatedBy($order = Criteria::ASC)
Order by the versioncreatedby column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupById()
Group by the id column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupByVisible()
Group by the visible column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupByPosition()
Group by the position column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupByCreatedAt()
Group by the created_at column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupByUpdatedAt()
Group by the updated_at column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupByVersion()
Group by the version column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupByVersionCreatedAt()
Group by the versioncreatedat column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
groupByVersionCreatedBy()
Group by the versioncreatedby column
in
ContentVersionQuery at line 72
ChildContentVersionQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
in
ContentVersionQuery at line 72
ChildContentVersionQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
in
ContentVersionQuery at line 72
ChildContentVersionQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
in
ContentVersionQuery at line 72
ChildContentVersionQuery
leftJoinContent($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Content relation
in
ContentVersionQuery at line 72
ChildContentVersionQuery
rightJoinContent($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Content relation
in
ContentVersionQuery at line 72
ChildContentVersionQuery
innerJoinContent($relationAlias = null)
Adds a INNER JOIN clause to the query using the Content relation
in
ContentVersionQuery at line 72
ChildContentVersion
findOne(
ConnectionInterface $con = null)
Return the first ChildContentVersion matching the query
in
ContentVersionQuery 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
in
ContentVersionQuery at line 72
ChildContentVersion
findOneById(
int $id)
Return the first ChildContentVersion filtered by the id column
in
ContentVersionQuery at line 72
ChildContentVersion
findOneByVisible(
int $visible)
Return the first ChildContentVersion filtered by the visible column
in
ContentVersionQuery at line 72
ChildContentVersion
findOneByPosition(
int $position)
Return the first ChildContentVersion filtered by the position column
in
ContentVersionQuery at line 72
ChildContentVersion
findOneByCreatedAt(
string $created_at)
Return the first ChildContentVersion filtered by the created_at column
in
ContentVersionQuery at line 72
ChildContentVersion
findOneByUpdatedAt(
string $updated_at)
Return the first ChildContentVersion filtered by the updated_at column
in
ContentVersionQuery at line 72
ChildContentVersion
findOneByVersion(
int $version)
Return the first ChildContentVersion filtered by the version column
in
ContentVersionQuery at line 72
ChildContentVersion
findOneByVersionCreatedAt(
string $version_created_at)
Return the first ChildContentVersion filtered by the versioncreatedat column
in
ContentVersionQuery at line 72
ChildContentVersion
findOneByVersionCreatedBy(
string $version_created_by)
Return the first ChildContentVersion filtered by the versioncreatedby column
in
ContentVersionQuery at line 72
array
findById(
int $id)
Return ChildContentVersion objects filtered by the id column
in
ContentVersionQuery at line 72
array
findByVisible(
int $visible)
Return ChildContentVersion objects filtered by the visible column
in
ContentVersionQuery at line 72
array
findByPosition(
int $position)
Return ChildContentVersion objects filtered by the position column
in
ContentVersionQuery at line 72
array
findByCreatedAt(
string $created_at)
Return ChildContentVersion objects filtered by the created_at column
in
ContentVersionQuery at line 72
array
findByUpdatedAt(
string $updated_at)
Return ChildContentVersion objects filtered by the updated_at column
in
ContentVersionQuery at line 72
array
findByVersion(
int $version)
Return ChildContentVersion objects filtered by the version column
in
ContentVersionQuery at line 72
array
findByVersionCreatedAt(
string $version_created_at)
Return ChildContentVersion objects filtered by the versioncreatedat column
in
ContentVersionQuery at line 72
array
findByVersionCreatedBy(
string $version_created_by)
Return ChildContentVersion objects filtered by the versioncreatedby column