<?php

namespace Shop\Infrastructure\Models\Product\Base;

use \Exception;
use \PDO;
use Propel\Runtime\Propel;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\ActiveQuery\ModelCriteria;
use Propel\Runtime\ActiveQuery\ModelJoin;
use Propel\Runtime\Collection\Collection;
use Propel\Runtime\Collection\ObjectCollection;
use Propel\Runtime\Connection\ConnectionInterface;
use Propel\Runtime\Exception\PropelException;
use Shop\Infrastructure\Models\Brand\Brand;
use Shop\Infrastructure\Models\Category\Category;
use Shop\Infrastructure\Models\DraftProduct\DraftProduct;
use Shop\Infrastructure\Models\Position\Position;
use Shop\Infrastructure\Models\Product\Product as ChildProduct;
use Shop\Infrastructure\Models\Product\ProductQuery as ChildProductQuery;
use Shop\Infrastructure\Models\ProductHitSale\ProductHitSale;
use Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPrice;
use Shop\Infrastructure\Models\Product\Map\ProductTableMap;
use Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRel;

/**
 * Base class that represents a query for the 'shop_products' table.
 *
 *
 *
 * @method     ChildProductQuery orderById($order = Criteria::ASC) Order by the id column
 * @method     ChildProductQuery orderByTitle($order = Criteria::ASC) Order by the title column
 * @method     ChildProductQuery orderByDesc($order = Criteria::ASC) Order by the desc column
 * @method     ChildProductQuery orderByShortDesc($order = Criteria::ASC) Order by the short_desc column
 * @method     ChildProductQuery orderByArticle($order = Criteria::ASC) Order by the article column
 * @method     ChildProductQuery orderByPrice($order = Criteria::ASC) Order by the price column
 * @method     ChildProductQuery orderByWeight($order = Criteria::ASC) Order by the weight column
 * @method     ChildProductQuery orderByImg($order = Criteria::ASC) Order by the img column
 * @method     ChildProductQuery orderByImg1($order = Criteria::ASC) Order by the img1 column
 * @method     ChildProductQuery orderByImg2($order = Criteria::ASC) Order by the img2 column
 * @method     ChildProductQuery orderByImg3($order = Criteria::ASC) Order by the img3 column
 * @method     ChildProductQuery orderByImg4($order = Criteria::ASC) Order by the img4 column
 * @method     ChildProductQuery orderByImg5($order = Criteria::ASC) Order by the img5 column
 * @method     ChildProductQuery orderByimg6($order = Criteria::ASC) Order by the img6 column
 * @method     ChildProductQuery orderByImg7($order = Criteria::ASC) Order by the img7 column
 * @method     ChildProductQuery orderByImg8($order = Criteria::ASC) Order by the img8 column
 * @method     ChildProductQuery orderByImg9($order = Criteria::ASC) Order by the img9 column
 * @method     ChildProductQuery orderBySpecial($order = Criteria::ASC) Order by the special column
 * @method     ChildProductQuery orderByActive($order = Criteria::ASC) Order by the active column
 * @method     ChildProductQuery orderByMtTitle($order = Criteria::ASC) Order by the mt_title column
 * @method     ChildProductQuery orderByMtDescription($order = Criteria::ASC) Order by the mt_description column
 * @method     ChildProductQuery orderByMtKeywords($order = Criteria::ASC) Order by the mt_keywords column
 * @method     ChildProductQuery orderByRemains($order = Criteria::ASC) Order by the remains column
 * @method     ChildProductQuery orderBydateUpdate($order = Criteria::ASC) Order by the udate column
 * @method     ChildProductQuery orderBydateCreate($order = Criteria::ASC) Order by the cdate column
 * @method     ChildProductQuery orderBydatePublic($order = Criteria::ASC) Order by the pdate column
 * @method     ChildProductQuery orderByRef($order = Criteria::ASC) Order by the ref column
 * @method     ChildProductQuery orderByMinQuality($order = Criteria::ASC) Order by the min_quality column
 * @method     ChildProductQuery orderBySeazon($order = Criteria::ASC) Order by the seazon column
 * @method     ChildProductQuery orderByCategoryId($order = Criteria::ASC) Order by the category_id column
 * @method     ChildProductQuery orderByBrandId($order = Criteria::ASC) Order by the brand_id column
 *
 * @method     ChildProductQuery groupById() Group by the id column
 * @method     ChildProductQuery groupByTitle() Group by the title column
 * @method     ChildProductQuery groupByDesc() Group by the desc column
 * @method     ChildProductQuery groupByShortDesc() Group by the short_desc column
 * @method     ChildProductQuery groupByArticle() Group by the article column
 * @method     ChildProductQuery groupByPrice() Group by the price column
 * @method     ChildProductQuery groupByWeight() Group by the weight column
 * @method     ChildProductQuery groupByImg() Group by the img column
 * @method     ChildProductQuery groupByImg1() Group by the img1 column
 * @method     ChildProductQuery groupByImg2() Group by the img2 column
 * @method     ChildProductQuery groupByImg3() Group by the img3 column
 * @method     ChildProductQuery groupByImg4() Group by the img4 column
 * @method     ChildProductQuery groupByImg5() Group by the img5 column
 * @method     ChildProductQuery groupByimg6() Group by the img6 column
 * @method     ChildProductQuery groupByImg7() Group by the img7 column
 * @method     ChildProductQuery groupByImg8() Group by the img8 column
 * @method     ChildProductQuery groupByImg9() Group by the img9 column
 * @method     ChildProductQuery groupBySpecial() Group by the special column
 * @method     ChildProductQuery groupByActive() Group by the active column
 * @method     ChildProductQuery groupByMtTitle() Group by the mt_title column
 * @method     ChildProductQuery groupByMtDescription() Group by the mt_description column
 * @method     ChildProductQuery groupByMtKeywords() Group by the mt_keywords column
 * @method     ChildProductQuery groupByRemains() Group by the remains column
 * @method     ChildProductQuery groupBydateUpdate() Group by the udate column
 * @method     ChildProductQuery groupBydateCreate() Group by the cdate column
 * @method     ChildProductQuery groupBydatePublic() Group by the pdate column
 * @method     ChildProductQuery groupByRef() Group by the ref column
 * @method     ChildProductQuery groupByMinQuality() Group by the min_quality column
 * @method     ChildProductQuery groupBySeazon() Group by the seazon column
 * @method     ChildProductQuery groupByCategoryId() Group by the category_id column
 * @method     ChildProductQuery groupByBrandId() Group by the brand_id column
 *
 * @method     ChildProductQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
 * @method     ChildProductQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
 * @method     ChildProductQuery innerJoin($relation) Adds a INNER JOIN clause to the query
 *
 * @method     ChildProductQuery leftJoinWith($relation) Adds a LEFT JOIN clause and with to the query
 * @method     ChildProductQuery rightJoinWith($relation) Adds a RIGHT JOIN clause and with to the query
 * @method     ChildProductQuery innerJoinWith($relation) Adds a INNER JOIN clause and with to the query
 *
 * @method     ChildProductQuery leftJoinCategory($relationAlias = null) Adds a LEFT JOIN clause to the query using the Category relation
 * @method     ChildProductQuery rightJoinCategory($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Category relation
 * @method     ChildProductQuery innerJoinCategory($relationAlias = null) Adds a INNER JOIN clause to the query using the Category relation
 *
 * @method     ChildProductQuery joinWithCategory($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the Category relation
 *
 * @method     ChildProductQuery leftJoinWithCategory() Adds a LEFT JOIN clause and with to the query using the Category relation
 * @method     ChildProductQuery rightJoinWithCategory() Adds a RIGHT JOIN clause and with to the query using the Category relation
 * @method     ChildProductQuery innerJoinWithCategory() Adds a INNER JOIN clause and with to the query using the Category relation
 *
 * @method     ChildProductQuery leftJoinBrand($relationAlias = null) Adds a LEFT JOIN clause to the query using the Brand relation
 * @method     ChildProductQuery rightJoinBrand($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Brand relation
 * @method     ChildProductQuery innerJoinBrand($relationAlias = null) Adds a INNER JOIN clause to the query using the Brand relation
 *
 * @method     ChildProductQuery joinWithBrand($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the Brand relation
 *
 * @method     ChildProductQuery leftJoinWithBrand() Adds a LEFT JOIN clause and with to the query using the Brand relation
 * @method     ChildProductQuery rightJoinWithBrand() Adds a RIGHT JOIN clause and with to the query using the Brand relation
 * @method     ChildProductQuery innerJoinWithBrand() Adds a INNER JOIN clause and with to the query using the Brand relation
 *
 * @method     ChildProductQuery leftJoinShopProductGroupsRel($relationAlias = null) Adds a LEFT JOIN clause to the query using the ShopProductGroupsRel relation
 * @method     ChildProductQuery rightJoinShopProductGroupsRel($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ShopProductGroupsRel relation
 * @method     ChildProductQuery innerJoinShopProductGroupsRel($relationAlias = null) Adds a INNER JOIN clause to the query using the ShopProductGroupsRel relation
 *
 * @method     ChildProductQuery joinWithShopProductGroupsRel($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the ShopProductGroupsRel relation
 *
 * @method     ChildProductQuery leftJoinWithShopProductGroupsRel() Adds a LEFT JOIN clause and with to the query using the ShopProductGroupsRel relation
 * @method     ChildProductQuery rightJoinWithShopProductGroupsRel() Adds a RIGHT JOIN clause and with to the query using the ShopProductGroupsRel relation
 * @method     ChildProductQuery innerJoinWithShopProductGroupsRel() Adds a INNER JOIN clause and with to the query using the ShopProductGroupsRel relation
 *
 * @method     ChildProductQuery leftJoinPosition($relationAlias = null) Adds a LEFT JOIN clause to the query using the Position relation
 * @method     ChildProductQuery rightJoinPosition($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Position relation
 * @method     ChildProductQuery innerJoinPosition($relationAlias = null) Adds a INNER JOIN clause to the query using the Position relation
 *
 * @method     ChildProductQuery joinWithPosition($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the Position relation
 *
 * @method     ChildProductQuery leftJoinWithPosition() Adds a LEFT JOIN clause and with to the query using the Position relation
 * @method     ChildProductQuery rightJoinWithPosition() Adds a RIGHT JOIN clause and with to the query using the Position relation
 * @method     ChildProductQuery innerJoinWithPosition() Adds a INNER JOIN clause and with to the query using the Position relation
 *
 * @method     ChildProductQuery leftJoinProductHitSale($relationAlias = null) Adds a LEFT JOIN clause to the query using the ProductHitSale relation
 * @method     ChildProductQuery rightJoinProductHitSale($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ProductHitSale relation
 * @method     ChildProductQuery innerJoinProductHitSale($relationAlias = null) Adds a INNER JOIN clause to the query using the ProductHitSale relation
 *
 * @method     ChildProductQuery joinWithProductHitSale($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the ProductHitSale relation
 *
 * @method     ChildProductQuery leftJoinWithProductHitSale() Adds a LEFT JOIN clause and with to the query using the ProductHitSale relation
 * @method     ChildProductQuery rightJoinWithProductHitSale() Adds a RIGHT JOIN clause and with to the query using the ProductHitSale relation
 * @method     ChildProductQuery innerJoinWithProductHitSale() Adds a INNER JOIN clause and with to the query using the ProductHitSale relation
 *
 * @method     ChildProductQuery leftJoinProductSuperPrice($relationAlias = null) Adds a LEFT JOIN clause to the query using the ProductSuperPrice relation
 * @method     ChildProductQuery rightJoinProductSuperPrice($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ProductSuperPrice relation
 * @method     ChildProductQuery innerJoinProductSuperPrice($relationAlias = null) Adds a INNER JOIN clause to the query using the ProductSuperPrice relation
 *
 * @method     ChildProductQuery joinWithProductSuperPrice($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the ProductSuperPrice relation
 *
 * @method     ChildProductQuery leftJoinWithProductSuperPrice() Adds a LEFT JOIN clause and with to the query using the ProductSuperPrice relation
 * @method     ChildProductQuery rightJoinWithProductSuperPrice() Adds a RIGHT JOIN clause and with to the query using the ProductSuperPrice relation
 * @method     ChildProductQuery innerJoinWithProductSuperPrice() Adds a INNER JOIN clause and with to the query using the ProductSuperPrice relation
 *
 * @method     ChildProductQuery leftJoinDraftProduct($relationAlias = null) Adds a LEFT JOIN clause to the query using the DraftProduct relation
 * @method     ChildProductQuery rightJoinDraftProduct($relationAlias = null) Adds a RIGHT JOIN clause to the query using the DraftProduct relation
 * @method     ChildProductQuery innerJoinDraftProduct($relationAlias = null) Adds a INNER JOIN clause to the query using the DraftProduct relation
 *
 * @method     ChildProductQuery joinWithDraftProduct($joinType = Criteria::INNER_JOIN) Adds a join clause and with to the query using the DraftProduct relation
 *
 * @method     ChildProductQuery leftJoinWithDraftProduct() Adds a LEFT JOIN clause and with to the query using the DraftProduct relation
 * @method     ChildProductQuery rightJoinWithDraftProduct() Adds a RIGHT JOIN clause and with to the query using the DraftProduct relation
 * @method     ChildProductQuery innerJoinWithDraftProduct() Adds a INNER JOIN clause and with to the query using the DraftProduct relation
 *
 * @method     \Shop\Infrastructure\Models\Category\CategoryQuery|\Shop\Infrastructure\Models\Brand\BrandQuery|\Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRelQuery|\Shop\Infrastructure\Models\Position\PositionQuery|\Shop\Infrastructure\Models\ProductHitSale\ProductHitSaleQuery|\Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPriceQuery|\Shop\Infrastructure\Models\DraftProduct\DraftProductQuery endUse() Finalizes a secondary criteria and merges it with its primary Criteria
 *
 * @method     ChildProduct|null findOne(?ConnectionInterface $con = null) Return the first ChildProduct matching the query
 * @method     ChildProduct findOneOrCreate(?ConnectionInterface $con = null) Return the first ChildProduct matching the query, or a new ChildProduct object populated from the query conditions when no match is found
 *
 * @method     ChildProduct|null findOneById(int $id) Return the first ChildProduct filtered by the id column
 * @method     ChildProduct|null findOneByTitle(string $title) Return the first ChildProduct filtered by the title column
 * @method     ChildProduct|null findOneByDesc(string $desc) Return the first ChildProduct filtered by the desc column
 * @method     ChildProduct|null findOneByShortDesc(string $short_desc) Return the first ChildProduct filtered by the short_desc column
 * @method     ChildProduct|null findOneByArticle(string $article) Return the first ChildProduct filtered by the article column
 * @method     ChildProduct|null findOneByPrice(string $price) Return the first ChildProduct filtered by the price column
 * @method     ChildProduct|null findOneByWeight(string $weight) Return the first ChildProduct filtered by the weight column
 * @method     ChildProduct|null findOneByImg(string $img) Return the first ChildProduct filtered by the img column
 * @method     ChildProduct|null findOneByImg1(string $img1) Return the first ChildProduct filtered by the img1 column
 * @method     ChildProduct|null findOneByImg2(string $img2) Return the first ChildProduct filtered by the img2 column
 * @method     ChildProduct|null findOneByImg3(string $img3) Return the first ChildProduct filtered by the img3 column
 * @method     ChildProduct|null findOneByImg4(string $img4) Return the first ChildProduct filtered by the img4 column
 * @method     ChildProduct|null findOneByImg5(string $img5) Return the first ChildProduct filtered by the img5 column
 * @method     ChildProduct|null findOneByimg6(string $img6) Return the first ChildProduct filtered by the img6 column
 * @method     ChildProduct|null findOneByImg7(string $img7) Return the first ChildProduct filtered by the img7 column
 * @method     ChildProduct|null findOneByImg8(string $img8) Return the first ChildProduct filtered by the img8 column
 * @method     ChildProduct|null findOneByImg9(string $img9) Return the first ChildProduct filtered by the img9 column
 * @method     ChildProduct|null findOneBySpecial(string $special) Return the first ChildProduct filtered by the special column
 * @method     ChildProduct|null findOneByActive(string $active) Return the first ChildProduct filtered by the active column
 * @method     ChildProduct|null findOneByMtTitle(string $mt_title) Return the first ChildProduct filtered by the mt_title column
 * @method     ChildProduct|null findOneByMtDescription(string $mt_description) Return the first ChildProduct filtered by the mt_description column
 * @method     ChildProduct|null findOneByMtKeywords(string $mt_keywords) Return the first ChildProduct filtered by the mt_keywords column
 * @method     ChildProduct|null findOneByRemains(string $remains) Return the first ChildProduct filtered by the remains column
 * @method     ChildProduct|null findOneBydateUpdate(string $udate) Return the first ChildProduct filtered by the udate column
 * @method     ChildProduct|null findOneBydateCreate(string $cdate) Return the first ChildProduct filtered by the cdate column
 * @method     ChildProduct|null findOneBydatePublic(string $pdate) Return the first ChildProduct filtered by the pdate column
 * @method     ChildProduct|null findOneByRef(int $ref) Return the first ChildProduct filtered by the ref column
 * @method     ChildProduct|null findOneByMinQuality(string $min_quality) Return the first ChildProduct filtered by the min_quality column
 * @method     ChildProduct|null findOneBySeazon(string $seazon) Return the first ChildProduct filtered by the seazon column
 * @method     ChildProduct|null findOneByCategoryId(int $category_id) Return the first ChildProduct filtered by the category_id column
 * @method     ChildProduct|null findOneByBrandId(int $brand_id) Return the first ChildProduct filtered by the brand_id column *

 * @method     ChildProduct requirePk($key, ?ConnectionInterface $con = null) Return the ChildProduct by primary key and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOne(?ConnectionInterface $con = null) Return the first ChildProduct matching the query and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 *
 * @method     ChildProduct requireOneById(int $id) Return the first ChildProduct filtered by the id column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByTitle(string $title) Return the first ChildProduct filtered by the title column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByDesc(string $desc) Return the first ChildProduct filtered by the desc column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByShortDesc(string $short_desc) Return the first ChildProduct filtered by the short_desc column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByArticle(string $article) Return the first ChildProduct filtered by the article column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByPrice(string $price) Return the first ChildProduct filtered by the price column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByWeight(string $weight) Return the first ChildProduct filtered by the weight column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg(string $img) Return the first ChildProduct filtered by the img column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg1(string $img1) Return the first ChildProduct filtered by the img1 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg2(string $img2) Return the first ChildProduct filtered by the img2 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg3(string $img3) Return the first ChildProduct filtered by the img3 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg4(string $img4) Return the first ChildProduct filtered by the img4 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg5(string $img5) Return the first ChildProduct filtered by the img5 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByimg6(string $img6) Return the first ChildProduct filtered by the img6 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg7(string $img7) Return the first ChildProduct filtered by the img7 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg8(string $img8) Return the first ChildProduct filtered by the img8 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByImg9(string $img9) Return the first ChildProduct filtered by the img9 column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneBySpecial(string $special) Return the first ChildProduct filtered by the special column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByActive(string $active) Return the first ChildProduct filtered by the active column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByMtTitle(string $mt_title) Return the first ChildProduct filtered by the mt_title column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByMtDescription(string $mt_description) Return the first ChildProduct filtered by the mt_description column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByMtKeywords(string $mt_keywords) Return the first ChildProduct filtered by the mt_keywords column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByRemains(string $remains) Return the first ChildProduct filtered by the remains column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneBydateUpdate(string $udate) Return the first ChildProduct filtered by the udate column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneBydateCreate(string $cdate) Return the first ChildProduct filtered by the cdate column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneBydatePublic(string $pdate) Return the first ChildProduct filtered by the pdate column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByRef(int $ref) Return the first ChildProduct filtered by the ref column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByMinQuality(string $min_quality) Return the first ChildProduct filtered by the min_quality column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneBySeazon(string $seazon) Return the first ChildProduct filtered by the seazon column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByCategoryId(int $category_id) Return the first ChildProduct filtered by the category_id column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 * @method     ChildProduct requireOneByBrandId(int $brand_id) Return the first ChildProduct filtered by the brand_id column and throws \Propel\Runtime\Exception\EntityNotFoundException when not found
 *
 * @method     ChildProduct[]|Collection find(?ConnectionInterface $con = null) Return ChildProduct objects based on current ModelCriteria
 * @psalm-method Collection&\Traversable<ChildProduct> find(?ConnectionInterface $con = null) Return ChildProduct objects based on current ModelCriteria
 * @method     ChildProduct[]|Collection findById(int $id) Return ChildProduct objects filtered by the id column
 * @psalm-method Collection&\Traversable<ChildProduct> findById(int $id) Return ChildProduct objects filtered by the id column
 * @method     ChildProduct[]|Collection findByTitle(string $title) Return ChildProduct objects filtered by the title column
 * @psalm-method Collection&\Traversable<ChildProduct> findByTitle(string $title) Return ChildProduct objects filtered by the title column
 * @method     ChildProduct[]|Collection findByDesc(string $desc) Return ChildProduct objects filtered by the desc column
 * @psalm-method Collection&\Traversable<ChildProduct> findByDesc(string $desc) Return ChildProduct objects filtered by the desc column
 * @method     ChildProduct[]|Collection findByShortDesc(string $short_desc) Return ChildProduct objects filtered by the short_desc column
 * @psalm-method Collection&\Traversable<ChildProduct> findByShortDesc(string $short_desc) Return ChildProduct objects filtered by the short_desc column
 * @method     ChildProduct[]|Collection findByArticle(string $article) Return ChildProduct objects filtered by the article column
 * @psalm-method Collection&\Traversable<ChildProduct> findByArticle(string $article) Return ChildProduct objects filtered by the article column
 * @method     ChildProduct[]|Collection findByPrice(string $price) Return ChildProduct objects filtered by the price column
 * @psalm-method Collection&\Traversable<ChildProduct> findByPrice(string $price) Return ChildProduct objects filtered by the price column
 * @method     ChildProduct[]|Collection findByWeight(string $weight) Return ChildProduct objects filtered by the weight column
 * @psalm-method Collection&\Traversable<ChildProduct> findByWeight(string $weight) Return ChildProduct objects filtered by the weight column
 * @method     ChildProduct[]|Collection findByImg(string $img) Return ChildProduct objects filtered by the img column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg(string $img) Return ChildProduct objects filtered by the img column
 * @method     ChildProduct[]|Collection findByImg1(string $img1) Return ChildProduct objects filtered by the img1 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg1(string $img1) Return ChildProduct objects filtered by the img1 column
 * @method     ChildProduct[]|Collection findByImg2(string $img2) Return ChildProduct objects filtered by the img2 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg2(string $img2) Return ChildProduct objects filtered by the img2 column
 * @method     ChildProduct[]|Collection findByImg3(string $img3) Return ChildProduct objects filtered by the img3 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg3(string $img3) Return ChildProduct objects filtered by the img3 column
 * @method     ChildProduct[]|Collection findByImg4(string $img4) Return ChildProduct objects filtered by the img4 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg4(string $img4) Return ChildProduct objects filtered by the img4 column
 * @method     ChildProduct[]|Collection findByImg5(string $img5) Return ChildProduct objects filtered by the img5 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg5(string $img5) Return ChildProduct objects filtered by the img5 column
 * @method     ChildProduct[]|Collection findByimg6(string $img6) Return ChildProduct objects filtered by the img6 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByimg6(string $img6) Return ChildProduct objects filtered by the img6 column
 * @method     ChildProduct[]|Collection findByImg7(string $img7) Return ChildProduct objects filtered by the img7 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg7(string $img7) Return ChildProduct objects filtered by the img7 column
 * @method     ChildProduct[]|Collection findByImg8(string $img8) Return ChildProduct objects filtered by the img8 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg8(string $img8) Return ChildProduct objects filtered by the img8 column
 * @method     ChildProduct[]|Collection findByImg9(string $img9) Return ChildProduct objects filtered by the img9 column
 * @psalm-method Collection&\Traversable<ChildProduct> findByImg9(string $img9) Return ChildProduct objects filtered by the img9 column
 * @method     ChildProduct[]|Collection findBySpecial(string $special) Return ChildProduct objects filtered by the special column
 * @psalm-method Collection&\Traversable<ChildProduct> findBySpecial(string $special) Return ChildProduct objects filtered by the special column
 * @method     ChildProduct[]|Collection findByActive(string $active) Return ChildProduct objects filtered by the active column
 * @psalm-method Collection&\Traversable<ChildProduct> findByActive(string $active) Return ChildProduct objects filtered by the active column
 * @method     ChildProduct[]|Collection findByMtTitle(string $mt_title) Return ChildProduct objects filtered by the mt_title column
 * @psalm-method Collection&\Traversable<ChildProduct> findByMtTitle(string $mt_title) Return ChildProduct objects filtered by the mt_title column
 * @method     ChildProduct[]|Collection findByMtDescription(string $mt_description) Return ChildProduct objects filtered by the mt_description column
 * @psalm-method Collection&\Traversable<ChildProduct> findByMtDescription(string $mt_description) Return ChildProduct objects filtered by the mt_description column
 * @method     ChildProduct[]|Collection findByMtKeywords(string $mt_keywords) Return ChildProduct objects filtered by the mt_keywords column
 * @psalm-method Collection&\Traversable<ChildProduct> findByMtKeywords(string $mt_keywords) Return ChildProduct objects filtered by the mt_keywords column
 * @method     ChildProduct[]|Collection findByRemains(string $remains) Return ChildProduct objects filtered by the remains column
 * @psalm-method Collection&\Traversable<ChildProduct> findByRemains(string $remains) Return ChildProduct objects filtered by the remains column
 * @method     ChildProduct[]|Collection findBydateUpdate(string $udate) Return ChildProduct objects filtered by the udate column
 * @psalm-method Collection&\Traversable<ChildProduct> findBydateUpdate(string $udate) Return ChildProduct objects filtered by the udate column
 * @method     ChildProduct[]|Collection findBydateCreate(string $cdate) Return ChildProduct objects filtered by the cdate column
 * @psalm-method Collection&\Traversable<ChildProduct> findBydateCreate(string $cdate) Return ChildProduct objects filtered by the cdate column
 * @method     ChildProduct[]|Collection findBydatePublic(string $pdate) Return ChildProduct objects filtered by the pdate column
 * @psalm-method Collection&\Traversable<ChildProduct> findBydatePublic(string $pdate) Return ChildProduct objects filtered by the pdate column
 * @method     ChildProduct[]|Collection findByRef(int $ref) Return ChildProduct objects filtered by the ref column
 * @psalm-method Collection&\Traversable<ChildProduct> findByRef(int $ref) Return ChildProduct objects filtered by the ref column
 * @method     ChildProduct[]|Collection findByMinQuality(string $min_quality) Return ChildProduct objects filtered by the min_quality column
 * @psalm-method Collection&\Traversable<ChildProduct> findByMinQuality(string $min_quality) Return ChildProduct objects filtered by the min_quality column
 * @method     ChildProduct[]|Collection findBySeazon(string $seazon) Return ChildProduct objects filtered by the seazon column
 * @psalm-method Collection&\Traversable<ChildProduct> findBySeazon(string $seazon) Return ChildProduct objects filtered by the seazon column
 * @method     ChildProduct[]|Collection findByCategoryId(int $category_id) Return ChildProduct objects filtered by the category_id column
 * @psalm-method Collection&\Traversable<ChildProduct> findByCategoryId(int $category_id) Return ChildProduct objects filtered by the category_id column
 * @method     ChildProduct[]|Collection findByBrandId(int $brand_id) Return ChildProduct objects filtered by the brand_id column
 * @psalm-method Collection&\Traversable<ChildProduct> findByBrandId(int $brand_id) Return ChildProduct objects filtered by the brand_id column
 * @method     ChildProduct[]|\Propel\Runtime\Util\PropelModelPager paginate($page = 1, $maxPerPage = 10, ?ConnectionInterface $con = null) Issue a SELECT query based on the current ModelCriteria and uses a page and a maximum number of results per page to compute an offset and a limit
 * @psalm-method \Propel\Runtime\Util\PropelModelPager&\Traversable<ChildProduct> paginate($page = 1, $maxPerPage = 10, ?ConnectionInterface $con = null) Issue a SELECT query based on the current ModelCriteria and uses a page and a maximum number of results per page to compute an offset and a limit
 *
 */
