summaryrefslogtreecommitdiffstats
path: root/Aufgabe06/generated-classes/Base/ProductQuery.php
diff options
context:
space:
mode:
Diffstat (limited to 'Aufgabe06/generated-classes/Base/ProductQuery.php')
-rw-r--r--Aufgabe06/generated-classes/Base/ProductQuery.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/Aufgabe06/generated-classes/Base/ProductQuery.php b/Aufgabe06/generated-classes/Base/ProductQuery.php
index 84c59aa..0665619 100644
--- a/Aufgabe06/generated-classes/Base/ProductQuery.php
+++ b/Aufgabe06/generated-classes/Base/ProductQuery.php
@@ -549,6 +549,23 @@ abstract class ProductQuery extends ModelCriteria
}
/**
+ * Filter the query by a related Category object
+ * using the product_category table as cross reference
+ *
+ * @param Category $category the related object to use as filter
+ * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
+ *
+ * @return ChildProductQuery The current query, for fluid interface
+ */
+ public function filterByCategory($category, $comparison = Criteria::EQUAL)
+ {
+ return $this
+ ->useProductCategoryQuery()
+ ->filterByCategory($category, $comparison)
+ ->endUse();
+ }
+
+ /**
* Exclude object from result
*
* @param ChildProduct $product Object to remove from the list of results