\Thelia\Model\BaseContentAssocQuery

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

Summary

Methods
Properties
Constants
__construct()
create()
findPk()
findPks()
filterByPrimaryKey()
filterByPrimaryKeys()
filterById()
filterByCategoryId()
filterByProductId()
filterByContentId()
filterByPosition()
filterByCreatedAt()
filterByUpdatedAt()
filterByCategory()
joinCategory()
useCategoryQuery()
filterByProduct()
joinProduct()
useProductQuery()
filterByContent()
joinContent()
useContentQuery()
prune()
doDeleteAll()
delete()
recentlyUpdated()
recentlyCreated()
lastUpdatedFirst()
firstUpdatedFirst()
lastCreatedFirst()
firstCreatedFirst()
orderById()
orderByCategoryId()
orderByProductId()
orderByContentId()
orderByPosition()
orderByCreatedAt()
orderByUpdatedAt()
groupById()
groupByCategoryId()
groupByProductId()
groupByContentId()
groupByPosition()
groupByCreatedAt()
groupByUpdatedAt()
leftJoin()
rightJoin()
innerJoin()
leftJoinCategory()
rightJoinCategory()
innerJoinCategory()
leftJoinProduct()
rightJoinProduct()
innerJoinProduct()
leftJoinContent()
rightJoinContent()
innerJoinContent()
findOne()
findOneOrCreate()
findOneById()
findOneByCategoryId()
findOneByProductId()
findOneByContentId()
findOneByPosition()
findOneByCreatedAt()
findOneByUpdatedAt()
findById()
findByCategoryId()
findByProductId()
findByContentId()
findByPosition()
findByCreatedAt()
findByUpdatedAt()
No public properties found
No constants found
findPkSimple()
findPkComplex()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string $dbName, string $modelName, string $modelAlias)

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

create()

create(string $modelAlias, \Propel\Runtime\ActiveQuery\Criteria $criteria) : \Thelia\Model\ContentAssocQuery

Returns a new ChildContentAssocQuery object.

Parameters

string $modelAlias

The alias of a model in the query

\Propel\Runtime\ActiveQuery\Criteria $criteria

Optional Criteria to build the query from

Returns

\Thelia\Model\ContentAssocQuery

findPk()

findPk(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\ContentAssoc|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);

Parameters

mixed $key

Primary key to use for the query

\Propel\Runtime\Connection\ConnectionInterface $con

an optional connection object

Returns

\Thelia\Model\ContentAssoc|array|mixed —

the result, formatted by the current formatter

findPks()

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>

Parameters

array $keys

Primary keys to use for the query

\Propel\Runtime\Connection\ConnectionInterface $con

an optional connection object

Returns

\Propel\Runtime\Collection\ObjectCollection|array|mixed —

the list of results, formatted by the current formatter

filterByPrimaryKey()

filterByPrimaryKey(mixed $key) : \Thelia\Model\ContentAssocQuery

Filter the query by primary key

Parameters

mixed $key

Primary key to use for the query

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByPrimaryKeys()

filterByPrimaryKeys(array $keys) : \Thelia\Model\ContentAssocQuery

Filter the query by a list of primary keys

Parameters

array $keys

The list of primary key to use for the query

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterById()

filterById(mixed $id, string $comparison) : \Thelia\Model\ContentAssocQuery

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

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByCategoryId()

filterByCategoryId(mixed $categoryId, string $comparison) : \Thelia\Model\ContentAssocQuery

Filter the query on the category_id column

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

Parameters

mixed $categoryId

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

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByProductId()

filterByProductId(mixed $productId, string $comparison) : \Thelia\Model\ContentAssocQuery

Filter the query on the product_id column

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

Parameters

mixed $productId

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

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByContentId()

filterByContentId(mixed $contentId, string $comparison) : \Thelia\Model\ContentAssocQuery

Filter the query on the content_id column

Example usage: $query->filterByContentId(1234); // WHERE content_id = 1234 $query->filterByContentId(array(12, 34)); // WHERE content_id 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

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByPosition()