abstract class ProductQuery extends ModelCriteria
{
    protected $entityNotFoundExceptionClass = '\\Propel\\Runtime\\Exception\\EntityNotFoundException';

    /**
     * Initializes internal state of \Shop\Infrastructure\Models\Product\Base\ProductQuery object.
     *
     * @param string $dbName The database name
     * @param string $modelName The phpName of a model, e.g. 'Book'
     * @param string $modelAlias The alias for the model in this query, e.g. 'b'
     */
    public function __construct($dbName = 'default', $modelName = '\\Shop\\Infrastructure\\Models\\Product\\Product', $modelAlias = null)
    {
        parent::__construct($dbName, $modelName, $modelAlias);
    }

    /**
     * Returns a new ChildProductQuery object.
     *
     * @param string $modelAlias The alias of a model in the query
     * @param Criteria $criteria Optional Criteria to build the query from
     *
     * @return ChildProductQuery
     */
    public static function create(?string $modelAlias = null, ?Criteria $criteria = null): Criteria
    {
        if ($criteria instanceof ChildProductQuery) {
            return $criteria;
        }
        $query = new ChildProductQuery();
        if (null !== $modelAlias) {
            $query->setModelAlias($modelAlias);
        }
        if ($criteria instanceof Criteria) {
            $query->mergeWith($criteria);
        }

        return $query;
    }

