class ContentFolderQuery extends ModelCriteria

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

Methods

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

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

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

Returns a new ChildContentFolderQuery object.

ContentFolder|array|mixed
findPk($key, $con = null)

Find object by primary key.

ObjectCollection|array|mixed
findPks( array $keys, ConnectionInterface $con = null)

Find objects by primary key $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);

filterByPrimaryKey( mixed $key)

Filter the query by primary key

filterByPrimaryKeys( array $keys)

Filter the query by a list of primary keys

filterByContentId( mixed $contentId = null, string $comparison = null)

Filter the query on the content_id column

filterByFolderId( mixed $folderId = null, string $comparison = null)

Filter the query on the folder_id column

filterByDefaultFolder( boolean|string $defaultFolder = null, string $comparison = null)

Filter the query on the default_folder column

filterByPosition( mixed $position = null, string $comparison = null)

Filter the query on the position column

filterByCreatedAt( mixed $createdAt = null, string $comparison = null)

Filter the query on the created_at column

filterByUpdatedAt( mixed $updatedAt = null, string $comparison = null)

Filter the query on the updated_at column

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

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

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

Adds a JOIN clause to the query using the Content relation

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

Use the Content relation Content object

filterByFolder( Folder|ObjectCollection $folder, string $comparison = null)

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

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

Adds a JOIN clause to the query using the Folder relation

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

Use the Folder relation Folder object

prune( ContentFolder $contentFolder = null)

Exclude object from result

int
doDeleteAll( ConnectionInterface $con = null)

Deletes all rows from the content_folder table.

int
delete( ConnectionInterface $con = null)

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

ChildContentFolderQuery
orderByContentId($order = Criteria::ASC)

Order by the content_id column

ChildContentFolderQuery
orderByFolderId($order = Criteria::ASC)

Order by the folder_id column

ChildContentFolderQuery
orderByDefaultFolder($order = Criteria::ASC)

Order by the default_folder column

ChildContentFolderQuery
orderByPosition($order = Criteria::ASC)

Order by the position column

ChildContentFolderQuery
orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

ChildContentFolderQuery
orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

ChildContentFolderQuery
groupByContentId()

Group by the content_id column

ChildContentFolderQuery
groupByFolderId()

Group by the folder_id column

ChildContentFolderQuery
groupByDefaultFolder()

Group by the default_folder column

ChildContentFolderQuery
groupByPosition()

Group by the position column

ChildContentFolderQuery
groupByCreatedAt()

Group by the created_at column

ChildContentFolderQuery
groupByUpdatedAt()

Group by the updated_at column

ChildContentFolderQuery
leftJoin($relation)

Adds a LEFT JOIN clause to the query

ChildContentFolderQuery
rightJoin($relation)

Adds a RIGHT JOIN clause to the query

ChildContentFolderQuery
innerJoin($relation)

Adds a INNER JOIN clause to the query

ChildContentFolderQuery
leftJoinContent($relationAlias = null)

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

ChildContentFolderQuery
rightJoinContent($relationAlias = null)

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

ChildContentFolderQuery
innerJoinContent($relationAlias = null)

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

ChildContentFolderQuery
leftJoinFolder($relationAlias = null)

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

ChildContentFolderQuery
rightJoinFolder($relationAlias = null)

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

ChildContentFolderQuery
innerJoinFolder($relationAlias = null)

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

ChildContentFolder
findOne( ConnectionInterface $con = null)

Return the first ChildContentFolder matching the query

ChildContentFolder
findOneOrCreate( ConnectionInterface $con = null)

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

ChildContentFolder
findOneByContentId( int $content_id)

Return the first ChildContentFolder filtered by the content_id column

ChildContentFolder
findOneByFolderId( int $folder_id)

Return the first ChildContentFolder filtered by the folder_id column

ChildContentFolder
findOneByDefaultFolder( boolean $default_folder)

Return the first ChildContentFolder filtered by the default_folder column

ChildContentFolder
findOneByPosition( int $position)

Return the first ChildContentFolder filtered by the position column

ChildContentFolder
findOneByCreatedAt( string $created_at)

Return the first ChildContentFolder filtered by the created_at column

ChildContentFolder
findOneByUpdatedAt( string $updated_at)

Return the first ChildContentFolder filtered by the updated_at column

array
findByContentId( int $content_id)

Return ChildContentFolder objects filtered by the content_id column

array
findByFolderId( int $folder_id)

Return ChildContentFolder objects filtered by the folder_id column

array
findByDefaultFolder( boolean $default_folder)

Return ChildContentFolder objects filtered by the default_folder column

array
findByPosition( int $position)

Return ChildContentFolder objects filtered by the position column

array
findByCreatedAt( string $created_at)