filterByPosition(mixed $position, string $comparison) : \Thelia\Model\ContentAssocQuery

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

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByCreatedAt()

filterByCreatedAt(mixed $createdAt, string $comparison) : \Thelia\Model\ContentAssocQuery

Filter the query on the created_at column

Example usage: $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14' $query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14' $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13'

Parameters

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

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByUpdatedAt()

filterByUpdatedAt(mixed $updatedAt, string $comparison) : \Thelia\Model\ContentAssocQuery

Filter the query on the updated_at column

Example usage: $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14' $query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14' $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13'

Parameters

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

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

filterByCategory()

filterByCategory(\Thelia\Model\Category|\Propel\Runtime\Collection\ObjectCollection $category, string $comparison) : \Thelia\Model\ContentAssocQuery

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

Parameters

\Thelia\Model\Category|\Propel\Runtime\Collection\ObjectCollection $category

The related object(s) to use as filter

string $comparison

Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

joinCategory()

joinCategory(string $relationAlias, string $joinType) : \Thelia\Model\ContentAssocQuery

Adds a JOIN clause to the query using the Category relation

Parameters

string $relationAlias

optional alias for the relation

string $joinType

Accepted values are null, 'left join', 'right join', 'inner join'

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

useCategoryQuery()

useCategoryQuery(string $relationAlias, string $joinType) : \Thelia\Model\CategoryQuery

Use the Category relation Category 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'

Returns

\Thelia\Model\CategoryQuery

A secondary query class using the current class as primary query

filterByProduct()

filterByProduct(\Thelia\Model\Product|\Propel\Runtime\Collection\ObjectCollection $product, string $comparison) : \Thelia\Model\ContentAssocQuery

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

Parameters

\Thelia\Model\Product|\Propel\Runtime\Collection\ObjectCollection $product

The related object(s) to use as filter

string $comparison

Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

joinProduct()

joinProduct(string $relationAlias, string $joinType) : \Thelia\Model\ContentAssocQuery

Adds a JOIN clause to the query using the Product relation

Parameters

string $relationAlias

optional alias for the relation

string $joinType

Accepted values are null, 'left join', 'right join', 'inner join'

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

useProductQuery()

useProductQuery(string $relationAlias, string $joinType) : \Thelia\Model\ProductQuery

Use the Product relation Product 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'

Returns

\Thelia\Model\ProductQuery

A secondary query class using the current class as primary query

filterByContent()

filterByContent(\Thelia\Model\Content|\Propel\Runtime\Collection\ObjectCollection $content, string $comparison) : \Thelia\Model\ContentAssocQuery

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

Parameters

\Thelia\Model\Content|\Propel\Runtime\Collection\ObjectCollection $content

The related object(s) to use as filter

string $comparison

Operator to use for the column comparison, defaults to Criteria::EQUAL

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

joinContent()

joinContent(string $relationAlias, string $joinType) : \Thelia\Model\ContentAssocQuery

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'

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

useContentQuery()

useContentQuery(string $relationAlias, string $joinType) : \Thelia\Model\ContentQuery

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'

Returns

\Thelia\Model\ContentQuery

A secondary query class using the current class as primary query

prune()

prune(\Thelia\Model\ContentAssoc $contentAssoc) : \Thelia\Model\ContentAssocQuery

Exclude object from result

Parameters

\Thelia\Model\ContentAssoc $contentAssoc

Object to remove from the list of results

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

doDeleteAll()

doDeleteAll(\Propel\Runtime\Connection\ConnectionInterface $con) : int

Deletes all rows from the content_assoc table.

Parameters

\Propel\Runtime\Connection\ConnectionInterface $con

the connection to use

Returns

int —

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

delete()

delete(\Propel\Runtime\Connection\ConnectionInterface $con) : int

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

Parameters

\Propel\Runtime\Connection\ConnectionInterface $con

the connection to use

Throws

\Propel\Runtime\Exception\PropelException

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

Returns

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.

recentlyUpdated()

recentlyUpdated(int $nbDays) : \Thelia\Model\ContentAssocQuery

Filter by the latest updated

