$isVersioningEnabled
$isVersioningEnabled
Whether the versioning is enabled
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.
__construct(string $dbName, string $modelName, string $modelAlias)
Initializes internal state of \Thelia\Model\Base\ContentQuery object.
| string | $dbName | The database name |
| string | $modelName | The phpName of a model, e.g. 'Book' |
| string | $modelAlias | The alias for the model in this query, e.g. 'b' |
create(string $modelAlias, \Propel\Runtime\ActiveQuery\Criteria $criteria) : \Thelia\Model\ContentQuery
Returns a new ChildContentQuery object.
| string | $modelAlias | The alias of a model in the query |
| \Propel\Runtime\ActiveQuery\Criteria | $criteria | Optional Criteria to build the query from |
findPk(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Content|array|mixed
Find object by primary key.
Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched.
$obj = $c->findPk(12, $con);
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
the result, formatted by the current formatter
findPks(array $keys, \Propel\Runtime\Connection\ConnectionInterface $con) : \Propel\Runtime\Collection\ObjectCollection|array|mixed
Find objects by primary key <code> $objs = $c->findPks(array(12, 56, 832), $con); </code>
| array | $keys | Primary keys to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | an optional connection object |
the list of results, formatted by the current formatter
filterByPrimaryKey(mixed $key) : \Thelia\Model\ContentQuery
Filter the query by primary key
| mixed | $key | Primary key to use for the query |
The current query, for fluid interface
filterByPrimaryKeys(array $keys) : \Thelia\Model\ContentQuery
Filter the query by a list of primary keys
| array | $keys | The list of primary key to use for the query |
The current query, for fluid interface
filterById(mixed $id, string $comparison) : \Thelia\Model\ContentQuery
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
| 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 |
The current query, for fluid interface
filterByVisible(mixed $visible, string $comparison) : \Thelia\Model\ContentQuery
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
| 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 |
The current query, for fluid interface
filterByPosition(mixed $position, string $comparison) : \Thelia\Model\ContentQuery
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
| 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 |
The current query, for fluid interface
filterByCreatedAt(mixed $createdAt, string $comparison) : \Thelia\Model\ContentQuery
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'
| 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 |
The current query, for fluid interface
filterByUpdatedAt(mixed $updatedAt, string $comparison) : \Thelia\Model\ContentQuery
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'
| 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 |
The current query, for fluid interface
filterByVersion(mixed $version, string $comparison) : \Thelia\Model\ContentQuery
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
| 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 |
The current query, for fluid interface
filterByVersionCreatedAt(mixed $versionCreatedAt, string $comparison) : \Thelia\Model\ContentQuery
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'
| 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 |
The current query, for fluid interface
filterByVersionCreatedBy(string $versionCreatedBy, string $comparison) : \Thelia\Model\ContentQuery
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%'
| 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 |
The current query, for fluid interface
filterByContentAssoc(\Thelia\Model\ContentAssoc|\Propel\Runtime\Collection\ObjectCollection $contentAssoc, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related \Thelia\Model\ContentAssoc object
| \Thelia\Model\ContentAssoc|\Propel\Runtime\Collection\ObjectCollection | $contentAssoc | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinContentAssoc(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the ContentAssoc relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useContentAssocQuery(string $relationAlias, string $joinType) : \Thelia\Model\ContentAssocQuery
Use the ContentAssoc relation ContentAssoc object
| 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' |
A secondary query class using the current class as primary query
filterByImage(\Thelia\Model\Image|\Propel\Runtime\Collection\ObjectCollection $image, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related \Thelia\Model\Image object
| \Thelia\Model\Image|\Propel\Runtime\Collection\ObjectCollection | $image | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinImage(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the Image relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useImageQuery(string $relationAlias, string $joinType) : \Thelia\Model\ImageQuery
Use the Image relation Image object
| 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' |
A secondary query class using the current class as primary query
filterByDocument(\Thelia\Model\Document|\Propel\Runtime\Collection\ObjectCollection $document, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related \Thelia\Model\Document object
| \Thelia\Model\Document|\Propel\Runtime\Collection\ObjectCollection | $document | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinDocument(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the Document relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useDocumentQuery(string $relationAlias, string $joinType) : \Thelia\Model\DocumentQuery
Use the Document relation Document object
| 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' |
A secondary query class using the current class as primary query
filterByRewriting(\Thelia\Model\Rewriting|\Propel\Runtime\Collection\ObjectCollection $rewriting, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related \Thelia\Model\Rewriting object
| \Thelia\Model\Rewriting|\Propel\Runtime\Collection\ObjectCollection | $rewriting | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinRewriting(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the Rewriting relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useRewritingQuery(string $relationAlias, string $joinType) : \Thelia\Model\RewritingQuery
Use the Rewriting relation Rewriting object
| 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' |
A secondary query class using the current class as primary query
filterByContentFolder(\Thelia\Model\ContentFolder|\Propel\Runtime\Collection\ObjectCollection $contentFolder, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related \Thelia\Model\ContentFolder object
| \Thelia\Model\ContentFolder|\Propel\Runtime\Collection\ObjectCollection | $contentFolder | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinContentFolder(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the ContentFolder relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useContentFolderQuery(string $relationAlias, string $joinType) : \Thelia\Model\ContentFolderQuery
Use the ContentFolder relation ContentFolder object
| 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' |
A secondary query class using the current class as primary query
filterByContentI18n(\Thelia\Model\ContentI18n|\Propel\Runtime\Collection\ObjectCollection $contentI18n, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related \Thelia\Model\ContentI18n object
| \Thelia\Model\ContentI18n|\Propel\Runtime\Collection\ObjectCollection | $contentI18n | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinContentI18n(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the ContentI18n relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useContentI18nQuery(string $relationAlias, string $joinType) : \Thelia\Model\ContentI18nQuery
Use the ContentI18n relation ContentI18n object
| 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' |
A secondary query class using the current class as primary query
filterByContentVersion(\Thelia\Model\ContentVersion|\Propel\Runtime\Collection\ObjectCollection $contentVersion, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related \Thelia\Model\ContentVersion object
| \Thelia\Model\ContentVersion|\Propel\Runtime\Collection\ObjectCollection | $contentVersion | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
joinContentVersion(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the ContentVersion relation
| string | $relationAlias | optional alias for the relation |
| string | $joinType | Accepted values are null, 'left join', 'right join', 'inner join' |
The current query, for fluid interface
useContentVersionQuery(string $relationAlias, string $joinType) : \Thelia\Model\ContentVersionQuery
Use the ContentVersion relation ContentVersion object
| 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' |
A secondary query class using the current class as primary query
filterByFolder(\Thelia\Model\Base\Folder $folder, string $comparison) : \Thelia\Model\ContentQuery
Filter the query by a related Folder object using the content_folder table as cross reference
| \Thelia\Model\Base\Folder | $folder | the related object to use as filter |
| string | $comparison | Operator to use for the column comparison, defaults to Criteria::EQUAL |
The current query, for fluid interface
prune(\Thelia\Model\Content $content) : \Thelia\Model\ContentQuery
Exclude object from result
| \Thelia\Model\Content | $content | Object to remove from the list of results |
The current query, for fluid interface
delete(\Propel\Runtime\Connection\ConnectionInterface $con) : int
Performs a DELETE on the database, given a ChildContent or Criteria object OR a primary key value.
| \Propel\Runtime\Connection\ConnectionInterface | $con | the connection to use |
Any exceptions caught during processing will be rethrown wrapped into a PropelException.
The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows if supported by native driver or if emulated using Propel.
recentlyUpdated(int $nbDays) : \Thelia\Model\ContentQuery
Filter by the latest updated
| int | $nbDays | Maximum age of the latest update in days |
The current query, for fluid interface
recentlyCreated(int $nbDays) : \Thelia\Model\ContentQuery
Filter by the latest created
| int | $nbDays | Maximum age of in days |
The current query, for fluid interface
lastUpdatedFirst() : \Thelia\Model\ContentQuery
Order by update date desc
The current query, for fluid interface
firstUpdatedFirst() : \Thelia\Model\ContentQuery
Order by update date asc
The current query, for fluid interface
lastCreatedFirst() : \Thelia\Model\ContentQuery
Order by create date desc
The current query, for fluid interface
firstCreatedFirst() : \Thelia\Model\ContentQuery
Order by create date asc
The current query, for fluid interface
joinI18n(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query using the i18n relation
| 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. |
The current query, for fluid interface
joinWithI18n(string $locale, string $joinType) : \Thelia\Model\ContentQuery
Adds a JOIN clause to the query and hydrates the related I18n object.
Shortcut for $c->joinI18n($locale)->with()
| 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. |
The current query, for fluid interface
useI18nQuery(string $locale, string $relationAlias, string $joinType) : \Thelia\Model\ContentI18nQuery
Use the I18n relation query object
| 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. |
A secondary query class using the current class as primary query
findPkSimple(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Content
Find object by primary key using raw SQL to go fast.
Bypass doSelect() and the object formatter by using generated code.
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | A connection object |
A model object, or null if the key is not found
findPkComplex(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\Content|array|mixed
Find object by primary key.
| mixed | $key | Primary key to use for the query |
| \Propel\Runtime\Connection\ConnectionInterface | $con | A connection object |
the result, formatted by the current formatter