Return ChildContentFolder objects filtered by the created_at column

array
findByUpdatedAt( string $updated_at)

Return ChildContentFolder objects filtered by the updated_at column

Details

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

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

Parameters

string $dbName The database name
string $modelName The phpName of a model, e.g. 'Book'
string $modelAlias The alias for the model in this query, e.g. 'b'

at line 91
static ContentFolderQuery create( string $modelAlias = null, Criteria $criteria = null)

Returns a new ChildContentFolderQuery object.

Parameters

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

Return Value

ContentFolderQuery

at line 121
ContentFolder|array|mixed findPk($key, $con = null)

Find object by primary key.

Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched.

$obj = $c->findPk(array(12, 34), $con);

Parameters

$key
$con

Return Value

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

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

Find objects by primary key $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);

Parameters

array $keys Primary keys to use for the query
ConnectionInterface $con an optional connection object

Return Value

ObjectCollection|array|mixed the list of results, formatted by the current formatter

at line 225
ContentFolderQuery filterByPrimaryKey( mixed $key)

Filter the query by primary key

Parameters

mixed $key Primary key to use for the query

Return Value

ContentFolderQuery The current query, for fluid interface

at line 240
ContentFolderQuery 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

ContentFolderQuery The current query, for fluid interface

at line 275
ContentFolderQuery filterByContentId( mixed $contentId = null, string $comparison = null)

Filter the query on the content_id column

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

Parameters

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

ContentFolderQuery The current query, for fluid interface

See also

filterByContent()

at line 318
ContentFolderQuery filterByFolderId( mixed $folderId = null, string $comparison = null)

Filter the query on the folder_id column

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

Parameters

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

ContentFolderQuery The current query, for fluid interface

See also

filterByFolder()

at line 359
ContentFolderQuery filterByDefaultFolder( boolean|string $defaultFolder = null, string $comparison = null)

Filter the query on the default_folder column

Example usage: $query->filterByDefaultFolder(true); // WHERE defaultfolder = true $query->filterByDefaultFolder('yes'); // WHERE defaultfolder = true

Parameters

boolean|string $defaultFolder The value to use as filter. Non-boolean arguments are converted using the following rules: * 1, '1', 'true', 'on', and 'yes' are converted to boolean true * 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentFolderQuery The current query, for fluid interface

at line 386
ContentFolderQuery filterByPosition( mixed $position = null, string $comparison = null)

Filter the query on the position column

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

Parameters

mixed $position The value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

Return Value

ContentFolderQuery The current query, for fluid interface

at line 429
ContentFolderQuery 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

ContentFolderQuery The current query, for fluid interface

at line 472
ContentFolderQuery 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

ContentFolderQuery The current query, for fluid interface

at line 503
ContentFolderQuery filterByContent( Content|ObjectCollection $content, string $comparison = null)

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

Parameters

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

Return Value

ContentFolderQuery The current query, for fluid interface