Parameters

int $nbDays

Maximum age of the latest update in days

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

recentlyCreated()

recentlyCreated(int $nbDays) : \Thelia\Model\ContentAssocQuery

Filter by the latest created

Parameters

int $nbDays

Maximum age of in days

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

lastUpdatedFirst()

lastUpdatedFirst() : \Thelia\Model\ContentAssocQuery

Order by update date desc

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

firstUpdatedFirst()

firstUpdatedFirst() : \Thelia\Model\ContentAssocQuery

Order by update date asc

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

lastCreatedFirst()

lastCreatedFirst() : \Thelia\Model\ContentAssocQuery

Order by create date desc

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

firstCreatedFirst()

firstCreatedFirst() : \Thelia\Model\ContentAssocQuery

Order by create date asc

Returns

\Thelia\Model\ContentAssocQuery

The current query, for fluid interface

orderById()

orderById($order =) : \Thelia\Model\ContentAssocQuery

Order by the id column

Parameters

$order =

Returns

\Thelia\Model\ContentAssocQuery

orderByCategoryId()

orderByCategoryId($order =) : \Thelia\Model\ContentAssocQuery

Order by the category_id column

Parameters

$order =

Returns

\Thelia\Model\ContentAssocQuery

orderByProductId()

orderByProductId($order =) : \Thelia\Model\ContentAssocQuery

Order by the product_id column

Parameters

$order =

Returns

\Thelia\Model\ContentAssocQuery

orderByContentId()

orderByContentId($order =) : \Thelia\Model\ContentAssocQuery

Order by the content_id column

Parameters

$order =

Returns

\Thelia\Model\ContentAssocQuery

orderByPosition()

orderByPosition($order =) : \Thelia\Model\ContentAssocQuery

Order by the position column

Parameters

$order =

Returns

\Thelia\Model\ContentAssocQuery

orderByCreatedAt()

orderByCreatedAt($order =) : \Thelia\Model\ContentAssocQuery

Order by the created_at column

Parameters

$order =

Returns

\Thelia\Model\ContentAssocQuery

orderByUpdatedAt()

orderByUpdatedAt($order =) : \Thelia\Model\ContentAssocQuery

Order by the updated_at column

Parameters

$order =

Returns

\Thelia\Model\ContentAssocQuery

groupById()

groupById() : \Thelia\Model\ContentAssocQuery

Group by the id column

Returns

\Thelia\Model\ContentAssocQuery

groupByCategoryId()

groupByCategoryId() : \Thelia\Model\ContentAssocQuery

Group by the category_id column

Returns

\Thelia\Model\ContentAssocQuery

groupByProductId()

groupByProductId() : \Thelia\Model\ContentAssocQuery

Group by the product_id column

Returns

\Thelia\Model\ContentAssocQuery

groupByContentId()

groupByContentId() : \Thelia\Model\ContentAssocQuery

Group by the content_id column

Returns

\Thelia\Model\ContentAssocQuery

groupByPosition()

groupByPosition() : \Thelia\Model\ContentAssocQuery

Group by the position column

Returns

\Thelia\Model\ContentAssocQuery

groupByCreatedAt()

groupByCreatedAt() : \Thelia\Model\ContentAssocQuery

Group by the created_at column

Returns

\Thelia\Model\ContentAssocQuery

groupByUpdatedAt()

groupByUpdatedAt() : \Thelia\Model\ContentAssocQuery

Group by the updated_at column

Returns

\Thelia\Model\ContentAssocQuery

leftJoin()

leftJoin(mixed $relation) : \Thelia\Model\ContentAssocQuery

Adds a LEFT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\ContentAssocQuery

rightJoin()

rightJoin(mixed $relation) : \Thelia\Model\ContentAssocQuery

Adds a RIGHT JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\ContentAssocQuery

innerJoin()

innerJoin(mixed $relation) : \Thelia\Model\ContentAssocQuery

Adds a INNER JOIN clause to the query

Parameters

mixed $relation

Returns

\Thelia\Model\ContentAssocQuery

leftJoinCategory()

