ProductAssociatedContentQuery
class ProductAssociatedContentQuery extends ModelCriteria
Base class that represents a query for the 'productassociatedcontent' table.
Methods
Initializes internal state of \Thelia\Model\Base\ProductAssociatedContentQuery object.
Returns a new ChildProductAssociatedContentQuery object.
Find object by primary key.
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
Filter the query by primary key
Filter the query by a list of primary keys
Filter the query on the id column
Filter the query on the product_id column
Filter the query on the content_id column
Filter the query on the position column
Filter the query on the created_at column
Filter the query on the updated_at column
Filter the query by a related \Thelia\Model\Product object
Adds a JOIN clause to the query using the Product relation
Use the Product relation Product object
Filter the query by a related \Thelia\Model\Content object
Adds a JOIN clause to the query using the Content relation
Use the Content relation Content object
Deletes all rows from the productassociatedcontent table.
Performs a DELETE on the database, given a ChildProductAssociatedContent or Criteria object OR a primary key value.
Filter by the latest updated
Filter by the latest created
Order by update date desc
Order by update date asc
Order by create date desc
Order by create date asc
Order by the id column
Order by the product_id column
Order by the content_id column
Order by the position column
Order by the created_at column
Order by the updated_at column
Group by the id column
Group by the product_id column
Group by the content_id column
Group by the position column
Group by the created_at column
Group by the updated_at column
Adds a LEFT JOIN clause to the query
Adds a RIGHT JOIN clause to the query
Adds a INNER JOIN clause to the query
Adds a LEFT JOIN clause to the query using the Product relation
Adds a RIGHT JOIN clause to the query using the Product relation
Adds a INNER JOIN clause to the query using the Product relation
Adds a LEFT JOIN clause to the query using the Content relation
Adds a RIGHT JOIN clause to the query using the Content relation
Adds a INNER JOIN clause to the query using the Content relation
Return the first ChildProductAssociatedContent matching the query
Return the first ChildProductAssociatedContent matching the query, or a new ChildProductAssociatedContent object populated from the query conditions when no match is found
Return the first ChildProductAssociatedContent filtered by the id column
Return the first ChildProductAssociatedContent filtered by the product_id column
Return the first ChildProductAssociatedContent filtered by the content_id column
Return the first ChildProductAssociatedContent filtered by the position column
Return the first ChildProductAssociatedContent filtered by the created_at column
Return the first ChildProductAssociatedContent filtered by the updated_at column
Return ChildProductAssociatedContent objects filtered by the id column
Return ChildProductAssociatedContent objects filtered by the product_id column
Return ChildProductAssociatedContent objects filtered by the content_id column
Return ChildProductAssociatedContent objects filtered by the position column
Return ChildProductAssociatedContent objects filtered by the created_at column
Return ChildProductAssociatedContent objects filtered by the updated_at column
Details
at line 78
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\ProductAssociatedContent',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\ProductAssociatedContentQuery object.
at line 91
static
ProductAssociatedContentQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildProductAssociatedContentQuery object.
at line 121
ProductAssociatedContent|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);
at line 203
ObjectCollection|array|mixed
findPks(
array $keys,
ConnectionInterface $con = null)
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
at line 224
ProductAssociatedContentQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
at line 237
ProductAssociatedContentQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
at line 261
ProductAssociatedContentQuery
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
at line 304
ProductAssociatedContentQuery
filterByProductId(
mixed $productId = null,
string $comparison = null)
Filter the query on the product_id column
Example usage:
$query->filterByProductId(1234); // WHERE productid = 1234
$query->filterByProductId(array(12, 34)); // WHERE productid IN (12, 34)
$query->filterByProductId(array('min' => 12)); // WHERE product_id > 12
at line 347
ProductAssociatedContentQuery
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
at line 388
ProductAssociatedContentQuery
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
at line 431
ProductAssociatedContentQuery
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'
at line 474
ProductAssociatedContentQuery
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'
at line 505
ProductAssociatedContentQuery
filterByProduct(
Product|ObjectCollection $product,
string $comparison = null)
Filter the query by a related \Thelia\Model\Product object
at line 530
ProductAssociatedContentQuery
joinProduct(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Product relation
at line 565
ProductQuery
useProductQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Product relation Product object
at line 580
ProductAssociatedContentQuery
filterByContent(
Content|ObjectCollection $content,
string $comparison = null)
Filter the query by a related \Thelia\Model\Content object
at line 605
ProductAssociatedContentQuery
joinContent(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Content relation
at line 640
ContentQuery
useContentQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Content relation Content object
at line 654
ProductAssociatedContentQuery
prune(
ProductAssociatedContent $productAssociatedContent = null)
Exclude object from result
at line 669
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the productassociatedcontent table.
at line 706
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildProductAssociatedContent or Criteria object OR a primary key value.
at line 747
ProductAssociatedContentQuery
recentlyUpdated(
int $nbDays = 7)
Filter by the latest updated
at line 759
ProductAssociatedContentQuery
recentlyCreated(
int $nbDays = 7)
Filter by the latest created
at line 769
ProductAssociatedContentQuery
lastUpdatedFirst()
Order by update date desc
at line 779
ProductAssociatedContentQuery
firstUpdatedFirst()
Order by update date asc
at line 789
ProductAssociatedContentQuery
lastCreatedFirst()
Order by create date desc
at line 799
ProductAssociatedContentQuery
firstCreatedFirst()
Order by create date asc
at line 68
ChildProductAssociatedContentQuery
orderById($order = Criteria::ASC)
Order by the id column
at line 68
ChildProductAssociatedContentQuery
orderByProductId($order = Criteria::ASC)
Order by the product_id column
at line 68
ChildProductAssociatedContentQuery
orderByContentId($order = Criteria::ASC)
Order by the content_id column
at line 68
ChildProductAssociatedContentQuery
orderByPosition($order = Criteria::ASC)
Order by the position column
at line 68
ChildProductAssociatedContentQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
at line 68
ChildProductAssociatedContentQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
at line 68
ChildProductAssociatedContentQuery
groupById()
Group by the id column
at line 68
ChildProductAssociatedContentQuery
groupByProductId()
Group by the product_id column
at line 68
ChildProductAssociatedContentQuery
groupByContentId()
Group by the content_id column
at line 68
ChildProductAssociatedContentQuery
groupByPosition()
Group by the position column
at line 68
ChildProductAssociatedContentQuery
groupByCreatedAt()
Group by the created_at column
at line 68
ChildProductAssociatedContentQuery
groupByUpdatedAt()
Group by the updated_at column
at line 68
ChildProductAssociatedContentQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
at line 68
ChildProductAssociatedContentQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
at line 68
ChildProductAssociatedContentQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
at line 68
ChildProductAssociatedContentQuery
leftJoinProduct($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Product relation
at line 68
ChildProductAssociatedContentQuery
rightJoinProduct($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Product relation
at line 68
ChildProductAssociatedContentQuery
innerJoinProduct($relationAlias = null)
Adds a INNER JOIN clause to the query using the Product relation
at line 68
ChildProductAssociatedContentQuery
leftJoinContent($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Content relation
at line 68
ChildProductAssociatedContentQuery
rightJoinContent($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Content relation
at line 68
ChildProductAssociatedContentQuery
innerJoinContent($relationAlias = null)
Adds a INNER JOIN clause to the query using the Content relation
at line 68
ChildProductAssociatedContent
findOne(
ConnectionInterface $con = null)
Return the first ChildProductAssociatedContent matching the query
at line 68
ChildProductAssociatedContent
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildProductAssociatedContent matching the query, or a new ChildProductAssociatedContent object populated from the query conditions when no match is found
at line 68
ChildProductAssociatedContent
findOneById(
int $id)
Return the first ChildProductAssociatedContent filtered by the id column
at line 68
ChildProductAssociatedContent
findOneByProductId(
int $product_id)
Return the first ChildProductAssociatedContent filtered by the product_id column
at line 68
ChildProductAssociatedContent
findOneByContentId(
int $content_id)
Return the first ChildProductAssociatedContent filtered by the content_id column
at line 68
ChildProductAssociatedContent
findOneByPosition(
int $position)
Return the first ChildProductAssociatedContent filtered by the position column
at line 68
ChildProductAssociatedContent
findOneByCreatedAt(
string $created_at)
Return the first ChildProductAssociatedContent filtered by the created_at column
at line 68
ChildProductAssociatedContent
findOneByUpdatedAt(
string $updated_at)
Return the first ChildProductAssociatedContent filtered by the updated_at column
at line 68
array
findById(
int $id)
Return ChildProductAssociatedContent objects filtered by the id column
at line 68
array
findByProductId(
int $product_id)
Return ChildProductAssociatedContent objects filtered by the product_id column
at line 68
array
findByContentId(
int $content_id)
Return ChildProductAssociatedContent objects filtered by the content_id column
at line 68
array
findByPosition(
int $position)
Return ChildProductAssociatedContent objects filtered by the position column
at line 68
array
findByCreatedAt(
string $created_at)
Return ChildProductAssociatedContent objects filtered by the created_at column
at line 68
array
findByUpdatedAt(
string $updated_at)
Return ChildProductAssociatedContent objects filtered by the updated_at column