ProductCategoryQuery
class ProductCategoryQuery extends ModelCriteria
Base class that represents a query for the 'product_category' table.
Methods
Initializes internal state of \Thelia\Model\Base\ProductCategoryQuery object.
Returns a new ChildProductCategoryQuery object.
Find object by primary key.
Find objects by primary key
$objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);
Filter the query by primary key
Filter the query by a list of primary keys
Filter the query on the product_id column
Filter the query on the category_id column
Filter the query on the default_category 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\Category object
Adds a JOIN clause to the query using the Category relation
Use the Category relation Category object
Deletes all rows from the product_category table.
Performs a DELETE on the database, given a ChildProductCategory 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 product_id column
Order by the category_id column
Order by the default_category column
Order by the position column
Order by the created_at column
Order by the updated_at column
Group by the product_id column
Group by the category_id column
Group by the default_category 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 Category relation
Adds a RIGHT JOIN clause to the query using the Category relation
Adds a INNER JOIN clause to the query using the Category relation
Return the first ChildProductCategory matching the query
Return the first ChildProductCategory matching the query, or a new ChildProductCategory object populated from the query conditions when no match is found
Return the first ChildProductCategory filtered by the product_id column
Return the first ChildProductCategory filtered by the category_id column
Return the first ChildProductCategory filtered by the default_category column
Return the first ChildProductCategory filtered by the position column
Return the first ChildProductCategory filtered by the created_at column
Return the first ChildProductCategory filtered by the updated_at column
Return ChildProductCategory objects filtered by the product_id column
Return ChildProductCategory objects filtered by the category_id column
Return ChildProductCategory objects filtered by the default_category column
Return ChildProductCategory objects filtered by the position column
Return ChildProductCategory objects filtered by the created_at column
Return ChildProductCategory objects filtered by the updated_at column
Details
at line 78
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\ProductCategory',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\ProductCategoryQuery object.
at line 91
static
ProductCategoryQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildProductCategoryQuery object.
at line 121
ProductCategory|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);
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);
at line 225
ProductCategoryQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
at line 240
ProductCategoryQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
at line 275
ProductCategoryQuery
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 318
ProductCategoryQuery
filterByCategoryId(
mixed $categoryId = null,
string $comparison = null)
Filter the query on the category_id column
Example usage:
$query->filterByCategoryId(1234); // WHERE categoryid = 1234
$query->filterByCategoryId(array(12, 34)); // WHERE categoryid IN (12, 34)
$query->filterByCategoryId(array('min' => 12)); // WHERE category_id > 12
at line 359
ProductCategoryQuery
filterByDefaultCategory(
boolean|string $defaultCategory = null,
string $comparison = null)
Filter the query on the default_category column
Example usage:
$query->filterByDefaultCategory(true); // WHERE defaultcategory = true
$query->filterByDefaultCategory('yes'); // WHERE defaultcategory = true
at line 386
ProductCategoryQuery
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 429
ProductCategoryQuery
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 472
ProductCategoryQuery
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 503
ProductCategoryQuery
filterByProduct(
Product|ObjectCollection $product,
string $comparison = null)
Filter the query by a related \Thelia\Model\Product object
at line 528
ProductCategoryQuery
joinProduct(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Product relation
at line 563
ProductQuery
useProductQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Product relation Product object
at line 578
ProductCategoryQuery
filterByCategory(
Category|ObjectCollection $category,
string $comparison = null)
Filter the query by a related \Thelia\Model\Category object
at line 603
ProductCategoryQuery
joinCategory(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Adds a JOIN clause to the query using the Category relation
at line 638
CategoryQuery
useCategoryQuery(
string $relationAlias = null,
string $joinType = Criteria::INNER_JOIN)
Use the Category relation Category object
at line 652
ProductCategoryQuery
prune(
ProductCategory $productCategory = null)
Exclude object from result
at line 669
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the product_category table.
at line 706
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildProductCategory or Criteria object OR a primary key value.
at line 747
ProductCategoryQuery
recentlyUpdated(
int $nbDays = 7)
Filter by the latest updated
at line 759
ProductCategoryQuery
recentlyCreated(
int $nbDays = 7)
Filter by the latest created
at line 769
ProductCategoryQuery
lastUpdatedFirst()
Order by update date desc
at line 779
ProductCategoryQuery
firstUpdatedFirst()
Order by update date asc
at line 789
ProductCategoryQuery
lastCreatedFirst()
Order by create date desc
at line 799
ProductCategoryQuery
firstCreatedFirst()
Order by create date asc
at line 68
ChildProductCategoryQuery
orderByProductId($order = Criteria::ASC)
Order by the product_id column
at line 68
ChildProductCategoryQuery
orderByCategoryId($order = Criteria::ASC)
Order by the category_id column
at line 68
ChildProductCategoryQuery
orderByDefaultCategory($order = Criteria::ASC)
Order by the default_category column
at line 68
ChildProductCategoryQuery
orderByPosition($order = Criteria::ASC)
Order by the position column
at line 68
ChildProductCategoryQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
at line 68
ChildProductCategoryQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
at line 68
ChildProductCategoryQuery
groupByProductId()
Group by the product_id column
at line 68
ChildProductCategoryQuery
groupByCategoryId()
Group by the category_id column
at line 68
ChildProductCategoryQuery
groupByDefaultCategory()
Group by the default_category column
at line 68
ChildProductCategoryQuery
groupByPosition()
Group by the position column
at line 68
ChildProductCategoryQuery
groupByCreatedAt()
Group by the created_at column
at line 68
ChildProductCategoryQuery
groupByUpdatedAt()
Group by the updated_at column
at line 68
ChildProductCategoryQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
at line 68
ChildProductCategoryQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
at line 68
ChildProductCategoryQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
at line 68
ChildProductCategoryQuery
leftJoinProduct($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Product relation
at line 68
ChildProductCategoryQuery
rightJoinProduct($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Product relation
at line 68
ChildProductCategoryQuery
innerJoinProduct($relationAlias = null)
Adds a INNER JOIN clause to the query using the Product relation
at line 68
ChildProductCategoryQuery
leftJoinCategory($relationAlias = null)
Adds a LEFT JOIN clause to the query using the Category relation
at line 68
ChildProductCategoryQuery
rightJoinCategory($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the Category relation
at line 68
ChildProductCategoryQuery
innerJoinCategory($relationAlias = null)
Adds a INNER JOIN clause to the query using the Category relation
at line 68
ChildProductCategory
findOne(
ConnectionInterface $con = null)
Return the first ChildProductCategory matching the query
at line 68
ChildProductCategory
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildProductCategory matching the query, or a new ChildProductCategory object populated from the query conditions when no match is found
at line 68
ChildProductCategory
findOneByProductId(
int $product_id)
Return the first ChildProductCategory filtered by the product_id column
at line 68
ChildProductCategory
findOneByCategoryId(
int $category_id)
Return the first ChildProductCategory filtered by the category_id column
at line 68
ChildProductCategory
findOneByDefaultCategory(
boolean $default_category)
Return the first ChildProductCategory filtered by the default_category column
at line 68
ChildProductCategory
findOneByPosition(
int $position)
Return the first ChildProductCategory filtered by the position column
at line 68
ChildProductCategory
findOneByCreatedAt(
string $created_at)
Return the first ChildProductCategory filtered by the created_at column
at line 68
ChildProductCategory
findOneByUpdatedAt(
string $updated_at)
Return the first ChildProductCategory filtered by the updated_at column
at line 68
array
findByProductId(
int $product_id)
Return ChildProductCategory objects filtered by the product_id column
at line 68
array
findByCategoryId(
int $category_id)
Return ChildProductCategory objects filtered by the category_id column
at line 68
array
findByDefaultCategory(
boolean $default_category)
Return ChildProductCategory objects filtered by the default_category column
at line 68
array
findByPosition(
int $position)
Return ChildProductCategory objects filtered by the position column
at line 68
array
findByCreatedAt(
string $created_at)
Return ChildProductCategory objects filtered by the created_at column
at line 68
array
findByUpdatedAt(
string $updated_at)
Return ChildProductCategory objects filtered by the updated_at column