leftJoinCategory($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

rightJoinCategory()

rightJoinCategory($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

innerJoinCategory()

innerJoinCategory($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

leftJoinProduct()

leftJoinProduct($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

rightJoinProduct()

rightJoinProduct($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

innerJoinProduct()

innerJoinProduct($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

leftJoinContent()

leftJoinContent($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

rightJoinContent()

rightJoinContent($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

innerJoinContent()

innerJoinContent($relationAlias =) : \Thelia\Model\ContentAssocQuery

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

Parameters

$relationAlias =

Returns

\Thelia\Model\ContentAssocQuery

findOne()

findOne(ConnectionInterface $con) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc matching the query

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\ContentAssoc

findOneOrCreate()

findOneOrCreate(ConnectionInterface $con) : \Thelia\Model\ContentAssoc

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

Parameters

ConnectionInterface $con

Returns

\Thelia\Model\ContentAssoc

findOneById()

findOneById(int $id) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc filtered by the id column

Parameters

int $id

Returns

\Thelia\Model\ContentAssoc

findOneByCategoryId()

findOneByCategoryId(int $category_id) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc filtered by the category_id column

Parameters

int $category_id

Returns

\Thelia\Model\ContentAssoc

findOneByProductId()

findOneByProductId(int $product_id) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc filtered by the product_id column

Parameters

int $product_id

Returns

\Thelia\Model\ContentAssoc

findOneByContentId()

findOneByContentId(int $content_id) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc filtered by the content_id column

Parameters

int $content_id

Returns

\Thelia\Model\ContentAssoc

findOneByPosition()

findOneByPosition(int $position) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc filtered by the position column

Parameters

int $position

Returns

\Thelia\Model\ContentAssoc

findOneByCreatedAt()

findOneByCreatedAt(string $created_at) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc filtered by the created_at column

Parameters

string $created_at

Returns

\Thelia\Model\ContentAssoc

findOneByUpdatedAt()

findOneByUpdatedAt(string $updated_at) : \Thelia\Model\ContentAssoc

Return the first ChildContentAssoc filtered by the updated_at column

Parameters

string $updated_at

Returns

\Thelia\Model\ContentAssoc

findById()

findById(int $id) : array

Return ChildContentAssoc objects filtered by the id column

Parameters

int $id

Returns

array

findByCategoryId()

findByCategoryId(int $category_id) : array

Return ChildContentAssoc objects filtered by the category_id column

Parameters

int $category_id

Returns

array

findByProductId()

findByProductId(int $product_id) : array

Return ChildContentAssoc objects filtered by the product_id column

Parameters

int $product_id

Returns

array

findByContentId()

findByContentId(int $content_id) : array

Return ChildContentAssoc objects filtered by the content_id column

Parameters

int $content_id

Returns

array

findByPosition()

findByPosition(int $position) : array

Return ChildContentAssoc objects filtered by the position column

Parameters

int $position

Returns

array

findByCreatedAt()

findByCreatedAt(string $created_at) : array

Return ChildContentAssoc objects filtered by the created_at column

Parameters

string $created_at

Returns

array

findByUpdatedAt()

findByUpdatedAt(string $updated_at) : array

Return ChildContentAssoc objects filtered by the updated_at column

Parameters

string $updated_at

Returns

array

findPkSimple()

findPkSimple(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\ContentAssoc

Find object by primary key using raw SQL to go fast.

Bypass doSelect() and the object formatter by using generated code.

Parameters

mixed $key

Primary key to use for the query

\Propel\Runtime\Connection\ConnectionInterface $con

A connection object

Returns

\Thelia\Model\ContentAssoc

A model object, or null if the key is not found

findPkComplex()

findPkComplex(mixed $key, \Propel\Runtime\Connection\ConnectionInterface $con) : \Thelia\Model\ContentAssoc|array|mixed

Find object by primary key.

Parameters

mixed $key

Primary key to use for the query

\Propel\Runtime\Connection\ConnectionInterface $con

A connection object

Returns

\Thelia\Model\ContentAssoc|array|mixed —

the result, formatted by the current formatter