at line 528
ContentFolderQuery joinContent( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Content relation

Parameters

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

Return Value

ContentFolderQuery The current query, for fluid interface

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

Use the Content relation Content object

Parameters

string $relationAlias optional alias for the relation, to be used as main alias in the secondary query
string $joinType Accepted values are null, 'left join', 'right join', 'inner join'

Return Value

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

See also

useQuery()

at line 578
ContentFolderQuery filterByFolder( Folder|ObjectCollection $folder, string $comparison = null)

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

Parameters

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

Return Value

ContentFolderQuery The current query, for fluid interface

at line 603
ContentFolderQuery joinFolder( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

Adds a JOIN clause to the query using the Folder relation

Parameters

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

Return Value

ContentFolderQuery The current query, for fluid interface

at line 638
FolderQuery useFolderQuery( string $relationAlias = null, string $joinType = Criteria::INNER_JOIN)

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

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

See also

useQuery()

at line 652
ContentFolderQuery prune( ContentFolder $contentFolder = null)

Exclude object from result

Parameters

ContentFolder $contentFolder Object to remove from the list of results

Return Value

ContentFolderQuery The current query, for fluid interface

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

Deletes all rows from the content_folder table.

Parameters

ConnectionInterface $con the connection to use

Return Value

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

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

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

Parameters

ConnectionInterface $con

Return Value

int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows if supported by native driver or if emulated using Propel.

Exceptions

PropelException Any exceptions caught during processing will be rethrown wrapped into a PropelException.

at line 747
ContentFolderQuery recentlyUpdated( int $nbDays = 7)

Filter by the latest updated

Parameters

int $nbDays Maximum age of the latest update in days

Return Value

ContentFolderQuery The current query, for fluid interface

at line 759
ContentFolderQuery recentlyCreated( int $nbDays = 7)

Filter by the latest created

Parameters

int $nbDays Maximum age of in days

Return Value

ContentFolderQuery The current query, for fluid interface

at line 769
ContentFolderQuery lastUpdatedFirst()

Order by update date desc

Return Value

ContentFolderQuery The current query, for fluid interface

at line 779
ContentFolderQuery firstUpdatedFirst()

Order by update date asc

Return Value

ContentFolderQuery The current query, for fluid interface

at line 789
ContentFolderQuery lastCreatedFirst()

Order by create date desc

Return Value

ContentFolderQuery The current query, for fluid interface

at line 799
ContentFolderQuery firstCreatedFirst()

Order by create date asc

Return Value

ContentFolderQuery The current query, for fluid interface

at line 68
ChildContentFolderQuery orderByContentId($order = Criteria::ASC)

Order by the content_id column

Parameters

$order

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery orderByFolderId($order = Criteria::ASC)

Order by the folder_id column

Parameters

$order

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery orderByDefaultFolder($order = Criteria::ASC)

Order by the default_folder column

Parameters

$order

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery orderByPosition($order = Criteria::ASC)

Order by the position column

Parameters

$order

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery orderByCreatedAt($order = Criteria::ASC)

Order by the created_at column

Parameters

$order

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery orderByUpdatedAt($order = Criteria::ASC)

Order by the updated_at column

Parameters

$order

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery groupByContentId()

Group by the content_id column

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery groupByFolderId()

Group by the folder_id column

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery groupByDefaultFolder()

Group by the default_folder column

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery groupByPosition()

Group by the position column

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery groupByCreatedAt()

Group by the created_at column

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery groupByUpdatedAt()

Group by the updated_at column

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery leftJoin($relation)

Adds a LEFT JOIN clause to the query

Parameters

$relation

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery rightJoin($relation)

Adds a RIGHT JOIN clause to the query

Parameters

$relation

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery innerJoin($relation)

Adds a INNER JOIN clause to the query

Parameters

$relation

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery leftJoinContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery rightJoinContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery innerJoinContent($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery leftJoinFolder($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery rightJoinFolder($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolderQuery innerJoinFolder($relationAlias = null)

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

Parameters

$relationAlias

Return Value

ChildContentFolderQuery

at line 68
ChildContentFolder findOne( ConnectionInterface $con = null)

Return the first ChildContentFolder matching the query

Parameters

ConnectionInterface $con

Return Value

ChildContentFolder

at line 68
ChildContentFolder findOneOrCreate( ConnectionInterface $con = null)

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

Parameters

ConnectionInterface $con

Return Value

ChildContentFolder

at line 68
ChildContentFolder findOneByContentId( int $content_id)

Return the first ChildContentFolder filtered by the content_id column

Parameters

int $content_id

Return Value

ChildContentFolder

at line 68
ChildContentFolder findOneByFolderId( int $folder_id)

Return the first ChildContentFolder filtered by the folder_id column

Parameters

int $folder_id

Return Value

ChildContentFolder

at line 68
ChildContentFolder findOneByDefaultFolder( boolean $default_folder)

Return the first ChildContentFolder filtered by the default_folder column

Parameters

boolean $default_folder

Return Value

ChildContentFolder

at line 68
ChildContentFolder findOneByPosition( int $position)

Return the first ChildContentFolder filtered by the position column

Parameters

int $position

Return Value

ChildContentFolder

at line 68
ChildContentFolder findOneByCreatedAt( string $created_at)

Return the first ChildContentFolder filtered by the created_at column

Parameters

string $created_at

Return Value

ChildContentFolder

at line 68
ChildContentFolder findOneByUpdatedAt( string $updated_at)

Return the first ChildContentFolder filtered by the updated_at column

Parameters

string $updated_at

Return Value

ChildContentFolder

at line 68
array findByContentId( int $content_id)

Return ChildContentFolder objects filtered by the content_id column

Parameters

int $content_id

Return Value

array

at line 68
array findByFolderId( int $folder_id)

Return ChildContentFolder objects filtered by the folder_id column

Parameters

int $folder_id

Return Value

array

at line 68
array findByDefaultFolder( boolean $default_folder)

Return ChildContentFolder objects filtered by the default_folder column

Parameters

boolean $default_folder

Return Value

array

at line 68
array findByPosition( int $position)

Return ChildContentFolder objects filtered by the position column

Parameters

int $position

Return Value

array

at line 68
array findByCreatedAt( string $created_at)

Return ChildContentFolder objects filtered by the created_at column

Parameters

string $created_at

Return Value

array

at line 68
array findByUpdatedAt( string $updated_at)

Return ChildContentFolder objects filtered by the updated_at column

Parameters

string $updated_at

Return Value

array