    /**
     * 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.
     *
     * <code>
     * $obj  = $c->findPk(12, $con);
     * </code>
     *
     * @param mixed $key Primary key to use for the query
     * @param ConnectionInterface $con an optional connection object
     *
     * @return ChildProduct|array|mixed the result, formatted by the current formatter
     */
    public function findPk($key, ?ConnectionInterface $con = null)
    {
        if ($key === null) {
            return null;
        }

        if ($con === null) {
            $con = Propel::getServiceContainer()->getReadConnection(ProductTableMap::DATABASE_NAME);
        }

        $this->basePreSelect($con);

        if (
            $this->formatter || $this->modelAlias || $this->with || $this->select
            || $this->selectColumns || $this->asColumns || $this->selectModifiers
            || $this->map || $this->having || $this->joins
        ) {
            return $this->findPkComplex($key, $con);
        }

        if ((null !== ($obj = ProductTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key)))) {
            // the object is already in the instance pool
            return $obj;
        }

        return $this->findPkSimple($key, $con);
    }

    /**
     * Find object by primary key using raw SQL to go fast.
     * Bypass doSelect() and the object formatter by using generated code.
     *
     * @param mixed $key Primary key to use for the query
     * @param ConnectionInterface $con A connection object
     *
     * @throws \Propel\Runtime\Exception\PropelException
     *
     * @return ChildProduct A model object, or null if the key is not found
     */
    protected function findPkSimple($key, ConnectionInterface $con)
    {
        $sql = 'SELECT `id`, `title`, `desc`, `short_desc`, `article`, `price`, `weight`, `img`, `img1`, `img2`, `img3`, `img4`, `img5`, `img6`, `img7`, `img8`, `img9`, `special`, `active`, `mt_title`, `mt_description`, `mt_keywords`, `remains`, `udate`, `cdate`, `pdate`, `ref`, `min_quality`, `seazon`, `category_id`, `brand_id` FROM `shop_products` WHERE `id` = :p0';
        try {
            $stmt = $con->prepare($sql);
            $stmt->bindValue(':p0', $key, PDO::PARAM_INT);
            $stmt->execute();
        } catch (Exception $e) {
            Propel::log($e->getMessage(), Propel::LOG_ERR);
            throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e);
        }
        $obj = null;
        if ($row = $stmt->fetch(\PDO::FETCH_NUM)) {
            /** @var ChildProduct $obj */
            $obj = new ChildProduct();
            $obj->hydrate($row);
            ProductTableMap::addInstanceToPool($obj, null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key);
        }
        $stmt->closeCursor();

        return $obj;
    }

    /**
     * Find object by primary key.
     *
     * @param mixed $key Primary key to use for the query
     * @param ConnectionInterface $con A connection object
     *
     * @return ChildProduct|array|mixed the result, formatted by the current formatter
     */
    protected function findPkComplex($key, ConnectionInterface $con)
    {
        // As the query uses a PK condition, no limit(1) is necessary.
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $dataFetcher = $criteria
            ->filterByPrimaryKey($key)
            ->doSelect($con);

        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
    }

    /**
     * Find objects by primary key
     * <code>
     * $objs = $c->findPks(array(12, 56, 832), $con);
     * </code>
     * @param array $keys Primary keys to use for the query
     * @param ConnectionInterface $con an optional connection object
     *
     * @return Collection|array|mixed the list of results, formatted by the current formatter
     */
    public function findPks($keys, ?ConnectionInterface $con = null)
    {
        if (null === $con) {
            $con = Propel::getServiceContainer()->getReadConnection($this->getDbName());
        }
        $this->basePreSelect($con);
        $criteria = $this->isKeepQuery() ? clone $this : $this;
        $dataFetcher = $criteria
            ->filterByPrimaryKeys($keys)
            ->doSelect($con);

        return $criteria->getFormatter()->init($criteria)->format($dataFetcher);
    }

    /**
     * Filter the query by primary key
     *
     * @param mixed $key Primary key to use for the query
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByPrimaryKey($key)
    {

        $this->addUsingAlias(ProductTableMap::COL_ID, $key, Criteria::EQUAL);

        return $this;
    }

    /**
     * Filter the query by a list of primary keys
     *
     * @param array|int $keys The list of primary key to use for the query
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByPrimaryKeys($keys)
    {

        $this->addUsingAlias(ProductTableMap::COL_ID, $keys, Criteria::IN);

        return $this;
    }

    /**
     * Filter the query on the id column
     *
     * Example usage:
     * <code>
     * $query->filterById(1234); // WHERE id = 1234
     * $query->filterById(array(12, 34)); // WHERE id IN (12, 34)
     * $query->filterById(array('min' => 12)); // WHERE id > 12
     * </code>
     *
     * @param 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterById($id = null, ?string $comparison = null)
    {
        if (is_array($id)) {
            $useMinMax = false;
            if (isset($id['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($id['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_ID, $id, $comparison);

        return $this;
    }

    /**
     * Filter the query on the title column
     *
     * Example usage:
     * <code>
     * $query->filterByTitle('fooValue');   // WHERE title = 'fooValue'
     * $query->filterByTitle('%fooValue%', Criteria::LIKE); // WHERE title LIKE '%fooValue%'
     * $query->filterByTitle(['foo', 'bar']); // WHERE title IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $title The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByTitle($title = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($title)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_TITLE, $title, $comparison);

        return $this;
    }

    /**
     * Filter the query on the desc column
     *
     * Example usage:
     * <code>
     * $query->filterByDesc('fooValue');   // WHERE desc = 'fooValue'
     * $query->filterByDesc('%fooValue%', Criteria::LIKE); // WHERE desc LIKE '%fooValue%'
     * $query->filterByDesc(['foo', 'bar']); // WHERE desc IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $desc The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByDesc($desc = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($desc)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_DESC, $desc, $comparison);

        return $this;
    }

    /**
     * Filter the query on the short_desc column
     *
     * Example usage:
     * <code>
     * $query->filterByShortDesc('fooValue');   // WHERE short_desc = 'fooValue'
     * $query->filterByShortDesc('%fooValue%', Criteria::LIKE); // WHERE short_desc LIKE '%fooValue%'
     * $query->filterByShortDesc(['foo', 'bar']); // WHERE short_desc IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $shortDesc The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByShortDesc($shortDesc = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($shortDesc)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_SHORT_DESC, $shortDesc, $comparison);

        return $this;
    }

    /**
     * Filter the query on the article column
     *
     * Example usage:
     * <code>
     * $query->filterByArticle('fooValue');   // WHERE article = 'fooValue'
     * $query->filterByArticle('%fooValue%', Criteria::LIKE); // WHERE article LIKE '%fooValue%'
     * $query->filterByArticle(['foo', 'bar']); // WHERE article IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $article The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByArticle($article = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($article)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_ARTICLE, $article, $comparison);

        return $this;
    }

    /**
     * Filter the query on the price column
     *
     * Example usage:
     * <code>
     * $query->filterByPrice(1234); // WHERE price = 1234
     * $query->filterByPrice(array(12, 34)); // WHERE price IN (12, 34)
     * $query->filterByPrice(array('min' => 12)); // WHERE price > 12
     * </code>
     *
     * @param mixed $price 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByPrice($price = null, ?string $comparison = null)
    {
        if (is_array($price)) {
            $useMinMax = false;
            if (isset($price['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($price['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_PRICE, $price['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_PRICE, $price, $comparison);

        return $this;
    }

    /**
     * Filter the query on the weight column
     *
     * Example usage:
     * <code>
     * $query->filterByWeight(1234); // WHERE weight = 1234
     * $query->filterByWeight(array(12, 34)); // WHERE weight IN (12, 34)
     * $query->filterByWeight(array('min' => 12)); // WHERE weight > 12
     * </code>
     *
     * @param mixed $weight 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByWeight($weight = null, ?string $comparison = null)
    {
        if (is_array($weight)) {
            $useMinMax = false;
            if (isset($weight['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_WEIGHT, $weight['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($weight['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_WEIGHT, $weight['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_WEIGHT, $weight, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img column
     *
     * Example usage:
     * <code>
     * $query->filterByImg('fooValue');   // WHERE img = 'fooValue'
     * $query->filterByImg('%fooValue%', Criteria::LIKE); // WHERE img LIKE '%fooValue%'
     * $query->filterByImg(['foo', 'bar']); // WHERE img IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg($img = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG, $img, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img1 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg1('fooValue');   // WHERE img1 = 'fooValue'
     * $query->filterByImg1('%fooValue%', Criteria::LIKE); // WHERE img1 LIKE '%fooValue%'
     * $query->filterByImg1(['foo', 'bar']); // WHERE img1 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img1 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg1($img1 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img1)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG1, $img1, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img2 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg2('fooValue');   // WHERE img2 = 'fooValue'
     * $query->filterByImg2('%fooValue%', Criteria::LIKE); // WHERE img2 LIKE '%fooValue%'
     * $query->filterByImg2(['foo', 'bar']); // WHERE img2 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img2 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg2($img2 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img2)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG2, $img2, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img3 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg3('fooValue');   // WHERE img3 = 'fooValue'
     * $query->filterByImg3('%fooValue%', Criteria::LIKE); // WHERE img3 LIKE '%fooValue%'
     * $query->filterByImg3(['foo', 'bar']); // WHERE img3 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img3 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg3($img3 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img3)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG3, $img3, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img4 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg4('fooValue');   // WHERE img4 = 'fooValue'
     * $query->filterByImg4('%fooValue%', Criteria::LIKE); // WHERE img4 LIKE '%fooValue%'
     * $query->filterByImg4(['foo', 'bar']); // WHERE img4 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img4 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg4($img4 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img4)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG4, $img4, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img5 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg5('fooValue');   // WHERE img5 = 'fooValue'
     * $query->filterByImg5('%fooValue%', Criteria::LIKE); // WHERE img5 LIKE '%fooValue%'
     * $query->filterByImg5(['foo', 'bar']); // WHERE img5 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img5 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg5($img5 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img5)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG5, $img5, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img6 column
     *
     * Example usage:
     * <code>
     * $query->filterByimg6('fooValue');   // WHERE img6 = 'fooValue'
     * $query->filterByimg6('%fooValue%', Criteria::LIKE); // WHERE img6 LIKE '%fooValue%'
     * $query->filterByimg6(['foo', 'bar']); // WHERE img6 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img6 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByimg6($img6 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img6)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG6, $img6, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img7 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg7('fooValue');   // WHERE img7 = 'fooValue'
     * $query->filterByImg7('%fooValue%', Criteria::LIKE); // WHERE img7 LIKE '%fooValue%'
     * $query->filterByImg7(['foo', 'bar']); // WHERE img7 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img7 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg7($img7 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img7)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG7, $img7, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img8 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg8('fooValue');   // WHERE img8 = 'fooValue'
     * $query->filterByImg8('%fooValue%', Criteria::LIKE); // WHERE img8 LIKE '%fooValue%'
     * $query->filterByImg8(['foo', 'bar']); // WHERE img8 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img8 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg8($img8 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img8)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG8, $img8, $comparison);

        return $this;
    }

    /**
     * Filter the query on the img9 column
     *
     * Example usage:
     * <code>
     * $query->filterByImg9('fooValue');   // WHERE img9 = 'fooValue'
     * $query->filterByImg9('%fooValue%', Criteria::LIKE); // WHERE img9 LIKE '%fooValue%'
     * $query->filterByImg9(['foo', 'bar']); // WHERE img9 IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $img9 The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByImg9($img9 = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($img9)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_IMG9, $img9, $comparison);

        return $this;
    }

    /**
     * Filter the query on the special column
     *
     * Example usage:
     * <code>
     * $query->filterBySpecial('fooValue');   // WHERE special = 'fooValue'
     * $query->filterBySpecial('%fooValue%', Criteria::LIKE); // WHERE special LIKE '%fooValue%'
     * $query->filterBySpecial(['foo', 'bar']); // WHERE special IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $special The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterBySpecial($special = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($special)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_SPECIAL, $special, $comparison);

        return $this;
    }

    /**
     * Filter the query on the active column
     *
     * Example usage:
     * <code>
     * $query->filterByActive('fooValue');   // WHERE active = 'fooValue'
     * $query->filterByActive('%fooValue%', Criteria::LIKE); // WHERE active LIKE '%fooValue%'
     * $query->filterByActive(['foo', 'bar']); // WHERE active IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $active The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByActive($active = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($active)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_ACTIVE, $active, $comparison);

        return $this;
    }

    /**
     * Filter the query on the mt_title column
     *
     * Example usage:
     * <code>
     * $query->filterByMtTitle('fooValue');   // WHERE mt_title = 'fooValue'
     * $query->filterByMtTitle('%fooValue%', Criteria::LIKE); // WHERE mt_title LIKE '%fooValue%'
     * $query->filterByMtTitle(['foo', 'bar']); // WHERE mt_title IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $mtTitle The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByMtTitle($mtTitle = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($mtTitle)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_MT_TITLE, $mtTitle, $comparison);

        return $this;
    }

    /**
     * Filter the query on the mt_description column
     *
     * Example usage:
     * <code>
     * $query->filterByMtDescription('fooValue');   // WHERE mt_description = 'fooValue'
     * $query->filterByMtDescription('%fooValue%', Criteria::LIKE); // WHERE mt_description LIKE '%fooValue%'
     * $query->filterByMtDescription(['foo', 'bar']); // WHERE mt_description IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $mtDescription The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByMtDescription($mtDescription = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($mtDescription)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_MT_DESCRIPTION, $mtDescription, $comparison);

        return $this;
    }

    /**
     * Filter the query on the mt_keywords column
     *
     * Example usage:
     * <code>
     * $query->filterByMtKeywords('fooValue');   // WHERE mt_keywords = 'fooValue'
     * $query->filterByMtKeywords('%fooValue%', Criteria::LIKE); // WHERE mt_keywords LIKE '%fooValue%'
     * $query->filterByMtKeywords(['foo', 'bar']); // WHERE mt_keywords IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $mtKeywords The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByMtKeywords($mtKeywords = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($mtKeywords)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_MT_KEYWORDS, $mtKeywords, $comparison);

        return $this;
    }

    /**
     * Filter the query on the remains column
     *
     * Example usage:
     * <code>
     * $query->filterByRemains('fooValue');   // WHERE remains = 'fooValue'
     * $query->filterByRemains('%fooValue%', Criteria::LIKE); // WHERE remains LIKE '%fooValue%'
     * $query->filterByRemains(['foo', 'bar']); // WHERE remains IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $remains The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByRemains($remains = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($remains)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_REMAINS, $remains, $comparison);

        return $this;
    }

    /**
     * Filter the query on the udate column
     *
     * Example usage:
     * <code>
     * $query->filterBydateUpdate('2011-03-14'); // WHERE udate = '2011-03-14'
     * $query->filterBydateUpdate('now'); // WHERE udate = '2011-03-14'
     * $query->filterBydateUpdate(array('max' => 'yesterday')); // WHERE udate > '2011-03-13'
     * </code>
     *
     * @param mixed $dateUpdate 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterBydateUpdate($dateUpdate = null, ?string $comparison = null)
    {
        if (is_array($dateUpdate)) {
            $useMinMax = false;
            if (isset($dateUpdate['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_UDATE, $dateUpdate['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($dateUpdate['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_UDATE, $dateUpdate['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_UDATE, $dateUpdate, $comparison);

        return $this;
    }

    /**
     * Filter the query on the cdate column
     *
     * Example usage:
     * <code>
     * $query->filterBydateCreate('2011-03-14'); // WHERE cdate = '2011-03-14'
     * $query->filterBydateCreate('now'); // WHERE cdate = '2011-03-14'
     * $query->filterBydateCreate(array('max' => 'yesterday')); // WHERE cdate > '2011-03-13'
     * </code>
     *
     * @param mixed $dateCreate 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterBydateCreate($dateCreate = null, ?string $comparison = null)
    {
        if (is_array($dateCreate)) {
            $useMinMax = false;
            if (isset($dateCreate['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_CDATE, $dateCreate['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($dateCreate['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_CDATE, $dateCreate['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_CDATE, $dateCreate, $comparison);

        return $this;
    }

    /**
     * Filter the query on the pdate column
     *
     * Example usage:
     * <code>
     * $query->filterBydatePublic('2011-03-14'); // WHERE pdate = '2011-03-14'
     * $query->filterBydatePublic('now'); // WHERE pdate = '2011-03-14'
     * $query->filterBydatePublic(array('max' => 'yesterday')); // WHERE pdate > '2011-03-13'
     * </code>
     *
     * @param mixed $datePublic 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterBydatePublic($datePublic = null, ?string $comparison = null)
    {
        if (is_array($datePublic)) {
            $useMinMax = false;
            if (isset($datePublic['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_PDATE, $datePublic['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($datePublic['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_PDATE, $datePublic['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_PDATE, $datePublic, $comparison);

        return $this;
    }

    /**
     * Filter the query on the ref column
     *
     * Example usage:
     * <code>
     * $query->filterByRef(1234); // WHERE ref = 1234
     * $query->filterByRef(array(12, 34)); // WHERE ref IN (12, 34)
     * $query->filterByRef(array('min' => 12)); // WHERE ref > 12
     * </code>
     *
     * @param mixed $ref 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByRef($ref = null, ?string $comparison = null)
    {
        if (is_array($ref)) {
            $useMinMax = false;
            if (isset($ref['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_REF, $ref['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($ref['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_REF, $ref['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_REF, $ref, $comparison);

        return $this;
    }

    /**
     * Filter the query on the min_quality column
     *
     * Example usage:
     * <code>
     * $query->filterByMinQuality('fooValue');   // WHERE min_quality = 'fooValue'
     * $query->filterByMinQuality('%fooValue%', Criteria::LIKE); // WHERE min_quality LIKE '%fooValue%'
     * $query->filterByMinQuality(['foo', 'bar']); // WHERE min_quality IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $minQuality The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByMinQuality($minQuality = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($minQuality)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_MIN_QUALITY, $minQuality, $comparison);

        return $this;
    }

    /**
     * Filter the query on the seazon column
     *
     * Example usage:
     * <code>
     * $query->filterBySeazon('fooValue');   // WHERE seazon = 'fooValue'
     * $query->filterBySeazon('%fooValue%', Criteria::LIKE); // WHERE seazon LIKE '%fooValue%'
     * $query->filterBySeazon(['foo', 'bar']); // WHERE seazon IN ('foo', 'bar')
     * </code>
     *
     * @param string|string[] $seazon The value to use as filter.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterBySeazon($seazon = null, ?string $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($seazon)) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_SEAZON, $seazon, $comparison);

        return $this;
    }

    /**
     * Filter the query on the category_id column
     *
     * Example usage:
     * <code>
     * $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
     * </code>
     *
     * @see       filterByCategory()
     *
     * @param 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByCategoryId($categoryId = null, ?string $comparison = null)
    {
        if (is_array($categoryId)) {
            $useMinMax = false;
            if (isset($categoryId['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_CATEGORY_ID, $categoryId['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($categoryId['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_CATEGORY_ID, $categoryId['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_CATEGORY_ID, $categoryId, $comparison);

        return $this;
    }

    /**
     * Filter the query on the brand_id column
     *
     * Example usage:
     * <code>
     * $query->filterByBrandId(1234); // WHERE brand_id = 1234
     * $query->filterByBrandId(array(12, 34)); // WHERE brand_id IN (12, 34)
     * $query->filterByBrandId(array('min' => 12)); // WHERE brand_id > 12
     * </code>
     *
     * @see       filterByBrand()
     *
     * @param mixed $brandId 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.
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByBrandId($brandId = null, ?string $comparison = null)
    {
        if (is_array($brandId)) {
            $useMinMax = false;
            if (isset($brandId['min'])) {
                $this->addUsingAlias(ProductTableMap::COL_BRAND_ID, $brandId['min'], Criteria::GREATER_EQUAL);
                $useMinMax = true;
            }
            if (isset($brandId['max'])) {
                $this->addUsingAlias(ProductTableMap::COL_BRAND_ID, $brandId['max'], Criteria::LESS_EQUAL);
                $useMinMax = true;
            }
            if ($useMinMax) {
                return $this;
            }
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }
        }

        $this->addUsingAlias(ProductTableMap::COL_BRAND_ID, $brandId, $comparison);

        return $this;
    }

    /**
     * Filter the query by a related \Shop\Infrastructure\Models\Category\Category object
     *
     * @param \Shop\Infrastructure\Models\Category\Category|ObjectCollection $category The related object(s) to use as filter
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @throws \Propel\Runtime\Exception\PropelException
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByCategory($category, ?string $comparison = null)
    {
        if ($category instanceof \Shop\Infrastructure\Models\Category\Category) {
            return $this
                ->addUsingAlias(ProductTableMap::COL_CATEGORY_ID, $category->getId(), $comparison);
        } elseif ($category instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            $this
                ->addUsingAlias(ProductTableMap::COL_CATEGORY_ID, $category->toKeyValue('PrimaryKey', 'Id'), $comparison);

            return $this;
        } else {
            throw new PropelException('filterByCategory() only accepts arguments of type \Shop\Infrastructure\Models\Category\Category or Collection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the Category relation
     *
     * @param string|null $relationAlias Optional alias for the relation
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this The current query, for fluid interface
     */
    public function joinCategory(?string $relationAlias = null, ?string $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('Category');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'Category');
        }

        return $this;
    }

    /**
     * Use the Category relation Category object
     *
     * @see useQuery()
     *
     * @param string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return \Shop\Infrastructure\Models\Category\CategoryQuery A secondary query class using the current class as primary query
     */
    public function useCategoryQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        return $this
            ->joinCategory($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'Category', '\Shop\Infrastructure\Models\Category\CategoryQuery');
    }

    /**
     * Use the Category relation Category object
     *
     * @param callable(\Shop\Infrastructure\Models\Category\CategoryQuery):\Shop\Infrastructure\Models\Category\CategoryQuery $callable A function working on the related query
     *
     * @param string|null $relationAlias optional alias for the relation
     *
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this
     */
    public function withCategoryQuery(
        callable $callable,
        string $relationAlias = null,
        ?string $joinType = Criteria::INNER_JOIN
    ) {
        $relatedQuery = $this->useCategoryQuery(
            $relationAlias,
            $joinType
        );
        $callable($relatedQuery);
        $relatedQuery->endUse();

        return $this;
    }
    /**
     * Use the relation to Category table for an EXISTS query.
     *
     * @see \Propel\Runtime\ActiveQuery\ModelCriteria::useExistsQuery()
     *
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string $typeOfExists Either ExistsCriterion::TYPE_EXISTS or ExistsCriterion::TYPE_NOT_EXISTS
     *
     * @return \Shop\Infrastructure\Models\Category\CategoryQuery The inner query object of the EXISTS statement
     */
    public function useCategoryExistsQuery($modelAlias = null, $queryClass = null, $typeOfExists = 'EXISTS')
    {
        return $this->useExistsQuery('Category', $modelAlias, $queryClass, $typeOfExists);
    }

    /**
     * Use the relation to Category table for a NOT EXISTS query.
     *
     * @see useCategoryExistsQuery()
     *
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     *
     * @return \Shop\Infrastructure\Models\Category\CategoryQuery The inner query object of the NOT EXISTS statement
     */
    public function useCategoryNotExistsQuery($modelAlias = null, $queryClass = null)
    {
        return $this->useExistsQuery('Category', $modelAlias, $queryClass, 'NOT EXISTS');
    }
    /**
     * Filter the query by a related \Shop\Infrastructure\Models\Brand\Brand object
     *
     * @param \Shop\Infrastructure\Models\Brand\Brand|ObjectCollection $brand The related object(s) to use as filter
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @throws \Propel\Runtime\Exception\PropelException
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByBrand($brand, ?string $comparison = null)
    {
        if ($brand instanceof \Shop\Infrastructure\Models\Brand\Brand) {
            return $this
                ->addUsingAlias(ProductTableMap::COL_BRAND_ID, $brand->getId(), $comparison);
        } elseif ($brand instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            $this
                ->addUsingAlias(ProductTableMap::COL_BRAND_ID, $brand->toKeyValue('PrimaryKey', 'Id'), $comparison);

            return $this;
        } else {
            throw new PropelException('filterByBrand() only accepts arguments of type \Shop\Infrastructure\Models\Brand\Brand or Collection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the Brand relation
     *
     * @param string|null $relationAlias Optional alias for the relation
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this The current query, for fluid interface
     */
    public function joinBrand(?string $relationAlias = null, ?string $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('Brand');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'Brand');
        }

        return $this;
    }

    /**
     * Use the Brand relation Brand object
     *
     * @see useQuery()
     *
     * @param string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return \Shop\Infrastructure\Models\Brand\BrandQuery A secondary query class using the current class as primary query
     */
    public function useBrandQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        return $this
            ->joinBrand($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'Brand', '\Shop\Infrastructure\Models\Brand\BrandQuery');
    }

    /**
     * Use the Brand relation Brand object
     *
     * @param callable(\Shop\Infrastructure\Models\Brand\BrandQuery):\Shop\Infrastructure\Models\Brand\BrandQuery $callable A function working on the related query
     *
     * @param string|null $relationAlias optional alias for the relation
     *
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this
     */
    public function withBrandQuery(
        callable $callable,
        string $relationAlias = null,
        ?string $joinType = Criteria::INNER_JOIN
    ) {
        $relatedQuery = $this->useBrandQuery(
            $relationAlias,
            $joinType
        );
        $callable($relatedQuery);
        $relatedQuery->endUse();

        return $this;
    }
    /**
     * Use the relation to Brand table for an EXISTS query.
     *
     * @see \Propel\Runtime\ActiveQuery\ModelCriteria::useExistsQuery()
     *
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string $typeOfExists Either ExistsCriterion::TYPE_EXISTS or ExistsCriterion::TYPE_NOT_EXISTS
     *
     * @return \Shop\Infrastructure\Models\Brand\BrandQuery The inner query object of the EXISTS statement
     */
    public function useBrandExistsQuery($modelAlias = null, $queryClass = null, $typeOfExists = 'EXISTS')
    {
        return $this->useExistsQuery('Brand', $modelAlias, $queryClass, $typeOfExists);
    }

    /**
     * Use the relation to Brand table for a NOT EXISTS query.
     *
     * @see useBrandExistsQuery()
     *
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     *
     * @return \Shop\Infrastructure\Models\Brand\BrandQuery The inner query object of the NOT EXISTS statement
     */
    public function useBrandNotExistsQuery($modelAlias = null, $queryClass = null)
    {
        return $this->useExistsQuery('Brand', $modelAlias, $queryClass, 'NOT EXISTS');
    }
    /**
     * Filter the query by a related \Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRel object
     *
     * @param \Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRel|ObjectCollection $shopProductGroupsRel the related object to use as filter
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByShopProductGroupsRel($shopProductGroupsRel, ?string $comparison = null)
    {
        if ($shopProductGroupsRel instanceof \Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRel) {
            $this
                ->addUsingAlias(ProductTableMap::COL_ID, $shopProductGroupsRel->getProductId(), $comparison);

            return $this;
        } elseif ($shopProductGroupsRel instanceof ObjectCollection) {
            $this
                ->useShopProductGroupsRelQuery()
                ->filterByPrimaryKeys($shopProductGroupsRel->getPrimaryKeys())
                ->endUse();

            return $this;
        } else {
            throw new PropelException('filterByShopProductGroupsRel() only accepts arguments of type \Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRel or Collection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the ShopProductGroupsRel relation
     *
     * @param string|null $relationAlias Optional alias for the relation
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this The current query, for fluid interface
     */
    public function joinShopProductGroupsRel(?string $relationAlias = null, ?string $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('ShopProductGroupsRel');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'ShopProductGroupsRel');
        }

        return $this;
    }

    /**
     * Use the ShopProductGroupsRel relation ShopProductGroupsRel object
     *
     * @see useQuery()
     *
     * @param string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return \Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRelQuery A secondary query class using the current class as primary query
     */
    public function useShopProductGroupsRelQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        return $this
            ->joinShopProductGroupsRel($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'ShopProductGroupsRel', '\Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRelQuery');
    }

    /**
     * Use the ShopProductGroupsRel relation ShopProductGroupsRel object
     *
     * @param callable(\Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRelQuery):\Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRelQuery $callable A function working on the related query
     *
     * @param string|null $relationAlias optional alias for the relation
     *
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this
     */
    public function withShopProductGroupsRelQuery(
        callable $callable,
        string $relationAlias = null,
        ?string $joinType = Criteria::INNER_JOIN
    ) {
        $relatedQuery = $this->useShopProductGroupsRelQuery(
            $relationAlias,
            $joinType
        );
        $callable($relatedQuery);
        $relatedQuery->endUse();

        return $this;
    }
    /**
     * Use the relation to ShopProductGroupsRel table for an EXISTS query.
     *
     * @see \Propel\Runtime\ActiveQuery\ModelCriteria::useExistsQuery()
     *
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string $typeOfExists Either ExistsCriterion::TYPE_EXISTS or ExistsCriterion::TYPE_NOT_EXISTS
     *
     * @return \Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRelQuery The inner query object of the EXISTS statement
     */
    public function useShopProductGroupsRelExistsQuery($modelAlias = null, $queryClass = null, $typeOfExists = 'EXISTS')
    {
        return $this->useExistsQuery('ShopProductGroupsRel', $modelAlias, $queryClass, $typeOfExists);
    }

    /**
     * Use the relation to ShopProductGroupsRel table for a NOT EXISTS query.
     *
     * @see useShopProductGroupsRelExistsQuery()
     *
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     *
     * @return \Shop\Infrastructure\Models\ShopProductGroupsRel\ShopProductGroupsRelQuery The inner query object of the NOT EXISTS statement
     */
    public function useShopProductGroupsRelNotExistsQuery($modelAlias = null, $queryClass = null)
    {
        return $this->useExistsQuery('ShopProductGroupsRel', $modelAlias, $queryClass, 'NOT EXISTS');
    }
    /**
     * Filter the query by a related \Shop\Infrastructure\Models\Position\Position object
     *
     * @param \Shop\Infrastructure\Models\Position\Position|ObjectCollection $position the related object to use as filter
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByPosition($position, ?string $comparison = null)
    {
        if ($position instanceof \Shop\Infrastructure\Models\Position\Position) {
            $this
                ->addUsingAlias(ProductTableMap::COL_ID, $position->getProductId(), $comparison);

            return $this;
        } elseif ($position instanceof ObjectCollection) {
            $this
                ->usePositionQuery()
                ->filterByPrimaryKeys($position->getPrimaryKeys())
                ->endUse();

            return $this;
        } else {
            throw new PropelException('filterByPosition() only accepts arguments of type \Shop\Infrastructure\Models\Position\Position or Collection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the Position relation
     *
     * @param string|null $relationAlias Optional alias for the relation
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this The current query, for fluid interface
     */
    public function joinPosition(?string $relationAlias = null, ?string $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('Position');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'Position');
        }

        return $this;
    }

    /**
     * Use the Position relation Position object
     *
     * @see useQuery()
     *
     * @param string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return \Shop\Infrastructure\Models\Position\PositionQuery A secondary query class using the current class as primary query
     */
    public function usePositionQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        return $this
            ->joinPosition($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'Position', '\Shop\Infrastructure\Models\Position\PositionQuery');
    }

    /**
     * Use the Position relation Position object
     *
     * @param callable(\Shop\Infrastructure\Models\Position\PositionQuery):\Shop\Infrastructure\Models\Position\PositionQuery $callable A function working on the related query
     *
     * @param string|null $relationAlias optional alias for the relation
     *
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this
     */
    public function withPositionQuery(
        callable $callable,
        string $relationAlias = null,
        ?string $joinType = Criteria::INNER_JOIN
    ) {
        $relatedQuery = $this->usePositionQuery(
            $relationAlias,
            $joinType
        );
        $callable($relatedQuery);
        $relatedQuery->endUse();

        return $this;
    }
    /**
     * Use the relation to Position table for an EXISTS query.
     *
     * @see \Propel\Runtime\ActiveQuery\ModelCriteria::useExistsQuery()
     *
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string $typeOfExists Either ExistsCriterion::TYPE_EXISTS or ExistsCriterion::TYPE_NOT_EXISTS
     *
     * @return \Shop\Infrastructure\Models\Position\PositionQuery The inner query object of the EXISTS statement
     */
    public function usePositionExistsQuery($modelAlias = null, $queryClass = null, $typeOfExists = 'EXISTS')
    {
        return $this->useExistsQuery('Position', $modelAlias, $queryClass, $typeOfExists);
    }

    /**
     * Use the relation to Position table for a NOT EXISTS query.
     *
     * @see usePositionExistsQuery()
     *
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     *
     * @return \Shop\Infrastructure\Models\Position\PositionQuery The inner query object of the NOT EXISTS statement
     */
    public function usePositionNotExistsQuery($modelAlias = null, $queryClass = null)
    {
        return $this->useExistsQuery('Position', $modelAlias, $queryClass, 'NOT EXISTS');
    }
    /**
     * Filter the query by a related \Shop\Infrastructure\Models\ProductHitSale\ProductHitSale object
     *
     * @param \Shop\Infrastructure\Models\ProductHitSale\ProductHitSale|ObjectCollection $productHitSale the related object to use as filter
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByProductHitSale($productHitSale, ?string $comparison = null)
    {
        if ($productHitSale instanceof \Shop\Infrastructure\Models\ProductHitSale\ProductHitSale) {
            $this
                ->addUsingAlias(ProductTableMap::COL_ID, $productHitSale->getProductId(), $comparison);

            return $this;
        } elseif ($productHitSale instanceof ObjectCollection) {
            $this
                ->useProductHitSaleQuery()
                ->filterByPrimaryKeys($productHitSale->getPrimaryKeys())
                ->endUse();

            return $this;
        } else {
            throw new PropelException('filterByProductHitSale() only accepts arguments of type \Shop\Infrastructure\Models\ProductHitSale\ProductHitSale or Collection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the ProductHitSale relation
     *
     * @param string|null $relationAlias Optional alias for the relation
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this The current query, for fluid interface
     */
    public function joinProductHitSale(?string $relationAlias = null, ?string $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('ProductHitSale');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'ProductHitSale');
        }

        return $this;
    }

    /**
     * Use the ProductHitSale relation ProductHitSale object
     *
     * @see useQuery()
     *
     * @param string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return \Shop\Infrastructure\Models\ProductHitSale\ProductHitSaleQuery A secondary query class using the current class as primary query
     */
    public function useProductHitSaleQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        return $this
            ->joinProductHitSale($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'ProductHitSale', '\Shop\Infrastructure\Models\ProductHitSale\ProductHitSaleQuery');
    }

    /**
     * Use the ProductHitSale relation ProductHitSale object
     *
     * @param callable(\Shop\Infrastructure\Models\ProductHitSale\ProductHitSaleQuery):\Shop\Infrastructure\Models\ProductHitSale\ProductHitSaleQuery $callable A function working on the related query
     *
     * @param string|null $relationAlias optional alias for the relation
     *
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this
     */
    public function withProductHitSaleQuery(
        callable $callable,
        string $relationAlias = null,
        ?string $joinType = Criteria::INNER_JOIN
    ) {
        $relatedQuery = $this->useProductHitSaleQuery(
            $relationAlias,
            $joinType
        );
        $callable($relatedQuery);
        $relatedQuery->endUse();

        return $this;
    }
    /**
     * Use the relation to ProductHitSale table for an EXISTS query.
     *
     * @see \Propel\Runtime\ActiveQuery\ModelCriteria::useExistsQuery()
     *
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string $typeOfExists Either ExistsCriterion::TYPE_EXISTS or ExistsCriterion::TYPE_NOT_EXISTS
     *
     * @return \Shop\Infrastructure\Models\ProductHitSale\ProductHitSaleQuery The inner query object of the EXISTS statement
     */
    public function useProductHitSaleExistsQuery($modelAlias = null, $queryClass = null, $typeOfExists = 'EXISTS')
    {
        return $this->useExistsQuery('ProductHitSale', $modelAlias, $queryClass, $typeOfExists);
    }

    /**
     * Use the relation to ProductHitSale table for a NOT EXISTS query.
     *
     * @see useProductHitSaleExistsQuery()
     *
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     *
     * @return \Shop\Infrastructure\Models\ProductHitSale\ProductHitSaleQuery The inner query object of the NOT EXISTS statement
     */
    public function useProductHitSaleNotExistsQuery($modelAlias = null, $queryClass = null)
    {
        return $this->useExistsQuery('ProductHitSale', $modelAlias, $queryClass, 'NOT EXISTS');
    }
    /**
     * Filter the query by a related \Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPrice object
     *
     * @param \Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPrice|ObjectCollection $productSuperPrice the related object to use as filter
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByProductSuperPrice($productSuperPrice, ?string $comparison = null)
    {
        if ($productSuperPrice instanceof \Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPrice) {
            $this
                ->addUsingAlias(ProductTableMap::COL_ID, $productSuperPrice->getProductId(), $comparison);

            return $this;
        } elseif ($productSuperPrice instanceof ObjectCollection) {
            $this
                ->useProductSuperPriceQuery()
                ->filterByPrimaryKeys($productSuperPrice->getPrimaryKeys())
                ->endUse();

            return $this;
        } else {
            throw new PropelException('filterByProductSuperPrice() only accepts arguments of type \Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPrice or Collection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the ProductSuperPrice relation
     *
     * @param string|null $relationAlias Optional alias for the relation
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this The current query, for fluid interface
     */
    public function joinProductSuperPrice(?string $relationAlias = null, ?string $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('ProductSuperPrice');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'ProductSuperPrice');
        }

        return $this;
    }

    /**
     * Use the ProductSuperPrice relation ProductSuperPrice object
     *
     * @see useQuery()
     *
     * @param string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return \Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPriceQuery A secondary query class using the current class as primary query
     */
    public function useProductSuperPriceQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        return $this
            ->joinProductSuperPrice($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'ProductSuperPrice', '\Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPriceQuery');
    }

    /**
     * Use the ProductSuperPrice relation ProductSuperPrice object
     *
     * @param callable(\Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPriceQuery):\Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPriceQuery $callable A function working on the related query
     *
     * @param string|null $relationAlias optional alias for the relation
     *
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this
     */
    public function withProductSuperPriceQuery(
        callable $callable,
        string $relationAlias = null,
        ?string $joinType = Criteria::INNER_JOIN
    ) {
        $relatedQuery = $this->useProductSuperPriceQuery(
            $relationAlias,
            $joinType
        );
        $callable($relatedQuery);
        $relatedQuery->endUse();

        return $this;
    }
    /**
     * Use the relation to ProductSuperPrice table for an EXISTS query.
     *
     * @see \Propel\Runtime\ActiveQuery\ModelCriteria::useExistsQuery()
     *
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string $typeOfExists Either ExistsCriterion::TYPE_EXISTS or ExistsCriterion::TYPE_NOT_EXISTS
     *
     * @return \Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPriceQuery The inner query object of the EXISTS statement
     */
    public function useProductSuperPriceExistsQuery($modelAlias = null, $queryClass = null, $typeOfExists = 'EXISTS')
    {
        return $this->useExistsQuery('ProductSuperPrice', $modelAlias, $queryClass, $typeOfExists);
    }

    /**
     * Use the relation to ProductSuperPrice table for a NOT EXISTS query.
     *
     * @see useProductSuperPriceExistsQuery()
     *
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     *
     * @return \Shop\Infrastructure\Models\ProductSuperPrice\ProductSuperPriceQuery The inner query object of the NOT EXISTS statement
     */
    public function useProductSuperPriceNotExistsQuery($modelAlias = null, $queryClass = null)
    {
        return $this->useExistsQuery('ProductSuperPrice', $modelAlias, $queryClass, 'NOT EXISTS');
    }
    /**
     * Filter the query by a related \Shop\Infrastructure\Models\DraftProduct\DraftProduct object
     *
     * @param \Shop\Infrastructure\Models\DraftProduct\DraftProduct|ObjectCollection $draftProduct the related object to use as filter
     * @param string|null $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByDraftProduct($draftProduct, ?string $comparison = null)
    {
        if ($draftProduct instanceof \Shop\Infrastructure\Models\DraftProduct\DraftProduct) {
            $this
                ->addUsingAlias(ProductTableMap::COL_ID, $draftProduct->getProductId(), $comparison);

            return $this;
        } elseif ($draftProduct instanceof ObjectCollection) {
            $this
                ->useDraftProductQuery()
                ->filterByPrimaryKeys($draftProduct->getPrimaryKeys())
                ->endUse();

            return $this;
        } else {
            throw new PropelException('filterByDraftProduct() only accepts arguments of type \Shop\Infrastructure\Models\DraftProduct\DraftProduct or Collection');
        }
    }

    /**
     * Adds a JOIN clause to the query using the DraftProduct relation
     *
     * @param string|null $relationAlias Optional alias for the relation
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this The current query, for fluid interface
     */
    public function joinDraftProduct(?string $relationAlias = null, ?string $joinType = Criteria::LEFT_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('DraftProduct');

        // create a ModelJoin object for this join
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }

        // add the ModelJoin to the current object
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'DraftProduct');
        }

        return $this;
    }

    /**
     * Use the DraftProduct relation DraftProduct object
     *
     * @see useQuery()
     *
     * @param string $relationAlias optional alias for the relation,
     *                                   to be used as main alias in the secondary query
     * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return \Shop\Infrastructure\Models\DraftProduct\DraftProductQuery A secondary query class using the current class as primary query
     */
    public function useDraftProductQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)
    {
        return $this
            ->joinDraftProduct($relationAlias, $joinType)
            ->useQuery($relationAlias ? $relationAlias : 'DraftProduct', '\Shop\Infrastructure\Models\DraftProduct\DraftProductQuery');
    }

    /**
     * Use the DraftProduct relation DraftProduct object
     *
     * @param callable(\Shop\Infrastructure\Models\DraftProduct\DraftProductQuery):\Shop\Infrastructure\Models\DraftProduct\DraftProductQuery $callable A function working on the related query
     *
     * @param string|null $relationAlias optional alias for the relation
     *
     * @param string|null $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return $this
     */
    public function withDraftProductQuery(
        callable $callable,
        string $relationAlias = null,
        ?string $joinType = Criteria::LEFT_JOIN
    ) {
        $relatedQuery = $this->useDraftProductQuery(
            $relationAlias,
            $joinType
        );
        $callable($relatedQuery);
        $relatedQuery->endUse();

        return $this;
    }
    /**
     * Use the relation to DraftProduct table for an EXISTS query.
     *
     * @see \Propel\Runtime\ActiveQuery\ModelCriteria::useExistsQuery()
     *
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string $typeOfExists Either ExistsCriterion::TYPE_EXISTS or ExistsCriterion::TYPE_NOT_EXISTS
     *
     * @return \Shop\Infrastructure\Models\DraftProduct\DraftProductQuery The inner query object of the EXISTS statement
     */
    public function useDraftProductExistsQuery($modelAlias = null, $queryClass = null, $typeOfExists = 'EXISTS')
    {
        return $this->useExistsQuery('DraftProduct', $modelAlias, $queryClass, $typeOfExists);
    }

    /**
     * Use the relation to DraftProduct table for a NOT EXISTS query.
     *
     * @see useDraftProductExistsQuery()
     *
     * @param string|null $modelAlias sets an alias for the nested query
     * @param string|null $queryClass Allows to use a custom query class for the exists query, like ExtendedBookQuery::class
     *
     * @return \Shop\Infrastructure\Models\DraftProduct\DraftProductQuery The inner query object of the NOT EXISTS statement
     */
    public function useDraftProductNotExistsQuery($modelAlias = null, $queryClass = null)
    {
        return $this->useExistsQuery('DraftProduct', $modelAlias, $queryClass, 'NOT EXISTS');
    }
    /**
     * Filter the query by a related ProductGroup object
     * using the shop_product_groups_rel table as cross reference
     *
     * @param ProductGroup $productGroup the related object to use as filter
     * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return $this The current query, for fluid interface
     */
    public function filterByProductGroup($productGroup, string $comparison = Criteria::EQUAL)
    {
        $this
            ->useShopProductGroupsRelQuery()
            ->filterByProductGroup($productGroup, $comparison)
            ->endUse();

        return $this;
    }

    /**
     * Exclude object from result
     *
     * @param ChildProduct $product Object to remove from the list of results
     *
     * @return $this The current query, for fluid interface
     */
    public function prune($product = null)
    {
        if ($product) {
            $this->addUsingAlias(ProductTableMap::COL_ID, $product->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }

    /**
     * Deletes all rows from the shop_products table.
     *
     * @param ConnectionInterface $con the connection to use
     * @return int The number of affected rows (if supported by underlying database driver).
     */
    public function doDeleteAll(?ConnectionInterface $con = null): int
    {
        if (null === $con) {
            $con = Propel::getServiceContainer()->getWriteConnection(ProductTableMap::DATABASE_NAME);
        }

        // use transaction because $criteria could contain info
        // for more than one table or we could emulating ON DELETE CASCADE, etc.
        return $con->transaction(function () use ($con) {
            $affectedRows = 0; // initialize var to track total num of affected rows
            $affectedRows += parent::doDeleteAll($con);
            // Because this db requires some delete cascade/set null emulation, we have to
            // clear the cached instance *after* the emulation has happened (since
            // instances get re-added by the select statement contained therein).
            ProductTableMap::clearInstancePool();
            ProductTableMap::clearRelatedInstancePool();

            return $affectedRows;
        });
    }

    /**
     * Performs a DELETE on the database based on the current ModelCriteria
     *
     * @param ConnectionInterface $con the connection to use
     * @return 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.
     * @throws \Propel\Runtime\Exception\PropelException Any exceptions caught during processing will be
     *                         rethrown wrapped into a PropelException.
     */
    public function delete(?ConnectionInterface $con = null): int
    {
        if (null === $con) {
            $con = Propel::getServiceContainer()->getWriteConnection(ProductTableMap::DATABASE_NAME);
        }

        $criteria = $this;

        // Set the correct dbName
        $criteria->setDbName(ProductTableMap::DATABASE_NAME);

        // use transaction because $criteria could contain info
        // for more than one table or we could emulating ON DELETE CASCADE, etc.
        return $con->transaction(function () use ($con, $criteria) {
            $affectedRows = 0; // initialize var to track total num of affected rows

            ProductTableMap::removeInstanceFromPool($criteria);

            $affectedRows += ModelCriteria::delete($con);
            ProductTableMap::clearRelatedInstancePool();

            return $affectedRows;
        });
    }

}
