From 938d5a52bf639a546c9d2313c109d78045ea2afb Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Tue, 9 Jul 2013 11:57:13 +0200 Subject: [PATCH 01/13] product loop feature --- .../lib/Thelia/Core/Template/Loop/Product.php | 18 +++++- core/lib/Thelia/Type/EnumType.php | 2 +- .../lib/Thelia/Type/IntToCombinedIntsList.php | 57 +++++++++++++++++++ templates/smarty-sample/category.html | 2 +- 4 files changed, 76 insertions(+), 3 deletions(-) create mode 100755 core/lib/Thelia/Type/IntToCombinedIntsList.php diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 001c5c750..961a4d11d 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -83,7 +83,14 @@ class Product extends BaseLoop ) ), Argument::createBooleanTypeArgument('random', 0), - Argument::createIntListTypeArgument('exclude') + Argument::createIntListTypeArgument('exclude'), + Argument::createIntListTypeArgument('exclude_category'), + new Argument( + 'feature_available', + new TypeCollection( + new Type\IntToCombinedIntsList(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new')) + ) + ) ); } @@ -295,6 +302,15 @@ class Product extends BaseLoop $search->filterById($exclude, Criteria::NOT_IN); } + $exclude_category = $this->getExclude_category(); + + if (!is_null($exclude_category)) { + $search->filterByCategory( + CategoryQuery::create()->filterById($exclude_category, Criteria::IN)->find(), + Criteria::NOT_IN + ); + } + /** * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. * diff --git a/core/lib/Thelia/Type/EnumType.php b/core/lib/Thelia/Type/EnumType.php index ce9914038..0221f8b8e 100755 --- a/core/lib/Thelia/Type/EnumType.php +++ b/core/lib/Thelia/Type/EnumType.php @@ -48,7 +48,7 @@ class EnumType implements TypeInterface return in_array($value, $this->values); } - public function getFogetFormattedValuermatedValue($value) + public function getFormattedValue($value) { return $this->isValid($value) ? $value : null; } diff --git a/core/lib/Thelia/Type/IntToCombinedIntsList.php b/core/lib/Thelia/Type/IntToCombinedIntsList.php new file mode 100755 index 000000000..9c8445b6e --- /dev/null +++ b/core/lib/Thelia/Type/IntToCombinedIntsList.php @@ -0,0 +1,57 @@ +. */ +/* */ +/*************************************************************************************/ +namespace Thelia\Type; + +/** + * + * @author Etienne Roudeix + * + */ + +class IntToCombinedIntsList implements TypeInterface +{ + public function getType() + { + return 'Int to combined ints list type'; + } + + public function isValid($values) + { + foreach(explode(',', $values) as $intToCombinedInts) { + $parts = explode(':', $intToCombinedInts); + if(count($parts) != 2) + return false; + if(filter_var($parts[0], FILTER_VALIDATE_INT) === false) + return false; + if(!preg_match('#([0-9]+)|\*|&\*]+#', $parts[1])) + return false; + } + + return true; + } + + public function getFormattedValue($values) + { + return $this->isValid($values) ? explode(',', $values) : null; + } +} diff --git a/templates/smarty-sample/category.html b/templates/smarty-sample/category.html index 1589036a4..dad8764b9 100755 --- a/templates/smarty-sample/category.html +++ b/templates/smarty-sample/category.html @@ -19,7 +19,7 @@
{/loop*}

PRODUCTS

-{loop name="product" type="product" order="promo,min_price"} +{loop name="product" type="product" order="promo,min_price" exclude_category="3"}

PRODUCT : #REF / #TITLE

price : #PRICE €
promo price : #PROMO_PRICE €
From 74f205831ca6c9f983a9958a9af6b7ba008292b1 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Tue, 9 Jul 2013 17:15:47 +0200 Subject: [PATCH 02/13] prod feature loop --- .../lib/Thelia/Core/Template/Loop/Product.php | 57 +++++++++++++++++++ .../lib/Thelia/Type/IntToCombinedIntsList.php | 15 ++++- templates/smarty-sample/category.html | 10 +++- 3 files changed, 79 insertions(+), 3 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 961a4d11d..80d65a703 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -24,6 +24,7 @@ namespace Thelia\Core\Template\Loop; use Propel\Runtime\ActiveQuery\Criteria; +use Propel\Runtime\ActiveQuery\Join; use Thelia\Core\Template\Element\BaseLoop; use Thelia\Core\Template\Element\LoopResult; use Thelia\Core\Template\Element\LoopResultRow; @@ -32,7 +33,11 @@ use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; use Thelia\Log\Tlog; +use Thelia\Model\Base\FeatureProdQuery; use Thelia\Model\CategoryQuery; +use Thelia\Model\FeatureAvQuery; +use Thelia\Model\FeatureQuery; +use Thelia\Model\Map\FeatureProdTableMap; use Thelia\Model\Map\ProductTableMap; use Thelia\Model\ProductCategoryQuery; use Thelia\Model\ProductQuery; @@ -311,6 +316,58 @@ class Product extends BaseLoop ); } + $feature_available = $this->getFeature_available(); + + if(null !== $feature_available) { + //$search->joinFeatureProd('fa2', Criteria::LEFT_JOIN)->condition('foocond', '`fa2`.`product_id`=1')->setJoinCondition('fa2', 'foocond'); + //$search->joinFeatureProd('fa3', Criteria::LEFT_JOIN)->condition('foocond2', 'fa3.product_id=?', 2)->setJoinCondition('fa3', 'foocond2'); + + /* fonctionne mais pas avec ? + $search->joinFeatureProd('fa3', Criteria::LEFT_JOIN)->addJoinCondition('fa3', "'fa3.PRODUCT_ID' = 4"); + $search->joinFeatureProd('fa2', Criteria::LEFT_JOIN)->addJoinCondition('fa2', "'fa2.PRODUCT_ID' = 3"); + */ + + $x = new Join(); + $x->addExplicitCondition('product', 'id', null, 'feature_prod', 'PRODUCT_ID', 'fa0', Criteria::EQUAL); + $search->addJoinObject( + $x + ); + + /* + * ne marche pas de cette façon : + * + * + $search->filterByFeatureProd( + FeatureProdQuery::create('fa') + ->filterByFeature( + FeatureQuery::create('fq') + ->filterById(array(1,2,3), Criteria::IN) + ->find() + ) + ->filterByFeatureAv( + FeatureAvQuery::create() + ->filterById(array(1,2,3), Criteria::IN) + ->find() + ) + ->find() + ); + + */ + + /* + + CategoryQuery::create()->filterByProduct( + ProductCategoryQuery::create()->filterByProductId( + $this->request->get("product_id"), + Criteria::EQUAL + )->find(), + Criteria::IN + )->find(), + Criteria::NOT_IN + + */ + } + /** * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. * diff --git a/core/lib/Thelia/Type/IntToCombinedIntsList.php b/core/lib/Thelia/Type/IntToCombinedIntsList.php index 9c8445b6e..f5ac6b58c 100755 --- a/core/lib/Thelia/Type/IntToCombinedIntsList.php +++ b/core/lib/Thelia/Type/IntToCombinedIntsList.php @@ -43,7 +43,7 @@ class IntToCombinedIntsList implements TypeInterface return false; if(filter_var($parts[0], FILTER_VALIDATE_INT) === false) return false; - if(!preg_match('#([0-9]+)|\*|&\*]+#', $parts[1])) + if(!preg_match('#^([0-9]+([\&\|]{1}[0-9]+)*|\*)$#', $parts[1])) return false; } @@ -52,6 +52,17 @@ class IntToCombinedIntsList implements TypeInterface public function getFormattedValue($values) { - return $this->isValid($values) ? explode(',', $values) : null; + if( $this->isValid($values) ) { + $return = ''; + + foreach(explode(',', $values) as $intToCombinedInts) { + $parts = explode(':', $intToCombinedInts); + $return[$parts[0]] = $parts[1]; + } + + return $return; + } else { + return null; + } } } diff --git a/templates/smarty-sample/category.html b/templates/smarty-sample/category.html index dad8764b9..1335132ea 100755 --- a/templates/smarty-sample/category.html +++ b/templates/smarty-sample/category.html @@ -19,7 +19,15 @@
{/loop*}

PRODUCTS

-{loop name="product" type="product" order="promo,min_price" exclude_category="3"} +{*loop name="product" type="product" order="promo,min_price" exclude_category="3"} +

PRODUCT : #REF / #TITLE

+ price : #PRICE €
+ promo price : #PROMO_PRICE €
+ is promo : #PROMO
+ is new : #NEW
+ weight : #WEIGHT
+{/loop*} +{loop name="product" type="product" feature_available="15:1|2|3,12:5&8|6,6:*"}

PRODUCT : #REF / #TITLE

price : #PRICE €
promo price : #PROMO_PRICE €
From ab7a9b3cd8a29cd2bb2ebb1e1e94b1115650d8c2 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Wed, 10 Jul 2013 16:59:34 +0200 Subject: [PATCH 03/13] features in product loop --- .../lib/Thelia/Core/Template/Loop/Product.php | 22 ++++++-- .../lib/Thelia/Tests/Type/BooleanTypeTest.php | 14 +++-- core/lib/Thelia/Type/BooleanType.php | 17 +----- .../lib/Thelia/Type/IntToCombinedIntsList.php | 55 ++++++++++++++++++- templates/smarty-sample/category.html | 2 +- 5 files changed, 81 insertions(+), 29 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 80d65a703..b67041fb6 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -327,11 +327,23 @@ class Product extends BaseLoop $search->joinFeatureProd('fa2', Criteria::LEFT_JOIN)->addJoinCondition('fa2', "'fa2.PRODUCT_ID' = 3"); */ - $x = new Join(); - $x->addExplicitCondition('product', 'id', null, 'feature_prod', 'PRODUCT_ID', 'fa0', Criteria::EQUAL); - $search->addJoinObject( - $x - ); + /* pas mieux + $x = new Join(ProductTableMap::ID, FeatureProdTableMap::PRODUCT_ID, Criteria::LEFT_JOIN); + $x->setRightTableAlias('fa0'); + $search->addJoinObject($x, 'fa0')->addJoinCondition('fa0', "PRODUCT_ID = ?", 0); + */ + + foreach($feature_available as $feature => $feature_choice) { + foreach($feature_choice['values'] as $feature_av) { + $featureAlias = 'fa_' . $feature . '_' . $feature_av; + $search->joinFeatureProd($featureAlias, Criteria::LEFT_JOIN) + ->addJoinCondition($featureAlias, "`$featureAlias`.FEATURE_ID = ?", $feature, null, \PDO::PARAM_INT) + ->addJoinCondition($featureAlias, "`$featureAlias`.FEATURE_AV_ID = ?", $feature_av, null, \PDO::PARAM_INT); + } + $bigDealFeatureWhereCondition = str_replace('&', ' AND ', $feature_choice['values']); + } + + /* * ne marche pas de cette façon : diff --git a/core/lib/Thelia/Tests/Type/BooleanTypeTest.php b/core/lib/Thelia/Tests/Type/BooleanTypeTest.php index d91cc6bc9..26a85b31b 100755 --- a/core/lib/Thelia/Tests/Type/BooleanTypeTest.php +++ b/core/lib/Thelia/Tests/Type/BooleanTypeTest.php @@ -35,21 +35,23 @@ class BooleanTypeTest extends \PHPUnit_Framework_TestCase public function testBooleanType() { $booleanType = new BooleanType(); - $this->assertTrue($booleanType->isValid('y')); + $this->assertTrue($booleanType->isValid('1')); $this->assertTrue($booleanType->isValid('yes')); $this->assertTrue($booleanType->isValid('true')); $this->assertTrue($booleanType->isValid('no')); - $this->assertTrue($booleanType->isValid('n')); + $this->assertTrue($booleanType->isValid('off')); + $this->assertTrue($booleanType->isValid(1)); $this->assertTrue($booleanType->isValid('false')); $this->assertFalse($booleanType->isValid('foo')); - $this->assertFalse($booleanType->isValid(5)); + $this->assertFalse($booleanType->isValid(2)); } public function testFormatBooleanType() { $booleanType = new BooleanType(); - $this->assertTrue($booleanType->getFormattedValue('yes')); - $this->assertFalse($booleanType->getFormattedValue('no')); - $this->assertNull($booleanType->getFormattedValue('foo')); + $this->assertTrue($booleanType->getFormattedValue('on')); + $this->assertFalse($booleanType->getFormattedValue('0')); + $this->assertFalse($booleanType->getFormattedValue(0)); + $this->assertNull($booleanType->getFormattedValue(3)); } } diff --git a/core/lib/Thelia/Type/BooleanType.php b/core/lib/Thelia/Type/BooleanType.php index 0c85d3ba8..e7bbea786 100755 --- a/core/lib/Thelia/Type/BooleanType.php +++ b/core/lib/Thelia/Type/BooleanType.php @@ -30,19 +30,6 @@ namespace Thelia\Type; class BooleanType implements TypeInterface { - protected $trueValuesArray = array( - '1', - 'true', - 'yes', - 'y', - ); - protected $falseValuesArray = array( - '0', - 'false', - 'no', - 'n', - ); - public function getType() { return 'Boolean type'; @@ -50,11 +37,11 @@ class BooleanType implements TypeInterface public function isValid($value) { - return in_array($value, $this->trueValuesArray) || in_array($value, $this->falseValuesArray); + return filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) !== null; } public function getFormattedValue($value) { - return $this->isValid($value) ? ( in_array($value, $this->trueValuesArray) ) : null; + return filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); } } diff --git a/core/lib/Thelia/Type/IntToCombinedIntsList.php b/core/lib/Thelia/Type/IntToCombinedIntsList.php index f5ac6b58c..adefb0bb8 100755 --- a/core/lib/Thelia/Type/IntToCombinedIntsList.php +++ b/core/lib/Thelia/Type/IntToCombinedIntsList.php @@ -43,8 +43,49 @@ class IntToCombinedIntsList implements TypeInterface return false; if(filter_var($parts[0], FILTER_VALIDATE_INT) === false) return false; - if(!preg_match('#^([0-9]+([\&\|]{1}[0-9]+)*|\*)$#', $parts[1])) + + /* delete all spaces and parentheses */ + $noSpaceString = preg_replace('#[\s]#', '', $parts[1]); + $noParentheseString = preg_replace('#[\(\)]#', '', $noSpaceString); + + if(!preg_match('#^([0-9]+([\&\|][0-9]+)*|\*)$#', $noParentheseString)) return false; + + /* check parenteses use */ + $openingParenthesesCount = 0; + $closingParenthesesCount = 0; + + for($i=0; $i preg_split( "#(&|\|)#", $parts[1]), + "expression" => $parts[0], + );*/ + + $x = 1; } return $return; diff --git a/templates/smarty-sample/category.html b/templates/smarty-sample/category.html index 1335132ea..d95ff1763 100755 --- a/templates/smarty-sample/category.html +++ b/templates/smarty-sample/category.html @@ -27,7 +27,7 @@ is new : #NEW
weight : #WEIGHT
{/loop*} -{loop name="product" type="product" feature_available="15:1|2|3,12:5&8|6,6:*"} +{loop name="product" type="product" feature_available="1: (1 | 2) , 2: 4"}

PRODUCT : #REF / #TITLE

price : #PRICE €
promo price : #PROMO_PRICE €
From 26b180615669ab084e53558e4c18d3067c03df2a Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Thu, 11 Jul 2013 11:25:47 +0200 Subject: [PATCH 04/13] x right to 7 feature filter in product loop --- .../Admin/Controller/SessionController.php | 0 core/lib/Thelia/Core/Event/CustomRefEvent.php | 0 .../Thelia/Core/HttpFoundation/Request.php | 0 .../Core/HttpFoundation/Session/Session.php | 0 .../AuthenticationProviderInterface.php | 0 .../UsernamePasswordAuthenticator.php | 0 .../Encoder/PasswordEncoderInterface.php | 0 .../Security/Encoder/PasswordHashEncoder.php | 0 .../AuthenticationTokenNotFoundException.php | 0 core/lib/Thelia/Core/Security/Role/Role.php | 0 .../Core/Security/Role/RoleInterface.php | 0 .../Thelia/Core/Security/SecurityManager.php | 0 .../Core/Security/Token/AbstractToken.php | 0 .../Core/Security/Token/TokenInterface.php | 0 .../Security/Token/UsernamePasswordToken.php | 0 .../Core/Security/User/AdminUserProvider.php | 0 .../Security/User/CustomerUserProvider.php | 0 .../Core/Security/User/UserInterface.php | 0 .../Security/User/UserProviderInterface.php | 0 .../Exception/ResourceNotFoundException.php | 0 core/lib/Thelia/Core/Template/Loop/Feed.php | 0 .../lib/Thelia/Core/Template/Loop/Product.php | 74 ++++-------- .../Core/Template/Smarty/Plugins/Form.php | 0 .../Core/Template/Smarty/Plugins/Security.php | 0 .../Template/Smarty/Plugins/TheliaSyntax.php | 0 core/lib/Thelia/Form/AdminLogin.php | 0 core/lib/Thelia/Form/BaseForm.php | 0 core/lib/Thelia/Form/CustomerCreation.php | 0 core/lib/Thelia/Form/CustomerModification.php | 0 core/lib/Thelia/Model/Accessory.php | 0 core/lib/Thelia/Model/AccessoryQuery.php | 0 core/lib/Thelia/Model/Address.php | 0 core/lib/Thelia/Model/AddressQuery.php | 0 core/lib/Thelia/Model/Admin.php | 0 core/lib/Thelia/Model/AdminGroup.php | 0 core/lib/Thelia/Model/AdminGroupQuery.php | 0 core/lib/Thelia/Model/AdminLog.php | 0 core/lib/Thelia/Model/AdminLogQuery.php | 0 core/lib/Thelia/Model/AdminQuery.php | 0 core/lib/Thelia/Model/Area.php | 0 core/lib/Thelia/Model/AreaQuery.php | 0 core/lib/Thelia/Model/Attribute.php | 0 core/lib/Thelia/Model/AttributeAv.php | 0 core/lib/Thelia/Model/AttributeAvI18n.php | 0 .../lib/Thelia/Model/AttributeAvI18nQuery.php | 0 core/lib/Thelia/Model/AttributeAvQuery.php | 0 core/lib/Thelia/Model/AttributeCategory.php | 0 .../Thelia/Model/AttributeCategoryQuery.php | 0 .../lib/Thelia/Model/AttributeCombination.php | 0 .../Model/AttributeCombinationQuery.php | 0 core/lib/Thelia/Model/AttributeI18n.php | 0 core/lib/Thelia/Model/AttributeI18nQuery.php | 0 core/lib/Thelia/Model/AttributeQuery.php | 0 core/lib/Thelia/Model/Base/Accessory.php | 0 core/lib/Thelia/Model/Base/AccessoryQuery.php | 0 core/lib/Thelia/Model/Base/Address.php | 0 core/lib/Thelia/Model/Base/AddressQuery.php | 0 core/lib/Thelia/Model/Base/Admin.php | 0 core/lib/Thelia/Model/Base/AdminGroup.php | 0 .../lib/Thelia/Model/Base/AdminGroupQuery.php | 0 core/lib/Thelia/Model/Base/AdminLog.php | 0 core/lib/Thelia/Model/Base/AdminLogQuery.php | 0 core/lib/Thelia/Model/Base/AdminQuery.php | 0 core/lib/Thelia/Model/Base/Area.php | 0 core/lib/Thelia/Model/Base/AreaQuery.php | 0 core/lib/Thelia/Model/Base/Attribute.php | 0 core/lib/Thelia/Model/Base/AttributeAv.php | 0 .../lib/Thelia/Model/Base/AttributeAvI18n.php | 0 .../Model/Base/AttributeAvI18nQuery.php | 0 .../Thelia/Model/Base/AttributeAvQuery.php | 0 .../Thelia/Model/Base/AttributeCategory.php | 0 .../Model/Base/AttributeCategoryQuery.php | 0 .../Model/Base/AttributeCombination.php | 0 .../Model/Base/AttributeCombinationQuery.php | 0 core/lib/Thelia/Model/Base/AttributeI18n.php | 0 .../Thelia/Model/Base/AttributeI18nQuery.php | 0 core/lib/Thelia/Model/Base/AttributeQuery.php | 0 core/lib/Thelia/Model/Base/Category.php | 0 core/lib/Thelia/Model/Base/CategoryI18n.php | 0 .../Thelia/Model/Base/CategoryI18nQuery.php | 0 core/lib/Thelia/Model/Base/CategoryQuery.php | 0 .../lib/Thelia/Model/Base/CategoryVersion.php | 0 .../Model/Base/CategoryVersionQuery.php | 0 core/lib/Thelia/Model/Base/Combination.php | 0 .../Thelia/Model/Base/CombinationQuery.php | 0 core/lib/Thelia/Model/Base/Config.php | 0 core/lib/Thelia/Model/Base/ConfigI18n.php | 0 .../lib/Thelia/Model/Base/ConfigI18nQuery.php | 0 core/lib/Thelia/Model/Base/ConfigQuery.php | 0 core/lib/Thelia/Model/Base/Content.php | 0 core/lib/Thelia/Model/Base/ContentAssoc.php | 0 .../Thelia/Model/Base/ContentAssocQuery.php | 0 core/lib/Thelia/Model/Base/ContentFolder.php | 0 .../Thelia/Model/Base/ContentFolderQuery.php | 0 core/lib/Thelia/Model/Base/ContentI18n.php | 0 .../Thelia/Model/Base/ContentI18nQuery.php | 0 core/lib/Thelia/Model/Base/ContentQuery.php | 0 core/lib/Thelia/Model/Base/ContentVersion.php | 0 .../Thelia/Model/Base/ContentVersionQuery.php | 0 core/lib/Thelia/Model/Base/Country.php | 0 core/lib/Thelia/Model/Base/CountryI18n.php | 0 .../Thelia/Model/Base/CountryI18nQuery.php | 0 core/lib/Thelia/Model/Base/CountryQuery.php | 0 core/lib/Thelia/Model/Base/Coupon.php | 0 core/lib/Thelia/Model/Base/CouponOrder.php | 0 .../Thelia/Model/Base/CouponOrderQuery.php | 0 core/lib/Thelia/Model/Base/CouponQuery.php | 0 core/lib/Thelia/Model/Base/CouponRule.php | 0 .../lib/Thelia/Model/Base/CouponRuleQuery.php | 0 core/lib/Thelia/Model/Base/Currency.php | 0 core/lib/Thelia/Model/Base/CurrencyQuery.php | 0 core/lib/Thelia/Model/Base/Customer.php | 0 core/lib/Thelia/Model/Base/CustomerQuery.php | 0 core/lib/Thelia/Model/Base/CustomerTitle.php | 0 .../Thelia/Model/Base/CustomerTitleI18n.php | 0 .../Model/Base/CustomerTitleI18nQuery.php | 0 .../Thelia/Model/Base/CustomerTitleQuery.php | 0 core/lib/Thelia/Model/Base/Delivzone.php | 0 core/lib/Thelia/Model/Base/DelivzoneQuery.php | 0 core/lib/Thelia/Model/Base/Document.php | 0 core/lib/Thelia/Model/Base/DocumentI18n.php | 0 .../Thelia/Model/Base/DocumentI18nQuery.php | 0 core/lib/Thelia/Model/Base/DocumentQuery.php | 0 core/lib/Thelia/Model/Base/Feature.php | 0 core/lib/Thelia/Model/Base/FeatureAv.php | 0 core/lib/Thelia/Model/Base/FeatureAvI18n.php | 0 .../Thelia/Model/Base/FeatureAvI18nQuery.php | 0 core/lib/Thelia/Model/Base/FeatureAvQuery.php | 0 .../lib/Thelia/Model/Base/FeatureCategory.php | 0 .../Model/Base/FeatureCategoryQuery.php | 0 core/lib/Thelia/Model/Base/FeatureI18n.php | 0 .../Thelia/Model/Base/FeatureI18nQuery.php | 0 core/lib/Thelia/Model/Base/FeatureProd.php | 0 .../Thelia/Model/Base/FeatureProdQuery.php | 0 core/lib/Thelia/Model/Base/FeatureQuery.php | 0 core/lib/Thelia/Model/Base/Folder.php | 0 core/lib/Thelia/Model/Base/FolderI18n.php | 0 .../lib/Thelia/Model/Base/FolderI18nQuery.php | 0 core/lib/Thelia/Model/Base/FolderQuery.php | 0 core/lib/Thelia/Model/Base/FolderVersion.php | 0 .../Thelia/Model/Base/FolderVersionQuery.php | 0 core/lib/Thelia/Model/Base/Group.php | 0 core/lib/Thelia/Model/Base/GroupI18n.php | 0 core/lib/Thelia/Model/Base/GroupI18nQuery.php | 0 core/lib/Thelia/Model/Base/GroupModule.php | 0 .../Thelia/Model/Base/GroupModuleQuery.php | 0 core/lib/Thelia/Model/Base/GroupQuery.php | 0 core/lib/Thelia/Model/Base/GroupResource.php | 0 .../Thelia/Model/Base/GroupResourceQuery.php | 0 core/lib/Thelia/Model/Base/Image.php | 0 core/lib/Thelia/Model/Base/ImageI18n.php | 0 core/lib/Thelia/Model/Base/ImageI18nQuery.php | 0 core/lib/Thelia/Model/Base/ImageQuery.php | 0 core/lib/Thelia/Model/Base/Lang.php | 0 core/lib/Thelia/Model/Base/LangQuery.php | 0 core/lib/Thelia/Model/Base/Message.php | 0 core/lib/Thelia/Model/Base/MessageI18n.php | 0 .../Thelia/Model/Base/MessageI18nQuery.php | 0 core/lib/Thelia/Model/Base/MessageQuery.php | 0 core/lib/Thelia/Model/Base/MessageVersion.php | 0 .../Thelia/Model/Base/MessageVersionQuery.php | 0 core/lib/Thelia/Model/Base/Module.php | 0 core/lib/Thelia/Model/Base/ModuleI18n.php | 0 .../lib/Thelia/Model/Base/ModuleI18nQuery.php | 0 core/lib/Thelia/Model/Base/ModuleQuery.php | 0 core/lib/Thelia/Model/Base/Order.php | 0 core/lib/Thelia/Model/Base/OrderAddress.php | 0 .../Thelia/Model/Base/OrderAddressQuery.php | 0 core/lib/Thelia/Model/Base/OrderFeature.php | 0 .../Thelia/Model/Base/OrderFeatureQuery.php | 0 core/lib/Thelia/Model/Base/OrderProduct.php | 0 .../Thelia/Model/Base/OrderProductQuery.php | 0 core/lib/Thelia/Model/Base/OrderQuery.php | 0 core/lib/Thelia/Model/Base/OrderStatus.php | 0 .../lib/Thelia/Model/Base/OrderStatusI18n.php | 0 .../Model/Base/OrderStatusI18nQuery.php | 0 .../Thelia/Model/Base/OrderStatusQuery.php | 0 core/lib/Thelia/Model/Base/Product.php | 0 .../lib/Thelia/Model/Base/ProductCategory.php | 0 .../Model/Base/ProductCategoryQuery.php | 0 core/lib/Thelia/Model/Base/ProductI18n.php | 0 .../Thelia/Model/Base/ProductI18nQuery.php | 0 core/lib/Thelia/Model/Base/ProductQuery.php | 0 core/lib/Thelia/Model/Base/ProductVersion.php | 0 .../Thelia/Model/Base/ProductVersionQuery.php | 0 core/lib/Thelia/Model/Base/Resource.php | 0 core/lib/Thelia/Model/Base/ResourceI18n.php | 0 .../Thelia/Model/Base/ResourceI18nQuery.php | 0 core/lib/Thelia/Model/Base/ResourceQuery.php | 0 core/lib/Thelia/Model/Base/Rewriting.php | 0 core/lib/Thelia/Model/Base/RewritingQuery.php | 0 core/lib/Thelia/Model/Base/Stock.php | 0 core/lib/Thelia/Model/Base/StockQuery.php | 0 core/lib/Thelia/Model/Base/Tax.php | 0 core/lib/Thelia/Model/Base/TaxI18n.php | 0 core/lib/Thelia/Model/Base/TaxI18nQuery.php | 0 core/lib/Thelia/Model/Base/TaxQuery.php | 0 core/lib/Thelia/Model/Base/TaxRule.php | 0 core/lib/Thelia/Model/Base/TaxRuleCountry.php | 0 .../Thelia/Model/Base/TaxRuleCountryQuery.php | 0 core/lib/Thelia/Model/Base/TaxRuleI18n.php | 0 .../Thelia/Model/Base/TaxRuleI18nQuery.php | 0 core/lib/Thelia/Model/Base/TaxRuleQuery.php | 0 core/lib/Thelia/Model/Category.php | 0 core/lib/Thelia/Model/CategoryI18n.php | 0 core/lib/Thelia/Model/CategoryI18nQuery.php | 0 core/lib/Thelia/Model/CategoryQuery.php | 0 core/lib/Thelia/Model/CategoryVersion.php | 0 .../lib/Thelia/Model/CategoryVersionQuery.php | 0 core/lib/Thelia/Model/Combination.php | 0 core/lib/Thelia/Model/CombinationQuery.php | 0 core/lib/Thelia/Model/Config.php | 0 core/lib/Thelia/Model/ConfigI18n.php | 0 core/lib/Thelia/Model/ConfigI18nQuery.php | 0 core/lib/Thelia/Model/ConfigQuery.php | 0 core/lib/Thelia/Model/Content.php | 0 core/lib/Thelia/Model/ContentAssoc.php | 0 core/lib/Thelia/Model/ContentAssocQuery.php | 0 core/lib/Thelia/Model/ContentFolder.php | 0 core/lib/Thelia/Model/ContentFolderQuery.php | 0 core/lib/Thelia/Model/ContentI18n.php | 0 core/lib/Thelia/Model/ContentI18nQuery.php | 0 core/lib/Thelia/Model/ContentQuery.php | 0 core/lib/Thelia/Model/ContentVersion.php | 0 core/lib/Thelia/Model/ContentVersionQuery.php | 0 core/lib/Thelia/Model/Country.php | 0 core/lib/Thelia/Model/CountryI18n.php | 0 core/lib/Thelia/Model/CountryI18nQuery.php | 0 core/lib/Thelia/Model/CountryQuery.php | 0 core/lib/Thelia/Model/Coupon.php | 0 core/lib/Thelia/Model/CouponOrder.php | 0 core/lib/Thelia/Model/CouponOrderQuery.php | 0 core/lib/Thelia/Model/CouponQuery.php | 0 core/lib/Thelia/Model/CouponRule.php | 0 core/lib/Thelia/Model/CouponRuleQuery.php | 0 core/lib/Thelia/Model/Currency.php | 0 core/lib/Thelia/Model/CurrencyQuery.php | 0 core/lib/Thelia/Model/Customer.php | 0 core/lib/Thelia/Model/CustomerQuery.php | 0 core/lib/Thelia/Model/CustomerTitle.php | 0 core/lib/Thelia/Model/CustomerTitleI18n.php | 0 .../Thelia/Model/CustomerTitleI18nQuery.php | 0 core/lib/Thelia/Model/CustomerTitleQuery.php | 0 core/lib/Thelia/Model/Delivzone.php | 0 core/lib/Thelia/Model/DelivzoneQuery.php | 0 core/lib/Thelia/Model/Document.php | 0 core/lib/Thelia/Model/DocumentI18n.php | 0 core/lib/Thelia/Model/DocumentI18nQuery.php | 0 core/lib/Thelia/Model/DocumentQuery.php | 0 core/lib/Thelia/Model/Feature.php | 0 core/lib/Thelia/Model/FeatureAv.php | 0 core/lib/Thelia/Model/FeatureAvI18n.php | 0 core/lib/Thelia/Model/FeatureAvI18nQuery.php | 0 core/lib/Thelia/Model/FeatureAvQuery.php | 0 core/lib/Thelia/Model/FeatureCategory.php | 0 .../lib/Thelia/Model/FeatureCategoryQuery.php | 0 core/lib/Thelia/Model/FeatureI18n.php | 0 core/lib/Thelia/Model/FeatureI18nQuery.php | 0 core/lib/Thelia/Model/FeatureProd.php | 0 core/lib/Thelia/Model/FeatureProdQuery.php | 0 core/lib/Thelia/Model/FeatureQuery.php | 0 core/lib/Thelia/Model/Folder.php | 0 core/lib/Thelia/Model/FolderI18n.php | 0 core/lib/Thelia/Model/FolderI18nQuery.php | 0 core/lib/Thelia/Model/FolderQuery.php | 0 core/lib/Thelia/Model/FolderVersion.php | 0 core/lib/Thelia/Model/FolderVersionQuery.php | 0 core/lib/Thelia/Model/Group.php | 0 core/lib/Thelia/Model/GroupI18n.php | 0 core/lib/Thelia/Model/GroupI18nQuery.php | 0 core/lib/Thelia/Model/GroupModule.php | 0 core/lib/Thelia/Model/GroupModuleQuery.php | 0 core/lib/Thelia/Model/GroupQuery.php | 0 core/lib/Thelia/Model/GroupResource.php | 0 core/lib/Thelia/Model/GroupResourceQuery.php | 0 core/lib/Thelia/Model/Image.php | 0 core/lib/Thelia/Model/ImageI18n.php | 0 core/lib/Thelia/Model/ImageI18nQuery.php | 0 core/lib/Thelia/Model/ImageQuery.php | 0 core/lib/Thelia/Model/Lang.php | 0 core/lib/Thelia/Model/LangQuery.php | 0 .../Thelia/Model/Map/AccessoryTableMap.php | 0 core/lib/Thelia/Model/Map/AddressTableMap.php | 0 .../Thelia/Model/Map/AdminGroupTableMap.php | 0 .../lib/Thelia/Model/Map/AdminLogTableMap.php | 0 core/lib/Thelia/Model/Map/AdminTableMap.php | 0 core/lib/Thelia/Model/Map/AreaTableMap.php | 0 .../Model/Map/AttributeAvI18nTableMap.php | 0 .../Thelia/Model/Map/AttributeAvTableMap.php | 0 .../Model/Map/AttributeCategoryTableMap.php | 0 .../Map/AttributeCombinationTableMap.php | 0 .../Model/Map/AttributeI18nTableMap.php | 0 .../Thelia/Model/Map/AttributeTableMap.php | 0 .../Thelia/Model/Map/CategoryI18nTableMap.php | 0 .../lib/Thelia/Model/Map/CategoryTableMap.php | 0 .../Model/Map/CategoryVersionTableMap.php | 0 .../Thelia/Model/Map/CombinationTableMap.php | 0 .../Thelia/Model/Map/ConfigI18nTableMap.php | 0 core/lib/Thelia/Model/Map/ConfigTableMap.php | 0 .../Thelia/Model/Map/ContentAssocTableMap.php | 0 .../Model/Map/ContentFolderTableMap.php | 0 .../Thelia/Model/Map/ContentI18nTableMap.php | 0 core/lib/Thelia/Model/Map/ContentTableMap.php | 0 .../Model/Map/ContentVersionTableMap.php | 0 .../Thelia/Model/Map/CountryI18nTableMap.php | 0 core/lib/Thelia/Model/Map/CountryTableMap.php | 0 .../Thelia/Model/Map/CouponOrderTableMap.php | 0 .../Thelia/Model/Map/CouponRuleTableMap.php | 0 core/lib/Thelia/Model/Map/CouponTableMap.php | 0 .../lib/Thelia/Model/Map/CurrencyTableMap.php | 0 .../lib/Thelia/Model/Map/CustomerTableMap.php | 0 .../Model/Map/CustomerTitleI18nTableMap.php | 0 .../Model/Map/CustomerTitleTableMap.php | 0 .../Thelia/Model/Map/DelivzoneTableMap.php | 0 .../Thelia/Model/Map/DocumentI18nTableMap.php | 0 .../lib/Thelia/Model/Map/DocumentTableMap.php | 0 .../Model/Map/FeatureAvI18nTableMap.php | 0 .../Thelia/Model/Map/FeatureAvTableMap.php | 0 .../Model/Map/FeatureCategoryTableMap.php | 0 .../Thelia/Model/Map/FeatureI18nTableMap.php | 0 .../Thelia/Model/Map/FeatureProdTableMap.php | 0 core/lib/Thelia/Model/Map/FeatureTableMap.php | 0 .../Thelia/Model/Map/FolderI18nTableMap.php | 0 core/lib/Thelia/Model/Map/FolderTableMap.php | 0 .../Model/Map/FolderVersionTableMap.php | 0 .../Thelia/Model/Map/GroupI18nTableMap.php | 0 .../Thelia/Model/Map/GroupModuleTableMap.php | 0 .../Model/Map/GroupResourceTableMap.php | 0 core/lib/Thelia/Model/Map/GroupTableMap.php | 0 .../Thelia/Model/Map/ImageI18nTableMap.php | 0 core/lib/Thelia/Model/Map/ImageTableMap.php | 0 core/lib/Thelia/Model/Map/LangTableMap.php | 0 .../Thelia/Model/Map/MessageI18nTableMap.php | 0 core/lib/Thelia/Model/Map/MessageTableMap.php | 0 .../Model/Map/MessageVersionTableMap.php | 0 .../Thelia/Model/Map/ModuleI18nTableMap.php | 0 core/lib/Thelia/Model/Map/ModuleTableMap.php | 0 .../Thelia/Model/Map/OrderAddressTableMap.php | 0 .../Thelia/Model/Map/OrderFeatureTableMap.php | 0 .../Thelia/Model/Map/OrderProductTableMap.php | 0 .../Model/Map/OrderStatusI18nTableMap.php | 0 .../Thelia/Model/Map/OrderStatusTableMap.php | 0 core/lib/Thelia/Model/Map/OrderTableMap.php | 0 .../Model/Map/ProductCategoryTableMap.php | 0 .../Thelia/Model/Map/ProductI18nTableMap.php | 0 core/lib/Thelia/Model/Map/ProductTableMap.php | 0 .../Model/Map/ProductVersionTableMap.php | 0 .../Thelia/Model/Map/ResourceI18nTableMap.php | 0 .../lib/Thelia/Model/Map/ResourceTableMap.php | 0 .../Thelia/Model/Map/RewritingTableMap.php | 0 core/lib/Thelia/Model/Map/StockTableMap.php | 0 core/lib/Thelia/Model/Map/TaxI18nTableMap.php | 0 .../Model/Map/TaxRuleCountryTableMap.php | 0 .../Thelia/Model/Map/TaxRuleI18nTableMap.php | 0 core/lib/Thelia/Model/Map/TaxRuleTableMap.php | 0 core/lib/Thelia/Model/Map/TaxTableMap.php | 0 core/lib/Thelia/Model/Message.php | 0 core/lib/Thelia/Model/MessageI18n.php | 0 core/lib/Thelia/Model/MessageI18nQuery.php | 0 core/lib/Thelia/Model/MessageQuery.php | 0 core/lib/Thelia/Model/MessageVersion.php | 0 core/lib/Thelia/Model/MessageVersionQuery.php | 0 core/lib/Thelia/Model/Module.php | 0 core/lib/Thelia/Model/ModuleI18n.php | 0 core/lib/Thelia/Model/ModuleI18nQuery.php | 0 core/lib/Thelia/Model/ModuleQuery.php | 0 core/lib/Thelia/Model/Order.php | 0 core/lib/Thelia/Model/OrderAddress.php | 0 core/lib/Thelia/Model/OrderAddressQuery.php | 0 core/lib/Thelia/Model/OrderFeature.php | 0 core/lib/Thelia/Model/OrderFeatureQuery.php | 0 core/lib/Thelia/Model/OrderProduct.php | 0 core/lib/Thelia/Model/OrderProductQuery.php | 0 core/lib/Thelia/Model/OrderQuery.php | 0 core/lib/Thelia/Model/OrderStatus.php | 0 core/lib/Thelia/Model/OrderStatusI18n.php | 0 .../lib/Thelia/Model/OrderStatusI18nQuery.php | 0 core/lib/Thelia/Model/OrderStatusQuery.php | 0 core/lib/Thelia/Model/Product.php | 0 core/lib/Thelia/Model/ProductCategory.php | 0 .../lib/Thelia/Model/ProductCategoryQuery.php | 0 core/lib/Thelia/Model/ProductI18n.php | 0 core/lib/Thelia/Model/ProductI18nQuery.php | 0 core/lib/Thelia/Model/ProductQuery.php | 0 core/lib/Thelia/Model/ProductVersion.php | 0 core/lib/Thelia/Model/ProductVersionQuery.php | 0 core/lib/Thelia/Model/Resource.php | 0 core/lib/Thelia/Model/ResourceI18n.php | 0 core/lib/Thelia/Model/ResourceI18nQuery.php | 0 core/lib/Thelia/Model/ResourceQuery.php | 0 core/lib/Thelia/Model/Rewriting.php | 0 core/lib/Thelia/Model/RewritingQuery.php | 0 core/lib/Thelia/Model/Stock.php | 0 core/lib/Thelia/Model/StockQuery.php | 0 core/lib/Thelia/Model/Tax.php | 0 core/lib/Thelia/Model/TaxI18n.php | 0 core/lib/Thelia/Model/TaxI18nQuery.php | 0 core/lib/Thelia/Model/TaxQuery.php | 0 core/lib/Thelia/Model/TaxRule.php | 0 core/lib/Thelia/Model/TaxRuleCountry.php | 0 core/lib/Thelia/Model/TaxRuleCountryQuery.php | 0 core/lib/Thelia/Model/TaxRuleI18n.php | 0 core/lib/Thelia/Model/TaxRuleI18nQuery.php | 0 core/lib/Thelia/Model/TaxRuleQuery.php | 0 .../Encoder/PasswordHashEncoderTest.php | 0 .../Core/Security/SecurityManagerTest.php | 0 .../Token/UsernamePasswordTokenTest.php | 0 core/lib/Thelia/Type/BooleanType.php | 2 +- .../lib/Thelia/Type/IntToCombinedIntsList.php | 107 +++++++++--------- templates/admin/default/404.html | 0 templates/smarty-sample/category.html | 3 +- templates/smarty-sample/connexion.html | 0 templates/smarty-sample/included.html | 0 413 files changed, 78 insertions(+), 108 deletions(-) mode change 100644 => 100755 core/lib/Thelia/Admin/Controller/SessionController.php mode change 100644 => 100755 core/lib/Thelia/Core/Event/CustomRefEvent.php mode change 100644 => 100755 core/lib/Thelia/Core/HttpFoundation/Request.php mode change 100644 => 100755 core/lib/Thelia/Core/HttpFoundation/Session/Session.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Authentication/AuthenticationProviderInterface.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Authentication/UsernamePasswordAuthenticator.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Encoder/PasswordEncoderInterface.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Encoder/PasswordHashEncoder.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Exception/AuthenticationTokenNotFoundException.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Role/Role.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Role/RoleInterface.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/SecurityManager.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Token/AbstractToken.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Token/TokenInterface.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/Token/UsernamePasswordToken.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/User/AdminUserProvider.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/User/CustomerUserProvider.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/User/UserInterface.php mode change 100644 => 100755 core/lib/Thelia/Core/Security/User/UserProviderInterface.php mode change 100644 => 100755 core/lib/Thelia/Core/Template/Exception/ResourceNotFoundException.php mode change 100644 => 100755 core/lib/Thelia/Core/Template/Loop/Feed.php mode change 100644 => 100755 core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php mode change 100644 => 100755 core/lib/Thelia/Core/Template/Smarty/Plugins/Security.php mode change 100644 => 100755 core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaSyntax.php mode change 100644 => 100755 core/lib/Thelia/Form/AdminLogin.php mode change 100644 => 100755 core/lib/Thelia/Form/BaseForm.php mode change 100644 => 100755 core/lib/Thelia/Form/CustomerCreation.php mode change 100644 => 100755 core/lib/Thelia/Form/CustomerModification.php mode change 100644 => 100755 core/lib/Thelia/Model/Accessory.php mode change 100644 => 100755 core/lib/Thelia/Model/AccessoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Address.php mode change 100644 => 100755 core/lib/Thelia/Model/AddressQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Admin.php mode change 100644 => 100755 core/lib/Thelia/Model/AdminGroup.php mode change 100644 => 100755 core/lib/Thelia/Model/AdminGroupQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/AdminLog.php mode change 100644 => 100755 core/lib/Thelia/Model/AdminLogQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/AdminQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Area.php mode change 100644 => 100755 core/lib/Thelia/Model/AreaQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Attribute.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeAv.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeAvI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeAvI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeAvQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeCategory.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeCategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeCombination.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeCombinationQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/AttributeQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Accessory.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AccessoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Address.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AddressQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Admin.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AdminGroup.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AdminGroupQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AdminLog.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AdminLogQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AdminQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Area.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AreaQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Attribute.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeAv.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeAvI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeAvI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeAvQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeCategory.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeCategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeCombination.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeCombinationQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/AttributeQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Category.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CategoryI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CategoryI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CategoryVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CategoryVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Combination.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CombinationQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Config.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ConfigI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ConfigI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ConfigQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Content.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentAssoc.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentAssocQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentFolder.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentFolderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ContentVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Country.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CountryI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CountryI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CountryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Coupon.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CouponOrder.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CouponOrderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CouponQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CouponRule.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CouponRuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Currency.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CurrencyQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Customer.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CustomerQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CustomerTitle.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CustomerTitleI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CustomerTitleI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/CustomerTitleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Delivzone.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/DelivzoneQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Document.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/DocumentI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/DocumentI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/DocumentQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Feature.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureAv.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureAvI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureAvI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureAvQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureCategory.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureCategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureProd.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureProdQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FeatureQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Folder.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FolderI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FolderI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FolderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FolderVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/FolderVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Group.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/GroupI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/GroupI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/GroupModule.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/GroupModuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/GroupQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/GroupResource.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/GroupResourceQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Image.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ImageI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ImageI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ImageQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Lang.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/LangQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Message.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/MessageI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/MessageI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/MessageQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/MessageVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/MessageVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Module.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ModuleI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ModuleI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ModuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Order.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderAddress.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderAddressQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderFeature.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderFeatureQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderProduct.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderProductQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderStatus.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderStatusI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderStatusI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/OrderStatusQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Product.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ProductCategory.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ProductCategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ProductI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ProductI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ProductQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ProductVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ProductVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Resource.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ResourceI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ResourceI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/ResourceQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Rewriting.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/RewritingQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Stock.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/StockQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/Tax.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxRule.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxRuleCountry.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxRuleCountryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxRuleI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxRuleI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Base/TaxRuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Category.php mode change 100644 => 100755 core/lib/Thelia/Model/CategoryI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/CategoryI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/CategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/CategoryVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/CategoryVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Combination.php mode change 100644 => 100755 core/lib/Thelia/Model/CombinationQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Config.php mode change 100644 => 100755 core/lib/Thelia/Model/ConfigI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/ConfigI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ConfigQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Content.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentAssoc.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentAssocQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentFolder.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentFolderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/ContentVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Country.php mode change 100644 => 100755 core/lib/Thelia/Model/CountryI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/CountryI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/CountryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Coupon.php mode change 100644 => 100755 core/lib/Thelia/Model/CouponOrder.php mode change 100644 => 100755 core/lib/Thelia/Model/CouponOrderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/CouponQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/CouponRule.php mode change 100644 => 100755 core/lib/Thelia/Model/CouponRuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Currency.php mode change 100644 => 100755 core/lib/Thelia/Model/CurrencyQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Customer.php mode change 100644 => 100755 core/lib/Thelia/Model/CustomerQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/CustomerTitle.php mode change 100644 => 100755 core/lib/Thelia/Model/CustomerTitleI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/CustomerTitleI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/CustomerTitleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Delivzone.php mode change 100644 => 100755 core/lib/Thelia/Model/DelivzoneQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Document.php mode change 100644 => 100755 core/lib/Thelia/Model/DocumentI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/DocumentI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/DocumentQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Feature.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureAv.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureAvI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureAvI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureAvQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureCategory.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureCategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureProd.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureProdQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/FeatureQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Folder.php mode change 100644 => 100755 core/lib/Thelia/Model/FolderI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/FolderI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/FolderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/FolderVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/FolderVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Group.php mode change 100644 => 100755 core/lib/Thelia/Model/GroupI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/GroupI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/GroupModule.php mode change 100644 => 100755 core/lib/Thelia/Model/GroupModuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/GroupQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/GroupResource.php mode change 100644 => 100755 core/lib/Thelia/Model/GroupResourceQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Image.php mode change 100644 => 100755 core/lib/Thelia/Model/ImageI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/ImageI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ImageQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Lang.php mode change 100644 => 100755 core/lib/Thelia/Model/LangQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AccessoryTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AddressTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AdminGroupTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AdminLogTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AdminTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AreaTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AttributeAvI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AttributeAvTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AttributeCategoryTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AttributeCombinationTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AttributeI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/AttributeTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CategoryI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CategoryTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CategoryVersionTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CombinationTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ConfigI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ConfigTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ContentAssocTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ContentFolderTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ContentI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ContentTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ContentVersionTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CountryI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CountryTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CouponOrderTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CouponRuleTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CouponTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CurrencyTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CustomerTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CustomerTitleI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/CustomerTitleTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/DelivzoneTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/DocumentI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/DocumentTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FeatureAvI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FeatureAvTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FeatureCategoryTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FeatureI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FeatureProdTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FeatureTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FolderI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FolderTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/FolderVersionTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/GroupI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/GroupModuleTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/GroupResourceTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/GroupTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ImageI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ImageTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/LangTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/MessageI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/MessageTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/MessageVersionTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ModuleI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ModuleTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/OrderAddressTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/OrderFeatureTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/OrderProductTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/OrderStatusI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/OrderStatusTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/OrderTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ProductCategoryTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ProductI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ProductTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ProductVersionTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ResourceI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/ResourceTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/RewritingTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/StockTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/TaxI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/TaxRuleCountryTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/TaxRuleI18nTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/TaxRuleTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Map/TaxTableMap.php mode change 100644 => 100755 core/lib/Thelia/Model/Message.php mode change 100644 => 100755 core/lib/Thelia/Model/MessageI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/MessageI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/MessageQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/MessageVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/MessageVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Module.php mode change 100644 => 100755 core/lib/Thelia/Model/ModuleI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/ModuleI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ModuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Order.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderAddress.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderAddressQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderFeature.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderFeatureQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderProduct.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderProductQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderStatus.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderStatusI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderStatusI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/OrderStatusQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Product.php mode change 100644 => 100755 core/lib/Thelia/Model/ProductCategory.php mode change 100644 => 100755 core/lib/Thelia/Model/ProductCategoryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ProductI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/ProductI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ProductQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ProductVersion.php mode change 100644 => 100755 core/lib/Thelia/Model/ProductVersionQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Resource.php mode change 100644 => 100755 core/lib/Thelia/Model/ResourceI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/ResourceI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/ResourceQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Rewriting.php mode change 100644 => 100755 core/lib/Thelia/Model/RewritingQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Stock.php mode change 100644 => 100755 core/lib/Thelia/Model/StockQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/Tax.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxRule.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxRuleCountry.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxRuleCountryQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxRuleI18n.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxRuleI18nQuery.php mode change 100644 => 100755 core/lib/Thelia/Model/TaxRuleQuery.php mode change 100644 => 100755 core/lib/Thelia/Tests/Core/Security/Encoder/PasswordHashEncoderTest.php mode change 100644 => 100755 core/lib/Thelia/Tests/Core/Security/SecurityManagerTest.php mode change 100644 => 100755 core/lib/Thelia/Tests/Core/Security/Token/UsernamePasswordTokenTest.php mode change 100644 => 100755 templates/admin/default/404.html mode change 100644 => 100755 templates/smarty-sample/connexion.html mode change 100644 => 100755 templates/smarty-sample/included.html diff --git a/core/lib/Thelia/Admin/Controller/SessionController.php b/core/lib/Thelia/Admin/Controller/SessionController.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/CustomRefEvent.php b/core/lib/Thelia/Core/Event/CustomRefEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/HttpFoundation/Request.php b/core/lib/Thelia/Core/HttpFoundation/Request.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/HttpFoundation/Session/Session.php b/core/lib/Thelia/Core/HttpFoundation/Session/Session.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Authentication/AuthenticationProviderInterface.php b/core/lib/Thelia/Core/Security/Authentication/AuthenticationProviderInterface.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Authentication/UsernamePasswordAuthenticator.php b/core/lib/Thelia/Core/Security/Authentication/UsernamePasswordAuthenticator.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Encoder/PasswordEncoderInterface.php b/core/lib/Thelia/Core/Security/Encoder/PasswordEncoderInterface.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Encoder/PasswordHashEncoder.php b/core/lib/Thelia/Core/Security/Encoder/PasswordHashEncoder.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Exception/AuthenticationTokenNotFoundException.php b/core/lib/Thelia/Core/Security/Exception/AuthenticationTokenNotFoundException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Role/Role.php b/core/lib/Thelia/Core/Security/Role/Role.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Role/RoleInterface.php b/core/lib/Thelia/Core/Security/Role/RoleInterface.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/SecurityManager.php b/core/lib/Thelia/Core/Security/SecurityManager.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Token/AbstractToken.php b/core/lib/Thelia/Core/Security/Token/AbstractToken.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Token/TokenInterface.php b/core/lib/Thelia/Core/Security/Token/TokenInterface.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Token/UsernamePasswordToken.php b/core/lib/Thelia/Core/Security/Token/UsernamePasswordToken.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/User/AdminUserProvider.php b/core/lib/Thelia/Core/Security/User/AdminUserProvider.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/User/CustomerUserProvider.php b/core/lib/Thelia/Core/Security/User/CustomerUserProvider.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/User/UserInterface.php b/core/lib/Thelia/Core/Security/User/UserInterface.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/User/UserProviderInterface.php b/core/lib/Thelia/Core/Security/User/UserProviderInterface.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Exception/ResourceNotFoundException.php b/core/lib/Thelia/Core/Template/Exception/ResourceNotFoundException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/Feed.php b/core/lib/Thelia/Core/Template/Loop/Feed.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index b67041fb6..0acb903d3 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -319,65 +319,29 @@ class Product extends BaseLoop $feature_available = $this->getFeature_available(); if(null !== $feature_available) { - //$search->joinFeatureProd('fa2', Criteria::LEFT_JOIN)->condition('foocond', '`fa2`.`product_id`=1')->setJoinCondition('fa2', 'foocond'); - //$search->joinFeatureProd('fa3', Criteria::LEFT_JOIN)->condition('foocond2', 'fa3.product_id=?', 2)->setJoinCondition('fa3', 'foocond2'); - - /* fonctionne mais pas avec ? - $search->joinFeatureProd('fa3', Criteria::LEFT_JOIN)->addJoinCondition('fa3', "'fa3.PRODUCT_ID' = 4"); - $search->joinFeatureProd('fa2', Criteria::LEFT_JOIN)->addJoinCondition('fa2', "'fa2.PRODUCT_ID' = 3"); - */ - - /* pas mieux - $x = new Join(ProductTableMap::ID, FeatureProdTableMap::PRODUCT_ID, Criteria::LEFT_JOIN); - $x->setRightTableAlias('fa0'); - $search->addJoinObject($x, 'fa0')->addJoinCondition('fa0', "PRODUCT_ID = ?", 0); - */ - foreach($feature_available as $feature => $feature_choice) { foreach($feature_choice['values'] as $feature_av) { - $featureAlias = 'fa_' . $feature . '_' . $feature_av; + $featureAlias = 'fa_' . $feature; + if($feature_av != '*') + $featureAlias .= '_' . $feature_av; $search->joinFeatureProd($featureAlias, Criteria::LEFT_JOIN) - ->addJoinCondition($featureAlias, "`$featureAlias`.FEATURE_ID = ?", $feature, null, \PDO::PARAM_INT) - ->addJoinCondition($featureAlias, "`$featureAlias`.FEATURE_AV_ID = ?", $feature_av, null, \PDO::PARAM_INT); + ->addJoinCondition($featureAlias, "`$featureAlias`.FEATURE_ID = ?", $feature, null, \PDO::PARAM_INT); + if($feature_av != '*') + $search->addJoinCondition($featureAlias, "`$featureAlias`.FEATURE_AV_ID = ?", $feature_av, null, \PDO::PARAM_INT); } - $bigDealFeatureWhereCondition = str_replace('&', ' AND ', $feature_choice['values']); + + /* format for mysql */ + $sqlWhereString = $feature_choice['expression']; + if($sqlWhereString == '*') { + $sqlWhereString = 'NOT ISNULL(`fa_' . $feature . '`.ID)'; + } else { + $sqlWhereString = preg_replace('#(^|[^0-9])([0-9]+)([^0-9]|$)#', '\1NOT ISNULL(`fa_' . $feature . '_' . '\2`.ID)\3', $sqlWhereString); + $sqlWhereString = str_replace('&', ' AND ', $sqlWhereString); + $sqlWhereString = str_replace('|', ' OR ', $sqlWhereString); + } + + $search->where($sqlWhereString); } - - - - /* - * ne marche pas de cette façon : - * - * - $search->filterByFeatureProd( - FeatureProdQuery::create('fa') - ->filterByFeature( - FeatureQuery::create('fq') - ->filterById(array(1,2,3), Criteria::IN) - ->find() - ) - ->filterByFeatureAv( - FeatureAvQuery::create() - ->filterById(array(1,2,3), Criteria::IN) - ->find() - ) - ->find() - ); - - */ - - /* - - CategoryQuery::create()->filterByProduct( - ProductCategoryQuery::create()->filterByProductId( - $this->request->get("product_id"), - Criteria::EQUAL - )->find(), - Criteria::IN - )->find(), - Criteria::NOT_IN - - */ } /** @@ -391,6 +355,8 @@ class Product extends BaseLoop (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN ); + $search->groupBy(ProductTableMap::ID); + $products = $this->search($search, $pagination); $loopResult = new LoopResult(); diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/Form.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/Security.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/Security.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaSyntax.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaSyntax.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/AdminLogin.php b/core/lib/Thelia/Form/AdminLogin.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/BaseForm.php b/core/lib/Thelia/Form/BaseForm.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/CustomerCreation.php b/core/lib/Thelia/Form/CustomerCreation.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/CustomerModification.php b/core/lib/Thelia/Form/CustomerModification.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Accessory.php b/core/lib/Thelia/Model/Accessory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AccessoryQuery.php b/core/lib/Thelia/Model/AccessoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Address.php b/core/lib/Thelia/Model/Address.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AddressQuery.php b/core/lib/Thelia/Model/AddressQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Admin.php b/core/lib/Thelia/Model/Admin.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AdminGroup.php b/core/lib/Thelia/Model/AdminGroup.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AdminGroupQuery.php b/core/lib/Thelia/Model/AdminGroupQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AdminLog.php b/core/lib/Thelia/Model/AdminLog.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AdminLogQuery.php b/core/lib/Thelia/Model/AdminLogQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AdminQuery.php b/core/lib/Thelia/Model/AdminQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Area.php b/core/lib/Thelia/Model/Area.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AreaQuery.php b/core/lib/Thelia/Model/AreaQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Attribute.php b/core/lib/Thelia/Model/Attribute.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeAv.php b/core/lib/Thelia/Model/AttributeAv.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeAvI18n.php b/core/lib/Thelia/Model/AttributeAvI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeAvI18nQuery.php b/core/lib/Thelia/Model/AttributeAvI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeAvQuery.php b/core/lib/Thelia/Model/AttributeAvQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeCategory.php b/core/lib/Thelia/Model/AttributeCategory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeCategoryQuery.php b/core/lib/Thelia/Model/AttributeCategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeCombination.php b/core/lib/Thelia/Model/AttributeCombination.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeCombinationQuery.php b/core/lib/Thelia/Model/AttributeCombinationQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeI18n.php b/core/lib/Thelia/Model/AttributeI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeI18nQuery.php b/core/lib/Thelia/Model/AttributeI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/AttributeQuery.php b/core/lib/Thelia/Model/AttributeQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Accessory.php b/core/lib/Thelia/Model/Base/Accessory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AccessoryQuery.php b/core/lib/Thelia/Model/Base/AccessoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Address.php b/core/lib/Thelia/Model/Base/Address.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AddressQuery.php b/core/lib/Thelia/Model/Base/AddressQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Admin.php b/core/lib/Thelia/Model/Base/Admin.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AdminGroup.php b/core/lib/Thelia/Model/Base/AdminGroup.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AdminGroupQuery.php b/core/lib/Thelia/Model/Base/AdminGroupQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AdminLog.php b/core/lib/Thelia/Model/Base/AdminLog.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AdminLogQuery.php b/core/lib/Thelia/Model/Base/AdminLogQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AdminQuery.php b/core/lib/Thelia/Model/Base/AdminQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Area.php b/core/lib/Thelia/Model/Base/Area.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AreaQuery.php b/core/lib/Thelia/Model/Base/AreaQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Attribute.php b/core/lib/Thelia/Model/Base/Attribute.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeAv.php b/core/lib/Thelia/Model/Base/AttributeAv.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeAvI18n.php b/core/lib/Thelia/Model/Base/AttributeAvI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeAvI18nQuery.php b/core/lib/Thelia/Model/Base/AttributeAvI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeAvQuery.php b/core/lib/Thelia/Model/Base/AttributeAvQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeCategory.php b/core/lib/Thelia/Model/Base/AttributeCategory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeCategoryQuery.php b/core/lib/Thelia/Model/Base/AttributeCategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeCombination.php b/core/lib/Thelia/Model/Base/AttributeCombination.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeCombinationQuery.php b/core/lib/Thelia/Model/Base/AttributeCombinationQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeI18n.php b/core/lib/Thelia/Model/Base/AttributeI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeI18nQuery.php b/core/lib/Thelia/Model/Base/AttributeI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/AttributeQuery.php b/core/lib/Thelia/Model/Base/AttributeQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Category.php b/core/lib/Thelia/Model/Base/Category.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CategoryI18n.php b/core/lib/Thelia/Model/Base/CategoryI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CategoryI18nQuery.php b/core/lib/Thelia/Model/Base/CategoryI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CategoryQuery.php b/core/lib/Thelia/Model/Base/CategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CategoryVersion.php b/core/lib/Thelia/Model/Base/CategoryVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CategoryVersionQuery.php b/core/lib/Thelia/Model/Base/CategoryVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Combination.php b/core/lib/Thelia/Model/Base/Combination.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CombinationQuery.php b/core/lib/Thelia/Model/Base/CombinationQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Config.php b/core/lib/Thelia/Model/Base/Config.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ConfigI18n.php b/core/lib/Thelia/Model/Base/ConfigI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ConfigI18nQuery.php b/core/lib/Thelia/Model/Base/ConfigI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ConfigQuery.php b/core/lib/Thelia/Model/Base/ConfigQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Content.php b/core/lib/Thelia/Model/Base/Content.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentAssoc.php b/core/lib/Thelia/Model/Base/ContentAssoc.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentAssocQuery.php b/core/lib/Thelia/Model/Base/ContentAssocQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentFolder.php b/core/lib/Thelia/Model/Base/ContentFolder.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentFolderQuery.php b/core/lib/Thelia/Model/Base/ContentFolderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentI18n.php b/core/lib/Thelia/Model/Base/ContentI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentI18nQuery.php b/core/lib/Thelia/Model/Base/ContentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentQuery.php b/core/lib/Thelia/Model/Base/ContentQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentVersion.php b/core/lib/Thelia/Model/Base/ContentVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentVersionQuery.php b/core/lib/Thelia/Model/Base/ContentVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Country.php b/core/lib/Thelia/Model/Base/Country.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CountryI18n.php b/core/lib/Thelia/Model/Base/CountryI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CountryI18nQuery.php b/core/lib/Thelia/Model/Base/CountryI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CountryQuery.php b/core/lib/Thelia/Model/Base/CountryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Coupon.php b/core/lib/Thelia/Model/Base/Coupon.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CouponOrder.php b/core/lib/Thelia/Model/Base/CouponOrder.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CouponOrderQuery.php b/core/lib/Thelia/Model/Base/CouponOrderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CouponQuery.php b/core/lib/Thelia/Model/Base/CouponQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CouponRule.php b/core/lib/Thelia/Model/Base/CouponRule.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CouponRuleQuery.php b/core/lib/Thelia/Model/Base/CouponRuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Currency.php b/core/lib/Thelia/Model/Base/Currency.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CurrencyQuery.php b/core/lib/Thelia/Model/Base/CurrencyQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Customer.php b/core/lib/Thelia/Model/Base/Customer.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CustomerQuery.php b/core/lib/Thelia/Model/Base/CustomerQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CustomerTitle.php b/core/lib/Thelia/Model/Base/CustomerTitle.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CustomerTitleI18n.php b/core/lib/Thelia/Model/Base/CustomerTitleI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CustomerTitleI18nQuery.php b/core/lib/Thelia/Model/Base/CustomerTitleI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CustomerTitleQuery.php b/core/lib/Thelia/Model/Base/CustomerTitleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Delivzone.php b/core/lib/Thelia/Model/Base/Delivzone.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/DelivzoneQuery.php b/core/lib/Thelia/Model/Base/DelivzoneQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Document.php b/core/lib/Thelia/Model/Base/Document.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/DocumentI18n.php b/core/lib/Thelia/Model/Base/DocumentI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/DocumentI18nQuery.php b/core/lib/Thelia/Model/Base/DocumentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/DocumentQuery.php b/core/lib/Thelia/Model/Base/DocumentQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Feature.php b/core/lib/Thelia/Model/Base/Feature.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureAv.php b/core/lib/Thelia/Model/Base/FeatureAv.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureAvI18n.php b/core/lib/Thelia/Model/Base/FeatureAvI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureAvI18nQuery.php b/core/lib/Thelia/Model/Base/FeatureAvI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureAvQuery.php b/core/lib/Thelia/Model/Base/FeatureAvQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureCategory.php b/core/lib/Thelia/Model/Base/FeatureCategory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureCategoryQuery.php b/core/lib/Thelia/Model/Base/FeatureCategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureI18n.php b/core/lib/Thelia/Model/Base/FeatureI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureI18nQuery.php b/core/lib/Thelia/Model/Base/FeatureI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureProd.php b/core/lib/Thelia/Model/Base/FeatureProd.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureProdQuery.php b/core/lib/Thelia/Model/Base/FeatureProdQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FeatureQuery.php b/core/lib/Thelia/Model/Base/FeatureQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Folder.php b/core/lib/Thelia/Model/Base/Folder.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FolderI18n.php b/core/lib/Thelia/Model/Base/FolderI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FolderI18nQuery.php b/core/lib/Thelia/Model/Base/FolderI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FolderQuery.php b/core/lib/Thelia/Model/Base/FolderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FolderVersion.php b/core/lib/Thelia/Model/Base/FolderVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FolderVersionQuery.php b/core/lib/Thelia/Model/Base/FolderVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Group.php b/core/lib/Thelia/Model/Base/Group.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/GroupI18n.php b/core/lib/Thelia/Model/Base/GroupI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/GroupI18nQuery.php b/core/lib/Thelia/Model/Base/GroupI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/GroupModule.php b/core/lib/Thelia/Model/Base/GroupModule.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/GroupModuleQuery.php b/core/lib/Thelia/Model/Base/GroupModuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/GroupQuery.php b/core/lib/Thelia/Model/Base/GroupQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/GroupResource.php b/core/lib/Thelia/Model/Base/GroupResource.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/GroupResourceQuery.php b/core/lib/Thelia/Model/Base/GroupResourceQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Image.php b/core/lib/Thelia/Model/Base/Image.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ImageI18n.php b/core/lib/Thelia/Model/Base/ImageI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ImageI18nQuery.php b/core/lib/Thelia/Model/Base/ImageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ImageQuery.php b/core/lib/Thelia/Model/Base/ImageQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Lang.php b/core/lib/Thelia/Model/Base/Lang.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/LangQuery.php b/core/lib/Thelia/Model/Base/LangQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Message.php b/core/lib/Thelia/Model/Base/Message.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/MessageI18n.php b/core/lib/Thelia/Model/Base/MessageI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/MessageI18nQuery.php b/core/lib/Thelia/Model/Base/MessageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/MessageQuery.php b/core/lib/Thelia/Model/Base/MessageQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/MessageVersion.php b/core/lib/Thelia/Model/Base/MessageVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/MessageVersionQuery.php b/core/lib/Thelia/Model/Base/MessageVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Module.php b/core/lib/Thelia/Model/Base/Module.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ModuleI18n.php b/core/lib/Thelia/Model/Base/ModuleI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ModuleI18nQuery.php b/core/lib/Thelia/Model/Base/ModuleI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ModuleQuery.php b/core/lib/Thelia/Model/Base/ModuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Order.php b/core/lib/Thelia/Model/Base/Order.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderAddress.php b/core/lib/Thelia/Model/Base/OrderAddress.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderAddressQuery.php b/core/lib/Thelia/Model/Base/OrderAddressQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderFeature.php b/core/lib/Thelia/Model/Base/OrderFeature.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderFeatureQuery.php b/core/lib/Thelia/Model/Base/OrderFeatureQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderProduct.php b/core/lib/Thelia/Model/Base/OrderProduct.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderProductQuery.php b/core/lib/Thelia/Model/Base/OrderProductQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderQuery.php b/core/lib/Thelia/Model/Base/OrderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderStatus.php b/core/lib/Thelia/Model/Base/OrderStatus.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderStatusI18n.php b/core/lib/Thelia/Model/Base/OrderStatusI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderStatusI18nQuery.php b/core/lib/Thelia/Model/Base/OrderStatusI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/OrderStatusQuery.php b/core/lib/Thelia/Model/Base/OrderStatusQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Product.php b/core/lib/Thelia/Model/Base/Product.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductCategory.php b/core/lib/Thelia/Model/Base/ProductCategory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductCategoryQuery.php b/core/lib/Thelia/Model/Base/ProductCategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductI18n.php b/core/lib/Thelia/Model/Base/ProductI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductI18nQuery.php b/core/lib/Thelia/Model/Base/ProductI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductQuery.php b/core/lib/Thelia/Model/Base/ProductQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductVersion.php b/core/lib/Thelia/Model/Base/ProductVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductVersionQuery.php b/core/lib/Thelia/Model/Base/ProductVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Resource.php b/core/lib/Thelia/Model/Base/Resource.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ResourceI18n.php b/core/lib/Thelia/Model/Base/ResourceI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ResourceI18nQuery.php b/core/lib/Thelia/Model/Base/ResourceI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ResourceQuery.php b/core/lib/Thelia/Model/Base/ResourceQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Rewriting.php b/core/lib/Thelia/Model/Base/Rewriting.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/RewritingQuery.php b/core/lib/Thelia/Model/Base/RewritingQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Stock.php b/core/lib/Thelia/Model/Base/Stock.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/StockQuery.php b/core/lib/Thelia/Model/Base/StockQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/Tax.php b/core/lib/Thelia/Model/Base/Tax.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxI18n.php b/core/lib/Thelia/Model/Base/TaxI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxI18nQuery.php b/core/lib/Thelia/Model/Base/TaxI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxQuery.php b/core/lib/Thelia/Model/Base/TaxQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxRule.php b/core/lib/Thelia/Model/Base/TaxRule.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxRuleCountry.php b/core/lib/Thelia/Model/Base/TaxRuleCountry.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxRuleCountryQuery.php b/core/lib/Thelia/Model/Base/TaxRuleCountryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxRuleI18n.php b/core/lib/Thelia/Model/Base/TaxRuleI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxRuleI18nQuery.php b/core/lib/Thelia/Model/Base/TaxRuleI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/TaxRuleQuery.php b/core/lib/Thelia/Model/Base/TaxRuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Category.php b/core/lib/Thelia/Model/Category.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CategoryI18n.php b/core/lib/Thelia/Model/CategoryI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CategoryI18nQuery.php b/core/lib/Thelia/Model/CategoryI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CategoryQuery.php b/core/lib/Thelia/Model/CategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CategoryVersion.php b/core/lib/Thelia/Model/CategoryVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CategoryVersionQuery.php b/core/lib/Thelia/Model/CategoryVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Combination.php b/core/lib/Thelia/Model/Combination.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CombinationQuery.php b/core/lib/Thelia/Model/CombinationQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Config.php b/core/lib/Thelia/Model/Config.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ConfigI18n.php b/core/lib/Thelia/Model/ConfigI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ConfigI18nQuery.php b/core/lib/Thelia/Model/ConfigI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ConfigQuery.php b/core/lib/Thelia/Model/ConfigQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Content.php b/core/lib/Thelia/Model/Content.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentAssoc.php b/core/lib/Thelia/Model/ContentAssoc.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentAssocQuery.php b/core/lib/Thelia/Model/ContentAssocQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentFolder.php b/core/lib/Thelia/Model/ContentFolder.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentFolderQuery.php b/core/lib/Thelia/Model/ContentFolderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentI18n.php b/core/lib/Thelia/Model/ContentI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentI18nQuery.php b/core/lib/Thelia/Model/ContentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentQuery.php b/core/lib/Thelia/Model/ContentQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentVersion.php b/core/lib/Thelia/Model/ContentVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ContentVersionQuery.php b/core/lib/Thelia/Model/ContentVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Country.php b/core/lib/Thelia/Model/Country.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CountryI18n.php b/core/lib/Thelia/Model/CountryI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CountryI18nQuery.php b/core/lib/Thelia/Model/CountryI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CountryQuery.php b/core/lib/Thelia/Model/CountryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Coupon.php b/core/lib/Thelia/Model/Coupon.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CouponOrder.php b/core/lib/Thelia/Model/CouponOrder.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CouponOrderQuery.php b/core/lib/Thelia/Model/CouponOrderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CouponQuery.php b/core/lib/Thelia/Model/CouponQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CouponRule.php b/core/lib/Thelia/Model/CouponRule.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CouponRuleQuery.php b/core/lib/Thelia/Model/CouponRuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Currency.php b/core/lib/Thelia/Model/Currency.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CurrencyQuery.php b/core/lib/Thelia/Model/CurrencyQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Customer.php b/core/lib/Thelia/Model/Customer.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CustomerQuery.php b/core/lib/Thelia/Model/CustomerQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CustomerTitle.php b/core/lib/Thelia/Model/CustomerTitle.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CustomerTitleI18n.php b/core/lib/Thelia/Model/CustomerTitleI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CustomerTitleI18nQuery.php b/core/lib/Thelia/Model/CustomerTitleI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CustomerTitleQuery.php b/core/lib/Thelia/Model/CustomerTitleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Delivzone.php b/core/lib/Thelia/Model/Delivzone.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/DelivzoneQuery.php b/core/lib/Thelia/Model/DelivzoneQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Document.php b/core/lib/Thelia/Model/Document.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/DocumentI18n.php b/core/lib/Thelia/Model/DocumentI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/DocumentI18nQuery.php b/core/lib/Thelia/Model/DocumentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/DocumentQuery.php b/core/lib/Thelia/Model/DocumentQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Feature.php b/core/lib/Thelia/Model/Feature.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureAv.php b/core/lib/Thelia/Model/FeatureAv.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureAvI18n.php b/core/lib/Thelia/Model/FeatureAvI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureAvI18nQuery.php b/core/lib/Thelia/Model/FeatureAvI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureAvQuery.php b/core/lib/Thelia/Model/FeatureAvQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureCategory.php b/core/lib/Thelia/Model/FeatureCategory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureCategoryQuery.php b/core/lib/Thelia/Model/FeatureCategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureI18n.php b/core/lib/Thelia/Model/FeatureI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureI18nQuery.php b/core/lib/Thelia/Model/FeatureI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureProd.php b/core/lib/Thelia/Model/FeatureProd.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureProdQuery.php b/core/lib/Thelia/Model/FeatureProdQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FeatureQuery.php b/core/lib/Thelia/Model/FeatureQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Folder.php b/core/lib/Thelia/Model/Folder.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FolderI18n.php b/core/lib/Thelia/Model/FolderI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FolderI18nQuery.php b/core/lib/Thelia/Model/FolderI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FolderQuery.php b/core/lib/Thelia/Model/FolderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FolderVersion.php b/core/lib/Thelia/Model/FolderVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/FolderVersionQuery.php b/core/lib/Thelia/Model/FolderVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Group.php b/core/lib/Thelia/Model/Group.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/GroupI18n.php b/core/lib/Thelia/Model/GroupI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/GroupI18nQuery.php b/core/lib/Thelia/Model/GroupI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/GroupModule.php b/core/lib/Thelia/Model/GroupModule.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/GroupModuleQuery.php b/core/lib/Thelia/Model/GroupModuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/GroupQuery.php b/core/lib/Thelia/Model/GroupQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/GroupResource.php b/core/lib/Thelia/Model/GroupResource.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/GroupResourceQuery.php b/core/lib/Thelia/Model/GroupResourceQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Image.php b/core/lib/Thelia/Model/Image.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ImageI18n.php b/core/lib/Thelia/Model/ImageI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ImageI18nQuery.php b/core/lib/Thelia/Model/ImageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ImageQuery.php b/core/lib/Thelia/Model/ImageQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Lang.php b/core/lib/Thelia/Model/Lang.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/LangQuery.php b/core/lib/Thelia/Model/LangQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AccessoryTableMap.php b/core/lib/Thelia/Model/Map/AccessoryTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AddressTableMap.php b/core/lib/Thelia/Model/Map/AddressTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AdminGroupTableMap.php b/core/lib/Thelia/Model/Map/AdminGroupTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AdminLogTableMap.php b/core/lib/Thelia/Model/Map/AdminLogTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AdminTableMap.php b/core/lib/Thelia/Model/Map/AdminTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AreaTableMap.php b/core/lib/Thelia/Model/Map/AreaTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AttributeAvI18nTableMap.php b/core/lib/Thelia/Model/Map/AttributeAvI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AttributeAvTableMap.php b/core/lib/Thelia/Model/Map/AttributeAvTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AttributeCategoryTableMap.php b/core/lib/Thelia/Model/Map/AttributeCategoryTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AttributeCombinationTableMap.php b/core/lib/Thelia/Model/Map/AttributeCombinationTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AttributeI18nTableMap.php b/core/lib/Thelia/Model/Map/AttributeI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/AttributeTableMap.php b/core/lib/Thelia/Model/Map/AttributeTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CategoryI18nTableMap.php b/core/lib/Thelia/Model/Map/CategoryI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CategoryTableMap.php b/core/lib/Thelia/Model/Map/CategoryTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CategoryVersionTableMap.php b/core/lib/Thelia/Model/Map/CategoryVersionTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CombinationTableMap.php b/core/lib/Thelia/Model/Map/CombinationTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ConfigI18nTableMap.php b/core/lib/Thelia/Model/Map/ConfigI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ConfigTableMap.php b/core/lib/Thelia/Model/Map/ConfigTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ContentAssocTableMap.php b/core/lib/Thelia/Model/Map/ContentAssocTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ContentFolderTableMap.php b/core/lib/Thelia/Model/Map/ContentFolderTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ContentI18nTableMap.php b/core/lib/Thelia/Model/Map/ContentI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ContentTableMap.php b/core/lib/Thelia/Model/Map/ContentTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ContentVersionTableMap.php b/core/lib/Thelia/Model/Map/ContentVersionTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CountryI18nTableMap.php b/core/lib/Thelia/Model/Map/CountryI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CountryTableMap.php b/core/lib/Thelia/Model/Map/CountryTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CouponOrderTableMap.php b/core/lib/Thelia/Model/Map/CouponOrderTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CouponRuleTableMap.php b/core/lib/Thelia/Model/Map/CouponRuleTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CouponTableMap.php b/core/lib/Thelia/Model/Map/CouponTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CurrencyTableMap.php b/core/lib/Thelia/Model/Map/CurrencyTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CustomerTableMap.php b/core/lib/Thelia/Model/Map/CustomerTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CustomerTitleI18nTableMap.php b/core/lib/Thelia/Model/Map/CustomerTitleI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CustomerTitleTableMap.php b/core/lib/Thelia/Model/Map/CustomerTitleTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/DelivzoneTableMap.php b/core/lib/Thelia/Model/Map/DelivzoneTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/DocumentI18nTableMap.php b/core/lib/Thelia/Model/Map/DocumentI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/DocumentTableMap.php b/core/lib/Thelia/Model/Map/DocumentTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FeatureAvI18nTableMap.php b/core/lib/Thelia/Model/Map/FeatureAvI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FeatureAvTableMap.php b/core/lib/Thelia/Model/Map/FeatureAvTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FeatureCategoryTableMap.php b/core/lib/Thelia/Model/Map/FeatureCategoryTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FeatureI18nTableMap.php b/core/lib/Thelia/Model/Map/FeatureI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FeatureProdTableMap.php b/core/lib/Thelia/Model/Map/FeatureProdTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FeatureTableMap.php b/core/lib/Thelia/Model/Map/FeatureTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FolderI18nTableMap.php b/core/lib/Thelia/Model/Map/FolderI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FolderTableMap.php b/core/lib/Thelia/Model/Map/FolderTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/FolderVersionTableMap.php b/core/lib/Thelia/Model/Map/FolderVersionTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/GroupI18nTableMap.php b/core/lib/Thelia/Model/Map/GroupI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/GroupModuleTableMap.php b/core/lib/Thelia/Model/Map/GroupModuleTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/GroupResourceTableMap.php b/core/lib/Thelia/Model/Map/GroupResourceTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/GroupTableMap.php b/core/lib/Thelia/Model/Map/GroupTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ImageI18nTableMap.php b/core/lib/Thelia/Model/Map/ImageI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ImageTableMap.php b/core/lib/Thelia/Model/Map/ImageTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/LangTableMap.php b/core/lib/Thelia/Model/Map/LangTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/MessageI18nTableMap.php b/core/lib/Thelia/Model/Map/MessageI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/MessageTableMap.php b/core/lib/Thelia/Model/Map/MessageTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/MessageVersionTableMap.php b/core/lib/Thelia/Model/Map/MessageVersionTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ModuleI18nTableMap.php b/core/lib/Thelia/Model/Map/ModuleI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ModuleTableMap.php b/core/lib/Thelia/Model/Map/ModuleTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/OrderAddressTableMap.php b/core/lib/Thelia/Model/Map/OrderAddressTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/OrderFeatureTableMap.php b/core/lib/Thelia/Model/Map/OrderFeatureTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/OrderProductTableMap.php b/core/lib/Thelia/Model/Map/OrderProductTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/OrderStatusI18nTableMap.php b/core/lib/Thelia/Model/Map/OrderStatusI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/OrderStatusTableMap.php b/core/lib/Thelia/Model/Map/OrderStatusTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/OrderTableMap.php b/core/lib/Thelia/Model/Map/OrderTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ProductCategoryTableMap.php b/core/lib/Thelia/Model/Map/ProductCategoryTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ProductI18nTableMap.php b/core/lib/Thelia/Model/Map/ProductI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ProductTableMap.php b/core/lib/Thelia/Model/Map/ProductTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ProductVersionTableMap.php b/core/lib/Thelia/Model/Map/ProductVersionTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ResourceI18nTableMap.php b/core/lib/Thelia/Model/Map/ResourceI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ResourceTableMap.php b/core/lib/Thelia/Model/Map/ResourceTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/RewritingTableMap.php b/core/lib/Thelia/Model/Map/RewritingTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/StockTableMap.php b/core/lib/Thelia/Model/Map/StockTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/TaxI18nTableMap.php b/core/lib/Thelia/Model/Map/TaxI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/TaxRuleCountryTableMap.php b/core/lib/Thelia/Model/Map/TaxRuleCountryTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/TaxRuleI18nTableMap.php b/core/lib/Thelia/Model/Map/TaxRuleI18nTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/TaxRuleTableMap.php b/core/lib/Thelia/Model/Map/TaxRuleTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/TaxTableMap.php b/core/lib/Thelia/Model/Map/TaxTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Message.php b/core/lib/Thelia/Model/Message.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/MessageI18n.php b/core/lib/Thelia/Model/MessageI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/MessageI18nQuery.php b/core/lib/Thelia/Model/MessageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/MessageQuery.php b/core/lib/Thelia/Model/MessageQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/MessageVersion.php b/core/lib/Thelia/Model/MessageVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/MessageVersionQuery.php b/core/lib/Thelia/Model/MessageVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Module.php b/core/lib/Thelia/Model/Module.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ModuleI18n.php b/core/lib/Thelia/Model/ModuleI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ModuleI18nQuery.php b/core/lib/Thelia/Model/ModuleI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ModuleQuery.php b/core/lib/Thelia/Model/ModuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Order.php b/core/lib/Thelia/Model/Order.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderAddress.php b/core/lib/Thelia/Model/OrderAddress.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderAddressQuery.php b/core/lib/Thelia/Model/OrderAddressQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderFeature.php b/core/lib/Thelia/Model/OrderFeature.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderFeatureQuery.php b/core/lib/Thelia/Model/OrderFeatureQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderProduct.php b/core/lib/Thelia/Model/OrderProduct.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderProductQuery.php b/core/lib/Thelia/Model/OrderProductQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderQuery.php b/core/lib/Thelia/Model/OrderQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderStatus.php b/core/lib/Thelia/Model/OrderStatus.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderStatusI18n.php b/core/lib/Thelia/Model/OrderStatusI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderStatusI18nQuery.php b/core/lib/Thelia/Model/OrderStatusI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/OrderStatusQuery.php b/core/lib/Thelia/Model/OrderStatusQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Product.php b/core/lib/Thelia/Model/Product.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ProductCategory.php b/core/lib/Thelia/Model/ProductCategory.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ProductCategoryQuery.php b/core/lib/Thelia/Model/ProductCategoryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ProductI18n.php b/core/lib/Thelia/Model/ProductI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ProductI18nQuery.php b/core/lib/Thelia/Model/ProductI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ProductQuery.php b/core/lib/Thelia/Model/ProductQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ProductVersion.php b/core/lib/Thelia/Model/ProductVersion.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ProductVersionQuery.php b/core/lib/Thelia/Model/ProductVersionQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Resource.php b/core/lib/Thelia/Model/Resource.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ResourceI18n.php b/core/lib/Thelia/Model/ResourceI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ResourceI18nQuery.php b/core/lib/Thelia/Model/ResourceI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/ResourceQuery.php b/core/lib/Thelia/Model/ResourceQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Rewriting.php b/core/lib/Thelia/Model/Rewriting.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/RewritingQuery.php b/core/lib/Thelia/Model/RewritingQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Stock.php b/core/lib/Thelia/Model/Stock.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/StockQuery.php b/core/lib/Thelia/Model/StockQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Tax.php b/core/lib/Thelia/Model/Tax.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxI18n.php b/core/lib/Thelia/Model/TaxI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxI18nQuery.php b/core/lib/Thelia/Model/TaxI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxQuery.php b/core/lib/Thelia/Model/TaxQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxRule.php b/core/lib/Thelia/Model/TaxRule.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxRuleCountry.php b/core/lib/Thelia/Model/TaxRuleCountry.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxRuleCountryQuery.php b/core/lib/Thelia/Model/TaxRuleCountryQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxRuleI18n.php b/core/lib/Thelia/Model/TaxRuleI18n.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxRuleI18nQuery.php b/core/lib/Thelia/Model/TaxRuleI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/TaxRuleQuery.php b/core/lib/Thelia/Model/TaxRuleQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Core/Security/Encoder/PasswordHashEncoderTest.php b/core/lib/Thelia/Tests/Core/Security/Encoder/PasswordHashEncoderTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Core/Security/SecurityManagerTest.php b/core/lib/Thelia/Tests/Core/Security/SecurityManagerTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Core/Security/Token/UsernamePasswordTokenTest.php b/core/lib/Thelia/Tests/Core/Security/Token/UsernamePasswordTokenTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Type/BooleanType.php b/core/lib/Thelia/Type/BooleanType.php index e7bbea786..f6f292330 100755 --- a/core/lib/Thelia/Type/BooleanType.php +++ b/core/lib/Thelia/Type/BooleanType.php @@ -42,6 +42,6 @@ class BooleanType implements TypeInterface public function getFormattedValue($value) { - return filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); + return $value === null ? null : filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); } } diff --git a/core/lib/Thelia/Type/IntToCombinedIntsList.php b/core/lib/Thelia/Type/IntToCombinedIntsList.php index adefb0bb8..c9103c335 100755 --- a/core/lib/Thelia/Type/IntToCombinedIntsList.php +++ b/core/lib/Thelia/Type/IntToCombinedIntsList.php @@ -44,50 +44,10 @@ class IntToCombinedIntsList implements TypeInterface if(filter_var($parts[0], FILTER_VALIDATE_INT) === false) return false; - /* delete all spaces and parentheses */ - $noSpaceString = preg_replace('#[\s]#', '', $parts[1]); - $noParentheseString = preg_replace('#[\(\)]#', '', $noSpaceString); - - if(!preg_match('#^([0-9]+([\&\|][0-9]+)*|\*)$#', $noParentheseString)) + if(false === $this->checkLogicalFormat($parts[1])) return false; - - /* check parenteses use */ - $openingParenthesesCount = 0; - $closingParenthesesCount = 0; - - for($i=0; $iisValid($values) ) { $return = ''; + $values = preg_replace('#[\s]#', '', $values); foreach(explode(',', $values) as $intToCombinedInts) { $parts = explode(':', $intToCombinedInts); - /* delete all spaces and parentheses */ - $noParentheseString = preg_replace('#[\s\(\)]#', '', $parts[1]); - - //$return[$parts[0]] = preg_match_all("#^([0-9]+([\&\|][0-9]+)*|\*)$#", $parts[1]); - /*array( - "values" => preg_split( "#(&|\|)#", $parts[1]), - "expression" => $parts[0], - );*/ - - $x = 1; + $return[trim($parts[0])] = array( + "values" => preg_split( "#(&|\|)#", preg_replace('#[\(\)]#', '', $parts[1])), + "expression" => $parts[1], + ); } return $return; @@ -116,4 +71,52 @@ class IntToCombinedIntsList implements TypeInterface return null; } } + + protected function checkLogicalFormat($string) + { + /* delete all spaces and parentheses */ + $noSpaceString = preg_replace('#[\s]#', '', $string); + $noParentheseString = preg_replace('#[\(\)]#', '', $noSpaceString); + + if(!preg_match('#^([0-9]+([\&\|][0-9]+)*|\*)$#', $noParentheseString)) + return false; + + /* check parenteses use */ + $openingParenthesesCount = 0; + $closingParenthesesCount = 0; + + for($i=0; $i weight : #WEIGHT
{/loop*} -{loop name="product" type="product" feature_available="1: (1 | 2) , 2: 4"} + +{loop name="product" type="product" order="ref" feature_available="1:*"}

PRODUCT : #REF / #TITLE

price : #PRICE €
promo price : #PROMO_PRICE €
diff --git a/templates/smarty-sample/connexion.html b/templates/smarty-sample/connexion.html old mode 100644 new mode 100755 diff --git a/templates/smarty-sample/included.html b/templates/smarty-sample/included.html old mode 100644 new mode 100755 From 028a5d124e73e93b237b6c2962abaa0b2d4820bc Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Thu, 11 Jul 2013 16:25:03 +0200 Subject: [PATCH 05/13] unit tests --- .../lib/Thelia/Core/Template/Loop/Product.php | 2 +- .../Type/IntToCombinedIntsListTypeTest.php | 64 +++++++++++++++++++ ...List.php => IntToCombinedIntsListType.php} | 2 +- 3 files changed, 66 insertions(+), 2 deletions(-) create mode 100755 core/lib/Thelia/Tests/Type/IntToCombinedIntsListTypeTest.php rename core/lib/Thelia/Type/{IntToCombinedIntsList.php => IntToCombinedIntsListType.php} (98%) diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 0acb903d3..52e1ce9b5 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -93,7 +93,7 @@ class Product extends BaseLoop new Argument( 'feature_available', new TypeCollection( - new Type\IntToCombinedIntsList(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new')) + new Type\IntToCombinedIntsListType(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new')) ) ) ); diff --git a/core/lib/Thelia/Tests/Type/IntToCombinedIntsListTypeTest.php b/core/lib/Thelia/Tests/Type/IntToCombinedIntsListTypeTest.php new file mode 100755 index 000000000..9db5c96fd --- /dev/null +++ b/core/lib/Thelia/Tests/Type/IntToCombinedIntsListTypeTest.php @@ -0,0 +1,64 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Type; + +use Thelia\Type\IntToCombinedIntsListType; + +/** + * + * @author Etienne Roudeix + * + */ +class IntToCombinedIntsListTypeTest extends \PHPUnit_Framework_TestCase +{ + public function testIntToCombinedIntsListType() + { + $type = new IntToCombinedIntsListType(); + $this->assertTrue($type->isValid('1: 2 & 5 | (6 &7), 4: *, 67: (1 & 9)')); + $this->assertFalse($type->isValid('1,2,3')); + } + + public function testFormatJsonType() + { + $type = new IntToCombinedIntsListType(); + $this->assertEquals( + $type->getFormattedValue('1: 2 & 5 | (6 &7), 4: *, 67: (1 & 9)'), + array( + 1 => array( + "values" => array(2,5,6,7), + "expression" => '2&5|(6&7)', + ), + 4 => array( + "values" => array('*'), + "expression" => '*', + ), + 67 => array( + "values" => array(1,9), + "expression" => '(1&9)', + ), + ) + ); + $this->assertNull($type->getFormattedValue('foo')); + } +} diff --git a/core/lib/Thelia/Type/IntToCombinedIntsList.php b/core/lib/Thelia/Type/IntToCombinedIntsListType.php similarity index 98% rename from core/lib/Thelia/Type/IntToCombinedIntsList.php rename to core/lib/Thelia/Type/IntToCombinedIntsListType.php index c9103c335..d4e9ec561 100755 --- a/core/lib/Thelia/Type/IntToCombinedIntsList.php +++ b/core/lib/Thelia/Type/IntToCombinedIntsListType.php @@ -28,7 +28,7 @@ namespace Thelia\Type; * */ -class IntToCombinedIntsList implements TypeInterface +class IntToCombinedIntsListType implements TypeInterface { public function getType() { From 4ddc7f12b1af5da6f776e8cbac5a9342fb26657c Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Mon, 15 Jul 2013 11:21:25 +0200 Subject: [PATCH 06/13] loops --- .../Thelia/Core/Template/Element/BaseLoop.php | 2 -- .../lib/Thelia/Core/Template/Loop/Product.php | 22 +++++++++---------- templates/smarty-sample/category.html | 2 +- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Element/BaseLoop.php b/core/lib/Thelia/Core/Template/Element/BaseLoop.php index 59747eec1..72c59290d 100755 --- a/core/lib/Thelia/Core/Template/Element/BaseLoop.php +++ b/core/lib/Thelia/Core/Template/Element/BaseLoop.php @@ -143,8 +143,6 @@ abstract class BaseLoop $argument->setValue($value); } - - $this->args->next(); } if (!empty($faultActor)) { diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 52e1ce9b5..bab71085d 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -79,21 +79,20 @@ class Product extends BaseLoop Argument::createFloatTypeArgument('max_weight'), Argument::createBooleanTypeArgument('current'), Argument::createBooleanTypeArgument('current_category'), - Argument::createIntTypeArgument('depth'), + Argument::createIntTypeArgument('depth', 1), Argument::createBooleanTypeArgument('visible', 1), new Argument( 'order', new TypeCollection( - new Type\EnumListType(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new')) + new Type\EnumListType(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new', 'random')) ) ), - Argument::createBooleanTypeArgument('random', 0), Argument::createIntListTypeArgument('exclude'), Argument::createIntListTypeArgument('exclude_category'), new Argument( 'feature_available', new TypeCollection( - new Type\IntToCombinedIntsListType(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new')) + new Type\IntToCombinedIntsListType() ) ) ); @@ -243,7 +242,9 @@ class Product extends BaseLoop ); } - $search->filterByVisible($this->getVisible()); + $visible = $this->getVisible(); + + $search->filterByVisible($visible); $orders = $this->getOrder(); @@ -287,6 +288,10 @@ class Product extends BaseLoop case "new": $search->addDescendingOrderByColumn(ProductTableMap::NEWNESS); break; + case "random": + $search->clearOrderByColumns(); + $search->addAscendingOrderByColumn('RAND()'); + break(2); default: $search->orderByPosition(); break; @@ -294,13 +299,6 @@ class Product extends BaseLoop } } - $random = $this->getRandom(); - - if ($random === true) { - $search->clearOrderByColumns(); - $search->addAscendingOrderByColumn('RAND()'); - } - $exclude = $this->getExclude(); if (!is_null($exclude)) { diff --git a/templates/smarty-sample/category.html b/templates/smarty-sample/category.html index 55927abbd..275197848 100755 --- a/templates/smarty-sample/category.html +++ b/templates/smarty-sample/category.html @@ -28,7 +28,7 @@ weight : #WEIGHT
{/loop*} -{loop name="product" type="product" order="ref" feature_available="1:*"} +{loop name="product" type="product" order="ref" feature_available="1: (1 | 2) , 2: 4, 3: 433"}

PRODUCT : #REF / #TITLE

price : #PRICE €
promo price : #PROMO_PRICE €
From 92866d602d985fad27829f0e38a8b14cda28034f Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Tue, 16 Jul 2013 15:19:32 +0200 Subject: [PATCH 07/13] new argument type --- .../Type/IntToCombinedStringsListTypeTest.php | 64 +++++++++ .../Type/IntToCombinedStringsListType.php | 122 ++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100755 core/lib/Thelia/Tests/Type/IntToCombinedStringsListTypeTest.php create mode 100755 core/lib/Thelia/Type/IntToCombinedStringsListType.php diff --git a/core/lib/Thelia/Tests/Type/IntToCombinedStringsListTypeTest.php b/core/lib/Thelia/Tests/Type/IntToCombinedStringsListTypeTest.php new file mode 100755 index 000000000..de308694f --- /dev/null +++ b/core/lib/Thelia/Tests/Type/IntToCombinedStringsListTypeTest.php @@ -0,0 +1,64 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Type; + +use Thelia\Type\IntToCombinedStringsListType; + +/** + * + * @author Etienne Roudeix + * + */ +class IntToCombinedStringsListTypeTest extends \PHPUnit_Framework_TestCase +{ + public function testIntToCombinedStringsListType() + { + $type = new IntToCombinedStringsListType(); + $this->assertTrue($type->isValid('1: foo & bar | (fooo &baar), 4: *, 67: (foooo & baaar)')); + $this->assertFalse($type->isValid('1,2,3')); + } + + public function testFormatJsonType() + { + $type = new IntToCombinedStringsListType(); + $this->assertEquals( + $type->getFormattedValue('1: foo & bar | (fooo &baar), 4: *, 67: (foooo & baaar)'), + array( + 1 => array( + "values" => array('foo','bar','fooo','baar'), + "expression" => 'foo&bar|(fooo&baar)', + ), + 4 => array( + "values" => array('*'), + "expression" => '*', + ), + 67 => array( + "values" => array('foooo','baaar'), + "expression" => '(foooo&baaar)', + ), + ) + ); + $this->assertNull($type->getFormattedValue('foo')); + } +} diff --git a/core/lib/Thelia/Type/IntToCombinedStringsListType.php b/core/lib/Thelia/Type/IntToCombinedStringsListType.php new file mode 100755 index 000000000..985ef8ff6 --- /dev/null +++ b/core/lib/Thelia/Type/IntToCombinedStringsListType.php @@ -0,0 +1,122 @@ +. */ +/* */ +/*************************************************************************************/ +namespace Thelia\Type; + +/** + * + * @author Etienne Roudeix + * + */ + +class IntToCombinedStringsListType implements TypeInterface +{ + public function getType() + { + return 'Int to combined strings list type'; + } + + public function isValid($values) + { + foreach(explode(',', $values) as $intToCombinedStrings) { + $parts = explode(':', $intToCombinedStrings); + if(count($parts) != 2) + return false; + if(filter_var($parts[0], FILTER_VALIDATE_INT) === false) + return false; + + if(false === $this->checkLogicalFormat($parts[1])) + return false; + } + $x = 3; + return true; + } + + public function getFormattedValue($values) + { + if( $this->isValid($values) ) { + $return = ''; + + $values = preg_replace('#[\s]#', '', $values); + foreach(explode(',', $values) as $intToCombinedStrings) { + $parts = explode(':', $intToCombinedStrings); + + $return[trim($parts[0])] = array( + "values" => preg_split( "#(&|\|)#", preg_replace('#[\(\)]#', '', $parts[1])), + "expression" => $parts[1], + ); + } + + return $return; + } else { + return null; + } + } + + protected function checkLogicalFormat($string) + { + /* delete all spaces and parentheses */ + $noSpaceString = preg_replace('#[\s]#', '', $string); + $noParentheseString = preg_replace('#[\(\)]#', '', $noSpaceString); + + if(!preg_match('#^([a-zA-Z0-9_\-]+([\&\|][a-zA-Z0-9_\-]+)*|\*)$#', $noParentheseString)) + return false; + + /* check parenteses use */ + $openingParenthesesCount = 0; + $closingParenthesesCount = 0; + + for($i=0; $i Date: Tue, 16 Jul 2013 16:57:33 +0200 Subject: [PATCH 08/13] product loop : feature_values param + fix feature_av --- .../lib/Thelia/Core/Template/Loop/Product.php | 40 +++++++++++++++++-- templates/smarty-sample/category.html | 11 ++++- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index bab71085d..5d07861f0 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -94,6 +94,12 @@ class Product extends BaseLoop new TypeCollection( new Type\IntToCombinedIntsListType() ) + ), + new Argument( + 'feature_values', + new TypeCollection( + new Type\IntToCombinedStringsListType() + ) ) ); } @@ -333,12 +339,40 @@ class Product extends BaseLoop if($sqlWhereString == '*') { $sqlWhereString = 'NOT ISNULL(`fa_' . $feature . '`.ID)'; } else { - $sqlWhereString = preg_replace('#(^|[^0-9])([0-9]+)([^0-9]|$)#', '\1NOT ISNULL(`fa_' . $feature . '_' . '\2`.ID)\3', $sqlWhereString); + $sqlWhereString = preg_replace('#([0-9]+)#', 'NOT ISNULL(`fa_' . $feature . '_' . '\1`.ID)', $sqlWhereString); $sqlWhereString = str_replace('&', ' AND ', $sqlWhereString); $sqlWhereString = str_replace('|', ' OR ', $sqlWhereString); } - $search->where($sqlWhereString); + $search->where("(" . $sqlWhereString . ")"); + } + } + + $feature_values = $this->getFeature_values(); + + if(null !== $feature_values) { + foreach($feature_values as $feature => $feature_choice) { + foreach($feature_choice['values'] as $feature_value) { + $featureAlias = 'fv_' . $feature; + if($feature_value != '*') + $featureAlias .= '_' . $feature_value; + $search->joinFeatureProd($featureAlias, Criteria::LEFT_JOIN) + ->addJoinCondition($featureAlias, "`$featureAlias`.FEATURE_ID = ?", $feature, null, \PDO::PARAM_INT); + if($feature_value != '*') + $search->addJoinCondition($featureAlias, "`$featureAlias`.BY_DEFAULT = ?", $feature_value, null, \PDO::PARAM_STR); + } + + /* format for mysql */ + $sqlWhereString = $feature_choice['expression']; + if($sqlWhereString == '*') { + $sqlWhereString = 'NOT ISNULL(`fv_' . $feature . '`.ID)'; + } else { + $sqlWhereString = preg_replace('#([a-zA-Z0-9_\-]+)#', 'NOT ISNULL(`fv_' . $feature . '_' . '\1`.ID)', $sqlWhereString); + $sqlWhereString = str_replace('&', ' AND ', $sqlWhereString); + $sqlWhereString = str_replace('|', ' OR ', $sqlWhereString); + } + + $search->where("(" . $sqlWhereString . ")"); } } @@ -373,8 +407,6 @@ class Product extends BaseLoop $loopResultRow->set("PROMO", $product->getPromo()); $loopResultRow->set("NEW", $product->getNewness()); - //$loopResultRow->set("URL", $product->getUrl()); - $loopResult->addRow($loopResultRow); } diff --git a/templates/smarty-sample/category.html b/templates/smarty-sample/category.html index 275197848..ef97c92e1 100755 --- a/templates/smarty-sample/category.html +++ b/templates/smarty-sample/category.html @@ -28,7 +28,16 @@ weight : #WEIGHT
{/loop*} -{loop name="product" type="product" order="ref" feature_available="1: (1 | 2) , 2: 4, 3: 433"} +{*loop name="product" type="product" order="ref" feature_available="1: (1 | 2) , 2: 4, 3: 433"} +

PRODUCT : #REF / #TITLE

+ price : #PRICE €
+ promo price : #PROMO_PRICE €
+ is promo : #PROMO
+ is new : #NEW
+ weight : #WEIGHT
+{/loop*} + +{loop name="product" type="product" order="ref" feature_values="1: foo"}

PRODUCT : #REF / #TITLE

price : #PRICE €
promo price : #PROMO_PRICE €
From c28ac536aa63f90fd70cc195d0651e018ed6c449 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Fri, 19 Jul 2013 13:59:25 +0200 Subject: [PATCH 09/13] accessory loop product loop order fix --- core/lib/Thelia/Config/Resources/config.xml | 1 + .../Thelia/Core/Template/Element/BaseLoop.php | 2 +- .../Thelia/Core/Template/Loop/Accessory.php | 119 ++++++++++++++++++ .../Thelia/Core/Template/Loop/Category.php | 49 ++++---- .../lib/Thelia/Core/Template/Loop/Product.php | 103 +++++++-------- core/lib/Thelia/Type/EnumListType.php | 6 + core/lib/Thelia/Type/TypeCollection.php | 5 + templates/smarty-sample/category.html | 12 +- 8 files changed, 217 insertions(+), 80 deletions(-) create mode 100755 core/lib/Thelia/Core/Template/Loop/Accessory.php diff --git a/core/lib/Thelia/Config/Resources/config.xml b/core/lib/Thelia/Config/Resources/config.xml index dee0b57b6..5a3e56c61 100755 --- a/core/lib/Thelia/Config/Resources/config.xml +++ b/core/lib/Thelia/Config/Resources/config.xml @@ -5,6 +5,7 @@ xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd"> + diff --git a/core/lib/Thelia/Core/Template/Element/BaseLoop.php b/core/lib/Thelia/Core/Template/Element/BaseLoop.php index 72c59290d..4051b49a3 100755 --- a/core/lib/Thelia/Core/Template/Element/BaseLoop.php +++ b/core/lib/Thelia/Core/Template/Element/BaseLoop.php @@ -51,7 +51,7 @@ abstract class BaseLoop protected $securityContext; - private $args; + protected $args; /** * Create a new Loop diff --git a/core/lib/Thelia/Core/Template/Loop/Accessory.php b/core/lib/Thelia/Core/Template/Loop/Accessory.php new file mode 100755 index 000000000..0f2ef7c20 --- /dev/null +++ b/core/lib/Thelia/Core/Template/Loop/Accessory.php @@ -0,0 +1,119 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Core\Template\Loop; + +use Thelia\Core\Template\Loop\Product; + +use Propel\Runtime\ActiveQuery\Criteria; +use Propel\Runtime\ActiveQuery\Join; +use Thelia\Core\Template\Element\BaseLoop; +use Thelia\Core\Template\Element\LoopResult; +use Thelia\Core\Template\Element\LoopResultRow; + +use Thelia\Core\Template\Loop\Argument\ArgumentCollection; +use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Log\Tlog; + +use Thelia\Model\AccessoryQuery; +use Thelia\Model\ProductQuery; +use Thelia\Model\ConfigQuery; +use Thelia\Type\TypeCollection; +use Thelia\Type; + +/** + * + * Accessory loop + * + * + * Class Accessory + * @package Thelia\Core\Template\Loop + * @author Etienne Roudeix + */ +class Accessory extends Product +{ + /** + * @return ArgumentCollection + */ + protected function getArgDefinitions() + { + $argumentCollection = parent::getArgDefinitions(); + + $argumentCollection->addArgument( + Argument::createIntListTypeArgument('product', null, true) + ); + + $argumentCollection->get('order')->default = "accessory"; + + $argumentCollection->get('order')->type->getKey(0)->addValue('accessory'); + $argumentCollection->get('order')->type->getKey(0)->addValue('accessory_reverse'); + + return $argumentCollection; + } + + /** + * @param $pagination + * + * @return \Thelia\Core\Template\Element\LoopResult + */ + public function exec(&$pagination) + { + $search = AccessoryQuery::create(); + + $product = $this->getProduct(); + $search->filterByProductId($product, Criteria::IN); + + $order = $this->getOrder(); + $orderByAccessory = array_search('accessory', $order); + $orderByAccessoryReverse = array_search('accessory_reverse', $order); + if($orderByAccessory !== false) { + $search->orderByPosition(Criteria::ASC); + $order[$orderByAccessory] = 'given_id'; + $this->args->get('order')->setValue( implode(',', $order) ); + } + if($orderByAccessoryReverse !== false) { + $search->orderByPosition(Criteria::DESC); + $order[$orderByAccessoryReverse] = 'given_id'; + $this->args->get('order')->setValue( implode(',', $order) ); + } + + $accessories = $this->search($search); + + $accessoryIdList = array(0); + foreach ($accessories as $accessory) { + array_push($accessoryIdList, $accessory->getAccessory()); + } + + $receivedIdList = $this->getId(); + + /* if an Id list is receive, loop will only match accessories from this list */ + if($receivedIdList === null) { + $this->args->get('id')->setValue( implode(',', $accessoryIdList) ); + } else { + $this->args->get('id')->setValue( implode(',', array_intersect($receivedIdList, $accessoryIdList)) ); + } + + return parent::exec($pagination); + } + +} diff --git a/core/lib/Thelia/Core/Template/Loop/Category.php b/core/lib/Thelia/Core/Template/Loop/Category.php index 96809f5dc..c5c64b894 100755 --- a/core/lib/Thelia/Core/Template/Loop/Category.php +++ b/core/lib/Thelia/Core/Template/Loop/Category.php @@ -83,8 +83,9 @@ class Category extends BaseLoop new Argument( 'order', new TypeCollection( - new Type\EnumListType('alpha', 'alpha_reverse', 'reverse') - ) + new Type\EnumListType(array('alpha', 'alpha_reverse', 'manual', 'manual-reverse', 'random')) + ), + 'manual' ), Argument::createBooleanTypeArgument('random', 0), Argument::createIntListTypeArgument('exclude') @@ -139,34 +140,28 @@ class Category extends BaseLoop $orders = $this->getOrder(); - if(null === $orders) { - $search->orderByPosition(); - } else { - foreach($orders as $order) { - switch ($order) { - case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\CategoryI18nPeer::TITLE); - break; - case "alpha_reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\CategoryI18nPeer::TITLE); - break; - case "reverse": - $search->orderByPosition(\Criteria::DESC); - break; - default: - $search->orderByPosition(); - break; - } + foreach($orders as $order) { + switch ($order) { + case "alpha": + $search->addAscendingOrderByColumn(\Thelia\Model\Map\CategoryI18nTableMap::TITLE); + break; + case "alpha_reverse": + $search->addDescendingOrderByColumn(\Thelia\Model\Map\CategoryI18nTableMap::TITLE); + break; + case "manual-reverse": + $search->orderByPosition(Criteria::DESC); + break; + case "manual": + $search->orderByPosition(Criteria::ASC); + break; + case "random": + $search->clearOrderByColumns(); + $search->addAscendingOrderByColumn('RAND()'); + break(2); + break; } } - $random = $this->getRandom(); - - if ($random === true) { - $search->clearOrderByColumns(); - $search->addAscendingOrderByColumn('RAND()'); - } - /** * \Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. * diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 5d07861f0..56fc3cd28 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -84,8 +84,9 @@ class Product extends BaseLoop new Argument( 'order', new TypeCollection( - new Type\EnumListType(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new', 'random')) - ) + new Type\EnumListType(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new', 'random', 'given_id')) + ), + 'manual' ), Argument::createIntListTypeArgument('exclude'), Argument::createIntListTypeArgument('exclude_category'), @@ -254,54 +255,56 @@ class Product extends BaseLoop $orders = $this->getOrder(); - if(null === $orders) { - $search->orderByPosition(); - } else { - foreach($orders as $order) { - switch ($order) { - case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\Map\CategoryI18nTableMap::TITLE); - $search->addAscendingOrderByColumn(\Thelia\Model\Map\CategoryI18nTableMap::TITLE); - break; - case "alpha_reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\Map\CategoryI18nTableMap::TITLE); - break; - case "reverse": - $search->orderByPosition(Criteria::DESC); - break; - case "min_price": - $search->orderBy('real_price', Criteria::ASC); - break; - case "max_price": - $search->orderBy('real_price', Criteria::DESC); - break; - case "manual": - if(null === $this->category || count($this->category) != 1) - throw new \InvalidArgumentException('Manual order cannot be set without single category argument'); - $search->addAscendingOrderByColumn(ProductTableMap::POSITION); - break; - case "manual_reverse": - if(null === $this->category || count($this->category) != 1) - throw new \InvalidArgumentException('Manual order cannot be set without single category argument'); - $search->addDescendingOrderByColumn(ProductTableMap::POSITION); - break; - case "ref": - $search->addAscendingOrderByColumn(ProductTableMap::REF); - break; - case "promo": - $search->addDescendingOrderByColumn(ProductTableMap::PROMO); - break; - case "new": - $search->addDescendingOrderByColumn(ProductTableMap::NEWNESS); - break; - case "random": - $search->clearOrderByColumns(); - $search->addAscendingOrderByColumn('RAND()'); - break(2); - default: - $search->orderByPosition(); - break; - } + + foreach($orders as $order) { + switch ($order) { + case "alpha": + $search->addAscendingOrderByColumn(\Thelia\Model\Map\ProductI18nTableMap::TITLE); + break; + case "alpha_reverse": + $search->addDescendingOrderByColumn(\Thelia\Model\Map\ProductI18nTableMap::TITLE); + break; + case "reverse": + $search->orderByPosition(Criteria::DESC); + break; + case "min_price": + $search->orderBy('real_price', Criteria::ASC); + break; + case "max_price": + $search->orderBy('real_price', Criteria::DESC); + break; + case "manual": + if(null === $this->category || count($this->category) != 1) + throw new \InvalidArgumentException('Manual order cannot be set without single category argument'); + $search->orderByPosition(Criteria::ASC); + break; + case "manual_reverse": + if(null === $this->category || count($this->category) != 1) + throw new \InvalidArgumentException('Manual order cannot be set without single category argument'); + $search->orderByPosition(Criteria::DESC); + break; + case "ref": + $search->orderByRef(Criteria::ASC); + break; + case "promo": + $search->orderByPromo(Criteria::DESC); + break; + case "new": + $search->orderByNewness(Criteria::DESC); + break; + case "given_id": + if (!is_null($id)) { + foreach($id as $singleId) { + $givenIdMatched = 'given_id_matched_' . $singleId; + $search->withColumn(ProductTableMap::ID . "='$singleId'", $givenIdMatched); + $search->orderBy($givenIdMatched, Criteria::DESC); + } + } + break; + case "random": + $search->clearOrderByColumns(); + $search->addAscendingOrderByColumn('RAND()'); + break(2); } } diff --git a/core/lib/Thelia/Type/EnumListType.php b/core/lib/Thelia/Type/EnumListType.php index 1603dc89f..c80501737 100755 --- a/core/lib/Thelia/Type/EnumListType.php +++ b/core/lib/Thelia/Type/EnumListType.php @@ -38,6 +38,12 @@ class EnumListType implements TypeInterface $this->values = $values; } + public function addValue($value) + { + if(!in_array($value, $this->values)) + $this->values[] = $value; + } + public function getType() { return 'Enum list type'; diff --git a/core/lib/Thelia/Type/TypeCollection.php b/core/lib/Thelia/Type/TypeCollection.php index 460d9b96e..c2170bfb6 100755 --- a/core/lib/Thelia/Type/TypeCollection.php +++ b/core/lib/Thelia/Type/TypeCollection.php @@ -142,4 +142,9 @@ class TypeCollection implements \Iterator return null; } + + public function getKey($key) + { + return isset($this->types[$key]) ? $this->types[$key] : null; + } } diff --git a/templates/smarty-sample/category.html b/templates/smarty-sample/category.html index ef97c92e1..f8da127a1 100755 --- a/templates/smarty-sample/category.html +++ b/templates/smarty-sample/category.html @@ -37,11 +37,19 @@ weight : #WEIGHT
{/loop*} -{loop name="product" type="product" order="ref" feature_values="1: foo"} +{*loop name="product" type="product" order="ref" feature_values="1: foo"}

PRODUCT : #REF / #TITLE

price : #PRICE €
promo price : #PROMO_PRICE €
is promo : #PROMO
is new : #NEW
weight : #WEIGHT
-{/loop} +{/loop*} + +{loop name="product" type="product" order="ref"} +

PRODUCT : #REF / #TITLE

+

Accessories

+ {loop name="acc" type="accessory" product="#ID" order="max_price"} + #REF - + {/loop} +{/loop} \ No newline at end of file From 87dd416a1e75937aa9cffb0e177cdf745e251d15 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Fri, 19 Jul 2013 14:12:13 +0200 Subject: [PATCH 10/13] accessory loop --- core/lib/Thelia/Core/Template/Loop/Accessory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Accessory.php b/core/lib/Thelia/Core/Template/Loop/Accessory.php index 0f2ef7c20..3a4ba94fa 100755 --- a/core/lib/Thelia/Core/Template/Loop/Accessory.php +++ b/core/lib/Thelia/Core/Template/Loop/Accessory.php @@ -60,7 +60,7 @@ class Accessory extends Product $argumentCollection = parent::getArgDefinitions(); $argumentCollection->addArgument( - Argument::createIntListTypeArgument('product', null, true) + Argument::createIntTypeArgument('product', null, true) ); $argumentCollection->get('order')->default = "accessory"; From 0e9d918b84c05bcf0fa6d2e05fc589855b16fdf1 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Mon, 22 Jul 2013 09:36:06 +0200 Subject: [PATCH 11/13] product loop : given id exception --- core/lib/Thelia/Core/Template/Loop/Product.php | 12 ++++++------ templates/smarty-sample/category.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 56fc3cd28..a9f697c0a 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -293,12 +293,12 @@ class Product extends BaseLoop $search->orderByNewness(Criteria::DESC); break; case "given_id": - if (!is_null($id)) { - foreach($id as $singleId) { - $givenIdMatched = 'given_id_matched_' . $singleId; - $search->withColumn(ProductTableMap::ID . "='$singleId'", $givenIdMatched); - $search->orderBy($givenIdMatched, Criteria::DESC); - } + if(null === $id) + throw new \InvalidArgumentException('Given_id order cannot be set without `id` argument'); + foreach($id as $singleId) { + $givenIdMatched = 'given_id_matched_' . $singleId; + $search->withColumn(ProductTableMap::ID . "='$singleId'", $givenIdMatched); + $search->orderBy($givenIdMatched, Criteria::DESC); } break; case "random": diff --git a/templates/smarty-sample/category.html b/templates/smarty-sample/category.html index f8da127a1..6ca05fa06 100755 --- a/templates/smarty-sample/category.html +++ b/templates/smarty-sample/category.html @@ -49,7 +49,7 @@ {loop name="product" type="product" order="ref"}

PRODUCT : #REF / #TITLE

Accessories

- {loop name="acc" type="accessory" product="#ID" order="max_price"} + {loop name="acc" type="accessory" product="#ID" order="accessory,max_price"} #REF - {/loop} {/loop} \ No newline at end of file From cf0d8b6f4ef7a54f501ff4c0f56f1610cc75a232 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Wed, 24 Jul 2013 11:32:32 +0200 Subject: [PATCH 12/13] loop fixe --- core/lib/Thelia/Core/Template/Loop/Category.php | 10 ++-------- core/lib/Thelia/Core/Template/Loop/Product.php | 5 +---- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Category.php b/core/lib/Thelia/Core/Template/Loop/Category.php index db20f460e..d6172e1a1 100755 --- a/core/lib/Thelia/Core/Template/Loop/Category.php +++ b/core/lib/Thelia/Core/Template/Loop/Category.php @@ -46,12 +46,7 @@ use Thelia\Type; * - current : current id is used if you are on a category page * - not_empty : if value is 1, category and subcategories must have at least 1 product * - visible : default 1, if you want category not visible put 0 - * - order : all value available : - * * alpha : sorting by title alphabetical order - * * alpha_reverse : sorting by title alphabetical reverse order - * * reverse : sorting by position descending - * * by default results are sorting by position ascending - * - random : if 1, random results. Default value is 0 + * - order : all value available : 'alpha', 'alpha_reverse', 'manual' (default), 'manual-reverse', 'random' * - exclude : all category id you want to exclude (as for id, an integer or a "string list" can be used) * * example : @@ -87,7 +82,6 @@ class Category extends BaseLoop ), 'manual' ), - Argument::createBooleanTypeArgument('random', 0), Argument::createIntListTypeArgument('exclude') ); } @@ -190,7 +184,7 @@ class Category extends BaseLoop $loopResultRow->set("ID", $category->getId()); $loopResultRow->set("URL", $category->getUrl()); $loopResultRow->set("LINK", $category->getLink()); - $loopResultRow->set("NB_CHILD", $category->countChild()); + $loopResultRow->set("PRODUCT_COUNT", $category->countChild()); $loopResult->addRow($loopResultRow); } diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 0b3a9f3c8..26f878b64 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -84,7 +84,7 @@ class Product extends BaseLoop new Argument( 'order', new TypeCollection( - new Type\EnumListType(array('alpha', 'alpha_reverse', 'reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new', 'random', 'given_id')) + new Type\EnumListType(array('alpha', 'alpha_reverse', 'min_price', 'max_price', 'manual', 'manual_reverse', 'ref', 'promo', 'new', 'random', 'given_id')) ), 'manual' ), @@ -264,9 +264,6 @@ class Product extends BaseLoop case "alpha_reverse": $search->addDescendingOrderByColumn(\Thelia\Model\Map\ProductI18nTableMap::TITLE); break; - case "reverse": - $search->orderByPosition(Criteria::DESC); - break; case "min_price": $search->orderBy('real_price', Criteria::ASC); break; From f05331da1a9ac3218e97ead2d6cd31999318373c Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Wed, 24 Jul 2013 14:51:36 +0200 Subject: [PATCH 13/13] category link last stand --- .../Thelia/Core/Template/Loop/Category.php | 9 -- core/lib/Thelia/Model/Base/Category.php | 128 +++++------------- core/lib/Thelia/Model/Base/CategoryQuery.php | 35 +---- .../lib/Thelia/Model/Base/CategoryVersion.php | 126 +++++------------ .../Model/Base/CategoryVersionQuery.php | 35 +---- .../lib/Thelia/Model/Map/CategoryTableMap.php | 36 ++--- .../Model/Map/CategoryVersionTableMap.php | 40 +++--- install/thelia.sql | 2 - local/config/schema.xml | 1 - 9 files changed, 100 insertions(+), 312 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Category.php b/core/lib/Thelia/Core/Template/Loop/Category.php index d6172e1a1..55e627d8f 100755 --- a/core/lib/Thelia/Core/Template/Loop/Category.php +++ b/core/lib/Thelia/Core/Template/Loop/Category.php @@ -74,7 +74,6 @@ class Category extends BaseLoop Argument::createBooleanTypeArgument('current'), Argument::createBooleanTypeArgument('not_empty', 0), Argument::createBooleanTypeArgument('visible', 1), - Argument::createAnyTypeArgument('link'), new Argument( 'order', new TypeCollection( @@ -123,13 +122,6 @@ class Category extends BaseLoop $search->filterById($exclude, Criteria::NOT_IN); } - - $link = $this->getLink(); - - if (!is_null($link)) { - $search->filterByLink($link); - } - $search->filterByVisible($this->getVisible() ? 1 : 0); $orders = $this->getOrder(); @@ -183,7 +175,6 @@ class Category extends BaseLoop $loopResultRow->set("PARENT", $category->getParent()); $loopResultRow->set("ID", $category->getId()); $loopResultRow->set("URL", $category->getUrl()); - $loopResultRow->set("LINK", $category->getLink()); $loopResultRow->set("PRODUCT_COUNT", $category->countChild()); $loopResult->addRow($loopResultRow); diff --git a/core/lib/Thelia/Model/Base/Category.php b/core/lib/Thelia/Model/Base/Category.php index 1a9e0b56a..1af89e917 100755 --- a/core/lib/Thelia/Model/Base/Category.php +++ b/core/lib/Thelia/Model/Base/Category.php @@ -92,12 +92,6 @@ abstract class Category implements ActiveRecordInterface */ protected $parent; - /** - * The value for the link field. - * @var string - */ - protected $link; - /** * The value for the visible field. * @var int @@ -601,17 +595,6 @@ abstract class Category implements ActiveRecordInterface return $this->parent; } - /** - * Get the [link] column value. - * - * @return string - */ - public function getLink() - { - - return $this->link; - } - /** * Get the [visible] column value. * @@ -758,27 +741,6 @@ abstract class Category implements ActiveRecordInterface return $this; } // setParent() - /** - * Set the value of [link] column. - * - * @param string $v new value - * @return \Thelia\Model\Category The current object (for fluent API support) - */ - public function setLink($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->link !== $v) { - $this->link = $v; - $this->modifiedColumns[] = CategoryTableMap::LINK; - } - - - return $this; - } // setLink() - /** * Set the value of [visible] column. * @@ -973,37 +935,34 @@ abstract class Category implements ActiveRecordInterface $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : CategoryTableMap::translateFieldName('Parent', TableMap::TYPE_PHPNAME, $indexType)]; $this->parent = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CategoryTableMap::translateFieldName('Link', TableMap::TYPE_PHPNAME, $indexType)]; - $this->link = (null !== $col) ? (string) $col : null; - - $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CategoryTableMap::translateFieldName('Visible', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CategoryTableMap::translateFieldName('Visible', TableMap::TYPE_PHPNAME, $indexType)]; $this->visible = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CategoryTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CategoryTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)]; $this->position = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CategoryTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CategoryTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } $this->created_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : CategoryTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CategoryTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } $this->updated_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : CategoryTableMap::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : CategoryTableMap::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)]; $this->version = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : CategoryTableMap::translateFieldName('VersionCreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : CategoryTableMap::translateFieldName('VersionCreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } $this->version_created_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 9 + $startcol : CategoryTableMap::translateFieldName('VersionCreatedBy', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : CategoryTableMap::translateFieldName('VersionCreatedBy', TableMap::TYPE_PHPNAME, $indexType)]; $this->version_created_by = (null !== $col) ? (string) $col : null; $this->resetModified(); @@ -1013,7 +972,7 @@ abstract class Category implements ActiveRecordInterface $this->ensureConsistency(); } - return $startcol + 10; // 10 = CategoryTableMap::NUM_HYDRATE_COLUMNS. + return $startcol + 9; // 9 = CategoryTableMap::NUM_HYDRATE_COLUMNS. } catch (Exception $e) { throw new PropelException("Error populating \Thelia\Model\Category object", 0, $e); @@ -1506,9 +1465,6 @@ abstract class Category implements ActiveRecordInterface if ($this->isColumnModified(CategoryTableMap::PARENT)) { $modifiedColumns[':p' . $index++] = 'PARENT'; } - if ($this->isColumnModified(CategoryTableMap::LINK)) { - $modifiedColumns[':p' . $index++] = 'LINK'; - } if ($this->isColumnModified(CategoryTableMap::VISIBLE)) { $modifiedColumns[':p' . $index++] = 'VISIBLE'; } @@ -1547,9 +1503,6 @@ abstract class Category implements ActiveRecordInterface case 'PARENT': $stmt->bindValue($identifier, $this->parent, PDO::PARAM_INT); break; - case 'LINK': - $stmt->bindValue($identifier, $this->link, PDO::PARAM_STR); - break; case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; @@ -1640,27 +1593,24 @@ abstract class Category implements ActiveRecordInterface return $this->getParent(); break; case 2: - return $this->getLink(); - break; - case 3: return $this->getVisible(); break; - case 4: + case 3: return $this->getPosition(); break; - case 5: + case 4: return $this->getCreatedAt(); break; - case 6: + case 5: return $this->getUpdatedAt(); break; - case 7: + case 6: return $this->getVersion(); break; - case 8: + case 7: return $this->getVersionCreatedAt(); break; - case 9: + case 8: return $this->getVersionCreatedBy(); break; default: @@ -1694,14 +1644,13 @@ abstract class Category implements ActiveRecordInterface $result = array( $keys[0] => $this->getId(), $keys[1] => $this->getParent(), - $keys[2] => $this->getLink(), - $keys[3] => $this->getVisible(), - $keys[4] => $this->getPosition(), - $keys[5] => $this->getCreatedAt(), - $keys[6] => $this->getUpdatedAt(), - $keys[7] => $this->getVersion(), - $keys[8] => $this->getVersionCreatedAt(), - $keys[9] => $this->getVersionCreatedBy(), + $keys[2] => $this->getVisible(), + $keys[3] => $this->getPosition(), + $keys[4] => $this->getCreatedAt(), + $keys[5] => $this->getUpdatedAt(), + $keys[6] => $this->getVersion(), + $keys[7] => $this->getVersionCreatedAt(), + $keys[8] => $this->getVersionCreatedBy(), ); $virtualColumns = $this->virtualColumns; foreach($virtualColumns as $key => $virtualColumn) @@ -1778,27 +1727,24 @@ abstract class Category implements ActiveRecordInterface $this->setParent($value); break; case 2: - $this->setLink($value); - break; - case 3: $this->setVisible($value); break; - case 4: + case 3: $this->setPosition($value); break; - case 5: + case 4: $this->setCreatedAt($value); break; - case 6: + case 5: $this->setUpdatedAt($value); break; - case 7: + case 6: $this->setVersion($value); break; - case 8: + case 7: $this->setVersionCreatedAt($value); break; - case 9: + case 8: $this->setVersionCreatedBy($value); break; } // switch() @@ -1827,14 +1773,13 @@ abstract class Category implements ActiveRecordInterface if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); if (array_key_exists($keys[1], $arr)) $this->setParent($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setLink($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setVisible($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setPosition($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setCreatedAt($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setUpdatedAt($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setVersion($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setVersionCreatedAt($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setVersionCreatedBy($arr[$keys[9]]); + if (array_key_exists($keys[2], $arr)) $this->setVisible($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setPosition($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setCreatedAt($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setUpdatedAt($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setVersion($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setVersionCreatedAt($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setVersionCreatedBy($arr[$keys[8]]); } /** @@ -1848,7 +1793,6 @@ abstract class Category implements ActiveRecordInterface if ($this->isColumnModified(CategoryTableMap::ID)) $criteria->add(CategoryTableMap::ID, $this->id); if ($this->isColumnModified(CategoryTableMap::PARENT)) $criteria->add(CategoryTableMap::PARENT, $this->parent); - if ($this->isColumnModified(CategoryTableMap::LINK)) $criteria->add(CategoryTableMap::LINK, $this->link); if ($this->isColumnModified(CategoryTableMap::VISIBLE)) $criteria->add(CategoryTableMap::VISIBLE, $this->visible); if ($this->isColumnModified(CategoryTableMap::POSITION)) $criteria->add(CategoryTableMap::POSITION, $this->position); if ($this->isColumnModified(CategoryTableMap::CREATED_AT)) $criteria->add(CategoryTableMap::CREATED_AT, $this->created_at); @@ -1920,7 +1864,6 @@ abstract class Category implements ActiveRecordInterface public function copyInto($copyObj, $deepCopy = false, $makeNew = true) { $copyObj->setParent($this->getParent()); - $copyObj->setLink($this->getLink()); $copyObj->setVisible($this->getVisible()); $copyObj->setPosition($this->getPosition()); $copyObj->setCreatedAt($this->getCreatedAt()); @@ -4939,7 +4882,6 @@ abstract class Category implements ActiveRecordInterface { $this->id = null; $this->parent = null; - $this->link = null; $this->visible = null; $this->position = null; $this->created_at = null; @@ -5352,7 +5294,6 @@ abstract class Category implements ActiveRecordInterface $version = new ChildCategoryVersion(); $version->setId($this->getId()); $version->setParent($this->getParent()); - $version->setLink($this->getLink()); $version->setVisible($this->getVisible()); $version->setPosition($this->getPosition()); $version->setCreatedAt($this->getCreatedAt()); @@ -5399,7 +5340,6 @@ abstract class Category implements ActiveRecordInterface $loadedObjects['ChildCategory'][$version->getId()][$version->getVersion()] = $this; $this->setId($version->getId()); $this->setParent($version->getParent()); - $this->setLink($version->getLink()); $this->setVisible($version->getVisible()); $this->setPosition($version->getPosition()); $this->setCreatedAt($version->getCreatedAt()); diff --git a/core/lib/Thelia/Model/Base/CategoryQuery.php b/core/lib/Thelia/Model/Base/CategoryQuery.php index c7bcc32e1..0dc6ea4ef 100755 --- a/core/lib/Thelia/Model/Base/CategoryQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryQuery.php @@ -24,7 +24,6 @@ use Thelia\Model\Map\CategoryTableMap; * * @method ChildCategoryQuery orderById($order = Criteria::ASC) Order by the id column * @method ChildCategoryQuery orderByParent($order = Criteria::ASC) Order by the parent column - * @method ChildCategoryQuery orderByLink($order = Criteria::ASC) Order by the link column * @method ChildCategoryQuery orderByVisible($order = Criteria::ASC) Order by the visible column * @method ChildCategoryQuery orderByPosition($order = Criteria::ASC) Order by the position column * @method ChildCategoryQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column @@ -35,7 +34,6 @@ use Thelia\Model\Map\CategoryTableMap; * * @method ChildCategoryQuery groupById() Group by the id column * @method ChildCategoryQuery groupByParent() Group by the parent column - * @method ChildCategoryQuery groupByLink() Group by the link column * @method ChildCategoryQuery groupByVisible() Group by the visible column * @method ChildCategoryQuery groupByPosition() Group by the position column * @method ChildCategoryQuery groupByCreatedAt() Group by the created_at column @@ -89,7 +87,6 @@ use Thelia\Model\Map\CategoryTableMap; * * @method ChildCategory findOneById(int $id) Return the first ChildCategory filtered by the id column * @method ChildCategory findOneByParent(int $parent) Return the first ChildCategory filtered by the parent column - * @method ChildCategory findOneByLink(string $link) Return the first ChildCategory filtered by the link column * @method ChildCategory findOneByVisible(int $visible) Return the first ChildCategory filtered by the visible column * @method ChildCategory findOneByPosition(int $position) Return the first ChildCategory filtered by the position column * @method ChildCategory findOneByCreatedAt(string $created_at) Return the first ChildCategory filtered by the created_at column @@ -100,7 +97,6 @@ use Thelia\Model\Map\CategoryTableMap; * * @method array findById(int $id) Return ChildCategory objects filtered by the id column * @method array findByParent(int $parent) Return ChildCategory objects filtered by the parent column - * @method array findByLink(string $link) Return ChildCategory objects filtered by the link column * @method array findByVisible(int $visible) Return ChildCategory objects filtered by the visible column * @method array findByPosition(int $position) Return ChildCategory objects filtered by the position column * @method array findByCreatedAt(string $created_at) Return ChildCategory objects filtered by the created_at column @@ -203,7 +199,7 @@ abstract class CategoryQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT ID, PARENT, LINK, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM category WHERE ID = :p0'; + $sql = 'SELECT ID, PARENT, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM category WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); @@ -374,35 +370,6 @@ abstract class CategoryQuery extends ModelCriteria return $this->addUsingAlias(CategoryTableMap::PARENT, $parent, $comparison); } - /** - * Filter the query on the link column - * - * Example usage: - * - * $query->filterByLink('fooValue'); // WHERE link = 'fooValue' - * $query->filterByLink('%fooValue%'); // WHERE link LIKE '%fooValue%' - * - * - * @param string $link The value to use as filter. - * Accepts wildcards (* and % trigger a LIKE) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildCategoryQuery The current query, for fluid interface - */ - public function filterByLink($link = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($link)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $link)) { - $link = str_replace('*', '%', $link); - $comparison = Criteria::LIKE; - } - } - - return $this->addUsingAlias(CategoryTableMap::LINK, $link, $comparison); - } - /** * Filter the query on the visible column * diff --git a/core/lib/Thelia/Model/Base/CategoryVersion.php b/core/lib/Thelia/Model/Base/CategoryVersion.php index 807e26b79..d8dfe76e0 100755 --- a/core/lib/Thelia/Model/Base/CategoryVersion.php +++ b/core/lib/Thelia/Model/Base/CategoryVersion.php @@ -67,12 +67,6 @@ abstract class CategoryVersion implements ActiveRecordInterface */ protected $parent; - /** - * The value for the link field. - * @var string - */ - protected $link; - /** * The value for the visible field. * @var int @@ -418,17 +412,6 @@ abstract class CategoryVersion implements ActiveRecordInterface return $this->parent; } - /** - * Get the [link] column value. - * - * @return string - */ - public function getLink() - { - - return $this->link; - } - /** * Get the [visible] column value. * @@ -579,27 +562,6 @@ abstract class CategoryVersion implements ActiveRecordInterface return $this; } // setParent() - /** - * Set the value of [link] column. - * - * @param string $v new value - * @return \Thelia\Model\CategoryVersion The current object (for fluent API support) - */ - public function setLink($v) - { - if ($v !== null) { - $v = (string) $v; - } - - if ($this->link !== $v) { - $this->link = $v; - $this->modifiedColumns[] = CategoryVersionTableMap::LINK; - } - - - return $this; - } // setLink() - /** * Set the value of [visible] column. * @@ -794,37 +756,34 @@ abstract class CategoryVersion implements ActiveRecordInterface $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : CategoryVersionTableMap::translateFieldName('Parent', TableMap::TYPE_PHPNAME, $indexType)]; $this->parent = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CategoryVersionTableMap::translateFieldName('Link', TableMap::TYPE_PHPNAME, $indexType)]; - $this->link = (null !== $col) ? (string) $col : null; - - $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CategoryVersionTableMap::translateFieldName('Visible', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CategoryVersionTableMap::translateFieldName('Visible', TableMap::TYPE_PHPNAME, $indexType)]; $this->visible = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CategoryVersionTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CategoryVersionTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)]; $this->position = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CategoryVersionTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CategoryVersionTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } $this->created_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : CategoryVersionTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CategoryVersionTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } $this->updated_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : CategoryVersionTableMap::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : CategoryVersionTableMap::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)]; $this->version = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : CategoryVersionTableMap::translateFieldName('VersionCreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : CategoryVersionTableMap::translateFieldName('VersionCreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } $this->version_created_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 9 + $startcol : CategoryVersionTableMap::translateFieldName('VersionCreatedBy', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : CategoryVersionTableMap::translateFieldName('VersionCreatedBy', TableMap::TYPE_PHPNAME, $indexType)]; $this->version_created_by = (null !== $col) ? (string) $col : null; $this->resetModified(); @@ -834,7 +793,7 @@ abstract class CategoryVersion implements ActiveRecordInterface $this->ensureConsistency(); } - return $startcol + 10; // 10 = CategoryVersionTableMap::NUM_HYDRATE_COLUMNS. + return $startcol + 9; // 9 = CategoryVersionTableMap::NUM_HYDRATE_COLUMNS. } catch (Exception $e) { throw new PropelException("Error populating \Thelia\Model\CategoryVersion object", 0, $e); @@ -1061,9 +1020,6 @@ abstract class CategoryVersion implements ActiveRecordInterface if ($this->isColumnModified(CategoryVersionTableMap::PARENT)) { $modifiedColumns[':p' . $index++] = 'PARENT'; } - if ($this->isColumnModified(CategoryVersionTableMap::LINK)) { - $modifiedColumns[':p' . $index++] = 'LINK'; - } if ($this->isColumnModified(CategoryVersionTableMap::VISIBLE)) { $modifiedColumns[':p' . $index++] = 'VISIBLE'; } @@ -1102,9 +1058,6 @@ abstract class CategoryVersion implements ActiveRecordInterface case 'PARENT': $stmt->bindValue($identifier, $this->parent, PDO::PARAM_INT); break; - case 'LINK': - $stmt->bindValue($identifier, $this->link, PDO::PARAM_STR); - break; case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; @@ -1188,27 +1141,24 @@ abstract class CategoryVersion implements ActiveRecordInterface return $this->getParent(); break; case 2: - return $this->getLink(); - break; - case 3: return $this->getVisible(); break; - case 4: + case 3: return $this->getPosition(); break; - case 5: + case 4: return $this->getCreatedAt(); break; - case 6: + case 5: return $this->getUpdatedAt(); break; - case 7: + case 6: return $this->getVersion(); break; - case 8: + case 7: return $this->getVersionCreatedAt(); break; - case 9: + case 8: return $this->getVersionCreatedBy(); break; default: @@ -1242,14 +1192,13 @@ abstract class CategoryVersion implements ActiveRecordInterface $result = array( $keys[0] => $this->getId(), $keys[1] => $this->getParent(), - $keys[2] => $this->getLink(), - $keys[3] => $this->getVisible(), - $keys[4] => $this->getPosition(), - $keys[5] => $this->getCreatedAt(), - $keys[6] => $this->getUpdatedAt(), - $keys[7] => $this->getVersion(), - $keys[8] => $this->getVersionCreatedAt(), - $keys[9] => $this->getVersionCreatedBy(), + $keys[2] => $this->getVisible(), + $keys[3] => $this->getPosition(), + $keys[4] => $this->getCreatedAt(), + $keys[5] => $this->getUpdatedAt(), + $keys[6] => $this->getVersion(), + $keys[7] => $this->getVersionCreatedAt(), + $keys[8] => $this->getVersionCreatedBy(), ); $virtualColumns = $this->virtualColumns; foreach($virtualColumns as $key => $virtualColumn) @@ -1302,27 +1251,24 @@ abstract class CategoryVersion implements ActiveRecordInterface $this->setParent($value); break; case 2: - $this->setLink($value); - break; - case 3: $this->setVisible($value); break; - case 4: + case 3: $this->setPosition($value); break; - case 5: + case 4: $this->setCreatedAt($value); break; - case 6: + case 5: $this->setUpdatedAt($value); break; - case 7: + case 6: $this->setVersion($value); break; - case 8: + case 7: $this->setVersionCreatedAt($value); break; - case 9: + case 8: $this->setVersionCreatedBy($value); break; } // switch() @@ -1351,14 +1297,13 @@ abstract class CategoryVersion implements ActiveRecordInterface if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); if (array_key_exists($keys[1], $arr)) $this->setParent($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setLink($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setVisible($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setPosition($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setCreatedAt($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setUpdatedAt($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setVersion($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setVersionCreatedAt($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setVersionCreatedBy($arr[$keys[9]]); + if (array_key_exists($keys[2], $arr)) $this->setVisible($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setPosition($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setCreatedAt($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setUpdatedAt($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setVersion($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setVersionCreatedAt($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setVersionCreatedBy($arr[$keys[8]]); } /** @@ -1372,7 +1317,6 @@ abstract class CategoryVersion implements ActiveRecordInterface if ($this->isColumnModified(CategoryVersionTableMap::ID)) $criteria->add(CategoryVersionTableMap::ID, $this->id); if ($this->isColumnModified(CategoryVersionTableMap::PARENT)) $criteria->add(CategoryVersionTableMap::PARENT, $this->parent); - if ($this->isColumnModified(CategoryVersionTableMap::LINK)) $criteria->add(CategoryVersionTableMap::LINK, $this->link); if ($this->isColumnModified(CategoryVersionTableMap::VISIBLE)) $criteria->add(CategoryVersionTableMap::VISIBLE, $this->visible); if ($this->isColumnModified(CategoryVersionTableMap::POSITION)) $criteria->add(CategoryVersionTableMap::POSITION, $this->position); if ($this->isColumnModified(CategoryVersionTableMap::CREATED_AT)) $criteria->add(CategoryVersionTableMap::CREATED_AT, $this->created_at); @@ -1452,7 +1396,6 @@ abstract class CategoryVersion implements ActiveRecordInterface { $copyObj->setId($this->getId()); $copyObj->setParent($this->getParent()); - $copyObj->setLink($this->getLink()); $copyObj->setVisible($this->getVisible()); $copyObj->setPosition($this->getPosition()); $copyObj->setCreatedAt($this->getCreatedAt()); @@ -1545,7 +1488,6 @@ abstract class CategoryVersion implements ActiveRecordInterface { $this->id = null; $this->parent = null; - $this->link = null; $this->visible = null; $this->position = null; $this->created_at = null; diff --git a/core/lib/Thelia/Model/Base/CategoryVersionQuery.php b/core/lib/Thelia/Model/Base/CategoryVersionQuery.php index 3eac5e8cd..88c4f460a 100755 --- a/core/lib/Thelia/Model/Base/CategoryVersionQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryVersionQuery.php @@ -23,7 +23,6 @@ use Thelia\Model\Map\CategoryVersionTableMap; * * @method ChildCategoryVersionQuery orderById($order = Criteria::ASC) Order by the id column * @method ChildCategoryVersionQuery orderByParent($order = Criteria::ASC) Order by the parent column - * @method ChildCategoryVersionQuery orderByLink($order = Criteria::ASC) Order by the link column * @method ChildCategoryVersionQuery orderByVisible($order = Criteria::ASC) Order by the visible column * @method ChildCategoryVersionQuery orderByPosition($order = Criteria::ASC) Order by the position column * @method ChildCategoryVersionQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column @@ -34,7 +33,6 @@ use Thelia\Model\Map\CategoryVersionTableMap; * * @method ChildCategoryVersionQuery groupById() Group by the id column * @method ChildCategoryVersionQuery groupByParent() Group by the parent column - * @method ChildCategoryVersionQuery groupByLink() Group by the link column * @method ChildCategoryVersionQuery groupByVisible() Group by the visible column * @method ChildCategoryVersionQuery groupByPosition() Group by the position column * @method ChildCategoryVersionQuery groupByCreatedAt() Group by the created_at column @@ -56,7 +54,6 @@ use Thelia\Model\Map\CategoryVersionTableMap; * * @method ChildCategoryVersion findOneById(int $id) Return the first ChildCategoryVersion filtered by the id column * @method ChildCategoryVersion findOneByParent(int $parent) Return the first ChildCategoryVersion filtered by the parent column - * @method ChildCategoryVersion findOneByLink(string $link) Return the first ChildCategoryVersion filtered by the link column * @method ChildCategoryVersion findOneByVisible(int $visible) Return the first ChildCategoryVersion filtered by the visible column * @method ChildCategoryVersion findOneByPosition(int $position) Return the first ChildCategoryVersion filtered by the position column * @method ChildCategoryVersion findOneByCreatedAt(string $created_at) Return the first ChildCategoryVersion filtered by the created_at column @@ -67,7 +64,6 @@ use Thelia\Model\Map\CategoryVersionTableMap; * * @method array findById(int $id) Return ChildCategoryVersion objects filtered by the id column * @method array findByParent(int $parent) Return ChildCategoryVersion objects filtered by the parent column - * @method array findByLink(string $link) Return ChildCategoryVersion objects filtered by the link column * @method array findByVisible(int $visible) Return ChildCategoryVersion objects filtered by the visible column * @method array findByPosition(int $position) Return ChildCategoryVersion objects filtered by the position column * @method array findByCreatedAt(string $created_at) Return ChildCategoryVersion objects filtered by the created_at column @@ -163,7 +159,7 @@ abstract class CategoryVersionQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT ID, PARENT, LINK, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM category_version WHERE ID = :p0 AND VERSION = :p1'; + $sql = 'SELECT ID, PARENT, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM category_version WHERE ID = :p0 AND VERSION = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); @@ -348,35 +344,6 @@ abstract class CategoryVersionQuery extends ModelCriteria return $this->addUsingAlias(CategoryVersionTableMap::PARENT, $parent, $comparison); } - /** - * Filter the query on the link column - * - * Example usage: - * - * $query->filterByLink('fooValue'); // WHERE link = 'fooValue' - * $query->filterByLink('%fooValue%'); // WHERE link LIKE '%fooValue%' - * - * - * @param string $link The value to use as filter. - * Accepts wildcards (* and % trigger a LIKE) - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildCategoryVersionQuery The current query, for fluid interface - */ - public function filterByLink($link = null, $comparison = null) - { - if (null === $comparison) { - if (is_array($link)) { - $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $link)) { - $link = str_replace('*', '%', $link); - $comparison = Criteria::LIKE; - } - } - - return $this->addUsingAlias(CategoryVersionTableMap::LINK, $link, $comparison); - } - /** * Filter the query on the visible column * diff --git a/core/lib/Thelia/Model/Map/CategoryTableMap.php b/core/lib/Thelia/Model/Map/CategoryTableMap.php index a301a5efe..1bade771c 100755 --- a/core/lib/Thelia/Model/Map/CategoryTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryTableMap.php @@ -57,7 +57,7 @@ class CategoryTableMap extends TableMap /** * The total number of columns */ - const NUM_COLUMNS = 10; + const NUM_COLUMNS = 9; /** * The number of lazy-loaded columns @@ -67,7 +67,7 @@ class CategoryTableMap extends TableMap /** * The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ - const NUM_HYDRATE_COLUMNS = 10; + const NUM_HYDRATE_COLUMNS = 9; /** * the column name for the ID field @@ -79,11 +79,6 @@ class CategoryTableMap extends TableMap */ const PARENT = 'category.PARENT'; - /** - * the column name for the LINK field - */ - const LINK = 'category.LINK'; - /** * the column name for the VISIBLE field */ @@ -140,12 +135,12 @@ class CategoryTableMap extends TableMap * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' */ protected static $fieldNames = array ( - self::TYPE_PHPNAME => array('Id', 'Parent', 'Link', 'Visible', 'Position', 'CreatedAt', 'UpdatedAt', 'Version', 'VersionCreatedAt', 'VersionCreatedBy', ), - self::TYPE_STUDLYPHPNAME => array('id', 'parent', 'link', 'visible', 'position', 'createdAt', 'updatedAt', 'version', 'versionCreatedAt', 'versionCreatedBy', ), - self::TYPE_COLNAME => array(CategoryTableMap::ID, CategoryTableMap::PARENT, CategoryTableMap::LINK, CategoryTableMap::VISIBLE, CategoryTableMap::POSITION, CategoryTableMap::CREATED_AT, CategoryTableMap::UPDATED_AT, CategoryTableMap::VERSION, CategoryTableMap::VERSION_CREATED_AT, CategoryTableMap::VERSION_CREATED_BY, ), - self::TYPE_RAW_COLNAME => array('ID', 'PARENT', 'LINK', 'VISIBLE', 'POSITION', 'CREATED_AT', 'UPDATED_AT', 'VERSION', 'VERSION_CREATED_AT', 'VERSION_CREATED_BY', ), - self::TYPE_FIELDNAME => array('id', 'parent', 'link', 'visible', 'position', 'created_at', 'updated_at', 'version', 'version_created_at', 'version_created_by', ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + self::TYPE_PHPNAME => array('Id', 'Parent', 'Visible', 'Position', 'CreatedAt', 'UpdatedAt', 'Version', 'VersionCreatedAt', 'VersionCreatedBy', ), + self::TYPE_STUDLYPHPNAME => array('id', 'parent', 'visible', 'position', 'createdAt', 'updatedAt', 'version', 'versionCreatedAt', 'versionCreatedBy', ), + self::TYPE_COLNAME => array(CategoryTableMap::ID, CategoryTableMap::PARENT, CategoryTableMap::VISIBLE, CategoryTableMap::POSITION, CategoryTableMap::CREATED_AT, CategoryTableMap::UPDATED_AT, CategoryTableMap::VERSION, CategoryTableMap::VERSION_CREATED_AT, CategoryTableMap::VERSION_CREATED_BY, ), + self::TYPE_RAW_COLNAME => array('ID', 'PARENT', 'VISIBLE', 'POSITION', 'CREATED_AT', 'UPDATED_AT', 'VERSION', 'VERSION_CREATED_AT', 'VERSION_CREATED_BY', ), + self::TYPE_FIELDNAME => array('id', 'parent', 'visible', 'position', 'created_at', 'updated_at', 'version', 'version_created_at', 'version_created_by', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, ) ); /** @@ -155,12 +150,12 @@ class CategoryTableMap extends TableMap * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 */ protected static $fieldKeys = array ( - self::TYPE_PHPNAME => array('Id' => 0, 'Parent' => 1, 'Link' => 2, 'Visible' => 3, 'Position' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, 'Version' => 7, 'VersionCreatedAt' => 8, 'VersionCreatedBy' => 9, ), - self::TYPE_STUDLYPHPNAME => array('id' => 0, 'parent' => 1, 'link' => 2, 'visible' => 3, 'position' => 4, 'createdAt' => 5, 'updatedAt' => 6, 'version' => 7, 'versionCreatedAt' => 8, 'versionCreatedBy' => 9, ), - self::TYPE_COLNAME => array(CategoryTableMap::ID => 0, CategoryTableMap::PARENT => 1, CategoryTableMap::LINK => 2, CategoryTableMap::VISIBLE => 3, CategoryTableMap::POSITION => 4, CategoryTableMap::CREATED_AT => 5, CategoryTableMap::UPDATED_AT => 6, CategoryTableMap::VERSION => 7, CategoryTableMap::VERSION_CREATED_AT => 8, CategoryTableMap::VERSION_CREATED_BY => 9, ), - self::TYPE_RAW_COLNAME => array('ID' => 0, 'PARENT' => 1, 'LINK' => 2, 'VISIBLE' => 3, 'POSITION' => 4, 'CREATED_AT' => 5, 'UPDATED_AT' => 6, 'VERSION' => 7, 'VERSION_CREATED_AT' => 8, 'VERSION_CREATED_BY' => 9, ), - self::TYPE_FIELDNAME => array('id' => 0, 'parent' => 1, 'link' => 2, 'visible' => 3, 'position' => 4, 'created_at' => 5, 'updated_at' => 6, 'version' => 7, 'version_created_at' => 8, 'version_created_by' => 9, ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + self::TYPE_PHPNAME => array('Id' => 0, 'Parent' => 1, 'Visible' => 2, 'Position' => 3, 'CreatedAt' => 4, 'UpdatedAt' => 5, 'Version' => 6, 'VersionCreatedAt' => 7, 'VersionCreatedBy' => 8, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'parent' => 1, 'visible' => 2, 'position' => 3, 'createdAt' => 4, 'updatedAt' => 5, 'version' => 6, 'versionCreatedAt' => 7, 'versionCreatedBy' => 8, ), + self::TYPE_COLNAME => array(CategoryTableMap::ID => 0, CategoryTableMap::PARENT => 1, CategoryTableMap::VISIBLE => 2, CategoryTableMap::POSITION => 3, CategoryTableMap::CREATED_AT => 4, CategoryTableMap::UPDATED_AT => 5, CategoryTableMap::VERSION => 6, CategoryTableMap::VERSION_CREATED_AT => 7, CategoryTableMap::VERSION_CREATED_BY => 8, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'PARENT' => 1, 'VISIBLE' => 2, 'POSITION' => 3, 'CREATED_AT' => 4, 'UPDATED_AT' => 5, 'VERSION' => 6, 'VERSION_CREATED_AT' => 7, 'VERSION_CREATED_BY' => 8, ), + self::TYPE_FIELDNAME => array('id' => 0, 'parent' => 1, 'visible' => 2, 'position' => 3, 'created_at' => 4, 'updated_at' => 5, 'version' => 6, 'version_created_at' => 7, 'version_created_by' => 8, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, ) ); /** @@ -181,7 +176,6 @@ class CategoryTableMap extends TableMap // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); $this->addColumn('PARENT', 'Parent', 'INTEGER', false, null, null); - $this->addColumn('LINK', 'Link', 'VARCHAR', false, 255, null); $this->addColumn('VISIBLE', 'Visible', 'TINYINT', true, null, null); $this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null); $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null); @@ -382,7 +376,6 @@ class CategoryTableMap extends TableMap if (null === $alias) { $criteria->addSelectColumn(CategoryTableMap::ID); $criteria->addSelectColumn(CategoryTableMap::PARENT); - $criteria->addSelectColumn(CategoryTableMap::LINK); $criteria->addSelectColumn(CategoryTableMap::VISIBLE); $criteria->addSelectColumn(CategoryTableMap::POSITION); $criteria->addSelectColumn(CategoryTableMap::CREATED_AT); @@ -393,7 +386,6 @@ class CategoryTableMap extends TableMap } else { $criteria->addSelectColumn($alias . '.ID'); $criteria->addSelectColumn($alias . '.PARENT'); - $criteria->addSelectColumn($alias . '.LINK'); $criteria->addSelectColumn($alias . '.VISIBLE'); $criteria->addSelectColumn($alias . '.POSITION'); $criteria->addSelectColumn($alias . '.CREATED_AT'); diff --git a/core/lib/Thelia/Model/Map/CategoryVersionTableMap.php b/core/lib/Thelia/Model/Map/CategoryVersionTableMap.php index afaa44e5a..a20fa8460 100755 --- a/core/lib/Thelia/Model/Map/CategoryVersionTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryVersionTableMap.php @@ -57,7 +57,7 @@ class CategoryVersionTableMap extends TableMap /** * The total number of columns */ - const NUM_COLUMNS = 10; + const NUM_COLUMNS = 9; /** * The number of lazy-loaded columns @@ -67,7 +67,7 @@ class CategoryVersionTableMap extends TableMap /** * The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ - const NUM_HYDRATE_COLUMNS = 10; + const NUM_HYDRATE_COLUMNS = 9; /** * the column name for the ID field @@ -79,11 +79,6 @@ class CategoryVersionTableMap extends TableMap */ const PARENT = 'category_version.PARENT'; - /** - * the column name for the LINK field - */ - const LINK = 'category_version.LINK'; - /** * the column name for the VISIBLE field */ @@ -131,12 +126,12 @@ class CategoryVersionTableMap extends TableMap * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' */ protected static $fieldNames = array ( - self::TYPE_PHPNAME => array('Id', 'Parent', 'Link', 'Visible', 'Position', 'CreatedAt', 'UpdatedAt', 'Version', 'VersionCreatedAt', 'VersionCreatedBy', ), - self::TYPE_STUDLYPHPNAME => array('id', 'parent', 'link', 'visible', 'position', 'createdAt', 'updatedAt', 'version', 'versionCreatedAt', 'versionCreatedBy', ), - self::TYPE_COLNAME => array(CategoryVersionTableMap::ID, CategoryVersionTableMap::PARENT, CategoryVersionTableMap::LINK, CategoryVersionTableMap::VISIBLE, CategoryVersionTableMap::POSITION, CategoryVersionTableMap::CREATED_AT, CategoryVersionTableMap::UPDATED_AT, CategoryVersionTableMap::VERSION, CategoryVersionTableMap::VERSION_CREATED_AT, CategoryVersionTableMap::VERSION_CREATED_BY, ), - self::TYPE_RAW_COLNAME => array('ID', 'PARENT', 'LINK', 'VISIBLE', 'POSITION', 'CREATED_AT', 'UPDATED_AT', 'VERSION', 'VERSION_CREATED_AT', 'VERSION_CREATED_BY', ), - self::TYPE_FIELDNAME => array('id', 'parent', 'link', 'visible', 'position', 'created_at', 'updated_at', 'version', 'version_created_at', 'version_created_by', ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + self::TYPE_PHPNAME => array('Id', 'Parent', 'Visible', 'Position', 'CreatedAt', 'UpdatedAt', 'Version', 'VersionCreatedAt', 'VersionCreatedBy', ), + self::TYPE_STUDLYPHPNAME => array('id', 'parent', 'visible', 'position', 'createdAt', 'updatedAt', 'version', 'versionCreatedAt', 'versionCreatedBy', ), + self::TYPE_COLNAME => array(CategoryVersionTableMap::ID, CategoryVersionTableMap::PARENT, CategoryVersionTableMap::VISIBLE, CategoryVersionTableMap::POSITION, CategoryVersionTableMap::CREATED_AT, CategoryVersionTableMap::UPDATED_AT, CategoryVersionTableMap::VERSION, CategoryVersionTableMap::VERSION_CREATED_AT, CategoryVersionTableMap::VERSION_CREATED_BY, ), + self::TYPE_RAW_COLNAME => array('ID', 'PARENT', 'VISIBLE', 'POSITION', 'CREATED_AT', 'UPDATED_AT', 'VERSION', 'VERSION_CREATED_AT', 'VERSION_CREATED_BY', ), + self::TYPE_FIELDNAME => array('id', 'parent', 'visible', 'position', 'created_at', 'updated_at', 'version', 'version_created_at', 'version_created_by', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, ) ); /** @@ -146,12 +141,12 @@ class CategoryVersionTableMap extends TableMap * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 */ protected static $fieldKeys = array ( - self::TYPE_PHPNAME => array('Id' => 0, 'Parent' => 1, 'Link' => 2, 'Visible' => 3, 'Position' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, 'Version' => 7, 'VersionCreatedAt' => 8, 'VersionCreatedBy' => 9, ), - self::TYPE_STUDLYPHPNAME => array('id' => 0, 'parent' => 1, 'link' => 2, 'visible' => 3, 'position' => 4, 'createdAt' => 5, 'updatedAt' => 6, 'version' => 7, 'versionCreatedAt' => 8, 'versionCreatedBy' => 9, ), - self::TYPE_COLNAME => array(CategoryVersionTableMap::ID => 0, CategoryVersionTableMap::PARENT => 1, CategoryVersionTableMap::LINK => 2, CategoryVersionTableMap::VISIBLE => 3, CategoryVersionTableMap::POSITION => 4, CategoryVersionTableMap::CREATED_AT => 5, CategoryVersionTableMap::UPDATED_AT => 6, CategoryVersionTableMap::VERSION => 7, CategoryVersionTableMap::VERSION_CREATED_AT => 8, CategoryVersionTableMap::VERSION_CREATED_BY => 9, ), - self::TYPE_RAW_COLNAME => array('ID' => 0, 'PARENT' => 1, 'LINK' => 2, 'VISIBLE' => 3, 'POSITION' => 4, 'CREATED_AT' => 5, 'UPDATED_AT' => 6, 'VERSION' => 7, 'VERSION_CREATED_AT' => 8, 'VERSION_CREATED_BY' => 9, ), - self::TYPE_FIELDNAME => array('id' => 0, 'parent' => 1, 'link' => 2, 'visible' => 3, 'position' => 4, 'created_at' => 5, 'updated_at' => 6, 'version' => 7, 'version_created_at' => 8, 'version_created_by' => 9, ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + self::TYPE_PHPNAME => array('Id' => 0, 'Parent' => 1, 'Visible' => 2, 'Position' => 3, 'CreatedAt' => 4, 'UpdatedAt' => 5, 'Version' => 6, 'VersionCreatedAt' => 7, 'VersionCreatedBy' => 8, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'parent' => 1, 'visible' => 2, 'position' => 3, 'createdAt' => 4, 'updatedAt' => 5, 'version' => 6, 'versionCreatedAt' => 7, 'versionCreatedBy' => 8, ), + self::TYPE_COLNAME => array(CategoryVersionTableMap::ID => 0, CategoryVersionTableMap::PARENT => 1, CategoryVersionTableMap::VISIBLE => 2, CategoryVersionTableMap::POSITION => 3, CategoryVersionTableMap::CREATED_AT => 4, CategoryVersionTableMap::UPDATED_AT => 5, CategoryVersionTableMap::VERSION => 6, CategoryVersionTableMap::VERSION_CREATED_AT => 7, CategoryVersionTableMap::VERSION_CREATED_BY => 8, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'PARENT' => 1, 'VISIBLE' => 2, 'POSITION' => 3, 'CREATED_AT' => 4, 'UPDATED_AT' => 5, 'VERSION' => 6, 'VERSION_CREATED_AT' => 7, 'VERSION_CREATED_BY' => 8, ), + self::TYPE_FIELDNAME => array('id' => 0, 'parent' => 1, 'visible' => 2, 'position' => 3, 'created_at' => 4, 'updated_at' => 5, 'version' => 6, 'version_created_at' => 7, 'version_created_by' => 8, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, ) ); /** @@ -172,7 +167,6 @@ class CategoryVersionTableMap extends TableMap // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'category', 'ID', true, null, null); $this->addColumn('PARENT', 'Parent', 'INTEGER', false, null, null); - $this->addColumn('LINK', 'Link', 'VARCHAR', false, 255, null); $this->addColumn('VISIBLE', 'Visible', 'TINYINT', true, null, null); $this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null); $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null); @@ -257,11 +251,11 @@ class CategoryVersionTableMap extends TableMap public static function getPrimaryKeyHashFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) { // If the PK cannot be derived from the row, return NULL. - if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)] === null) { + if ($row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)] === null && $row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)] === null) { return null; } - return serialize(array((string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)], (string) $row[TableMap::TYPE_NUM == $indexType ? 7 + $offset : static::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)])); + return serialize(array((string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)], (string) $row[TableMap::TYPE_NUM == $indexType ? 6 + $offset : static::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)])); } /** @@ -379,7 +373,6 @@ class CategoryVersionTableMap extends TableMap if (null === $alias) { $criteria->addSelectColumn(CategoryVersionTableMap::ID); $criteria->addSelectColumn(CategoryVersionTableMap::PARENT); - $criteria->addSelectColumn(CategoryVersionTableMap::LINK); $criteria->addSelectColumn(CategoryVersionTableMap::VISIBLE); $criteria->addSelectColumn(CategoryVersionTableMap::POSITION); $criteria->addSelectColumn(CategoryVersionTableMap::CREATED_AT); @@ -390,7 +383,6 @@ class CategoryVersionTableMap extends TableMap } else { $criteria->addSelectColumn($alias . '.ID'); $criteria->addSelectColumn($alias . '.PARENT'); - $criteria->addSelectColumn($alias . '.LINK'); $criteria->addSelectColumn($alias . '.VISIBLE'); $criteria->addSelectColumn($alias . '.POSITION'); $criteria->addSelectColumn($alias . '.CREATED_AT'); diff --git a/install/thelia.sql b/install/thelia.sql index 97aa11a7e..97c2b2653 100755 --- a/install/thelia.sql +++ b/install/thelia.sql @@ -13,7 +13,6 @@ CREATE TABLE `category` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `parent` INTEGER, - `link` VARCHAR(255), `visible` TINYINT NOT NULL, `position` INTEGER NOT NULL, `created_at` DATETIME, @@ -1775,7 +1774,6 @@ CREATE TABLE `category_version` ( `id` INTEGER NOT NULL, `parent` INTEGER, - `link` VARCHAR(255), `visible` TINYINT NOT NULL, `position` INTEGER NOT NULL, `created_at` DATETIME, diff --git a/local/config/schema.xml b/local/config/schema.xml index 34974898f..75a1f735c 100755 --- a/local/config/schema.xml +++ b/local/config/schema.xml @@ -3,7 +3,6 @@ -