class ContentQuery extends ContentQuery

Skeleton subclass for performing query and update operations on the 'content' 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.

Properties

static $isVersioningEnabled Whether the versioning is enabled from  ContentQuery

Methods

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

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

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

Returns a new ChildContentQuery object.

Content|array|mixed
findPk( mixed $key, ConnectionInterface $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(12, 56, 832), $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)

No description

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

filterByContentFolder( ContentFolder|ObjectCollection $contentFolder, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ContentFolder relation

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

Use the ContentFolder relation ContentFolder object

filterByContentImage( ContentImage|ObjectCollection $contentImage, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ContentImage relation

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

Use the ContentImage relation ContentImage object

filterByContentDocument( ContentDocument|ObjectCollection $contentDocument, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ContentDocument relation

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

Use the ContentDocument relation ContentDocument object

filterByProductAssociatedContent( ProductAssociatedContent|ObjectCollection $productAssociatedContent, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ProductAssociatedContent relation

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

Use the ProductAssociatedContent relation ProductAssociatedContent object

filterByCategoryAssociatedContent( CategoryAssociatedContent|ObjectCollection $categoryAssociatedContent, string $comparison = null)

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

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

Adds a JOIN clause to the query using the CategoryAssociatedContent relation

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

Use the CategoryAssociatedContent relation CategoryAssociatedContent object

filterByContentI18n( ContentI18n|ObjectCollection $contentI18n, string $comparison = null)

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

joinContentI18n( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Adds a JOIN clause to the query using the ContentI18n relation

useContentI18nQuery( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Use the ContentI18n relation ContentI18n object

filterByContentVersion( ContentVersion|ObjectCollection $contentVersion, string $comparison = null)

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

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

Adds a JOIN clause to the query using the ContentVersion relation

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

Use the ContentVersion relation ContentVersion object

filterByFolder( Folder $folder, string $comparison = Criteria::EQUAL)

Filter the query by a related Folder object using the content_folder table as cross reference

prune( Content $content = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the content table.

int
delete( ConnectionInterface $con = null)

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

recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

recentlyCreated( int $nbDays = 7)

Filter by the latest created

lastUpdatedFirst()

Order by update date desc

firstUpdatedFirst()

Order by update date asc

lastCreatedFirst()

Order by create date desc

firstCreatedFirst()

Order by create date asc

joinI18n( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query using the i18n relation

joinWithI18n( string $locale = 'en_US', string $joinType = Criteria::LEFT_JOIN)

Adds a JOIN clause to the query and hydrates the related I18n object.

useI18nQuery( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

Use the I18n relation query object

static  boolean
isVersioningEnabled()

Checks whether versioning is enabled

static 
enableVersioning()

Enables versioning

static 
disableVersioning()

Disables versioning

ChildContentQuery
orderById($order = Criteria::ASC)

Order by the id column

ChildContentQuery
orderByVisible($order = Criteria::ASC)

Order by the visible column

ChildContentQuery
orderByPosition($order = Criteria::ASC)

No description

ChildContentQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildContentQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildContentQuery
orderByVersion($order = Criteria::ASC)

Order by the version column

ChildContentQuery
orderByVersionCreatedAt($order = Criteria::ASC)

Order by the versioncreatedat column

ChildContentQuery
orderByVersionCreatedBy($order = Criteria::ASC)

Order by the versioncreatedby column

ChildContentQuery
groupById()

Group by the id column

ChildContentQuery
groupByVisible()

Group by the visible column

ChildContentQuery
groupByPosition()

No description

ChildContentQuery
groupByCreatedAt()

Group by the created_at column

ChildContentQuery
groupByUpdatedAt()

Group by the updated_at column

ChildContentQuery
groupByVersion()

Group by the version column

ChildContentQuery
groupByVersionCreatedAt()

Group by the versioncreatedat column

ChildContentQuery
groupByVersionCreatedBy()

Group by the versioncreatedby column

ChildContentQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildContentQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildContentQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildContentQuery
leftJoinContentFolder($relationAlias = null)

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

ChildContentQuery
rightJoinContentFolder($relationAlias = null)

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

ChildContentQuery
innerJoinContentFolder($relationAlias = null)

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

ChildContentQuery
leftJoinContentImage($relationAlias = null)

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

ChildContentQuery
rightJoinContentImage($relationAlias = null)

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

ChildContentQuery
innerJoinContentImage($relationAlias = null)

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

ChildContentQuery
leftJoinContentDocument($relationAlias = null)

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

ChildContentQuery
rightJoinContentDocument($relationAlias = null)

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

ChildContentQuery
innerJoinContentDocument($relationAlias = null)

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

ChildContentQuery
leftJoinProductAssociatedContent($relationAlias = null)

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

ChildContentQuery
rightJoinProductAssociatedContent($relationAlias = null)

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

ChildContentQuery
innerJoinProductAssociatedContent($relationAlias = null)

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

ChildContentQuery
leftJoinCategoryAssociatedContent($relationAlias = null)

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

ChildContentQuery
rightJoinCategoryAssociatedContent($relationAlias = null)

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

ChildContentQuery
innerJoinCategoryAssociatedContent($relationAlias = null)

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

ChildContentQuery
leftJoinContentI18n($relationAlias = null)

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

ChildContentQuery
rightJoinContentI18n($relationAlias = null)

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

ChildContentQuery
innerJoinContentI18n($relationAlias = null)

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

ChildContentQuery
leftJoinContentVersion($relationAlias = null)

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

ChildContentQuery
rightJoinContentVersion($relationAlias = null)

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

ChildContentQuery
innerJoinContentVersion($relationAlias = null)

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

ChildContent
findOne( ConnectionInterface $con = null)

Return the first ChildContent matching the query

ChildContent
findOneOrCreate( ConnectionInterface $con = null)

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

ChildContent
findOneById( int $id)

Return the first ChildContent filtered by the id column

ChildContent
findOneByVisible( int $visible)

Return the first ChildContent filtered by the visible column

ChildContent
findOneByPosition( int $position)

No description

ChildContent
findOneByCreatedAt( string $created_at)

Return the first ChildContent filtered by the created_at column

ChildContent
findOneByUpdatedAt( string $updated_at)

Return the first ChildContent filtered by the updated_at column

ChildContent
findOneByVersion( int $version)

Return the first ChildContent filtered by the version column

ChildContent
findOneByVersionCreatedAt( string $version_created_at)

Return the first ChildContent filtered by the versioncreatedat column

ChildContent
findOneByVersionCreatedBy( string $version_created_by)

Return the first ChildContent filtered by the versioncreatedby column

array
findById( int $id)

Return ChildContent objects filtered by the id column

array
findByVisible( int $visible)

Return ChildContent objects filtered by the visible column

array
findByPosition( int $position)

No description

array
findByCreatedAt( string $created_at)

Return ChildContent objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildContent objects filtered by the updated_at column

array
findByVersion( int $version)

Return ChildContent objects filtered by the version column

array
findByVersionCreatedAt( string $version_created_at)

Return ChildContent objects filtered by the versioncreatedat column

array
findByVersionCreatedBy( string $version_created_by)

Return ChildContent objects filtered by the versioncreatedby column

Details

in ContentQuery at line 114
__construct( string $dbName = 'thelia', string $modelName = '\\Thelia\\Model\\Content', string $modelAlias = null)

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

in ContentQuery at line 127
static ContentQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildContentQuery object.

Parameters

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

Return Value

ContentQuery

in ContentQuery at line 157
Content|array|mixed findPk( mixed $key, ConnectionInterface $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(12, $con);

Parameters

mixed $key Primary key to use for the query
ConnectionInterface $con an optional connection object

Return Value

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

in ContentQuery at line 239
ObjectCollection|array|mixed findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(12, 56, 832), $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

in ContentQuery at line 260
ContentQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 273
ContentQuery 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

ContentQuery The current query, for fluid interface

in ContentQuery at line 297
ContentQuery 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

ContentQuery The current query, for fluid interface

in ContentQuery at line 338
ContentQuery 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

ContentQuery The current query, for fluid interface

at line 22
ContentQuery filterByPosition( mixed $position = null, string $comparison = null)

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

ContentQuery The current query, for fluid interface

in ContentQuery at line 422
ContentQuery 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

ContentQuery The current query, for fluid interface

in ContentQuery at line 465
ContentQuery 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

ContentQuery The current query, for fluid interface

in ContentQuery at line 506
ContentQuery 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

ContentQuery The current query, for fluid interface

in ContentQuery at line 549
ContentQuery 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

ContentQuery The current query, for fluid interface

in ContentQuery at line 587
ContentQuery 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

ContentQuery The current query, for fluid interface

in ContentQuery at line 609
ContentQuery filterByContentFolder( ContentFolder|ObjectCollection $contentFolder, string $comparison = null)

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

Parameters

ContentFolder|ObjectCollection $contentFolder the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 632
ContentQuery joinContentFolder( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ContentFolder relation

Parameters

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

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 667
ContentFolderQuery useContentFolderQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

in ContentQuery at line 682
ContentQuery filterByContentImage( ContentImage|ObjectCollection $contentImage, string $comparison = null)

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

Parameters

ContentImage|ObjectCollection $contentImage the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 705
ContentQuery joinContentImage( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ContentImage relation

Parameters

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

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 740
ContentImageQuery useContentImageQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

in ContentQuery at line 755
ContentQuery filterByContentDocument( ContentDocument|ObjectCollection $contentDocument, string $comparison = null)

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

Parameters

ContentDocument|ObjectCollection $contentDocument the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 778
ContentQuery joinContentDocument( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ContentDocument relation

Parameters

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

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 813
ContentDocumentQuery useContentDocumentQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

in ContentQuery at line 828
ContentQuery filterByProductAssociatedContent( ProductAssociatedContent|ObjectCollection $productAssociatedContent, string $comparison = null)

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

Parameters

ProductAssociatedContent|ObjectCollection $productAssociatedContent the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 851
ContentQuery joinProductAssociatedContent( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ProductAssociatedContent relation

Parameters

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

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 886
ProductAssociatedContentQuery useProductAssociatedContentQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

in ContentQuery at line 901
ContentQuery filterByCategoryAssociatedContent( CategoryAssociatedContent|ObjectCollection $categoryAssociatedContent, string $comparison = null)

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

Parameters

CategoryAssociatedContent|ObjectCollection $categoryAssociatedContent the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 924
ContentQuery joinCategoryAssociatedContent( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the CategoryAssociatedContent relation

Parameters

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

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 959
CategoryAssociatedContentQuery useCategoryAssociatedContentQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

in ContentQuery at line 974
ContentQuery filterByContentI18n( ContentI18n|ObjectCollection $contentI18n, string $comparison = null)

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

Parameters

ContentI18n|ObjectCollection $contentI18n the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 997
ContentQuery joinContentI18n( string $relationAlias = null, string $joinType = 'LEFT JOIN')

Adds a JOIN clause to the query using the ContentI18n relation

Parameters

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

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1032
ContentI18nQuery useContentI18nQuery( string $relationAlias = null, string $joinType = 'LEFT JOIN')

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

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

See also

useQuery()

in ContentQuery at line 1047
ContentQuery filterByContentVersion( ContentVersion|ObjectCollection $contentVersion, string $comparison = null)

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

Parameters

ContentVersion|ObjectCollection $contentVersion the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1070
ContentQuery joinContentVersion( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the ContentVersion relation

Parameters

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

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1105
ContentVersionQuery useContentVersionQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

in ContentQuery at line 1121
ContentQuery filterByFolder( Folder $folder, string $comparison = Criteria::EQUAL)

Filter the query by a related Folder object using the content_folder table as cross reference

Parameters

Folder $folder the related object to use as filter
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1136
ContentQuery prune( Content $content = null)

Exclude object from result

Parameters

Content $content Object to remove from the list of results

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1151
int doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the content table.

Parameters

ConnectionInterface $con the connection to use

Return Value

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

in ContentQuery at line 1188
int delete( ConnectionInterface $con = null)

Performs a DELETE on the database, given a ChildContent 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.

in ContentQuery at line 1229
ContentQuery recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

Parameters

int $nbDays Maximum age of the latest update in days

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1241
ContentQuery recentlyCreated( int $nbDays = 7)

Filter by the latest created

Parameters

int $nbDays Maximum age of in days

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1251
ContentQuery lastUpdatedFirst()

Order by update date desc

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1261
ContentQuery firstUpdatedFirst()

Order by update date asc

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1271
ContentQuery lastCreatedFirst()

Order by create date desc

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1281
ContentQuery firstCreatedFirst()

Order by create date asc

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1297
ContentQuery joinI18n( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

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.

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1315
ContentQuery joinWithI18n( string $locale = 'en_US', string $joinType = Criteria::LEFT_JOIN)

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.

Return Value

ContentQuery The current query, for fluid interface

in ContentQuery at line 1336
ContentI18nQuery useI18nQuery( string $locale = 'en_US', string $relationAlias = null, string $joinType = Criteria::LEFT_JOIN)

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.

Return Value

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

See also

useQuery()

in ContentQuery at line 1350
static boolean isVersioningEnabled()

Checks whether versioning is enabled

Return Value

boolean

in ContentQuery at line 1358
static enableVersioning()

Enables versioning

in ContentQuery at line 1366
static disableVersioning()

Disables versioning

in ContentQuery at line 97
ChildContentQuery orderById($order = Criteria::ASC)

Order by the id column

Parameters

$order

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery orderByVisible($order = Criteria::ASC)

Order by the visible column

Parameters

$order

Return Value

ChildContentQuery

at line 31
ChildContentQuery orderByPosition($order = Criteria::ASC)

Parameters

$order

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery orderByVersion($order = Criteria::ASC)

Order by the version column

Parameters

$order

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery orderByVersionCreatedAt($order = Criteria::ASC)

Order by the versioncreatedat column

Parameters

$order

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery orderByVersionCreatedBy($order = Criteria::ASC)

Order by the versioncreatedby column

Parameters

$order

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery groupById()

Group by the id column

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery groupByVisible()

Group by the visible column

Return Value

ChildContentQuery

at line 40
ChildContentQuery groupByPosition()

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery groupByVersion()

Group by the version column

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery groupByVersionCreatedAt()

Group by the versioncreatedat column

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery groupByVersionCreatedBy()

Group by the versioncreatedby column

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoinContentFolder($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoinContentFolder($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoinContentFolder($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoinContentImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoinContentImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoinContentImage($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoinContentDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoinContentDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoinContentDocument($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoinProductAssociatedContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoinProductAssociatedContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoinProductAssociatedContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoinCategoryAssociatedContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoinCategoryAssociatedContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoinCategoryAssociatedContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoinContentI18n($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoinContentI18n($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoinContentI18n($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery leftJoinContentVersion($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery rightJoinContentVersion($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContentQuery innerJoinContentVersion($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentQuery

in ContentQuery at line 97
ChildContent findOne( ConnectionInterface $con = null)

Return the first ChildContent matching the query

Parameters

ConnectionInterface $con

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneOrCreate( ConnectionInterface $con = null)

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

Parameters

ConnectionInterface $con

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneById( int $id)

Return the first ChildContent filtered by the id column

Parameters

int $id

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneByVisible( int $visible)

Return the first ChildContent filtered by the visible column

Parameters

int $visible

Return Value

ChildContent

at line 49
ChildContent findOneByPosition( int $position)

Parameters

int $position

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneByCreatedAt( string $created_at)

Return the first ChildContent filtered by the created_at column

Parameters

string $created_at

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneByUpdatedAt( string $updated_at)

Return the first ChildContent filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneByVersion( int $version)

Return the first ChildContent filtered by the version column

Parameters

int $version

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneByVersionCreatedAt( string $version_created_at)

Return the first ChildContent filtered by the versioncreatedat column

Parameters

string $version_created_at

Return Value

ChildContent

in ContentQuery at line 97
ChildContent findOneByVersionCreatedBy( string $version_created_by)

Return the first ChildContent filtered by the versioncreatedby column

Parameters

string $version_created_by

Return Value

ChildContent

in ContentQuery at line 97
array findById( int $id)

Return ChildContent objects filtered by the id column

Parameters

int $id

Return Value

array

in ContentQuery at line 97
array findByVisible( int $visible)

Return ChildContent objects filtered by the visible column

Parameters

int $visible

Return Value

array

at line 58
array findByPosition( int $position)

Parameters

int $position

Return Value

array

in ContentQuery at line 97
array findByCreatedAt( string $created_at)

Return ChildContent objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

in ContentQuery at line 97
array findByUpdatedAt( string $updated_at)

Return ChildContent objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array

in ContentQuery at line 97
array findByVersion( int $version)

Return ChildContent objects filtered by the version column

Parameters

int $version

Return Value

array

in ContentQuery at line 97
array findByVersionCreatedAt( string $version_created_at)

Return ChildContent objects filtered by the versioncreatedat column

Parameters

string $version_created_at

Return Value

array

in ContentQuery at line 97
array findByVersionCreatedBy( string $version_created_by)

Return ChildContent objects filtered by the versioncreatedby column

Parameters

string $version_created_by

Return Value

array