Files
sterivein/core/lib/Thelia/Model/TaxRuleQuery.php
Etienne Roudeix 2548fb9e3c insert 19.6 tva
2013-09-09 11:28:02 +02:00

32 lines
833 B
PHP
Executable File

<?php
namespace Thelia\Model;
use Propel\Runtime\ActiveQuery\Criteria;
use Thelia\Model\Base\TaxRuleQuery as BaseTaxRuleQuery;
/**
* Skeleton subclass for performing query and update operations on the 'tax_rule' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class TaxRuleQuery extends BaseTaxRuleQuery
{
public function getTaxCalculatorCollection(Product $product, Country $country)
{
$search = TaxRuleCountryQuery::create()
->filterByCountry($country, Criteria::EQUAL)
->filterByTaxRuleId($product->getTaxRuleId())
->orderByPosition()
->find();
return $search;
}
} // TaxRuleQuery