diff --git a/core/lib/Thelia/Action/BaseAction.php b/core/lib/Thelia/Action/BaseAction.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Action/Category.php b/core/lib/Thelia/Action/Category.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Action/Image.php b/core/lib/Thelia/Action/Image.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Cart/CartTrait.php b/core/lib/Thelia/Cart/CartTrait.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/BaseModuleGenerate.php b/core/lib/Thelia/Command/BaseModuleGenerate.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/ClearImageCache.php b/core/lib/Thelia/Command/ClearImageCache.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/ModuleGenerateCommand.php b/core/lib/Thelia/Command/ModuleGenerateCommand.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/ModuleGenerateModelCommand.php b/core/lib/Thelia/Command/ModuleGenerateModelCommand.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/ModuleGenerateSqlCommand.php b/core/lib/Thelia/Command/ModuleGenerateSqlCommand.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/Output/TheliaConsoleOutput.php b/core/lib/Thelia/Command/Output/TheliaConsoleOutput.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/Skeleton/Module/Class.php b/core/lib/Thelia/Command/Skeleton/Module/Class.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/Skeleton/Module/config.xml b/core/lib/Thelia/Command/Skeleton/Module/config.xml old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/Skeleton/Module/plugin.xml b/core/lib/Thelia/Command/Skeleton/Module/plugin.xml old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Command/Skeleton/Module/schema.xml b/core/lib/Thelia/Command/Skeleton/Module/schema.xml old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Config/Resources/config.xml b/core/lib/Thelia/Config/Resources/config.xml index a404fa6f2..39d8bc905 100755 --- a/core/lib/Thelia/Config/Resources/config.xml +++ b/core/lib/Thelia/Config/Resources/config.xml @@ -7,19 +7,24 @@ + + + + - + + diff --git a/core/lib/Thelia/Config/Resources/routing/front.xml b/core/lib/Thelia/Config/Resources/routing/front.xml old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Controller/Admin/BaseAdminController.php b/core/lib/Thelia/Controller/Admin/BaseAdminController.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Controller/Admin/CategoryController.php b/core/lib/Thelia/Controller/Admin/CategoryController.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Controller/Front/BaseFrontController.php b/core/lib/Thelia/Controller/Front/BaseFrontController.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Controller/Front/CartController.php b/core/lib/Thelia/Controller/Front/CartController.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Controller/Front/CustomerController.php b/core/lib/Thelia/Controller/Front/CustomerController.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Context.php b/core/lib/Thelia/Core/Context.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterRouterPass.php b/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterRouterPass.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/CartEvent.php b/core/lib/Thelia/Core/Event/CartEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/CartItemEvent.php b/core/lib/Thelia/Core/Event/CartItemEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/CategoryEvent.php b/core/lib/Thelia/Core/Event/CategoryEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/CustomerCreateOrUpdateEvent.php b/core/lib/Thelia/Core/Event/CustomerCreateOrUpdateEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/CustomerLoginEvent.php b/core/lib/Thelia/Core/Event/CustomerLoginEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/ImageEvent.php b/core/lib/Thelia/Core/Event/ImageEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/Internal/CartEvent.php b/core/lib/Thelia/Core/Event/Internal/CartEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/Internal/CustomerEvent.php b/core/lib/Thelia/Core/Event/Internal/CustomerEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Event/Internal/InternalEvent.php b/core/lib/Thelia/Core/Event/Internal/InternalEvent.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Authentication/AdminUsernamePasswordFormAuthenticator.php b/core/lib/Thelia/Core/Security/Authentication/AdminUsernamePasswordFormAuthenticator.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Authentication/AuthenticatorInterface.php b/core/lib/Thelia/Core/Security/Authentication/AuthenticatorInterface.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Authentication/CustomerUsernamePasswordFormAuthenticator.php b/core/lib/Thelia/Core/Security/Authentication/CustomerUsernamePasswordFormAuthenticator.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Authentication/UsernamePasswordFormAuthenticator.php b/core/lib/Thelia/Core/Security/Authentication/UsernamePasswordFormAuthenticator.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Exception/AuthenticationException.php b/core/lib/Thelia/Core/Security/Exception/AuthenticationException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Exception/AuthorizationException.php b/core/lib/Thelia/Core/Security/Exception/AuthorizationException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Exception/UsernameNotFoundException.php b/core/lib/Thelia/Core/Security/Exception/UsernameNotFoundException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Security/Exception/WrongPasswordException.php b/core/lib/Thelia/Core/Security/Exception/WrongPasswordException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Element/BaseLoop.php b/core/lib/Thelia/Core/Template/Element/BaseLoop.php index b5ee03955..9f3a03d5d 100755 --- a/core/lib/Thelia/Core/Template/Element/BaseLoop.php +++ b/core/lib/Thelia/Core/Template/Element/BaseLoop.php @@ -187,8 +187,8 @@ abstract class BaseLoop } /** - * @param \ModelCriteria $search - * @param null $pagination + * @param ModelCriteria $search + * @param null $pagination * * @return array|mixed|\PropelModelPager|\PropelObjectCollection */ @@ -202,7 +202,7 @@ abstract class BaseLoop } /** - * @param \ModelCriteria $search + * @param ModelCriteria $search * * @return array|mixed|\PropelObjectCollection */ diff --git a/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php b/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php new file mode 100755 index 000000000..5c73d0602 --- /dev/null +++ b/core/lib/Thelia/Core/Template/Loop/AssociatedContent.php @@ -0,0 +1,128 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Core\Template\Loop; + +use Thelia\Core\Template\Loop\Content; + +use Propel\Runtime\ActiveQuery\Criteria; +use Thelia\Core\Template\Element\LoopResult; + +use Thelia\Core\Template\Loop\Argument\ArgumentCollection; +use Thelia\Core\Template\Loop\Argument\Argument; + +use Thelia\Model\ProductAssociatedContentQuery; +use Thelia\Model\CategoryAssociatedContentQuery; +use Thelia\Type; + +/** + * + * AssociatedContent loop + * + * + * Class AssociatedContent + * @package Thelia\Core\Template\Loop + * @author Etienne Roudeix + */ +class AssociatedContent extends Content +{ + /** + * @return ArgumentCollection + */ + protected function getArgDefinitions() + { + $argumentCollection = parent::getArgDefinitions(); + + $argumentCollection->addArgument(Argument::createIntTypeArgument('product')) + ->addArgument(Argument::createIntTypeArgument('category')); + + $argumentCollection->get('order')->default = "associated_content"; + + $argumentCollection->get('order')->type->getKey(0)->addValue('associated_content'); + $argumentCollection->get('order')->type->getKey(0)->addValue('associated_content_reverse'); + + return $argumentCollection; + } + + /** + * @param $pagination + * + * @return LoopResult + * @throws \InvalidArgumentException + */ + public function exec(&$pagination) + { + // + + $product = $this->getProduct(); + $category = $this->getCategory(); + + if($product === null && $category === null) { + throw new \InvalidArgumentException('You have to provide either `product` or `category` argument in associated_content loop'); + } + + if($product !== null) { + $search = ProductAssociatedContentQuery::create(); + + $search->filterByProductId($product, Criteria::EQUAL); + } elseif($category !== null) { + $search = CategoryAssociatedContentQuery::create(); + + $search->filterByCategoryId($category, Criteria::EQUAL); + } + + $order = $this->getOrder(); + $orderByAssociatedContent = array_search('associated_content', $order); + $orderByAssociatedContentReverse = array_search('associated_content_reverse', $order); + + if ($orderByAssociatedContent !== false) { + $search->orderByPosition(Criteria::ASC); + $order[$orderByAssociatedContent] = 'given_id'; + $this->args->get('order')->setValue( implode(',', $order) ); + } + if ($orderByAssociatedContentReverse !== false) { + $search->orderByPosition(Criteria::DESC); + $order[$orderByAssociatedContentReverse] = 'given_id'; + $this->args->get('order')->setValue( implode(',', $order) ); + } + + $associatedContents = $this->search($search); + + $associatedContentIdList = array(0); + foreach ($associatedContents as $associatedContent) { + array_push($associatedContentIdList, $associatedContent->getContentId()); + } + + $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(',', $associatedContentIdList) ); + } else { + $this->args->get('id')->setValue( implode(',', array_intersect($receivedIdList, $associatedContentIdList)) ); + } + + return parent::exec($pagination); + } + +} diff --git a/core/lib/Thelia/Core/Template/Loop/Attribute.php b/core/lib/Thelia/Core/Template/Loop/Attribute.php new file mode 100755 index 000000000..84549aaa5 --- /dev/null +++ b/core/lib/Thelia/Core/Template/Loop/Attribute.php @@ -0,0 +1,164 @@ +. */ +/* */ +/*************************************************************************************/ + +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; + +use Thelia\Core\Template\Loop\Argument\ArgumentCollection; +use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Log\Tlog; + +use Thelia\Model\Tools\ModelCriteriaTools; + +use Thelia\Model\Base\CategoryQuery; +use Thelia\Model\Base\ProductCategoryQuery; +use Thelia\Model\Base\AttributeQuery; +use Thelia\Model\ConfigQuery; +use Thelia\Model\Map\ProductCategoryTableMap; +use Thelia\Type\TypeCollection; +use Thelia\Type; +use Thelia\Type\BooleanOrBothType; + +/** + * + * Attribute loop + * + * + * Class Attribute + * @package Thelia\Core\Template\Loop + * @author Etienne Roudeix + */ +class Attribute extends BaseLoop +{ + /** + * @return ArgumentCollection + */ + protected function getArgDefinitions() + { + return new ArgumentCollection( + Argument::createIntListTypeArgument('id'), + Argument::createIntListTypeArgument('product'), + Argument::createIntListTypeArgument('category'), + Argument::createBooleanOrBothTypeArgument('visible', 1), + Argument::createIntListTypeArgument('exclude'), + new Argument( + 'order', + new TypeCollection( + new Type\EnumListType(array('alpha', 'alpha_reverse', 'manual', 'manual_reverse')) + ), + 'manual' + ) + ); + } + + /** + * @param $pagination + * + * @return \Thelia\Core\Template\Element\LoopResult + */ + public function exec(&$pagination) + { + $search = AttributeQuery::create(); + + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + + $id = $this->getId(); + + if (null !== $id) { + $search->filterById($id, Criteria::IN); + } + + $exclude = $this->getExclude(); + + if (null !== $exclude) { + $search->filterById($exclude, Criteria::NOT_IN); + } + + $visible = $this->getVisible(); + + if ($visible != BooleanOrBothType::ANY) $search->filterByVisible($visible); + + $product = $this->getProduct(); + $category = $this->getCategory(); + + if(null !== $product) { + $productCategories = ProductCategoryQuery::create()->select(array(ProductCategoryTableMap::CATEGORY_ID))->filterByProductId($product, Criteria::IN)->find()->getData(); + + if(null === $category) { + $category = $productCategories; + } else { + $category = array_merge($category, $productCategories); + } + } + + if(null !== $category) { + $search->filterByCategory( + CategoryQuery::create()->filterById($category)->find(), + Criteria::IN + ); + } + + $orders = $this->getOrder(); + + foreach($orders as $order) { + switch ($order) { + case "alpha": + $search->addAscendingOrderByColumn('i18n_TITLE'); + break; + case "alpha_reverse": + $search->addDescendingOrderByColumn('i18n_TITLE'); + break; + case "manual": + $search->orderByPosition(Criteria::ASC); + break; + case "manual_reverse": + $search->orderByPosition(Criteria::DESC); + break; + } + } + + /* perform search */ + $attributes = $this->search($search, $pagination); + + $loopResult = new LoopResult(); + + foreach ($attributes as $attribute) { + $loopResultRow = new LoopResultRow(); + $loopResultRow->set("ID", $attribute->getId()) + ->set("TITLE",$attribute->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $attribute->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $attribute->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $attribute->getVirtualColumn('i18n_POSTSCRIPTUM')); + + $loopResult->addRow($loopResultRow); + } + + return $loopResult; + } +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/Loop/AttributeAvailability.php b/core/lib/Thelia/Core/Template/Loop/AttributeAvailability.php new file mode 100755 index 000000000..ade493efa --- /dev/null +++ b/core/lib/Thelia/Core/Template/Loop/AttributeAvailability.php @@ -0,0 +1,139 @@ +. */ +/* */ +/*************************************************************************************/ + +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; + +use Thelia\Core\Template\Loop\Argument\ArgumentCollection; +use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Log\Tlog; + +use Thelia\Model\Tools\ModelCriteriaTools; + +use Thelia\Model\Base\AttributeAvQuery; +use Thelia\Model\ConfigQuery; +use Thelia\Type\TypeCollection; +use Thelia\Type; + +/** + * AttributeAvailability loop + * + * + * Class AttributeAvailability + * @package Thelia\Core\Template\Loop + * @author Etienne Roudeix + */ +class AttributeAvailability extends BaseLoop +{ + /** + * @return ArgumentCollection + */ + protected function getArgDefinitions() + { + return new ArgumentCollection( + Argument::createIntListTypeArgument('id'), + Argument::createIntListTypeArgument('attribute'), + Argument::createIntListTypeArgument('exclude'), + new Argument( + 'order', + new TypeCollection( + new Type\EnumListType(array('alpha', 'alpha_reverse', 'manual', 'manual_reverse')) + ), + 'manual' + ) + ); + } + + /** + * @param $pagination + * + * @return \Thelia\Core\Template\Element\LoopResult + */ + public function exec(&$pagination) + { + $search = AttributeAvQuery::create(); + + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + + $id = $this->getId(); + + if (null !== $id) { + $search->filterById($id, Criteria::IN); + } + + $exclude = $this->getExclude(); + + if (null !== $exclude) { + $search->filterById($exclude, Criteria::NOT_IN); + } + + $attribute = $this->getAttribute(); + + if(null !== $attribute) { + $search->filterByAttributeId($attribute, Criteria::IN); + } + + $orders = $this->getOrder(); + + foreach($orders as $order) { + switch ($order) { + case "alpha": + $search->addAscendingOrderByColumn('i18n_TITLE'); + break; + case "alpha_reverse": + $search->addDescendingOrderByColumn('i18n_TITLE'); + break; + case "manual": + $search->orderByPosition(Criteria::ASC); + break; + case "manual_reverse": + $search->orderByPosition(Criteria::DESC); + break; + } + } + + /* perform search */ + $attributesAv = $this->search($search, $pagination); + + $loopResult = new LoopResult(); + + foreach ($attributesAv as $attributeAv) { + $loopResultRow = new LoopResultRow(); + $loopResultRow->set("ID", $attributeAv->getId()) + ->set("TITLE",$attributeAv->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $attributeAv->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $attributeAv->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $attributeAv->getVirtualColumn('i18n_POSTSCRIPTUM')); + + $loopResult->addRow($loopResultRow); + } + + return $loopResult; + } +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/Loop/AttributeCombination.php b/core/lib/Thelia/Core/Template/Loop/AttributeCombination.php new file mode 100755 index 000000000..42df69ea3 --- /dev/null +++ b/core/lib/Thelia/Core/Template/Loop/AttributeCombination.php @@ -0,0 +1,140 @@ +. */ +/* */ +/*************************************************************************************/ + +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; + +use Thelia\Core\Template\Loop\Argument\ArgumentCollection; +use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Log\Tlog; + +use Thelia\Model\Tools\ModelCriteriaTools; + +use Thelia\Model\Base\AttributeCombinationQuery; +use Thelia\Model\Map\AttributeAvTableMap; +use Thelia\Model\Map\AttributeTableMap; +use Thelia\Model\ConfigQuery; +use Thelia\Type\TypeCollection; +use Thelia\Type; + +/** + * + * Attribute Combination loop + * + * Class AttributeCombination + * @package Thelia\Core\Template\Loop + * @author Etienne Roudeix + */ +class AttributeCombination extends BaseLoop +{ + /** + * @return ArgumentCollection + */ + protected function getArgDefinitions() + { + return new ArgumentCollection( + Argument::createIntTypeArgument('product_sale_elements', null, true), + new Argument( + 'order', + new TypeCollection( + new Type\EnumListType(array('alpha', 'alpha_reverse')) + ), + 'alpha' + ) + ); + } + + /** + * @param $pagination + * + * @return \Thelia\Core\Template\Element\LoopResult + */ + public function exec(&$pagination) + { + $search = AttributeCombinationQuery::create(); + + /* manage attribute translations */ + ModelCriteriaTools::getI18n( + $search, + ConfigQuery::read("default_lang_without_translation", 1), + $this->request->getSession()->getLocale(), + array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'), + AttributeTableMap::TABLE_NAME, + 'ATTRIBUTE_ID' + ); + + /* manage attributeAv translations */ + ModelCriteriaTools::getI18n( + $search, + ConfigQuery::read("default_lang_without_translation", 1), + $this->request->getSession()->getLocale(), + array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'), + AttributeAvTableMap::TABLE_NAME, + 'ATTRIBUTE_AV_ID' + ); + + $productSaleElements = $this->getProduct_sale_elements(); + + $search->filterByProductSaleElementsId($productSaleElements, Criteria::EQUAL); + + $orders = $this->getOrder(); + + foreach($orders as $order) { + switch ($order) { + case "alpha": + $search->addAscendingOrderByColumn(AttributeTableMap::TABLE_NAME . '_i18n_TITLE'); + break; + case "alpha_reverse": + $search->addDescendingOrderByColumn(AttributeTableMap::TABLE_NAME . '_i18n_TITLE'); + break; + } + } + + $attributeCombinations = $this->search($search, $pagination); + + $loopResult = new LoopResult(); + + foreach ($attributeCombinations as $attributeCombination) { + $loopResultRow = new LoopResultRow(); + + $loopResultRow + ->set("ATTRIBUTE_TITLE", $attributeCombination->getVirtualColumn(AttributeTableMap::TABLE_NAME . '_i18n_TITLE')) + ->set("ATTRIBUTE_CHAPO", $attributeCombination->getVirtualColumn(AttributeTableMap::TABLE_NAME . '_i18n_CHAPO')) + ->set("ATTRIBUTE_DESCRIPTION", $attributeCombination->getVirtualColumn(AttributeTableMap::TABLE_NAME . '_i18n_DESCRIPTION')) + ->set("ATTRIBUTE_POSTSCRIPTUM", $attributeCombination->getVirtualColumn(AttributeTableMap::TABLE_NAME . '_i18n_POSTSCRIPTUM')) + ->set("ATTRIBUTE_AVAILABILITY_TITLE", $attributeCombination->getVirtualColumn(AttributeAvTableMap::TABLE_NAME . '_i18n_TITLE')) + ->set("ATTRIBUTE_AVAILABILITY_CHAPO", $attributeCombination->getVirtualColumn(AttributeAvTableMap::TABLE_NAME . '_i18n_CHAPO')) + ->set("ATTRIBUTE_AVAILABILITY_DESCRIPTION", $attributeCombination->getVirtualColumn(AttributeAvTableMap::TABLE_NAME . '_i18n_DESCRIPTION')) + ->set("ATTRIBUTE_AVAILABILITY_POSTSCRIPTUM", $attributeCombination->getVirtualColumn(AttributeAvTableMap::TABLE_NAME . '_i18n_POSTSCRIPTUM')); + + $loopResult->addRow($loopResultRow); + } + + return $loopResult; + } +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/Loop/Cart.php b/core/lib/Thelia/Core/Template/Loop/Cart.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/Category.php b/core/lib/Thelia/Core/Template/Loop/Category.php index 4cde51824..1233ccd4e 100755 --- a/core/lib/Thelia/Core/Template/Loop/Category.php +++ b/core/lib/Thelia/Core/Template/Loop/Category.php @@ -30,6 +30,9 @@ 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\Tools\ModelCriteriaTools; use Thelia\Model\CategoryQuery; use Thelia\Model\ConfigQuery; @@ -46,7 +49,7 @@ use Thelia\Type\BooleanOrBothType; * - 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', 'alpha-reverse', 'manual' (default), 'manual-reverse', 'random' + * - 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 : @@ -77,7 +80,7 @@ class Category extends BaseLoop new Argument( 'order', new TypeCollection( - new Type\EnumListType(array('alpha', 'alpha-reverse', 'manual', 'manual-reverse', 'random')) + new Type\EnumListType(array('alpha', 'alpha_reverse', 'manual', 'manual_reverse', 'random')) ), 'manual' ), @@ -94,7 +97,10 @@ class Category extends BaseLoop { $search = CategoryQuery::create(); - $id = $this->getId(); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + + $id = $this->getId(); if (!is_null($id)) { $search->filterById($id, Criteria::IN); @@ -106,7 +112,8 @@ class Category extends BaseLoop $search->filterByParent($parent); } - $current = $this->getCurrent(); + + $current = $this->getCurrent(); if ($current === true) { $search->filterById($this->request->get("category_id")); @@ -114,6 +121,7 @@ class Category extends BaseLoop $search->filterById($this->request->get("category_id"), Criteria::NOT_IN); } + $exclude = $this->getExclude(); if (!is_null($exclude)) { @@ -121,19 +129,19 @@ class Category extends BaseLoop } if ($this->getVisible() != BooleanOrBothType::ANY) - $search->filterByVisible($this->getVisible() ? 1 : 0); + $search->filterByVisible($this->getVisible() ? 1 : 0); $orders = $this->getOrder(); - foreach ($orders as $order) { + foreach($orders as $order) { switch ($order) { case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\Map\CategoryI18nTableMap::TITLE); + $search->addAscendingOrderByColumn('i18n_TITLE'); break; - case "alpha-reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\Map\CategoryI18nTableMap::TITLE); + case "alpha_reverse": + $search->addDescendingOrderByColumn('i18n_TITLE'); break; - case "manual-reverse": + case "manual_reverse": $search->orderByPosition(Criteria::DESC); break; case "manual": @@ -147,51 +155,45 @@ class Category extends BaseLoop } } - /** - * \Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - + /* perform search */ $categories = $this->search($search, $pagination); + /* @todo */ $notEmpty = $this->getNot_empty(); $loopResult = new LoopResult(); foreach ($categories as $category) { - if ($this->getNotEmpty() && $category->countAllProducts() == 0) continue; + /* + * no cause pagination lost : + * if ($this->getNotEmpty() && $category->countAllProducts() == 0) continue; + */ $loopResultRow = new LoopResultRow(); $loopResultRow - ->set("ID", $category->getId()) - ->set("TITLE",$category->getTitle()) - ->set("CHAPO", $category->getChapo()) - ->set("DESCRIPTION", $category->getDescription()) - ->set("POSTSCRIPTUM", $category->getPostscriptum()) - ->set("PARENT", $category->getParent()) - ->set("URL", $category->getUrl()) - ->set("PRODUCT_COUNT", $category->countChild()) - ->set("VISIBLE", $category->getVisible() ? "1" : "0") - ->set("POSITION", $category->getPosition()) + ->set("ID", $category->getId()) + ->set("TITLE",$category->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $category->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $category->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $category->getVirtualColumn('i18n_POSTSCRIPTUM')) + ->set("PARENT", $category->getParent()) + ->set("URL", $category->getUrl()) + ->set("PRODUCT_COUNT", $category->countChild()) + ->set("VISIBLE", $category->getVisible() ? "1" : "0") + ->set("POSITION", $category->getPosition()) - ->set("CREATE_DATE", $category->getCreatedAt()) - ->set("UPDATE_DATE", $category->getUpdatedAt()) - ->set("VERSION", $category->getVersion()) - ->set("VERSION_DATE", $category->getVersionCreatedAt()) - ->set("VERSION_AUTHOR", $category->getVersionCreatedBy()) - ; + ->set("CREATE_DATE", $category->getCreatedAt()) + ->set("UPDATE_DATE", $category->getUpdatedAt()) + ->set("VERSION", $category->getVersion()) + ->set("VERSION_DATE", $category->getVersionCreatedAt()) + ->set("VERSION_AUTHOR", $category->getVersionCreatedBy()) + ; $loopResult->addRow($loopResultRow); } return $loopResult; } -} +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/Loop/CategoryPath.php b/core/lib/Thelia/Core/Template/Loop/CategoryPath.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/CategoryTree.php b/core/lib/Thelia/Core/Template/Loop/CategoryTree.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/Content.php b/core/lib/Thelia/Core/Template/Loop/Content.php index 15bb2068c..3a81ff9f2 100755 --- a/core/lib/Thelia/Core/Template/Loop/Content.php +++ b/core/lib/Thelia/Core/Template/Loop/Content.php @@ -31,6 +31,8 @@ use Thelia\Core\Template\Element\LoopResultRow; use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Model\Tools\ModelCriteriaTools; + use Thelia\Model\FolderQuery; use Thelia\Model\Map\ContentTableMap; use Thelia\Model\ContentFolderQuery; @@ -85,6 +87,9 @@ class Content extends BaseLoop { $search = ContentQuery::create(); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + $id = $this->getId(); if (!is_null($id)) { @@ -153,10 +158,10 @@ class Content extends BaseLoop foreach ($orders as $order) { switch ($order) { case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\Map\ContentI18nTableMap::TITLE); + $search->addAscendingOrderByColumn('i18n_TITLE'); break; case "alpha-reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\Map\ContentI18nTableMap::TITLE); + $search->addDescendingOrderByColumn('i18n_TITLE'); break; case "manual": if(null === $folder || count($folder) != 1) @@ -199,17 +204,7 @@ class Content extends BaseLoop ); } - /** - * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - + /* perform search */ $search->groupBy(ContentTableMap::ID); $contents = $this->search($search, $pagination); @@ -220,10 +215,10 @@ class Content extends BaseLoop $loopResultRow = new LoopResultRow(); $loopResultRow->set("ID", $content->getId()) - ->set("TITLE",$content->getTitle()) - ->set("CHAPO", $content->getChapo()) - ->set("DESCRIPTION", $content->getDescription()) - ->set("POSTSCRIPTUM", $content->getPostscriptum()) + ->set("TITLE",$content->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $content->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $content->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $content->getVirtualColumn('i18n_POSTSCRIPTUM')) ->set("POSITION", $content->getPosition()) ; diff --git a/core/lib/Thelia/Core/Template/Loop/Country.php b/core/lib/Thelia/Core/Template/Loop/Country.php index 475a4608b..d25951fb8 100755 --- a/core/lib/Thelia/Core/Template/Loop/Country.php +++ b/core/lib/Thelia/Core/Template/Loop/Country.php @@ -31,6 +31,8 @@ use Thelia\Core\Template\Element\LoopResultRow; use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Model\Tools\ModelCriteriaTools; + use Thelia\Model\CountryQuery; use Thelia\Model\ConfigQuery; @@ -51,7 +53,6 @@ class Country extends BaseLoop protected function getArgDefinitions() { return new ArgumentCollection( - Argument::createIntTypeArgument('limit', 500), // overwrite orginal param to increase the limit Argument::createIntListTypeArgument('id'), Argument::createIntListTypeArgument('area'), Argument::createBooleanTypeArgument('with_area'), @@ -68,6 +69,9 @@ class Country extends BaseLoop { $search = CountryQuery::create(); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + $id = $this->getId(); if (null !== $id) { @@ -94,31 +98,20 @@ class Country extends BaseLoop $search->filterById($exclude, Criteria::NOT_IN); } - /** - * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - - $search->addAscendingOrderByColumn(\Thelia\Model\Map\CountryI18nTableMap::TITLE); + $search->addAscendingOrderByColumn('i18n_TITLE'); + /* perform search */ $countries = $this->search($search, $pagination); $loopResult = new LoopResult(); foreach ($countries as $country) { $loopResultRow = new LoopResultRow(); - $loopResultRow->set("ID", $country->getId()); - $loopResultRow->set("AREA", $country->getAreaId()); - $loopResultRow->set("TITLE", $country->getTitle()); - $loopResultRow->set("CHAPO", $country->getChapo()); - $loopResultRow->set("DESCRIPTION", $country->getDescription()); - $loopResultRow->set("POSTSCRIPTUM", $country->getPostscriptum()); + $loopResultRow->set("ID", $country->getId()) + ->set("TITLE",$country->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $country->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $country->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $country->getVirtualColumn('i18n_POSTSCRIPTUM')); $loopResultRow->set("ISOCODE", $country->getIsocode()); $loopResultRow->set("ISOALPHA2", $country->getIsoalpha2()); $loopResultRow->set("ISOALPHA3", $country->getIsoalpha3()); diff --git a/core/lib/Thelia/Core/Template/Loop/Currency.php b/core/lib/Thelia/Core/Template/Loop/Currency.php new file mode 100755 index 000000000..08eacca08 --- /dev/null +++ b/core/lib/Thelia/Core/Template/Loop/Currency.php @@ -0,0 +1,112 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Core\Template\Loop; + +use Propel\Runtime\ActiveQuery\Criteria; +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\Model\Tools\ModelCriteriaTools; + +use Thelia\Model\CurrencyQuery; +use Thelia\Model\ConfigQuery; + +/** + * + * Currency loop + * + * + * Class Currency + * @package Thelia\Core\Template\Loop + * @author Etienne Roudeix + */ +class Currency extends BaseLoop +{ + /** + * @return ArgumentCollection + */ + protected function getArgDefinitions() + { + return new ArgumentCollection( + Argument::createIntListTypeArgument('id'), + Argument::createIntListTypeArgument('exclude'), + Argument::createBooleanTypeArgument('default_only', false) + ); + } + + /** + * @param $pagination + * + * @return \Thelia\Core\Template\Element\LoopResult + */ + public function exec(&$pagination) + { + $search = CurrencyQuery::create(); + + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale(), array('NAME')); + + $id = $this->getId(); + + if (null !== $id) { + $search->filterById($id, Criteria::IN); + } + + $exclude = $this->getExclude(); + + if (!is_null($exclude)) { + $search->filterById($exclude, Criteria::NOT_IN); + } + + $default_only = $this->getDefaultOnly(); + + if ($default_only === true) { + $search->filterByByDefault(true); + } + + $search->orderByPosition(); + + /* perform search */ + $currencies = $this->search($search, $pagination); + + $loopResult = new LoopResult(); + + foreach ($currencies as $currency) { + $loopResultRow = new LoopResultRow(); + $loopResultRow->set("ID", $currency->getId()) + ->set("NAME",$currency->getVirtualColumn('i18n_NAME')) + ->set("ISOCODE", $currency->getCode()) + ->set("RATE", $currency->getRate()) + ->set("IS_DEFAULT", $currency->getByDefault()); + + $loopResult->addRow($loopResultRow); + } + + return $loopResult; + } +} diff --git a/core/lib/Thelia/Core/Template/Loop/Feature.php b/core/lib/Thelia/Core/Template/Loop/Feature.php index cf8dcc563..0693a303a 100755 --- a/core/lib/Thelia/Core/Template/Loop/Feature.php +++ b/core/lib/Thelia/Core/Template/Loop/Feature.php @@ -31,6 +31,8 @@ use Thelia\Core\Template\Element\LoopResultRow; use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Model\Tools\ModelCriteriaTools; + use Thelia\Model\Base\CategoryQuery; use Thelia\Model\Base\ProductCategoryQuery; use Thelia\Model\Base\FeatureQuery; @@ -81,6 +83,9 @@ class Feature extends BaseLoop { $search = FeatureQuery::create(); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + $id = $this->getId(); if (null !== $id) { @@ -122,10 +127,10 @@ class Feature extends BaseLoop foreach ($orders as $order) { switch ($order) { case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\Map\FeatureI18nTableMap::TITLE); + $search->addAscendingOrderByColumn('i18n_TITLE'); break; case "alpha-reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\Map\FeatureI18nTableMap::TITLE); + $search->addDescendingOrderByColumn('i18n_TITLE'); break; case "manual": $search->orderByPosition(Criteria::ASC); @@ -136,28 +141,18 @@ class Feature extends BaseLoop } } - /** - * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - + /* perform search */ $features = $this->search($search, $pagination); $loopResult = new LoopResult(); foreach ($features as $feature) { $loopResultRow = new LoopResultRow(); - $loopResultRow->set("ID", $feature->getId()); - $loopResultRow->set("TITLE",$feature->getTitle()); - $loopResultRow->set("CHAPO", $feature->getChapo()); - $loopResultRow->set("DESCRIPTION", $feature->getDescription()); - $loopResultRow->set("POSTSCRIPTUM", $feature->getPostscriptum()); + $loopResultRow->set("ID", $feature->getId()) + ->set("TITLE",$feature->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $feature->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $feature->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $feature->getVirtualColumn('i18n_POSTSCRIPTUM')); $loopResult->addRow($loopResultRow); } diff --git a/core/lib/Thelia/Core/Template/Loop/FeatureAvailable.php b/core/lib/Thelia/Core/Template/Loop/FeatureAvailability.php similarity index 79% rename from core/lib/Thelia/Core/Template/Loop/FeatureAvailable.php rename to core/lib/Thelia/Core/Template/Loop/FeatureAvailability.php index 838937558..272bb5211 100755 --- a/core/lib/Thelia/Core/Template/Loop/FeatureAvailable.php +++ b/core/lib/Thelia/Core/Template/Loop/FeatureAvailability.php @@ -31,21 +31,22 @@ use Thelia\Core\Template\Element\LoopResultRow; use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Model\Tools\ModelCriteriaTools; + use Thelia\Model\Base\FeatureAvQuery; use Thelia\Model\ConfigQuery; use Thelia\Type\TypeCollection; use Thelia\Type; /** - *todo : to be finished - * FeatureAvailable loop + * FeatureAvailability loop * * - * Class FeatureAvailable + * Class FeatureAvailability * @package Thelia\Core\Template\Loop * @author Etienne Roudeix */ -class FeatureAvailable extends BaseLoop +class FeatureAvailability extends BaseLoop { /** * @return ArgumentCollection @@ -75,6 +76,9 @@ class FeatureAvailable extends BaseLoop { $search = FeatureAvQuery::create(); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + $id = $this->getId(); if (null !== $id) { @@ -98,10 +102,10 @@ class FeatureAvailable extends BaseLoop foreach ($orders as $order) { switch ($order) { case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\Map\FeatureAvI18nTableMap::TITLE); + $search->addAscendingOrderByColumn('i18n_TITLE'); break; case "alpha-reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\Map\FeatureAvI18nTableMap::TITLE); + $search->addDescendingOrderByColumn('i18n_TITLE'); break; case "manual": $search->orderByPosition(Criteria::ASC); @@ -112,28 +116,18 @@ class FeatureAvailable extends BaseLoop } } - /** - * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - + /* perform search */ $featuresAv = $this->search($search, $pagination); $loopResult = new LoopResult(); foreach ($featuresAv as $featureAv) { $loopResultRow = new LoopResultRow(); - $loopResultRow->set("ID", $featureAv->getId()); - $loopResultRow->set("TITLE",$featureAv->getTitle()); - $loopResultRow->set("CHAPO", $featureAv->getChapo()); - $loopResultRow->set("DESCRIPTION", $featureAv->getDescription()); - $loopResultRow->set("POSTSCRIPTUM", $featureAv->getPostscriptum()); + $loopResultRow->set("ID", $featureAv->getId()) + ->set("TITLE",$featureAv->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $featureAv->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $featureAv->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $featureAv->getVirtualColumn('i18n_POSTSCRIPTUM')); $loopResult->addRow($loopResultRow); } diff --git a/core/lib/Thelia/Core/Template/Loop/FeatureValue.php b/core/lib/Thelia/Core/Template/Loop/FeatureValue.php index 9988c500f..71070e25f 100755 --- a/core/lib/Thelia/Core/Template/Loop/FeatureValue.php +++ b/core/lib/Thelia/Core/Template/Loop/FeatureValue.php @@ -24,15 +24,21 @@ 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; use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Log\Tlog; + +use Thelia\Model\Tools\ModelCriteriaTools; use Thelia\Model\Base\FeatureProductQuery; use Thelia\Model\ConfigQuery; +use Thelia\Model\Map\FeatureAvTableMap; +use Thelia\Model\Map\FeatureProductTableMap; use Thelia\Type\TypeCollection; use Thelia\Type; @@ -55,13 +61,13 @@ class FeatureValue extends BaseLoop return new ArgumentCollection( Argument::createIntTypeArgument('feature', null, true), Argument::createIntTypeArgument('product', null, true), - Argument::createIntListTypeArgument('feature_available'), - Argument::createBooleanTypeArgument('exclude_feature_available', 0), - Argument::createBooleanTypeArgument('exclude_default_values', 0), + Argument::createIntListTypeArgument('feature_availability'), + Argument::createBooleanTypeArgument('exclude_feature_availability', 0), + Argument::createBooleanTypeArgument('exclude_personal_values', 0), new Argument( 'order', new TypeCollection( - new Type\EnumListType(array('alpha', 'alpha-reverse', 'manual', 'manual_reverse')) + new Type\EnumListType(array('alpha', 'alpha_reverse', 'manual', 'manual_reverse')) ), 'manual' ) @@ -77,6 +83,16 @@ class FeatureValue extends BaseLoop { $search = FeatureProductQuery::create(); + /* manage featureAv translations */ + ModelCriteriaTools::getI18n( + $search, + ConfigQuery::read("default_lang_without_translation", 1), + $this->request->getSession()->getLocale(), + array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'), + FeatureAvTableMap::TABLE_NAME, + 'FEATURE_AV_ID' + ); + $feature = $this->getFeature(); $search->filterByFeatureId($feature, Criteria::EQUAL); @@ -85,31 +101,31 @@ class FeatureValue extends BaseLoop $search->filterByProductId($product, Criteria::EQUAL); - $featureAvailable = $this->getFeature_available(); + $featureAvailability = $this->getFeature_availability(); - if (null !== $featureAvailable) { - $search->filterByFeatureAvId($featureAvailable, Criteria::IN); + if (null !== $featureAvailability) { + $search->filterByFeatureAvId($featureAvailability, Criteria::IN); } - $excludeFeatureAvailable = $this->getExclude_feature_available(); - if ($excludeFeatureAvailable == true) { + $excludeFeatureAvailability = $this->getExclude_feature_availability(); + if($excludeFeatureAvailability == true) { $search->filterByFeatureAvId(null, Criteria::NULL); } - $excludeDefaultValues = $this->getExclude_default_values(); - if ($excludeDefaultValues == true) { + $excludeDefaultValues = $this->getExclude_personal_values(); + if($excludeDefaultValues == true) { $search->filterByByDefault(null, Criteria::NULL); } $orders = $this->getOrder(); - foreach ($orders as $order) { + foreach($orders as $order) { switch ($order) { case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\Map\FeatureI18nTableMap::TITLE); + $search->addAscendingOrderByColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_TITLE'); break; - case "alpha-reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\Map\FeatureI18nTableMap::TITLE); + case "alpha_reverse": + $search->addDescendingOrderByColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_TITLE'); break; case "manual": $search->orderByPosition(Criteria::ASC); @@ -120,17 +136,6 @@ class FeatureValue extends BaseLoop } } - /** - * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - /*$search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - );*/ - $featureValues = $this->search($search, $pagination); $loopResult = new LoopResult(); @@ -138,14 +143,16 @@ class FeatureValue extends BaseLoop foreach ($featureValues as $featureValue) { $loopResultRow = new LoopResultRow(); $loopResultRow->set("ID", $featureValue->getId()); - /*$loopResultRow->set("TITLE",$featureValue->getTitle()); - $loopResultRow->set("CHAPO", $featureValue->getChapo()); - $loopResultRow->set("DESCRIPTION", $featureValue->getDescription()); - $loopResultRow->set("POSTSCRIPTUM", $featureValue->getPostscriptum());*/ + + $loopResultRow->set("PERSONAL_VALUE", $featureValue->getByDefault()) + ->set("TITLE",$featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_TITLE')) + ->set("CHAPO", $featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_CHAPO')) + ->set("DESCRIPTION", $featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $featureValue->getVirtualColumn(FeatureAvTableMap::TABLE_NAME . '_i18n_POSTSCRIPTUM')); $loopResult->addRow($loopResultRow); } return $loopResult; } -} +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/Loop/Folder.php b/core/lib/Thelia/Core/Template/Loop/Folder.php index c2f45682a..7062a55b4 100755 --- a/core/lib/Thelia/Core/Template/Loop/Folder.php +++ b/core/lib/Thelia/Core/Template/Loop/Folder.php @@ -30,6 +30,9 @@ 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\Tools\ModelCriteriaTools; use Thelia\Model\FolderQuery; use Thelia\Model\ConfigQuery; @@ -59,7 +62,7 @@ class Folder extends BaseLoop new Argument( 'order', new TypeCollection( - new Type\EnumListType(array('alpha', 'alpha-reverse', 'manual', 'manual-reverse', 'random')) + new Type\EnumListType(array('alpha', 'alpha_reverse', 'manual', 'manual_reverse', 'random')) ), 'manual' ), @@ -76,7 +79,10 @@ class Folder extends BaseLoop { $search = FolderQuery::create(); - $id = $this->getId(); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + + $id = $this->getId(); if (!is_null($id)) { $search->filterById($id, Criteria::IN); @@ -88,7 +94,8 @@ class Folder extends BaseLoop $search->filterByParent($parent); } - $current = $this->getCurrent(); + + $current = $this->getCurrent(); if ($current === true) { $search->filterById($this->request->get("folder_id")); @@ -96,6 +103,7 @@ class Folder extends BaseLoop $search->filterById($this->request->get("folder_id"), Criteria::NOT_IN); } + $exclude = $this->getExclude(); if (!is_null($exclude)) { @@ -108,15 +116,15 @@ class Folder extends BaseLoop $orders = $this->getOrder(); - foreach ($orders as $order) { + foreach($orders as $order) { switch ($order) { case "alpha": - $search->addAscendingOrderByColumn(\Thelia\Model\Map\FolderI18nTableMap::TITLE); + $search->addAscendingOrderByColumn('i18n_TITLE'); break; - case "alpha-reverse": - $search->addDescendingOrderByColumn(\Thelia\Model\Map\FolderI18nTableMap::TITLE); + case "alpha_reverse": + $search->addDescendingOrderByColumn('i18n_TITLE'); break; - case "manual-reverse": + case "manual_reverse": $search->orderByPosition(Criteria::DESC); break; case "manual": @@ -130,50 +138,44 @@ class Folder extends BaseLoop } } - /** - * \Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - + /* perform search */ $folders = $this->search($search, $pagination); + /* @todo */ $notEmpty = $this->getNot_empty(); $loopResult = new LoopResult(); foreach ($folders as $folder) { - if ($notEmpty && $folder->countAllProducts() == 0) continue; + /* + * no cause pagination lost : + * if ($notEmpty && $folder->countAllProducts() == 0) continue; + */ $loopResultRow = new LoopResultRow(); $loopResultRow - ->set("ID", $folder->getId()) - ->set("TITLE",$folder->getTitle()) - ->set("CHAPO", $folder->getChapo()) - ->set("DESCRIPTION", $folder->getDescription()) - ->set("POSTSCRIPTUM", $folder->getPostscriptum()) - ->set("PARENT", $folder->getParent()) - ->set("CONTENT_COUNT", $folder->countChild()) - ->set("VISIBLE", $folder->getVisible() ? "1" : "0") - ->set("POSITION", $folder->getPosition()) + ->set("ID", $folder->getId()) + ->set("TITLE",$folder->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $folder->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $folder->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $folder->getVirtualColumn('i18n_POSTSCRIPTUM')) + ->set("PARENT", $folder->getParent()) + ->set("CONTENT_COUNT", $folder->countChild()) + ->set("VISIBLE", $folder->getVisible() ? "1" : "0") + ->set("POSITION", $folder->getPosition()) - ->set("CREATE_DATE", $folder->getCreatedAt()) - ->set("UPDATE_DATE", $folder->getUpdatedAt()) - ->set("VERSION", $folder->getVersion()) - ->set("VERSION_DATE", $folder->getVersionCreatedAt()) - ->set("VERSION_AUTHOR", $folder->getVersionCreatedBy()) - ; + ->set("CREATE_DATE", $folder->getCreatedAt()) + ->set("UPDATE_DATE", $folder->getUpdatedAt()) + ->set("VERSION", $folder->getVersion()) + ->set("VERSION_DATE", $folder->getVersionCreatedAt()) + ->set("VERSION_AUTHOR", $folder->getVersionCreatedBy()) + ; $loopResult->addRow($loopResultRow); } return $loopResult; } -} +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/Loop/Image.php b/core/lib/Thelia/Core/Template/Loop/Image.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/Lang.php b/core/lib/Thelia/Core/Template/Loop/Lang.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/Order.php b/core/lib/Thelia/Core/Template/Loop/Order.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Loop/OrderStatus.php b/core/lib/Thelia/Core/Template/Loop/OrderStatus.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 88f33c3b3..9c22a4987 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -24,14 +24,21 @@ 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; use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Log\Tlog; + +use Thelia\Model\Tools\ModelCriteriaTools; use Thelia\Model\CategoryQuery; +use Thelia\Model\Map\FeatureProductTableMap; +use Thelia\Model\Map\ProductPriceTableMap; +use Thelia\Model\Map\ProductSaleElementsTableMap; use Thelia\Model\Map\ProductTableMap; use Thelia\Model\ProductCategoryQuery; use Thelia\Model\ProductQuery; @@ -48,6 +55,8 @@ use Thelia\Type\BooleanOrBothType; * Class Product * @package Thelia\Core\Template\Loop * @author Etienne Roudeix + * + * @todo : manage currency in price filter */ class Product extends BaseLoop { @@ -65,13 +74,13 @@ class Product extends BaseLoop ) ), Argument::createIntListTypeArgument('category'), - //Argument::createBooleanTypeArgument('new'), - //Argument::createBooleanTypeArgument('promo'), - //Argument::createFloatTypeArgument('min_price'), - //Argument::createFloatTypeArgument('max_price'), - //Argument::createIntTypeArgument('min_stock'), - //Argument::createFloatTypeArgument('min_weight'), - //Argument::createFloatTypeArgument('max_weight'), + Argument::createBooleanTypeArgument('new'), + Argument::createBooleanTypeArgument('promo'), + Argument::createFloatTypeArgument('min_price'), + Argument::createFloatTypeArgument('max_price'), + Argument::createIntTypeArgument('min_stock'), + Argument::createFloatTypeArgument('min_weight'), + Argument::createFloatTypeArgument('max_weight'), Argument::createBooleanTypeArgument('current'), Argument::createBooleanTypeArgument('current_category'), Argument::createIntTypeArgument('depth', 1), @@ -79,14 +88,14 @@ class Product extends BaseLoop new Argument( 'order', new TypeCollection( - new Type\EnumListType(array('alpha', 'alpha-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')) ), 'alpha' ), Argument::createIntListTypeArgument('exclude'), Argument::createIntListTypeArgument('exclude_category'), new Argument( - 'feature_available', + 'feature_availability', new TypeCollection( new Type\IntToCombinedIntsListType() ) @@ -96,6 +105,24 @@ class Product extends BaseLoop new TypeCollection( new Type\IntToCombinedStringsListType() ) + ), + /* + * promo, new, quantity, weight or price may differ depending on the different attributes + * by default, product loop will look for at least 1 attribute which matches all the loop criteria : attribute_non_strict_match="none" + * you can also provide a list of non-strict attributes. + * ie : attribute_non_strict_match="promo,new" + * loop will return the product if he has at least an attribute in promo and at least an attribute as new ; even if it's not the same attribute. + * you can set all the attributes as non strict : attribute_non_strict_match="*" + * + * In order to allow such a process, we will have to make a LEFT JOIN foreach of the following case. + */ + new Argument( + 'attribute_non_strict_match', + new TypeCollection( + new Type\EnumListType(array('min_stock', 'promo', 'new', 'min_weight', 'max_weight', 'min_price', 'max_price')), + new Type\EnumType(array('*', 'none')) + ), + 'none' ) ); } @@ -110,7 +137,12 @@ class Product extends BaseLoop { $search = ProductQuery::create(); - //$search->withColumn('CASE WHEN ' . ProductTableMap::PROMO . '=1 THEN ' . ProductTableMap::PRICE2 . ' ELSE ' . ProductTableMap::PRICE . ' END', 'real_price'); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale()); + + $attributeNonStrictMatch = $this->getAttribute_non_strict_match(); + $isPSELeftJoinList = array(); + $isProductPriceLeftJoinList = array(); $id = $this->getId(); @@ -124,15 +156,15 @@ class Product extends BaseLoop $search->filterByRef($ref, Criteria::IN); } - $category = $this->getCategory(); + $category = $this->getCategory(); if (!is_null($category)) { $categories = CategoryQuery::create()->filterById($category, Criteria::IN)->find(); $depth = $this->getDepth(); - if (null !== $depth) { - foreach (CategoryQuery::findAllChild($category, $depth) as $subCategory) { + if(null !== $depth) { + foreach(CategoryQuery::findAllChild($category, $depth) as $subCategory) { $categories->prepend($subCategory); } } @@ -143,79 +175,174 @@ class Product extends BaseLoop ); } - /*$new = $this->getNew(); + $new = $this->getNew(); if ($new === true) { - $search->filterByNewness(1, Criteria::EQUAL); - } elseif ($new === false) { - $search->filterByNewness(0, Criteria::EQUAL); + $isPSELeftJoinList[] = 'is_new'; + $search->joinProductSaleElements('is_new', Criteria::LEFT_JOIN) + ->where('`is_new`.NEWNESS' . Criteria::EQUAL . '1') + ->where('NOT ISNULL(`is_new`.ID)'); + } else if($new === false) { + $isPSELeftJoinList[] = 'is_new'; + $search->joinProductSaleElements('is_new', Criteria::LEFT_JOIN) + ->where('`is_new`.NEWNESS' . Criteria::EQUAL . '0') + ->where('NOT ISNULL(`is_new`.ID)'); } $promo = $this->getPromo(); if ($promo === true) { - $search->filterByPromo(1, Criteria::EQUAL); - } elseif ($promo === false) { - $search->filterByNewness(0, Criteria::EQUAL); + $isPSELeftJoinList[] = 'is_promo'; + $search->joinProductSaleElements('is_promo', Criteria::LEFT_JOIN) + ->where('`is_promo`.PROMO' . Criteria::EQUAL . '1') + ->where('NOT ISNULL(`is_promo`.ID)'); + } else if($promo === false) { + $isPSELeftJoinList[] = 'is_promo'; + $search->joinProductSaleElements('is_promo', Criteria::LEFT_JOIN) + ->where('`is_promo`.PROMO' . Criteria::EQUAL . '0') + ->where('NOT ISNULL(`is_promo`.ID)'); } $min_stock = $this->getMin_stock(); if (null != $min_stock) { - $search->filterByQuantity($min_stock, Criteria::GREATER_EQUAL); + $isPSELeftJoinList[] = 'is_min_stock'; + $search->joinProductSaleElements('is_min_stock', Criteria::LEFT_JOIN) + ->where('`is_min_stock`.QUANTITY' . Criteria::GREATER_THAN . '?', $min_stock, \PDO::PARAM_INT) + ->where('NOT ISNULL(`is_min_stock`.ID)'); } - $min_price = $this->getMin_price();*/ + $min_weight = $this->getMin_weight(); - //if (null !== $min_price) { - /** - * Following should work but does not : - * - * $search->filterBy('real_price', $max_price, Criteria::GREATER_EQUAL); - */ - /*$search->condition('in_promo', ProductTableMap::PROMO . Criteria::EQUAL . '1') - ->condition('not_in_promo', ProductTableMap::PROMO . Criteria::NOT_EQUAL . '1') - ->condition('min_price2', ProductTableMap::PRICE2 . Criteria::GREATER_EQUAL . '?', $min_price) - ->condition('min_price', ProductTableMap::PRICE . Criteria::GREATER_EQUAL . '?', $min_price) - ->combine(array('in_promo', 'min_price2'), Criteria::LOGICAL_AND, 'in_promo_min_price') - ->combine(array('not_in_promo', 'min_price'), Criteria::LOGICAL_AND, 'not_in_promo_min_price') - ->where(array('not_in_promo_min_price', 'in_promo_min_price'), Criteria::LOGICAL_OR); - } - - $max_price = $this->getMax_price();*/ - - //if (null !== $max_price) { - /** - * Following should work but does not : - * - * $search->filterBy('real_price', $max_price, Criteria::LESS_EQUAL); - */ - /*$search->condition('in_promo', ProductTableMap::PROMO . Criteria::EQUAL . '1') - ->condition('not_in_promo', ProductTableMap::PROMO . Criteria::NOT_EQUAL . '1') - ->condition('max_price2', ProductTableMap::PRICE2 . Criteria::LESS_EQUAL . '?', $max_price) - ->condition('max_price', ProductTableMap::PRICE . Criteria::LESS_EQUAL . '?', $max_price) - ->combine(array('in_promo', 'max_price2'), Criteria::LOGICAL_AND, 'in_promo_max_price') - ->combine(array('not_in_promo', 'max_price'), Criteria::LOGICAL_AND, 'not_in_promo_max_price') - ->where(array('not_in_promo_max_price', 'in_promo_max_price'), Criteria::LOGICAL_OR); - }*/ - - /*$min_weight = $this->getMin_weight(); - - if (null !== $min_weight) { - $search->filterByWeight($min_weight, Criteria::GREATER_EQUAL); + if (null != $min_weight) { + $isPSELeftJoinList[] = 'is_min_weight'; + $search->joinProductSaleElements('is_min_weight', Criteria::LEFT_JOIN) + ->where('`is_min_weight`.WEIGHT' . Criteria::GREATER_THAN . '?', $min_weight, \PDO::PARAM_STR) + ->where('NOT ISNULL(`is_min_weight`.ID)'); } $max_weight = $this->getMax_weight(); - if (null !== $max_weight) { - $search->filterByWeight($max_weight, Criteria::LESS_EQUAL); - }*/ + if (null != $max_weight) { + $isPSELeftJoinList[] = 'is_max_weight'; + $search->joinProductSaleElements('is_max_weight', Criteria::LEFT_JOIN) + ->where('`is_max_weight`.WEIGHT' . Criteria::LESS_THAN . '?', $max_weight, \PDO::PARAM_STR) + ->where('NOT ISNULL(`is_max_weight`.ID)'); + } + + $min_price = $this->getMin_price(); + + if(null !== $min_price) { + $isPSELeftJoinList[] = 'is_min_price'; + $isProductPriceLeftJoinList['is_min_price'] = 'min_price_data'; + $minPriceJoin = new Join(); + $minPriceJoin->addExplicitCondition(ProductSaleElementsTableMap::TABLE_NAME, 'ID', 'is_min_price', ProductPriceTableMap::TABLE_NAME, 'PRODUCT_SALE_ELEMENTS_ID', 'min_price_data'); + $minPriceJoin->setJoinType(Criteria::LEFT_JOIN); + + $search->joinProductSaleElements('is_min_price', Criteria::LEFT_JOIN) + ->addJoinObject($minPriceJoin) + ->condition('in_promo', '`is_min_price`.promo'. Criteria::EQUAL .'1') + ->condition('not_in_promo', '`is_min_price`.promo'. Criteria::NOT_EQUAL .'1') + ->condition('min_promo_price', '`min_price_data`.promo_price' . Criteria::GREATER_EQUAL . '?', $min_price, \PDO::PARAM_STR) + ->condition('min_price', '`min_price_data`.price' . Criteria::GREATER_EQUAL . '?', $min_price, \PDO::PARAM_STR) + ->combine(array('in_promo', 'min_promo_price'), Criteria::LOGICAL_AND, 'in_promo_min_price') + ->combine(array('not_in_promo', 'min_price'), Criteria::LOGICAL_AND, 'not_in_promo_min_price') + ->where(array('not_in_promo_min_price', 'in_promo_min_price'), Criteria::LOGICAL_OR); + } + + $max_price = $this->getMax_price(); + + if(null !== $max_price) { + $isPSELeftJoinList[] = 'is_max_price'; + $isProductPriceLeftJoinList['is_max_price'] = 'max_price_data'; + $minPriceJoin = new Join(); + $minPriceJoin->addExplicitCondition(ProductSaleElementsTableMap::TABLE_NAME, 'ID', 'is_max_price', ProductPriceTableMap::TABLE_NAME, 'PRODUCT_SALE_ELEMENTS_ID', 'max_price_data'); + $minPriceJoin->setJoinType(Criteria::LEFT_JOIN); + + $search->joinProductSaleElements('is_max_price', Criteria::LEFT_JOIN) + ->addJoinObject($minPriceJoin) + ->condition('in_promo', '`is_max_price`.promo'. Criteria::EQUAL .'1') + ->condition('not_in_promo', '`is_max_price`.promo'. Criteria::NOT_EQUAL .'1') + ->condition('min_promo_price', '`max_price_data`.promo_price' . Criteria::LESS_EQUAL . '?', $max_price, \PDO::PARAM_STR) + ->condition('max_price', '`max_price_data`.price' . Criteria::LESS_EQUAL . '?', $max_price, \PDO::PARAM_STR) + ->combine(array('in_promo', 'min_promo_price'), Criteria::LOGICAL_AND, 'in_promo_max_price') + ->combine(array('not_in_promo', 'max_price'), Criteria::LOGICAL_AND, 'not_in_promo_max_price') + ->where(array('not_in_promo_max_price', 'in_promo_max_price'), Criteria::LOGICAL_OR); + } + + if( $attributeNonStrictMatch != '*' ) { + if($attributeNonStrictMatch == 'none') { + $actuallyUsedAttributeNonStrictMatchList = $isPSELeftJoinList; + } else { + $actuallyUsedAttributeNonStrictMatchList = array_values(array_intersect($isPSELeftJoinList, $attributeNonStrictMatch)); + } + + foreach($actuallyUsedAttributeNonStrictMatchList as $key => $actuallyUsedAttributeNonStrictMatch) { + if($key == 0) + continue; + $search->where('`' . $actuallyUsedAttributeNonStrictMatch . '`.ID=' . '`' . $actuallyUsedAttributeNonStrictMatchList[$key-1] . '`.ID'); + } + } + + /* + * for ordering and outputs, the product will be : + * - new if at least one the criteria matching PSE is new + * - in promo if at least one the criteria matching PSE is in promo + */ + + if(count($isProductPriceLeftJoinList) == 0) { + if(count($isPSELeftJoinList) == 0) { + $joiningTable = "global"; + $isPSELeftJoinList[] = $joiningTable; + $search->joinProductSaleElements('global', Criteria::LEFT_JOIN); + } else { + $joiningTable = $isPSELeftJoinList[0]; + } + + $isProductPriceLeftJoinList[$joiningTable] = 'global_price_data'; + + $minPriceJoin = new Join(); + $minPriceJoin->addExplicitCondition(ProductSaleElementsTableMap::TABLE_NAME, 'ID', $joiningTable, ProductPriceTableMap::TABLE_NAME, 'PRODUCT_SALE_ELEMENTS_ID', 'global_price_data'); + $minPriceJoin->setJoinType(Criteria::LEFT_JOIN); + + $search->addJoinObject($minPriceJoin); + } + + /* + * we need to test all promo field from our previous conditions. Indeed ie: + * product P0, attributes color : red + * P0red is in promo and is the only attribute combinaton availability. + * so the product might be consider as in promo (in outputs and ordering) + * We got the following loop to display in promo AND new product but we don't care it's the same attribute which is new and in promo : + * {loop type="product" promo="1" new="1" attribute_non_strict_match="promo,new"} {/loop} + * our request will so far returns 1 line + * + * is_promo.ID | is_promo.PROMO | is_promo.NEWNESS | is_new.ID | is_new.PROMO | is_new.NEWNESS + * NULL NULL NULL red_id 1 0 + * + * So that we can say the product is in global promo only with is_promo.PROMO, we must acknowledge it with (is_promo.PROMO OR is_new.PROMO) + */ + $booleanMatchedPromoList = array(); + $booleanMatchedNewnessList = array(); + foreach($isPSELeftJoinList as $isPSELeftJoin) { + $booleanMatchedPromoList[] = '`' . $isPSELeftJoin . '`.PROMO'; + $booleanMatchedNewnessList[] = '`' . $isPSELeftJoin . '`.NEWNESS'; + } + $booleanMatchedPriceList = array(); + foreach($isProductPriceLeftJoinList as $pSE => $isProductPriceLeftJoin) { + $booleanMatchedPriceList[] = 'CASE WHEN `' . $pSE . '`.PROMO=1 THEN `' . $isProductPriceLeftJoin . '`.PROMO_PRICE ELSE `' . $isProductPriceLeftJoin . '`.PRICE END'; + } + $search->withColumn('MAX(' . implode(' OR ', $booleanMatchedPromoList) . ')', 'main_product_is_promo'); + $search->withColumn('MAX(' . implode(' OR ', $booleanMatchedNewnessList) . ')', 'main_product_is_new'); + $search->withColumn('MAX(' . implode(' OR ', $booleanMatchedPriceList) . ')', 'real_highest_price'); + $search->withColumn('MIN(' . implode(' OR ', $booleanMatchedPriceList) . ')', 'real_lowest_price'); + $current = $this->getCurrent(); if ($current === true) { $search->filterById($this->request->get("product_id")); - } elseif ($current === false) { + } elseif($current === false) { $search->filterById($this->request->get("product_id"), Criteria::NOT_IN); } @@ -232,7 +359,7 @@ class Product extends BaseLoop )->find(), Criteria::IN ); - } elseif ($current_category === false) { + } elseif($current_category === false) { $search->filterByCategory( CategoryQuery::create()->filterByProduct( ProductCategoryQuery::create()->filterByProductId( @@ -249,57 +376,6 @@ class Product extends BaseLoop if ($visible != BooleanOrBothType::ANY) $search->filterByVisible($visible ? 1 : 0); - $orders = $this->getOrder(); - - 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 "min_price": - $search->orderBy('real_price', Criteria::ASC); - break; - case "max_price": - $search->orderBy('real_price', Criteria::DESC); - break;*/ - case "manual": - if(null === $category || count($category) != 1) - throw new \InvalidArgumentException('Manual order cannot be set without single category argument'); - $search->orderByPosition(Criteria::ASC); - break; - case "manual_reverse": - if(null === $category || count($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(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": - $search->clearOrderByColumns(); - $search->addAscendingOrderByColumn('RAND()'); - break(2); - } - } - $exclude = $this->getExclude(); if (!is_null($exclude)) { @@ -315,11 +391,11 @@ class Product extends BaseLoop ); } - $feature_available = $this->getFeature_available(); + $feature_availability = $this->getFeature_availability(); - if (null !== $feature_available) { - foreach ($feature_available as $feature => $feature_choice) { - foreach ($feature_choice['values'] as $feature_av) { + if(null !== $feature_availability) { + foreach($feature_availability as $feature => $feature_choice) { + foreach($feature_choice['values'] as $feature_av) { $featureAlias = 'fa_' . $feature; if($feature_av != '*') $featureAlias .= '_' . $feature_av; @@ -331,7 +407,7 @@ class Product extends BaseLoop /* format for mysql */ $sqlWhereString = $feature_choice['expression']; - if ($sqlWhereString == '*') { + if($sqlWhereString == '*') { $sqlWhereString = 'NOT ISNULL(`fa_' . $feature . '`.ID)'; } else { $sqlWhereString = preg_replace('#([0-9]+)#', 'NOT ISNULL(`fa_' . $feature . '_' . '\1`.ID)', $sqlWhereString); @@ -345,9 +421,9 @@ class Product extends BaseLoop $feature_values = $this->getFeature_values(); - if (null !== $feature_values) { - foreach ($feature_values as $feature => $feature_choice) { - foreach ($feature_choice['values'] as $feature_value) { + 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; @@ -359,7 +435,7 @@ class Product extends BaseLoop /* format for mysql */ $sqlWhereString = $feature_choice['expression']; - if ($sqlWhereString == '*') { + if($sqlWhereString == '*') { $sqlWhereString = 'NOT ISNULL(`fv_' . $feature . '`.ID)'; } else { $sqlWhereString = preg_replace('#([a-zA-Z0-9_\-]+)#', 'NOT ISNULL(`fv_' . $feature . '_' . '\1`.ID)', $sqlWhereString); @@ -371,19 +447,60 @@ class Product extends BaseLoop } } - /** - * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - $search->groupBy(ProductTableMap::ID); + $orders = $this->getOrder(); + + foreach($orders as $order) { + switch ($order) { + case "alpha": + $search->addAscendingOrderByColumn('i18n_TITLE'); + break; + case "alpha_reverse": + $search->addDescendingOrderByColumn('i18n_TITLE'); + break; + case "min_price": + $search->addAscendingOrderByColumn('real_lowest_price', Criteria::ASC); + break; + case "max_price": + $search->addDescendingOrderByColumn('real_lowest_price'); + break; + case "manual": + if(null === $category || count($category) != 1) + throw new \InvalidArgumentException('Manual order cannot be set without single category argument'); + $search->orderByPosition(Criteria::ASC); + break; + case "manual_reverse": + if(null === $category || count($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->addDescendingOrderByColumn('main_product_is_promo'); + break; + case "new": + $search->addDescendingOrderByColumn('main_product_is_new'); + break; + case "given_id": + 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": + $search->clearOrderByColumns(); + $search->addAscendingOrderByColumn('RAND()'); + break(2); + } + } + + /* perform search */ $products = $this->search($search, $pagination); $loopResult = new LoopResult(); @@ -393,15 +510,13 @@ class Product extends BaseLoop $loopResultRow->set("ID", $product->getId()) ->set("REF",$product->getRef()) - ->set("TITLE",$product->getTitle()) - ->set("CHAPO", $product->getChapo()) - ->set("DESCRIPTION", $product->getDescription()) - ->set("POSTSCRIPTUM", $product->getPostscriptum()) - //->set("PRICE", $product->getPrice()) - //->set("PROMO_PRICE", $product->getPrice2()) - //->set("WEIGHT", $product->getWeight()) - //->set("PROMO", $product->getPromo()) - //->set("NEW", $product->getNewness()) + ->set("TITLE",$product->getVirtualColumn('i18n_TITLE')) + ->set("CHAPO", $product->getVirtualColumn('i18n_CHAPO')) + ->set("DESCRIPTION", $product->getVirtualColumn('i18n_DESCRIPTION')) + ->set("POSTSCRIPTUM", $product->getVirtualColumn('i18n_POSTSCRIPTUM')) + ->set("BEST_PRICE", $product->getVirtualColumn('real_lowest_price')) + ->set("IS_PROMO", $product->getVirtualColumn('main_product_is_promo')) + ->set("IS_NEW", $product->getVirtualColumn('main_product_is_new')) ->set("POSITION", $product->getPosition()) ; @@ -410,5 +525,4 @@ class Product extends BaseLoop return $loopResult; } - } diff --git a/core/lib/Thelia/Core/Template/Loop/ProductSaleElement.php b/core/lib/Thelia/Core/Template/Loop/ProductSaleElement.php new file mode 100755 index 000000000..ec7cbc37f --- /dev/null +++ b/core/lib/Thelia/Core/Template/Loop/ProductSaleElement.php @@ -0,0 +1,140 @@ +. */ +/* */ +/*************************************************************************************/ + +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; + +use Thelia\Core\Template\Loop\Argument\ArgumentCollection; +use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Log\Tlog; + +use Thelia\Model\Base\ProductSaleElementsQuery; +use Thelia\Model\ConfigQuery; +use Thelia\Type\TypeCollection; +use Thelia\Type; + +/** + * + * Product Sale Elements loop + * + * @todo : manage currency and attribute_availability + * + * Class ProductSaleElements + * @package Thelia\Core\Template\Loop + * @author Etienne Roudeix + */ +class ProductSaleElements extends BaseLoop +{ + /** + * @return ArgumentCollection + */ + protected function getArgDefinitions() + { + return new ArgumentCollection( + Argument::createIntTypeArgument('currency'), + Argument::createIntTypeArgument('product', null, true), + new Argument( + 'attribute_availability', + new TypeCollection( + new Type\IntToCombinedIntsListType() + ) + ), + new Argument( + 'order', + new TypeCollection( + new Type\EnumListType(array('alpha', 'alpha_reverse', 'attribute', 'attribute_reverse')) + ), + 'attribute' + ) + ); + } + + /** + * @param $pagination + * + * @return \Thelia\Core\Template\Element\LoopResult + */ + public function exec(&$pagination) + { + $search = ProductSaleElementsQuery::create(); + + $product = $this->getProduct(); + + $search->filterByProductId($product, Criteria::EQUAL); + + $orders = $this->getOrder(); + + foreach($orders as $order) { + switch ($order) { + case "alpha": + //$search->addAscendingOrderByColumn(\Thelia\Model\Map\AttributeI18nTableMap::TITLE); + break; + case "alpha_reverse": + //$search->addDescendingOrderByColumn(\Thelia\Model\Map\AttributeI18nTableMap::TITLE); + break; + case "attribute": + //$search->orderByPosition(Criteria::ASC); + break; + case "attribute_reverse": + //$search->orderByPosition(Criteria::DESC); + break; + } + } + + $currency = $this->getCurrency(); + + $search->joinProductPrice('price', Criteria::INNER_JOIN); + //->addJoinCondition('price', ''); + + $search->withColumn('`price`.CURRENCY_ID', 'price_CURRENCY_ID') + ->withColumn('`price`.PRICE', 'price_PRICE') + ->withColumn('`price`.PROMO_PRICE', 'price_PROMO_PRICE'); + + $PSEValues = $this->search($search, $pagination); + + $loopResult = new LoopResult(); + + foreach ($PSEValues as $PSEValue) { + $loopResultRow = new LoopResultRow(); + + $loopResultRow->set("ID", $PSEValue->getId()) + ->set("QUANTITY", $PSEValue->getQuantity()) + ->set("IS_PROMO", $PSEValue->getPromo() === 1 ? 1 : 0) + ->set("IS_NEW", $PSEValue->getNewness() === 1 ? 1 : 0) + ->set("WEIGHT", $PSEValue->getWeight()) + + ->set("CURRENCY", $PSEValue->getVirtualColumn('price_CURRENCY_ID')) + ->set("PRICE", $PSEValue->getVirtualColumn('price_PRICE')) + ->set("PROMO_PRICE", $PSEValue->getVirtualColumn('price_PROMO_PRICE')); + + $loopResult->addRow($loopResultRow); + } + + return $loopResult; + } +} \ No newline at end of file diff --git a/core/lib/Thelia/Core/Template/Loop/Title.php b/core/lib/Thelia/Core/Template/Loop/Title.php index b4b7c5421..843e29334 100755 --- a/core/lib/Thelia/Core/Template/Loop/Title.php +++ b/core/lib/Thelia/Core/Template/Loop/Title.php @@ -31,6 +31,8 @@ use Thelia\Core\Template\Element\LoopResultRow; use Thelia\Core\Template\Loop\Argument\ArgumentCollection; use Thelia\Core\Template\Loop\Argument\Argument; +use Thelia\Model\Tools\ModelCriteriaTools; + use Thelia\Model\CustomerTitleQuery; use Thelia\Model\ConfigQuery; @@ -64,35 +66,28 @@ class Title extends BaseLoop { $search = CustomerTitleQuery::create(); + /* manage translations */ + ModelCriteriaTools::getI18n($search, ConfigQuery::read("default_lang_without_translation", 1), $this->request->getSession()->getLocale(), array('SHORT', 'LONG')); + $id = $this->getId(); if (null !== $id) { $search->filterById($id, Criteria::IN); } - /** - * Criteria::INNER_JOIN in second parameter for joinWithI18n exclude query without translation. - * - * @todo : verify here if we want results for row without translations. - */ - - $search->joinWithI18n( - $this->request->getSession()->getLocale(), - (ConfigQuery::read("default_lang_without_translation", 1)) ? Criteria::LEFT_JOIN : Criteria::INNER_JOIN - ); - $search->orderByPosition(); + /* perform search */ $titles = $this->search($search, $pagination); $loopResult = new LoopResult(); foreach ($titles as $title) { $loopResultRow = new LoopResultRow(); - $loopResultRow->set("ID", $title->getId()); - $loopResultRow->set("DEFAULT", $title->getByDefault()); - $loopResultRow->set("SHORT", $title->getShort()); - $loopResultRow->set("LONG", $title->getLong()); + $loopResultRow->set("ID", $title->getId()) + ->set("DEFAULT", $title->getByDefault()) + ->set("SHORT", $title->getVirtualColumn('i18n_SHORT')) + ->set("LONG", $title->getVirtualColumn('i18n_LONG')); $loopResult->addRow($loopResultRow); } diff --git a/core/lib/Thelia/Core/Template/ParserContext.php b/core/lib/Thelia/Core/Template/ParserContext.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/DataAccessFunctions.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaLoop.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaLoop.php index a6eaa2e56..0163d6a71 100755 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaLoop.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaLoop.php @@ -61,7 +61,7 @@ class TheliaLoop extends AbstractSmartyPlugin */ public static function getPagination($loopId) { - if (!empty(self::$pagination[$loopId])) { + if(!empty(self::$pagination[$loopId])) { return self::$pagination[$loopId]; } else { return null; @@ -75,8 +75,9 @@ class TheliaLoop extends AbstractSmartyPlugin { $type = $this->getParam($params, 'type'); - if (null == $type) + if (null == $type) { throw new \InvalidArgumentException("Missing 'type' parameter in count arguments"); + } $loop = $this->createLoopInstance($params); @@ -101,13 +102,15 @@ class TheliaLoop extends AbstractSmartyPlugin { $name = $this->getParam($params, 'name'); - if (null == $name) + if (null == $name) { throw new \InvalidArgumentException("Missing 'name' parameter in loop arguments"); + } $type = $this->getParam($params, 'type'); - if (null == $type) + if (null == $type) { throw new \InvalidArgumentException("Missing 'type' parameter in loop arguments"); + } if ($content === null) { // Check if a loop with the same name exists in the current scope, and abort if it's the case. diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/UrlGenerator.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Core/Translation/Translator.php b/core/lib/Thelia/Core/Translation/Translator.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Exception/ImageException.php b/core/lib/Thelia/Exception/ImageException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Exception/InvalidCartException.php b/core/lib/Thelia/Exception/InvalidCartException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/CartAdd.php b/core/lib/Thelia/Form/CartAdd.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/CategoryCreationForm.php b/core/lib/Thelia/Form/CategoryCreationForm.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/CategoryDeletionForm.php b/core/lib/Thelia/Form/CategoryDeletionForm.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/CustomerLogin.php b/core/lib/Thelia/Form/CustomerLogin.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/Exception/FormValidationException.php b/core/lib/Thelia/Form/Exception/FormValidationException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/Exception/ProductNotFoundException.php b/core/lib/Thelia/Form/Exception/ProductNotFoundException.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Form/Exception/StockNotFoundException.php b/core/lib/Thelia/Form/Exception/StockNotFoundException.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 index f5acd9977..183f59947 --- a/core/lib/Thelia/Model/Base/Accessory.php +++ b/core/lib/Thelia/Model/Base/Accessory.php @@ -266,7 +266,7 @@ abstract class Accessory implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -891,6 +891,10 @@ abstract class Accessory implements ActiveRecordInterface $modifiedColumns = array(); $index = 0; + $this->modifiedColumns[] = AccessoryTableMap::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . AccessoryTableMap::ID . ')'); + } // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AccessoryTableMap::ID)) { @@ -948,6 +952,13 @@ abstract class Accessory implements ActiveRecordInterface throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); } + try { + $pk = $con->lastInsertId(); + } catch (Exception $e) { + throw new PropelException('Unable to get autoincrement id.', 0, $e); + } + $this->setId($pk); + $this->setNew(false); } @@ -1224,7 +1235,6 @@ abstract class Accessory implements ActiveRecordInterface */ public function copyInto($copyObj, $deepCopy = false, $makeNew = true) { - $copyObj->setId($this->getId()); $copyObj->setProductId($this->getProductId()); $copyObj->setAccessory($this->getAccessory()); $copyObj->setPosition($this->getPosition()); @@ -1232,6 +1242,7 @@ abstract class Accessory implements ActiveRecordInterface $copyObj->setUpdatedAt($this->getUpdatedAt()); if ($makeNew) { $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value } } 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 index 45cad61aa..a6ab068d1 --- a/core/lib/Thelia/Model/Base/Address.php +++ b/core/lib/Thelia/Model/Base/Address.php @@ -388,7 +388,7 @@ abstract class Address implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index b1241473e..6110aee7a --- a/core/lib/Thelia/Model/Base/Admin.php +++ b/core/lib/Thelia/Model/Base/Admin.php @@ -300,7 +300,7 @@ abstract class Admin implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** diff --git a/core/lib/Thelia/Model/Base/AdminGroup.php b/core/lib/Thelia/Model/Base/AdminGroup.php old mode 100644 new mode 100755 index 60141e3f8..9eadbb107 --- a/core/lib/Thelia/Model/Base/AdminGroup.php +++ b/core/lib/Thelia/Model/Base/AdminGroup.php @@ -262,7 +262,7 @@ abstract class AdminGroup implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index c83be20ee..ae828e4bb --- a/core/lib/Thelia/Model/Base/AdminLog.php +++ b/core/lib/Thelia/Model/Base/AdminLog.php @@ -266,7 +266,7 @@ abstract class AdminLog implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index fbd3199f4..08fc8be42 --- a/core/lib/Thelia/Model/Base/Area.php +++ b/core/lib/Thelia/Model/Base/Area.php @@ -277,7 +277,7 @@ abstract class Area implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index efe4a631d..21fb3389a --- a/core/lib/Thelia/Model/Base/Attribute.php +++ b/core/lib/Thelia/Model/Base/Attribute.php @@ -132,7 +132,7 @@ abstract class Attribute implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -326,7 +326,7 @@ abstract class Attribute implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2554,7 +2554,7 @@ abstract class Attribute implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collAttributeAvs instanceof Collection) { @@ -2612,7 +2612,7 @@ abstract class Attribute implements ActiveRecordInterface * * @return ChildAttribute The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2636,7 +2636,7 @@ abstract class Attribute implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildAttributeI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collAttributeI18ns) { @@ -2671,7 +2671,7 @@ abstract class Attribute implements ActiveRecordInterface * * @return ChildAttribute The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildAttributeI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/AttributeAv.php b/core/lib/Thelia/Model/Base/AttributeAv.php old mode 100644 new mode 100755 index 43a1be294..817c9738d --- a/core/lib/Thelia/Model/Base/AttributeAv.php +++ b/core/lib/Thelia/Model/Base/AttributeAv.php @@ -122,7 +122,7 @@ abstract class AttributeAv implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -298,7 +298,7 @@ abstract class AttributeAv implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1903,7 +1903,7 @@ abstract class AttributeAv implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collAttributeCombinations instanceof Collection) { @@ -1950,7 +1950,7 @@ abstract class AttributeAv implements ActiveRecordInterface * * @return ChildAttributeAv The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1974,7 +1974,7 @@ abstract class AttributeAv implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildAttributeAvI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collAttributeAvI18ns) { @@ -2009,7 +2009,7 @@ abstract class AttributeAv implements ActiveRecordInterface * * @return ChildAttributeAv The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildAttributeAvI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/AttributeAvI18n.php b/core/lib/Thelia/Model/Base/AttributeAvI18n.php old mode 100644 new mode 100755 index 3e7b9afcd..8b2b14a32 --- a/core/lib/Thelia/Model/Base/AttributeAvI18n.php +++ b/core/lib/Thelia/Model/Base/AttributeAvI18n.php @@ -61,7 +61,7 @@ abstract class AttributeAvI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class AttributeAvI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class AttributeAvI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class AttributeAvI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index 8ebfaa8c9..4f724b4f4 --- a/core/lib/Thelia/Model/Base/AttributeAvQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeAvQuery.php @@ -841,7 +841,7 @@ abstract class AttributeAvQuery extends ModelCriteria * * @return ChildAttributeAvQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'AttributeAvI18n'; @@ -859,7 +859,7 @@ abstract class AttributeAvQuery extends ModelCriteria * * @return ChildAttributeAvQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -880,7 +880,7 @@ abstract class AttributeAvQuery extends ModelCriteria * * @return ChildAttributeAvI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/AttributeCategory.php b/core/lib/Thelia/Model/Base/AttributeCategory.php old mode 100644 new mode 100755 index 691fa43ad..da702559a --- a/core/lib/Thelia/Model/Base/AttributeCategory.php +++ b/core/lib/Thelia/Model/Base/AttributeCategory.php @@ -262,7 +262,7 @@ abstract class AttributeCategory implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index ea2ade03c..ef840a5a1 --- a/core/lib/Thelia/Model/Base/AttributeCombination.php +++ b/core/lib/Thelia/Model/Base/AttributeCombination.php @@ -269,7 +269,7 @@ abstract class AttributeCombination implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index 0e4a1db8f..8a0456192 --- a/core/lib/Thelia/Model/Base/AttributeI18n.php +++ b/core/lib/Thelia/Model/Base/AttributeI18n.php @@ -61,7 +61,7 @@ abstract class AttributeI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class AttributeI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class AttributeI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class AttributeI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index cabbaf7ac..cbb690efb --- a/core/lib/Thelia/Model/Base/AttributeQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeQuery.php @@ -886,7 +886,7 @@ abstract class AttributeQuery extends ModelCriteria * * @return ChildAttributeQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'AttributeI18n'; @@ -904,7 +904,7 @@ abstract class AttributeQuery extends ModelCriteria * * @return ChildAttributeQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -925,7 +925,7 @@ abstract class AttributeQuery extends ModelCriteria * * @return ChildAttributeI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Cart.php b/core/lib/Thelia/Model/Base/Cart.php old mode 100644 new mode 100755 index 910bdf0e0..20a2d9a5c --- a/core/lib/Thelia/Model/Base/Cart.php +++ b/core/lib/Thelia/Model/Base/Cart.php @@ -307,7 +307,7 @@ abstract class Cart implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** diff --git a/core/lib/Thelia/Model/Base/CartItem.php b/core/lib/Thelia/Model/Base/CartItem.php old mode 100644 new mode 100755 index 3c5711022..827a4c5ec --- a/core/lib/Thelia/Model/Base/CartItem.php +++ b/core/lib/Thelia/Model/Base/CartItem.php @@ -313,7 +313,7 @@ abstract class CartItem implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** diff --git a/core/lib/Thelia/Model/Base/CartItemQuery.php b/core/lib/Thelia/Model/Base/CartItemQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CartQuery.php b/core/lib/Thelia/Model/Base/CartQuery.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 index 85a77a061..1bafdae8c --- a/core/lib/Thelia/Model/Base/Category.php +++ b/core/lib/Thelia/Model/Base/Category.php @@ -22,6 +22,8 @@ use Thelia\Model\AttributeCategory as ChildAttributeCategory; use Thelia\Model\AttributeCategoryQuery as ChildAttributeCategoryQuery; use Thelia\Model\AttributeQuery as ChildAttributeQuery; use Thelia\Model\Category as ChildCategory; +use Thelia\Model\CategoryAssociatedContent as ChildCategoryAssociatedContent; +use Thelia\Model\CategoryAssociatedContentQuery as ChildCategoryAssociatedContentQuery; use Thelia\Model\CategoryDocument as ChildCategoryDocument; use Thelia\Model\CategoryDocumentQuery as ChildCategoryDocumentQuery; use Thelia\Model\CategoryI18n as ChildCategoryI18n; @@ -31,8 +33,6 @@ use Thelia\Model\CategoryImageQuery as ChildCategoryImageQuery; use Thelia\Model\CategoryQuery as ChildCategoryQuery; use Thelia\Model\CategoryVersion as ChildCategoryVersion; use Thelia\Model\CategoryVersionQuery as ChildCategoryVersionQuery; -use Thelia\Model\ContentAssoc as ChildContentAssoc; -use Thelia\Model\ContentAssocQuery as ChildContentAssocQuery; use Thelia\Model\Feature as ChildFeature; use Thelia\Model\FeatureCategory as ChildFeatureCategory; use Thelia\Model\FeatureCategoryQuery as ChildFeatureCategoryQuery; @@ -153,12 +153,6 @@ abstract class Category implements ActiveRecordInterface protected $collAttributeCategories; protected $collAttributeCategoriesPartial; - /** - * @var ObjectCollection|ChildContentAssoc[] Collection to store aggregation of ChildContentAssoc objects. - */ - protected $collContentAssocs; - protected $collContentAssocsPartial; - /** * @var ObjectCollection|ChildRewriting[] Collection to store aggregation of ChildRewriting objects. */ @@ -177,6 +171,12 @@ abstract class Category implements ActiveRecordInterface protected $collCategoryDocuments; protected $collCategoryDocumentsPartial; + /** + * @var ObjectCollection|ChildCategoryAssociatedContent[] Collection to store aggregation of ChildCategoryAssociatedContent objects. + */ + protected $collCategoryAssociatedContents; + protected $collCategoryAssociatedContentsPartial; + /** * @var ObjectCollection|ChildCategoryI18n[] Collection to store aggregation of ChildCategoryI18n objects. */ @@ -218,7 +218,7 @@ abstract class Category implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -270,12 +270,6 @@ abstract class Category implements ActiveRecordInterface */ protected $attributeCategoriesScheduledForDeletion = null; - /** - * An array of objects scheduled for deletion. - * @var ObjectCollection - */ - protected $contentAssocsScheduledForDeletion = null; - /** * An array of objects scheduled for deletion. * @var ObjectCollection @@ -294,6 +288,12 @@ abstract class Category implements ActiveRecordInterface */ protected $categoryDocumentsScheduledForDeletion = null; + /** + * An array of objects scheduled for deletion. + * @var ObjectCollection + */ + protected $categoryAssociatedContentsScheduledForDeletion = null; + /** * An array of objects scheduled for deletion. * @var ObjectCollection @@ -475,7 +475,7 @@ abstract class Category implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1039,14 +1039,14 @@ abstract class Category implements ActiveRecordInterface $this->collAttributeCategories = null; - $this->collContentAssocs = null; - $this->collRewritings = null; $this->collCategoryImages = null; $this->collCategoryDocuments = null; + $this->collCategoryAssociatedContents = null; + $this->collCategoryI18ns = null; $this->collCategoryVersions = null; @@ -1331,23 +1331,6 @@ abstract class Category implements ActiveRecordInterface } } - if ($this->contentAssocsScheduledForDeletion !== null) { - if (!$this->contentAssocsScheduledForDeletion->isEmpty()) { - \Thelia\Model\ContentAssocQuery::create() - ->filterByPrimaryKeys($this->contentAssocsScheduledForDeletion->getPrimaryKeys(false)) - ->delete($con); - $this->contentAssocsScheduledForDeletion = null; - } - } - - if ($this->collContentAssocs !== null) { - foreach ($this->collContentAssocs as $referrerFK) { - if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { - $affectedRows += $referrerFK->save($con); - } - } - } - if ($this->rewritingsScheduledForDeletion !== null) { if (!$this->rewritingsScheduledForDeletion->isEmpty()) { \Thelia\Model\RewritingQuery::create() @@ -1399,6 +1382,23 @@ abstract class Category implements ActiveRecordInterface } } + if ($this->categoryAssociatedContentsScheduledForDeletion !== null) { + if (!$this->categoryAssociatedContentsScheduledForDeletion->isEmpty()) { + \Thelia\Model\CategoryAssociatedContentQuery::create() + ->filterByPrimaryKeys($this->categoryAssociatedContentsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->categoryAssociatedContentsScheduledForDeletion = null; + } + } + + if ($this->collCategoryAssociatedContents !== null) { + foreach ($this->collCategoryAssociatedContents as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + if ($this->categoryI18nsScheduledForDeletion !== null) { if (!$this->categoryI18nsScheduledForDeletion->isEmpty()) { \Thelia\Model\CategoryI18nQuery::create() @@ -1668,9 +1668,6 @@ abstract class Category implements ActiveRecordInterface if (null !== $this->collAttributeCategories) { $result['AttributeCategories'] = $this->collAttributeCategories->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } - if (null !== $this->collContentAssocs) { - $result['ContentAssocs'] = $this->collContentAssocs->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); - } if (null !== $this->collRewritings) { $result['Rewritings'] = $this->collRewritings->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } @@ -1680,6 +1677,9 @@ abstract class Category implements ActiveRecordInterface if (null !== $this->collCategoryDocuments) { $result['CategoryDocuments'] = $this->collCategoryDocuments->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } + if (null !== $this->collCategoryAssociatedContents) { + $result['CategoryAssociatedContents'] = $this->collCategoryAssociatedContents->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } if (null !== $this->collCategoryI18ns) { $result['CategoryI18ns'] = $this->collCategoryI18ns->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } @@ -1895,12 +1895,6 @@ abstract class Category implements ActiveRecordInterface } } - foreach ($this->getContentAssocs() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addContentAssoc($relObj->copy($deepCopy)); - } - } - foreach ($this->getRewritings() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addRewriting($relObj->copy($deepCopy)); @@ -1919,6 +1913,12 @@ abstract class Category implements ActiveRecordInterface } } + foreach ($this->getCategoryAssociatedContents() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCategoryAssociatedContent($relObj->copy($deepCopy)); + } + } + foreach ($this->getCategoryI18ns() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCategoryI18n($relObj->copy($deepCopy)); @@ -1981,9 +1981,6 @@ abstract class Category implements ActiveRecordInterface if ('AttributeCategory' == $relationName) { return $this->initAttributeCategories(); } - if ('ContentAssoc' == $relationName) { - return $this->initContentAssocs(); - } if ('Rewriting' == $relationName) { return $this->initRewritings(); } @@ -1993,6 +1990,9 @@ abstract class Category implements ActiveRecordInterface if ('CategoryDocument' == $relationName) { return $this->initCategoryDocuments(); } + if ('CategoryAssociatedContent' == $relationName) { + return $this->initCategoryAssociatedContents(); + } if ('CategoryI18n' == $relationName) { return $this->initCategoryI18ns(); } @@ -2733,274 +2733,6 @@ abstract class Category implements ActiveRecordInterface return $this->getAttributeCategories($query, $con); } - /** - * Clears out the collContentAssocs collection - * - * This does not modify the database; however, it will remove any associated objects, causing - * them to be refetched by subsequent calls to accessor method. - * - * @return void - * @see addContentAssocs() - */ - public function clearContentAssocs() - { - $this->collContentAssocs = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Reset is the collContentAssocs collection loaded partially. - */ - public function resetPartialContentAssocs($v = true) - { - $this->collContentAssocsPartial = $v; - } - - /** - * Initializes the collContentAssocs collection. - * - * By default this just sets the collContentAssocs collection to an empty array (like clearcollContentAssocs()); - * however, you may wish to override this method in your stub class to provide setting appropriate - * to your application -- for example, setting the initial array to the values stored in database. - * - * @param boolean $overrideExisting If set to true, the method call initializes - * the collection even if it is not empty - * - * @return void - */ - public function initContentAssocs($overrideExisting = true) - { - if (null !== $this->collContentAssocs && !$overrideExisting) { - return; - } - $this->collContentAssocs = new ObjectCollection(); - $this->collContentAssocs->setModel('\Thelia\Model\ContentAssoc'); - } - - /** - * Gets an array of ChildContentAssoc objects which contain a foreign key that references this object. - * - * If the $criteria is not null, it is used to always fetch the results from the database. - * Otherwise the results are fetched from the database the first time, then cached. - * Next time the same method is called without $criteria, the cached collection is returned. - * If this ChildCategory is new, it will return - * an empty collection or the current collection; the criteria is ignored on a new object. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - * @throws PropelException - */ - public function getContentAssocs($criteria = null, ConnectionInterface $con = null) - { - $partial = $this->collContentAssocsPartial && !$this->isNew(); - if (null === $this->collContentAssocs || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collContentAssocs) { - // return empty collection - $this->initContentAssocs(); - } else { - $collContentAssocs = ChildContentAssocQuery::create(null, $criteria) - ->filterByCategory($this) - ->find($con); - - if (null !== $criteria) { - if (false !== $this->collContentAssocsPartial && count($collContentAssocs)) { - $this->initContentAssocs(false); - - foreach ($collContentAssocs as $obj) { - if (false == $this->collContentAssocs->contains($obj)) { - $this->collContentAssocs->append($obj); - } - } - - $this->collContentAssocsPartial = true; - } - - $collContentAssocs->getInternalIterator()->rewind(); - - return $collContentAssocs; - } - - if ($partial && $this->collContentAssocs) { - foreach ($this->collContentAssocs as $obj) { - if ($obj->isNew()) { - $collContentAssocs[] = $obj; - } - } - } - - $this->collContentAssocs = $collContentAssocs; - $this->collContentAssocsPartial = false; - } - } - - return $this->collContentAssocs; - } - - /** - * Sets a collection of ContentAssoc objects related by a one-to-many relationship - * to the current object. - * It will also schedule objects for deletion based on a diff between old objects (aka persisted) - * and new objects from the given Propel collection. - * - * @param Collection $contentAssocs A Propel collection. - * @param ConnectionInterface $con Optional connection object - * @return ChildCategory The current object (for fluent API support) - */ - public function setContentAssocs(Collection $contentAssocs, ConnectionInterface $con = null) - { - $contentAssocsToDelete = $this->getContentAssocs(new Criteria(), $con)->diff($contentAssocs); - - - $this->contentAssocsScheduledForDeletion = $contentAssocsToDelete; - - foreach ($contentAssocsToDelete as $contentAssocRemoved) { - $contentAssocRemoved->setCategory(null); - } - - $this->collContentAssocs = null; - foreach ($contentAssocs as $contentAssoc) { - $this->addContentAssoc($contentAssoc); - } - - $this->collContentAssocs = $contentAssocs; - $this->collContentAssocsPartial = false; - - return $this; - } - - /** - * Returns the number of related ContentAssoc objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param ConnectionInterface $con - * @return int Count of related ContentAssoc objects. - * @throws PropelException - */ - public function countContentAssocs(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) - { - $partial = $this->collContentAssocsPartial && !$this->isNew(); - if (null === $this->collContentAssocs || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collContentAssocs) { - return 0; - } - - if ($partial && !$criteria) { - return count($this->getContentAssocs()); - } - - $query = ChildContentAssocQuery::create(null, $criteria); - if ($distinct) { - $query->distinct(); - } - - return $query - ->filterByCategory($this) - ->count($con); - } - - return count($this->collContentAssocs); - } - - /** - * Method called to associate a ChildContentAssoc object to this object - * through the ChildContentAssoc foreign key attribute. - * - * @param ChildContentAssoc $l ChildContentAssoc - * @return \Thelia\Model\Category The current object (for fluent API support) - */ - public function addContentAssoc(ChildContentAssoc $l) - { - if ($this->collContentAssocs === null) { - $this->initContentAssocs(); - $this->collContentAssocsPartial = true; - } - - if (!in_array($l, $this->collContentAssocs->getArrayCopy(), true)) { // only add it if the **same** object is not already associated - $this->doAddContentAssoc($l); - } - - return $this; - } - - /** - * @param ContentAssoc $contentAssoc The contentAssoc object to add. - */ - protected function doAddContentAssoc($contentAssoc) - { - $this->collContentAssocs[]= $contentAssoc; - $contentAssoc->setCategory($this); - } - - /** - * @param ContentAssoc $contentAssoc The contentAssoc object to remove. - * @return ChildCategory The current object (for fluent API support) - */ - public function removeContentAssoc($contentAssoc) - { - if ($this->getContentAssocs()->contains($contentAssoc)) { - $this->collContentAssocs->remove($this->collContentAssocs->search($contentAssoc)); - if (null === $this->contentAssocsScheduledForDeletion) { - $this->contentAssocsScheduledForDeletion = clone $this->collContentAssocs; - $this->contentAssocsScheduledForDeletion->clear(); - } - $this->contentAssocsScheduledForDeletion[]= $contentAssoc; - $contentAssoc->setCategory(null); - } - - return $this; - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this Category is new, it will return - * an empty collection; or if this Category has previously - * been saved, it will retrieve related ContentAssocs from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in Category. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - */ - public function getContentAssocsJoinProduct($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) - { - $query = ChildContentAssocQuery::create(null, $criteria); - $query->joinWith('Product', $joinBehavior); - - return $this->getContentAssocs($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this Category is new, it will return - * an empty collection; or if this Category has previously - * been saved, it will retrieve related ContentAssocs from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in Category. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - */ - public function getContentAssocsJoinContent($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) - { - $query = ChildContentAssocQuery::create(null, $criteria); - $query->joinWith('Content', $joinBehavior); - - return $this->getContentAssocs($query, $con); - } - /** * Clears out the collRewritings collection * @@ -3730,6 +3462,249 @@ abstract class Category implements ActiveRecordInterface return $this; } + /** + * Clears out the collCategoryAssociatedContents collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addCategoryAssociatedContents() + */ + public function clearCategoryAssociatedContents() + { + $this->collCategoryAssociatedContents = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collCategoryAssociatedContents collection loaded partially. + */ + public function resetPartialCategoryAssociatedContents($v = true) + { + $this->collCategoryAssociatedContentsPartial = $v; + } + + /** + * Initializes the collCategoryAssociatedContents collection. + * + * By default this just sets the collCategoryAssociatedContents collection to an empty array (like clearcollCategoryAssociatedContents()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCategoryAssociatedContents($overrideExisting = true) + { + if (null !== $this->collCategoryAssociatedContents && !$overrideExisting) { + return; + } + $this->collCategoryAssociatedContents = new ObjectCollection(); + $this->collCategoryAssociatedContents->setModel('\Thelia\Model\CategoryAssociatedContent'); + } + + /** + * Gets an array of ChildCategoryAssociatedContent objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildCategory is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildCategoryAssociatedContent[] List of ChildCategoryAssociatedContent objects + * @throws PropelException + */ + public function getCategoryAssociatedContents($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collCategoryAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collCategoryAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCategoryAssociatedContents) { + // return empty collection + $this->initCategoryAssociatedContents(); + } else { + $collCategoryAssociatedContents = ChildCategoryAssociatedContentQuery::create(null, $criteria) + ->filterByCategory($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collCategoryAssociatedContentsPartial && count($collCategoryAssociatedContents)) { + $this->initCategoryAssociatedContents(false); + + foreach ($collCategoryAssociatedContents as $obj) { + if (false == $this->collCategoryAssociatedContents->contains($obj)) { + $this->collCategoryAssociatedContents->append($obj); + } + } + + $this->collCategoryAssociatedContentsPartial = true; + } + + $collCategoryAssociatedContents->getInternalIterator()->rewind(); + + return $collCategoryAssociatedContents; + } + + if ($partial && $this->collCategoryAssociatedContents) { + foreach ($this->collCategoryAssociatedContents as $obj) { + if ($obj->isNew()) { + $collCategoryAssociatedContents[] = $obj; + } + } + } + + $this->collCategoryAssociatedContents = $collCategoryAssociatedContents; + $this->collCategoryAssociatedContentsPartial = false; + } + } + + return $this->collCategoryAssociatedContents; + } + + /** + * Sets a collection of CategoryAssociatedContent objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $categoryAssociatedContents A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildCategory The current object (for fluent API support) + */ + public function setCategoryAssociatedContents(Collection $categoryAssociatedContents, ConnectionInterface $con = null) + { + $categoryAssociatedContentsToDelete = $this->getCategoryAssociatedContents(new Criteria(), $con)->diff($categoryAssociatedContents); + + + $this->categoryAssociatedContentsScheduledForDeletion = $categoryAssociatedContentsToDelete; + + foreach ($categoryAssociatedContentsToDelete as $categoryAssociatedContentRemoved) { + $categoryAssociatedContentRemoved->setCategory(null); + } + + $this->collCategoryAssociatedContents = null; + foreach ($categoryAssociatedContents as $categoryAssociatedContent) { + $this->addCategoryAssociatedContent($categoryAssociatedContent); + } + + $this->collCategoryAssociatedContents = $categoryAssociatedContents; + $this->collCategoryAssociatedContentsPartial = false; + + return $this; + } + + /** + * Returns the number of related CategoryAssociatedContent objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related CategoryAssociatedContent objects. + * @throws PropelException + */ + public function countCategoryAssociatedContents(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collCategoryAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collCategoryAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCategoryAssociatedContents) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCategoryAssociatedContents()); + } + + $query = ChildCategoryAssociatedContentQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCategory($this) + ->count($con); + } + + return count($this->collCategoryAssociatedContents); + } + + /** + * Method called to associate a ChildCategoryAssociatedContent object to this object + * through the ChildCategoryAssociatedContent foreign key attribute. + * + * @param ChildCategoryAssociatedContent $l ChildCategoryAssociatedContent + * @return \Thelia\Model\Category The current object (for fluent API support) + */ + public function addCategoryAssociatedContent(ChildCategoryAssociatedContent $l) + { + if ($this->collCategoryAssociatedContents === null) { + $this->initCategoryAssociatedContents(); + $this->collCategoryAssociatedContentsPartial = true; + } + + if (!in_array($l, $this->collCategoryAssociatedContents->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCategoryAssociatedContent($l); + } + + return $this; + } + + /** + * @param CategoryAssociatedContent $categoryAssociatedContent The categoryAssociatedContent object to add. + */ + protected function doAddCategoryAssociatedContent($categoryAssociatedContent) + { + $this->collCategoryAssociatedContents[]= $categoryAssociatedContent; + $categoryAssociatedContent->setCategory($this); + } + + /** + * @param CategoryAssociatedContent $categoryAssociatedContent The categoryAssociatedContent object to remove. + * @return ChildCategory The current object (for fluent API support) + */ + public function removeCategoryAssociatedContent($categoryAssociatedContent) + { + if ($this->getCategoryAssociatedContents()->contains($categoryAssociatedContent)) { + $this->collCategoryAssociatedContents->remove($this->collCategoryAssociatedContents->search($categoryAssociatedContent)); + if (null === $this->categoryAssociatedContentsScheduledForDeletion) { + $this->categoryAssociatedContentsScheduledForDeletion = clone $this->collCategoryAssociatedContents; + $this->categoryAssociatedContentsScheduledForDeletion->clear(); + } + $this->categoryAssociatedContentsScheduledForDeletion[]= clone $categoryAssociatedContent; + $categoryAssociatedContent->setCategory(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this Category is new, it will return + * an empty collection; or if this Category has previously + * been saved, it will retrieve related CategoryAssociatedContents from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in Category. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildCategoryAssociatedContent[] List of ChildCategoryAssociatedContent objects + */ + public function getCategoryAssociatedContentsJoinContent($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildCategoryAssociatedContentQuery::create(null, $criteria); + $query->joinWith('Content', $joinBehavior); + + return $this->getCategoryAssociatedContents($query, $con); + } + /** * Clears out the collCategoryI18ns collection * @@ -4774,11 +4749,6 @@ abstract class Category implements ActiveRecordInterface $o->clearAllReferences($deep); } } - if ($this->collContentAssocs) { - foreach ($this->collContentAssocs as $o) { - $o->clearAllReferences($deep); - } - } if ($this->collRewritings) { foreach ($this->collRewritings as $o) { $o->clearAllReferences($deep); @@ -4794,6 +4764,11 @@ abstract class Category implements ActiveRecordInterface $o->clearAllReferences($deep); } } + if ($this->collCategoryAssociatedContents) { + foreach ($this->collCategoryAssociatedContents as $o) { + $o->clearAllReferences($deep); + } + } if ($this->collCategoryI18ns) { foreach ($this->collCategoryI18ns as $o) { $o->clearAllReferences($deep); @@ -4822,7 +4797,7 @@ abstract class Category implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collProductCategories instanceof Collection) { @@ -4837,10 +4812,6 @@ abstract class Category implements ActiveRecordInterface $this->collAttributeCategories->clearIterator(); } $this->collAttributeCategories = null; - if ($this->collContentAssocs instanceof Collection) { - $this->collContentAssocs->clearIterator(); - } - $this->collContentAssocs = null; if ($this->collRewritings instanceof Collection) { $this->collRewritings->clearIterator(); } @@ -4853,6 +4824,10 @@ abstract class Category implements ActiveRecordInterface $this->collCategoryDocuments->clearIterator(); } $this->collCategoryDocuments = null; + if ($this->collCategoryAssociatedContents instanceof Collection) { + $this->collCategoryAssociatedContents->clearIterator(); + } + $this->collCategoryAssociatedContents = null; if ($this->collCategoryI18ns instanceof Collection) { $this->collCategoryI18ns->clearIterator(); } @@ -4894,7 +4869,7 @@ abstract class Category implements ActiveRecordInterface * * @return ChildCategory The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -4918,7 +4893,7 @@ abstract class Category implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildCategoryI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collCategoryI18ns) { @@ -4953,7 +4928,7 @@ abstract class Category implements ActiveRecordInterface * * @return ChildCategory The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildCategoryI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ContentAssoc.php b/core/lib/Thelia/Model/Base/CategoryAssociatedContent.php similarity index 80% rename from core/lib/Thelia/Model/Base/ContentAssoc.php rename to core/lib/Thelia/Model/Base/CategoryAssociatedContent.php index eaa1cb9b7..142ab543f 100644 --- a/core/lib/Thelia/Model/Base/ContentAssoc.php +++ b/core/lib/Thelia/Model/Base/CategoryAssociatedContent.php @@ -17,21 +17,19 @@ use Propel\Runtime\Map\TableMap; use Propel\Runtime\Parser\AbstractParser; use Propel\Runtime\Util\PropelDateTime; use Thelia\Model\Category as ChildCategory; +use Thelia\Model\CategoryAssociatedContent as ChildCategoryAssociatedContent; +use Thelia\Model\CategoryAssociatedContentQuery as ChildCategoryAssociatedContentQuery; use Thelia\Model\CategoryQuery as ChildCategoryQuery; use Thelia\Model\Content as ChildContent; -use Thelia\Model\ContentAssoc as ChildContentAssoc; -use Thelia\Model\ContentAssocQuery as ChildContentAssocQuery; use Thelia\Model\ContentQuery as ChildContentQuery; -use Thelia\Model\Product as ChildProduct; -use Thelia\Model\ProductQuery as ChildProductQuery; -use Thelia\Model\Map\ContentAssocTableMap; +use Thelia\Model\Map\CategoryAssociatedContentTableMap; -abstract class ContentAssoc implements ActiveRecordInterface +abstract class CategoryAssociatedContent implements ActiveRecordInterface { /** * TableMap class name */ - const TABLE_MAP = '\\Thelia\\Model\\Map\\ContentAssocTableMap'; + const TABLE_MAP = '\\Thelia\\Model\\Map\\CategoryAssociatedContentTableMap'; /** @@ -72,12 +70,6 @@ abstract class ContentAssoc implements ActiveRecordInterface */ protected $category_id; - /** - * The value for the product_id field. - * @var int - */ - protected $product_id; - /** * The value for the content_id field. * @var int @@ -107,11 +99,6 @@ abstract class ContentAssoc implements ActiveRecordInterface */ protected $aCategory; - /** - * @var Product - */ - protected $aProduct; - /** * @var Content */ @@ -126,7 +113,7 @@ abstract class ContentAssoc implements ActiveRecordInterface protected $alreadyInSave = false; /** - * Initializes internal state of Thelia\Model\Base\ContentAssoc object. + * Initializes internal state of Thelia\Model\Base\CategoryAssociatedContent object. */ public function __construct() { @@ -221,9 +208,9 @@ abstract class ContentAssoc implements ActiveRecordInterface } /** - * Compares this with another ContentAssoc instance. If - * obj is an instance of ContentAssoc, delegates to - * equals(ContentAssoc). Otherwise, returns false. + * Compares this with another CategoryAssociatedContent instance. If + * obj is an instance of CategoryAssociatedContent, delegates to + * equals(CategoryAssociatedContent). Otherwise, returns false. * * @param obj The object to compare to. * @return Whether equal to the object specified. @@ -281,7 +268,7 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -304,7 +291,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * @param string $name The virtual column name * @param mixed $value The value to give to the virtual column * - * @return ContentAssoc The current object, for fluid interface + * @return CategoryAssociatedContent The current object, for fluid interface */ public function setVirtualColumn($name, $value) { @@ -336,7 +323,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * or a format name ('XML', 'YAML', 'JSON', 'CSV') * @param string $data The source data to import from * - * @return ContentAssoc The current object, for fluid interface + * @return CategoryAssociatedContent The current object, for fluid interface */ public function importFrom($parser, $data) { @@ -401,17 +388,6 @@ abstract class ContentAssoc implements ActiveRecordInterface return $this->category_id; } - /** - * Get the [product_id] column value. - * - * @return int - */ - public function getProductId() - { - - return $this->product_id; - } - /** * Get the [content_id] column value. * @@ -478,7 +454,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * Set the value of [id] column. * * @param int $v new value - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) */ public function setId($v) { @@ -488,7 +464,7 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($this->id !== $v) { $this->id = $v; - $this->modifiedColumns[] = ContentAssocTableMap::ID; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::ID; } @@ -499,7 +475,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * Set the value of [category_id] column. * * @param int $v new value - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) */ public function setCategoryId($v) { @@ -509,7 +485,7 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($this->category_id !== $v) { $this->category_id = $v; - $this->modifiedColumns[] = ContentAssocTableMap::CATEGORY_ID; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::CATEGORY_ID; } if ($this->aCategory !== null && $this->aCategory->getId() !== $v) { @@ -520,36 +496,11 @@ abstract class ContentAssoc implements ActiveRecordInterface return $this; } // setCategoryId() - /** - * Set the value of [product_id] column. - * - * @param int $v new value - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) - */ - public function setProductId($v) - { - if ($v !== null) { - $v = (int) $v; - } - - if ($this->product_id !== $v) { - $this->product_id = $v; - $this->modifiedColumns[] = ContentAssocTableMap::PRODUCT_ID; - } - - if ($this->aProduct !== null && $this->aProduct->getId() !== $v) { - $this->aProduct = null; - } - - - return $this; - } // setProductId() - /** * Set the value of [content_id] column. * * @param int $v new value - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) */ public function setContentId($v) { @@ -559,7 +510,7 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($this->content_id !== $v) { $this->content_id = $v; - $this->modifiedColumns[] = ContentAssocTableMap::CONTENT_ID; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::CONTENT_ID; } if ($this->aContent !== null && $this->aContent->getId() !== $v) { @@ -574,7 +525,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * Set the value of [position] column. * * @param int $v new value - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) */ public function setPosition($v) { @@ -584,7 +535,7 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($this->position !== $v) { $this->position = $v; - $this->modifiedColumns[] = ContentAssocTableMap::POSITION; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::POSITION; } @@ -596,7 +547,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * * @param mixed $v string, integer (timestamp), or \DateTime value. * Empty strings are treated as NULL. - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) */ public function setCreatedAt($v) { @@ -604,7 +555,7 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($this->created_at !== null || $dt !== null) { if ($dt !== $this->created_at) { $this->created_at = $dt; - $this->modifiedColumns[] = ContentAssocTableMap::CREATED_AT; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::CREATED_AT; } } // if either are not null @@ -617,7 +568,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * * @param mixed $v string, integer (timestamp), or \DateTime value. * Empty strings are treated as NULL. - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) */ public function setUpdatedAt($v) { @@ -625,7 +576,7 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($this->updated_at !== null || $dt !== null) { if ($dt !== $this->updated_at) { $this->updated_at = $dt; - $this->modifiedColumns[] = ContentAssocTableMap::UPDATED_AT; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::UPDATED_AT; } } // if either are not null @@ -670,28 +621,25 @@ abstract class ContentAssoc implements ActiveRecordInterface try { - $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ContentAssocTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : CategoryAssociatedContentTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; $this->id = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ContentAssocTableMap::translateFieldName('CategoryId', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : CategoryAssociatedContentTableMap::translateFieldName('CategoryId', TableMap::TYPE_PHPNAME, $indexType)]; $this->category_id = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ContentAssocTableMap::translateFieldName('ProductId', TableMap::TYPE_PHPNAME, $indexType)]; - $this->product_id = (null !== $col) ? (int) $col : null; - - $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ContentAssocTableMap::translateFieldName('ContentId', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CategoryAssociatedContentTableMap::translateFieldName('ContentId', TableMap::TYPE_PHPNAME, $indexType)]; $this->content_id = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ContentAssocTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CategoryAssociatedContentTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)]; $this->position = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : ContentAssocTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CategoryAssociatedContentTableMap::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 : ContentAssocTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CategoryAssociatedContentTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } @@ -704,10 +652,10 @@ abstract class ContentAssoc implements ActiveRecordInterface $this->ensureConsistency(); } - return $startcol + 7; // 7 = ContentAssocTableMap::NUM_HYDRATE_COLUMNS. + return $startcol + 6; // 6 = CategoryAssociatedContentTableMap::NUM_HYDRATE_COLUMNS. } catch (Exception $e) { - throw new PropelException("Error populating \Thelia\Model\ContentAssoc object", 0, $e); + throw new PropelException("Error populating \Thelia\Model\CategoryAssociatedContent object", 0, $e); } } @@ -729,9 +677,6 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($this->aCategory !== null && $this->category_id !== $this->aCategory->getId()) { $this->aCategory = null; } - if ($this->aProduct !== null && $this->product_id !== $this->aProduct->getId()) { - $this->aProduct = null; - } if ($this->aContent !== null && $this->content_id !== $this->aContent->getId()) { $this->aContent = null; } @@ -758,13 +703,13 @@ abstract class ContentAssoc implements ActiveRecordInterface } if ($con === null) { - $con = Propel::getServiceContainer()->getReadConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getReadConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } // We don't need to alter the object instance pool; we're just modifying this instance // already in the pool. - $dataFetcher = ChildContentAssocQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $dataFetcher = ChildCategoryAssociatedContentQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); $row = $dataFetcher->fetch(); $dataFetcher->close(); if (!$row) { @@ -775,7 +720,6 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($deep) { // also de-associate any related objects? $this->aCategory = null; - $this->aProduct = null; $this->aContent = null; } // if (deep) } @@ -786,8 +730,8 @@ abstract class ContentAssoc implements ActiveRecordInterface * @param ConnectionInterface $con * @return void * @throws PropelException - * @see ContentAssoc::setDeleted() - * @see ContentAssoc::isDeleted() + * @see CategoryAssociatedContent::setDeleted() + * @see CategoryAssociatedContent::isDeleted() */ public function delete(ConnectionInterface $con = null) { @@ -796,12 +740,12 @@ abstract class ContentAssoc implements ActiveRecordInterface } if ($con === null) { - $con = Propel::getServiceContainer()->getWriteConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getWriteConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } $con->beginTransaction(); try { - $deleteQuery = ChildContentAssocQuery::create() + $deleteQuery = ChildCategoryAssociatedContentQuery::create() ->filterByPrimaryKey($this->getPrimaryKey()); $ret = $this->preDelete($con); if ($ret) { @@ -838,7 +782,7 @@ abstract class ContentAssoc implements ActiveRecordInterface } if ($con === null) { - $con = Propel::getServiceContainer()->getWriteConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getWriteConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } $con->beginTransaction(); @@ -848,16 +792,16 @@ abstract class ContentAssoc implements ActiveRecordInterface if ($isInsert) { $ret = $ret && $this->preInsert($con); // timestampable behavior - if (!$this->isColumnModified(ContentAssocTableMap::CREATED_AT)) { + if (!$this->isColumnModified(CategoryAssociatedContentTableMap::CREATED_AT)) { $this->setCreatedAt(time()); } - if (!$this->isColumnModified(ContentAssocTableMap::UPDATED_AT)) { + if (!$this->isColumnModified(CategoryAssociatedContentTableMap::UPDATED_AT)) { $this->setUpdatedAt(time()); } } else { $ret = $ret && $this->preUpdate($con); // timestampable behavior - if ($this->isModified() && !$this->isColumnModified(ContentAssocTableMap::UPDATED_AT)) { + if ($this->isModified() && !$this->isColumnModified(CategoryAssociatedContentTableMap::UPDATED_AT)) { $this->setUpdatedAt(time()); } } @@ -869,7 +813,7 @@ abstract class ContentAssoc implements ActiveRecordInterface $this->postUpdate($con); } $this->postSave($con); - ContentAssocTableMap::addInstanceToPool($this); + CategoryAssociatedContentTableMap::addInstanceToPool($this); } else { $affectedRows = 0; } @@ -911,13 +855,6 @@ abstract class ContentAssoc implements ActiveRecordInterface $this->setCategory($this->aCategory); } - if ($this->aProduct !== null) { - if ($this->aProduct->isModified() || $this->aProduct->isNew()) { - $affectedRows += $this->aProduct->save($con); - } - $this->setProduct($this->aProduct); - } - if ($this->aContent !== null) { if ($this->aContent->isModified() || $this->aContent->isNew()) { $affectedRows += $this->aContent->save($con); @@ -956,36 +893,33 @@ abstract class ContentAssoc implements ActiveRecordInterface $modifiedColumns = array(); $index = 0; - $this->modifiedColumns[] = ContentAssocTableMap::ID; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::ID; if (null !== $this->id) { - throw new PropelException('Cannot insert a value for auto-increment primary key (' . ContentAssocTableMap::ID . ')'); + throw new PropelException('Cannot insert a value for auto-increment primary key (' . CategoryAssociatedContentTableMap::ID . ')'); } // check the columns in natural order for more readable SQL queries - if ($this->isColumnModified(ContentAssocTableMap::ID)) { + if ($this->isColumnModified(CategoryAssociatedContentTableMap::ID)) { $modifiedColumns[':p' . $index++] = 'ID'; } - if ($this->isColumnModified(ContentAssocTableMap::CATEGORY_ID)) { + if ($this->isColumnModified(CategoryAssociatedContentTableMap::CATEGORY_ID)) { $modifiedColumns[':p' . $index++] = 'CATEGORY_ID'; } - if ($this->isColumnModified(ContentAssocTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; - } - if ($this->isColumnModified(ContentAssocTableMap::CONTENT_ID)) { + if ($this->isColumnModified(CategoryAssociatedContentTableMap::CONTENT_ID)) { $modifiedColumns[':p' . $index++] = 'CONTENT_ID'; } - if ($this->isColumnModified(ContentAssocTableMap::POSITION)) { + if ($this->isColumnModified(CategoryAssociatedContentTableMap::POSITION)) { $modifiedColumns[':p' . $index++] = 'POSITION'; } - if ($this->isColumnModified(ContentAssocTableMap::CREATED_AT)) { + if ($this->isColumnModified(CategoryAssociatedContentTableMap::CREATED_AT)) { $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } - if ($this->isColumnModified(ContentAssocTableMap::UPDATED_AT)) { + if ($this->isColumnModified(CategoryAssociatedContentTableMap::UPDATED_AT)) { $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO content_assoc (%s) VALUES (%s)', + 'INSERT INTO category_associated_content (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1000,9 +934,6 @@ abstract class ContentAssoc implements ActiveRecordInterface case 'CATEGORY_ID': $stmt->bindValue($identifier, $this->category_id, PDO::PARAM_INT); break; - case 'PRODUCT_ID': - $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); - break; case 'CONTENT_ID': $stmt->bindValue($identifier, $this->content_id, PDO::PARAM_INT); break; @@ -1061,7 +992,7 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function getByName($name, $type = TableMap::TYPE_PHPNAME) { - $pos = ContentAssocTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $pos = CategoryAssociatedContentTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); $field = $this->getByPosition($pos); return $field; @@ -1084,18 +1015,15 @@ abstract class ContentAssoc implements ActiveRecordInterface return $this->getCategoryId(); break; case 2: - return $this->getProductId(); - break; - case 3: return $this->getContentId(); 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; default: @@ -1121,19 +1049,18 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { - if (isset($alreadyDumpedObjects['ContentAssoc'][$this->getPrimaryKey()])) { + if (isset($alreadyDumpedObjects['CategoryAssociatedContent'][$this->getPrimaryKey()])) { return '*RECURSION*'; } - $alreadyDumpedObjects['ContentAssoc'][$this->getPrimaryKey()] = true; - $keys = ContentAssocTableMap::getFieldNames($keyType); + $alreadyDumpedObjects['CategoryAssociatedContent'][$this->getPrimaryKey()] = true; + $keys = CategoryAssociatedContentTableMap::getFieldNames($keyType); $result = array( $keys[0] => $this->getId(), $keys[1] => $this->getCategoryId(), - $keys[2] => $this->getProductId(), - $keys[3] => $this->getContentId(), - $keys[4] => $this->getPosition(), - $keys[5] => $this->getCreatedAt(), - $keys[6] => $this->getUpdatedAt(), + $keys[2] => $this->getContentId(), + $keys[3] => $this->getPosition(), + $keys[4] => $this->getCreatedAt(), + $keys[5] => $this->getUpdatedAt(), ); $virtualColumns = $this->virtualColumns; foreach($virtualColumns as $key => $virtualColumn) @@ -1145,9 +1072,6 @@ abstract class ContentAssoc implements ActiveRecordInterface if (null !== $this->aCategory) { $result['Category'] = $this->aCategory->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } - if (null !== $this->aProduct) { - $result['Product'] = $this->aProduct->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); - } if (null !== $this->aContent) { $result['Content'] = $this->aContent->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } @@ -1169,7 +1093,7 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) { - $pos = ContentAssocTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $pos = CategoryAssociatedContentTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); return $this->setByPosition($pos, $value); } @@ -1192,18 +1116,15 @@ abstract class ContentAssoc implements ActiveRecordInterface $this->setCategoryId($value); break; case 2: - $this->setProductId($value); - break; - case 3: $this->setContentId($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; } // switch() @@ -1228,15 +1149,14 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) { - $keys = ContentAssocTableMap::getFieldNames($keyType); + $keys = CategoryAssociatedContentTableMap::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); if (array_key_exists($keys[1], $arr)) $this->setCategoryId($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setProductId($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setContentId($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[2], $arr)) $this->setContentId($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]]); } /** @@ -1246,15 +1166,14 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function buildCriteria() { - $criteria = new Criteria(ContentAssocTableMap::DATABASE_NAME); + $criteria = new Criteria(CategoryAssociatedContentTableMap::DATABASE_NAME); - if ($this->isColumnModified(ContentAssocTableMap::ID)) $criteria->add(ContentAssocTableMap::ID, $this->id); - if ($this->isColumnModified(ContentAssocTableMap::CATEGORY_ID)) $criteria->add(ContentAssocTableMap::CATEGORY_ID, $this->category_id); - if ($this->isColumnModified(ContentAssocTableMap::PRODUCT_ID)) $criteria->add(ContentAssocTableMap::PRODUCT_ID, $this->product_id); - if ($this->isColumnModified(ContentAssocTableMap::CONTENT_ID)) $criteria->add(ContentAssocTableMap::CONTENT_ID, $this->content_id); - if ($this->isColumnModified(ContentAssocTableMap::POSITION)) $criteria->add(ContentAssocTableMap::POSITION, $this->position); - if ($this->isColumnModified(ContentAssocTableMap::CREATED_AT)) $criteria->add(ContentAssocTableMap::CREATED_AT, $this->created_at); - if ($this->isColumnModified(ContentAssocTableMap::UPDATED_AT)) $criteria->add(ContentAssocTableMap::UPDATED_AT, $this->updated_at); + if ($this->isColumnModified(CategoryAssociatedContentTableMap::ID)) $criteria->add(CategoryAssociatedContentTableMap::ID, $this->id); + if ($this->isColumnModified(CategoryAssociatedContentTableMap::CATEGORY_ID)) $criteria->add(CategoryAssociatedContentTableMap::CATEGORY_ID, $this->category_id); + if ($this->isColumnModified(CategoryAssociatedContentTableMap::CONTENT_ID)) $criteria->add(CategoryAssociatedContentTableMap::CONTENT_ID, $this->content_id); + if ($this->isColumnModified(CategoryAssociatedContentTableMap::POSITION)) $criteria->add(CategoryAssociatedContentTableMap::POSITION, $this->position); + if ($this->isColumnModified(CategoryAssociatedContentTableMap::CREATED_AT)) $criteria->add(CategoryAssociatedContentTableMap::CREATED_AT, $this->created_at); + if ($this->isColumnModified(CategoryAssociatedContentTableMap::UPDATED_AT)) $criteria->add(CategoryAssociatedContentTableMap::UPDATED_AT, $this->updated_at); return $criteria; } @@ -1269,8 +1188,8 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function buildPkeyCriteria() { - $criteria = new Criteria(ContentAssocTableMap::DATABASE_NAME); - $criteria->add(ContentAssocTableMap::ID, $this->id); + $criteria = new Criteria(CategoryAssociatedContentTableMap::DATABASE_NAME); + $criteria->add(CategoryAssociatedContentTableMap::ID, $this->id); return $criteria; } @@ -1311,7 +1230,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * If desired, this method can also make copies of all associated (fkey referrers) * objects. * - * @param object $copyObj An object of \Thelia\Model\ContentAssoc (or compatible) type. + * @param object $copyObj An object of \Thelia\Model\CategoryAssociatedContent (or compatible) type. * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. * @throws PropelException @@ -1319,7 +1238,6 @@ abstract class ContentAssoc implements ActiveRecordInterface public function copyInto($copyObj, $deepCopy = false, $makeNew = true) { $copyObj->setCategoryId($this->getCategoryId()); - $copyObj->setProductId($this->getProductId()); $copyObj->setContentId($this->getContentId()); $copyObj->setPosition($this->getPosition()); $copyObj->setCreatedAt($this->getCreatedAt()); @@ -1339,7 +1257,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * objects. * * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. - * @return \Thelia\Model\ContentAssoc Clone of current object. + * @return \Thelia\Model\CategoryAssociatedContent Clone of current object. * @throws PropelException */ public function copy($deepCopy = false) @@ -1356,7 +1274,7 @@ abstract class ContentAssoc implements ActiveRecordInterface * Declares an association between this object and a ChildCategory object. * * @param ChildCategory $v - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) * @throws PropelException */ public function setCategory(ChildCategory $v = null) @@ -1372,7 +1290,7 @@ abstract class ContentAssoc implements ActiveRecordInterface // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildCategory object, it will not be re-added. if ($v !== null) { - $v->addContentAssoc($this); + $v->addCategoryAssociatedContent($this); } @@ -1396,69 +1314,18 @@ abstract class ContentAssoc implements ActiveRecordInterface to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. - $this->aCategory->addContentAssocs($this); + $this->aCategory->addCategoryAssociatedContents($this); */ } return $this->aCategory; } - /** - * Declares an association between this object and a ChildProduct object. - * - * @param ChildProduct $v - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) - * @throws PropelException - */ - public function setProduct(ChildProduct $v = null) - { - if ($v === null) { - $this->setProductId(NULL); - } else { - $this->setProductId($v->getId()); - } - - $this->aProduct = $v; - - // Add binding for other direction of this n:n relationship. - // If this object has already been added to the ChildProduct object, it will not be re-added. - if ($v !== null) { - $v->addContentAssoc($this); - } - - - return $this; - } - - - /** - * Get the associated ChildProduct object - * - * @param ConnectionInterface $con Optional Connection object. - * @return ChildProduct The associated ChildProduct object. - * @throws PropelException - */ - public function getProduct(ConnectionInterface $con = null) - { - if ($this->aProduct === null && ($this->product_id !== null)) { - $this->aProduct = ChildProductQuery::create()->findPk($this->product_id, $con); - /* The following can be used additionally to - guarantee the related object contains a reference - to this object. This level of coupling may, however, be - undesirable since it could result in an only partially populated collection - in the referenced object. - $this->aProduct->addContentAssocs($this); - */ - } - - return $this->aProduct; - } - /** * Declares an association between this object and a ChildContent object. * * @param ChildContent $v - * @return \Thelia\Model\ContentAssoc The current object (for fluent API support) + * @return \Thelia\Model\CategoryAssociatedContent The current object (for fluent API support) * @throws PropelException */ public function setContent(ChildContent $v = null) @@ -1474,7 +1341,7 @@ abstract class ContentAssoc implements ActiveRecordInterface // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildContent object, it will not be re-added. if ($v !== null) { - $v->addContentAssoc($this); + $v->addCategoryAssociatedContent($this); } @@ -1498,7 +1365,7 @@ abstract class ContentAssoc implements ActiveRecordInterface to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. - $this->aContent->addContentAssocs($this); + $this->aContent->addCategoryAssociatedContents($this); */ } @@ -1512,7 +1379,6 @@ abstract class ContentAssoc implements ActiveRecordInterface { $this->id = null; $this->category_id = null; - $this->product_id = null; $this->content_id = null; $this->position = null; $this->created_at = null; @@ -1539,7 +1405,6 @@ abstract class ContentAssoc implements ActiveRecordInterface } // if ($deep) $this->aCategory = null; - $this->aProduct = null; $this->aContent = null; } @@ -1550,7 +1415,7 @@ abstract class ContentAssoc implements ActiveRecordInterface */ public function __toString() { - return (string) $this->exportTo(ContentAssocTableMap::DEFAULT_STRING_FORMAT); + return (string) $this->exportTo(CategoryAssociatedContentTableMap::DEFAULT_STRING_FORMAT); } // timestampable behavior @@ -1558,11 +1423,11 @@ abstract class ContentAssoc implements ActiveRecordInterface /** * Mark the current object so that the update date doesn't get updated during next save * - * @return ChildContentAssoc The current object (for fluent API support) + * @return ChildCategoryAssociatedContent The current object (for fluent API support) */ public function keepUpdateDateUnchanged() { - $this->modifiedColumns[] = ContentAssocTableMap::UPDATED_AT; + $this->modifiedColumns[] = CategoryAssociatedContentTableMap::UPDATED_AT; return $this; } diff --git a/core/lib/Thelia/Model/Base/ContentAssocQuery.php b/core/lib/Thelia/Model/Base/CategoryAssociatedContentQuery.php similarity index 57% rename from core/lib/Thelia/Model/Base/ContentAssocQuery.php rename to core/lib/Thelia/Model/Base/CategoryAssociatedContentQuery.php index 630af8065..bb03306f4 100644 --- a/core/lib/Thelia/Model/Base/ContentAssocQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryAssociatedContentQuery.php @@ -12,96 +12,88 @@ use Propel\Runtime\Collection\Collection; use Propel\Runtime\Collection\ObjectCollection; use Propel\Runtime\Connection\ConnectionInterface; use Propel\Runtime\Exception\PropelException; -use Thelia\Model\ContentAssoc as ChildContentAssoc; -use Thelia\Model\ContentAssocQuery as ChildContentAssocQuery; -use Thelia\Model\Map\ContentAssocTableMap; +use Thelia\Model\CategoryAssociatedContent as ChildCategoryAssociatedContent; +use Thelia\Model\CategoryAssociatedContentQuery as ChildCategoryAssociatedContentQuery; +use Thelia\Model\Map\CategoryAssociatedContentTableMap; /** - * Base class that represents a query for the 'content_assoc' table. + * Base class that represents a query for the 'category_associated_content' table. * * * - * @method ChildContentAssocQuery orderById($order = Criteria::ASC) Order by the id column - * @method ChildContentAssocQuery orderByCategoryId($order = Criteria::ASC) Order by the category_id column - * @method ChildContentAssocQuery orderByProductId($order = Criteria::ASC) Order by the product_id column - * @method ChildContentAssocQuery orderByContentId($order = Criteria::ASC) Order by the content_id column - * @method ChildContentAssocQuery orderByPosition($order = Criteria::ASC) Order by the position column - * @method ChildContentAssocQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column - * @method ChildContentAssocQuery orderByUpdatedAt($order = Criteria::ASC) Order by the updated_at column + * @method ChildCategoryAssociatedContentQuery orderById($order = Criteria::ASC) Order by the id column + * @method ChildCategoryAssociatedContentQuery orderByCategoryId($order = Criteria::ASC) Order by the category_id column + * @method ChildCategoryAssociatedContentQuery orderByContentId($order = Criteria::ASC) Order by the content_id column + * @method ChildCategoryAssociatedContentQuery orderByPosition($order = Criteria::ASC) Order by the position column + * @method ChildCategoryAssociatedContentQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column + * @method ChildCategoryAssociatedContentQuery orderByUpdatedAt($order = Criteria::ASC) Order by the updated_at column * - * @method ChildContentAssocQuery groupById() Group by the id column - * @method ChildContentAssocQuery groupByCategoryId() Group by the category_id column - * @method ChildContentAssocQuery groupByProductId() Group by the product_id column - * @method ChildContentAssocQuery groupByContentId() Group by the content_id column - * @method ChildContentAssocQuery groupByPosition() Group by the position column - * @method ChildContentAssocQuery groupByCreatedAt() Group by the created_at column - * @method ChildContentAssocQuery groupByUpdatedAt() Group by the updated_at column + * @method ChildCategoryAssociatedContentQuery groupById() Group by the id column + * @method ChildCategoryAssociatedContentQuery groupByCategoryId() Group by the category_id column + * @method ChildCategoryAssociatedContentQuery groupByContentId() Group by the content_id column + * @method ChildCategoryAssociatedContentQuery groupByPosition() Group by the position column + * @method ChildCategoryAssociatedContentQuery groupByCreatedAt() Group by the created_at column + * @method ChildCategoryAssociatedContentQuery groupByUpdatedAt() Group by the updated_at column * - * @method ChildContentAssocQuery leftJoin($relation) Adds a LEFT JOIN clause to the query - * @method ChildContentAssocQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query - * @method ChildContentAssocQuery innerJoin($relation) Adds a INNER JOIN clause to the query + * @method ChildCategoryAssociatedContentQuery leftJoin($relation) Adds a LEFT JOIN clause to the query + * @method ChildCategoryAssociatedContentQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query + * @method ChildCategoryAssociatedContentQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method ChildContentAssocQuery leftJoinCategory($relationAlias = null) Adds a LEFT JOIN clause to the query using the Category relation - * @method ChildContentAssocQuery rightJoinCategory($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Category relation - * @method ChildContentAssocQuery innerJoinCategory($relationAlias = null) Adds a INNER JOIN clause to the query using the Category relation + * @method ChildCategoryAssociatedContentQuery leftJoinCategory($relationAlias = null) Adds a LEFT JOIN clause to the query using the Category relation + * @method ChildCategoryAssociatedContentQuery rightJoinCategory($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Category relation + * @method ChildCategoryAssociatedContentQuery innerJoinCategory($relationAlias = null) Adds a INNER JOIN clause to the query using the Category relation * - * @method ChildContentAssocQuery leftJoinProduct($relationAlias = null) Adds a LEFT JOIN clause to the query using the Product relation - * @method ChildContentAssocQuery rightJoinProduct($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Product relation - * @method ChildContentAssocQuery innerJoinProduct($relationAlias = null) Adds a INNER JOIN clause to the query using the Product relation + * @method ChildCategoryAssociatedContentQuery leftJoinContent($relationAlias = null) Adds a LEFT JOIN clause to the query using the Content relation + * @method ChildCategoryAssociatedContentQuery rightJoinContent($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Content relation + * @method ChildCategoryAssociatedContentQuery innerJoinContent($relationAlias = null) Adds a INNER JOIN clause to the query using the Content relation * - * @method ChildContentAssocQuery leftJoinContent($relationAlias = null) Adds a LEFT JOIN clause to the query using the Content relation - * @method ChildContentAssocQuery rightJoinContent($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Content relation - * @method ChildContentAssocQuery innerJoinContent($relationAlias = null) Adds a INNER JOIN clause to the query using the Content relation + * @method ChildCategoryAssociatedContent findOne(ConnectionInterface $con = null) Return the first ChildCategoryAssociatedContent matching the query + * @method ChildCategoryAssociatedContent findOneOrCreate(ConnectionInterface $con = null) Return the first ChildCategoryAssociatedContent matching the query, or a new ChildCategoryAssociatedContent object populated from the query conditions when no match is found * - * @method ChildContentAssoc findOne(ConnectionInterface $con = null) Return the first ChildContentAssoc matching the query - * @method ChildContentAssoc findOneOrCreate(ConnectionInterface $con = null) Return the first ChildContentAssoc matching the query, or a new ChildContentAssoc object populated from the query conditions when no match is found + * @method ChildCategoryAssociatedContent findOneById(int $id) Return the first ChildCategoryAssociatedContent filtered by the id column + * @method ChildCategoryAssociatedContent findOneByCategoryId(int $category_id) Return the first ChildCategoryAssociatedContent filtered by the category_id column + * @method ChildCategoryAssociatedContent findOneByContentId(int $content_id) Return the first ChildCategoryAssociatedContent filtered by the content_id column + * @method ChildCategoryAssociatedContent findOneByPosition(int $position) Return the first ChildCategoryAssociatedContent filtered by the position column + * @method ChildCategoryAssociatedContent findOneByCreatedAt(string $created_at) Return the first ChildCategoryAssociatedContent filtered by the created_at column + * @method ChildCategoryAssociatedContent findOneByUpdatedAt(string $updated_at) Return the first ChildCategoryAssociatedContent filtered by the updated_at column * - * @method ChildContentAssoc findOneById(int $id) Return the first ChildContentAssoc filtered by the id column - * @method ChildContentAssoc findOneByCategoryId(int $category_id) Return the first ChildContentAssoc filtered by the category_id column - * @method ChildContentAssoc findOneByProductId(int $product_id) Return the first ChildContentAssoc filtered by the product_id column - * @method ChildContentAssoc findOneByContentId(int $content_id) Return the first ChildContentAssoc filtered by the content_id column - * @method ChildContentAssoc findOneByPosition(int $position) Return the first ChildContentAssoc filtered by the position column - * @method ChildContentAssoc findOneByCreatedAt(string $created_at) Return the first ChildContentAssoc filtered by the created_at column - * @method ChildContentAssoc findOneByUpdatedAt(string $updated_at) Return the first ChildContentAssoc filtered by the updated_at column - * - * @method array findById(int $id) Return ChildContentAssoc objects filtered by the id column - * @method array findByCategoryId(int $category_id) Return ChildContentAssoc objects filtered by the category_id column - * @method array findByProductId(int $product_id) Return ChildContentAssoc objects filtered by the product_id column - * @method array findByContentId(int $content_id) Return ChildContentAssoc objects filtered by the content_id column - * @method array findByPosition(int $position) Return ChildContentAssoc objects filtered by the position column - * @method array findByCreatedAt(string $created_at) Return ChildContentAssoc objects filtered by the created_at column - * @method array findByUpdatedAt(string $updated_at) Return ChildContentAssoc objects filtered by the updated_at column + * @method array findById(int $id) Return ChildCategoryAssociatedContent objects filtered by the id column + * @method array findByCategoryId(int $category_id) Return ChildCategoryAssociatedContent objects filtered by the category_id column + * @method array findByContentId(int $content_id) Return ChildCategoryAssociatedContent objects filtered by the content_id column + * @method array findByPosition(int $position) Return ChildCategoryAssociatedContent objects filtered by the position column + * @method array findByCreatedAt(string $created_at) Return ChildCategoryAssociatedContent objects filtered by the created_at column + * @method array findByUpdatedAt(string $updated_at) Return ChildCategoryAssociatedContent objects filtered by the updated_at column * */ -abstract class ContentAssocQuery extends ModelCriteria +abstract class CategoryAssociatedContentQuery extends ModelCriteria { /** - * Initializes internal state of \Thelia\Model\Base\ContentAssocQuery object. + * Initializes internal state of \Thelia\Model\Base\CategoryAssociatedContentQuery object. * * @param string $dbName The database name * @param string $modelName The phpName of a model, e.g. 'Book' * @param string $modelAlias The alias for the model in this query, e.g. 'b' */ - public function __construct($dbName = 'thelia', $modelName = '\\Thelia\\Model\\ContentAssoc', $modelAlias = null) + public function __construct($dbName = 'thelia', $modelName = '\\Thelia\\Model\\CategoryAssociatedContent', $modelAlias = null) { parent::__construct($dbName, $modelName, $modelAlias); } /** - * Returns a new ChildContentAssocQuery object. + * Returns a new ChildCategoryAssociatedContentQuery object. * * @param string $modelAlias The alias of a model in the query * @param Criteria $criteria Optional Criteria to build the query from * - * @return ChildContentAssocQuery + * @return ChildCategoryAssociatedContentQuery */ public static function create($modelAlias = null, $criteria = null) { - if ($criteria instanceof \Thelia\Model\ContentAssocQuery) { + if ($criteria instanceof \Thelia\Model\CategoryAssociatedContentQuery) { return $criteria; } - $query = new \Thelia\Model\ContentAssocQuery(); + $query = new \Thelia\Model\CategoryAssociatedContentQuery(); if (null !== $modelAlias) { $query->setModelAlias($modelAlias); } @@ -124,19 +116,19 @@ abstract class ContentAssocQuery extends ModelCriteria * @param mixed $key Primary key to use for the query * @param ConnectionInterface $con an optional connection object * - * @return ChildContentAssoc|array|mixed the result, formatted by the current formatter + * @return ChildCategoryAssociatedContent|array|mixed the result, formatted by the current formatter */ public function findPk($key, $con = null) { if ($key === null) { return null; } - if ((null !== ($obj = ContentAssocTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { + if ((null !== ($obj = CategoryAssociatedContentTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { // the object is already in the instance pool return $obj; } if ($con === null) { - $con = Propel::getServiceContainer()->getReadConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getReadConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } $this->basePreSelect($con); if ($this->formatter || $this->modelAlias || $this->with || $this->select @@ -155,11 +147,11 @@ abstract class ContentAssocQuery extends ModelCriteria * @param mixed $key Primary key to use for the query * @param ConnectionInterface $con A connection object * - * @return ChildContentAssoc A model object, or null if the key is not found + * @return ChildCategoryAssociatedContent A model object, or null if the key is not found */ protected function findPkSimple($key, $con) { - $sql = 'SELECT ID, CATEGORY_ID, PRODUCT_ID, CONTENT_ID, POSITION, CREATED_AT, UPDATED_AT FROM content_assoc WHERE ID = :p0'; + $sql = 'SELECT ID, CATEGORY_ID, CONTENT_ID, POSITION, CREATED_AT, UPDATED_AT FROM category_associated_content WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); @@ -170,9 +162,9 @@ abstract class ContentAssocQuery extends ModelCriteria } $obj = null; if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { - $obj = new ChildContentAssoc(); + $obj = new ChildCategoryAssociatedContent(); $obj->hydrate($row); - ContentAssocTableMap::addInstanceToPool($obj, (string) $key); + CategoryAssociatedContentTableMap::addInstanceToPool($obj, (string) $key); } $stmt->closeCursor(); @@ -185,7 +177,7 @@ abstract class ContentAssocQuery extends ModelCriteria * @param mixed $key Primary key to use for the query * @param ConnectionInterface $con A connection object * - * @return ChildContentAssoc|array|mixed the result, formatted by the current formatter + * @return ChildCategoryAssociatedContent|array|mixed the result, formatted by the current formatter */ protected function findPkComplex($key, $con) { @@ -227,12 +219,12 @@ abstract class ContentAssocQuery extends ModelCriteria * * @param mixed $key Primary key to use for the query * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByPrimaryKey($key) { - return $this->addUsingAlias(ContentAssocTableMap::ID, $key, Criteria::EQUAL); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::ID, $key, Criteria::EQUAL); } /** @@ -240,12 +232,12 @@ abstract class ContentAssocQuery extends ModelCriteria * * @param array $keys The list of primary key to use for the query * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByPrimaryKeys($keys) { - return $this->addUsingAlias(ContentAssocTableMap::ID, $keys, Criteria::IN); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::ID, $keys, Criteria::IN); } /** @@ -264,18 +256,18 @@ abstract class ContentAssocQuery extends ModelCriteria * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterById($id = null, $comparison = null) { if (is_array($id)) { $useMinMax = false; if (isset($id['min'])) { - $this->addUsingAlias(ContentAssocTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($id['max'])) { - $this->addUsingAlias(ContentAssocTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::ID, $id['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -286,7 +278,7 @@ abstract class ContentAssocQuery extends ModelCriteria } } - return $this->addUsingAlias(ContentAssocTableMap::ID, $id, $comparison); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::ID, $id, $comparison); } /** @@ -307,18 +299,18 @@ abstract class ContentAssocQuery extends ModelCriteria * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByCategoryId($categoryId = null, $comparison = null) { if (is_array($categoryId)) { $useMinMax = false; if (isset($categoryId['min'])) { - $this->addUsingAlias(ContentAssocTableMap::CATEGORY_ID, $categoryId['min'], Criteria::GREATER_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::CATEGORY_ID, $categoryId['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($categoryId['max'])) { - $this->addUsingAlias(ContentAssocTableMap::CATEGORY_ID, $categoryId['max'], Criteria::LESS_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::CATEGORY_ID, $categoryId['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -329,50 +321,7 @@ abstract class ContentAssocQuery extends ModelCriteria } } - return $this->addUsingAlias(ContentAssocTableMap::CATEGORY_ID, $categoryId, $comparison); - } - - /** - * Filter the query on the product_id column - * - * Example usage: - * - * $query->filterByProductId(1234); // WHERE product_id = 1234 - * $query->filterByProductId(array(12, 34)); // WHERE product_id IN (12, 34) - * $query->filterByProductId(array('min' => 12)); // WHERE product_id > 12 - * - * - * @see filterByProduct() - * - * @param mixed $productId The value to use as filter. - * Use scalar values for equality. - * Use array values for in_array() equivalent. - * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildContentAssocQuery The current query, for fluid interface - */ - public function filterByProductId($productId = null, $comparison = null) - { - if (is_array($productId)) { - $useMinMax = false; - if (isset($productId['min'])) { - $this->addUsingAlias(ContentAssocTableMap::PRODUCT_ID, $productId['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($productId['max'])) { - $this->addUsingAlias(ContentAssocTableMap::PRODUCT_ID, $productId['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - - return $this->addUsingAlias(ContentAssocTableMap::PRODUCT_ID, $productId, $comparison); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::CATEGORY_ID, $categoryId, $comparison); } /** @@ -393,18 +342,18 @@ abstract class ContentAssocQuery extends ModelCriteria * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByContentId($contentId = null, $comparison = null) { if (is_array($contentId)) { $useMinMax = false; if (isset($contentId['min'])) { - $this->addUsingAlias(ContentAssocTableMap::CONTENT_ID, $contentId['min'], Criteria::GREATER_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::CONTENT_ID, $contentId['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($contentId['max'])) { - $this->addUsingAlias(ContentAssocTableMap::CONTENT_ID, $contentId['max'], Criteria::LESS_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::CONTENT_ID, $contentId['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -415,7 +364,7 @@ abstract class ContentAssocQuery extends ModelCriteria } } - return $this->addUsingAlias(ContentAssocTableMap::CONTENT_ID, $contentId, $comparison); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::CONTENT_ID, $contentId, $comparison); } /** @@ -434,18 +383,18 @@ abstract class ContentAssocQuery extends ModelCriteria * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByPosition($position = null, $comparison = null) { if (is_array($position)) { $useMinMax = false; if (isset($position['min'])) { - $this->addUsingAlias(ContentAssocTableMap::POSITION, $position['min'], Criteria::GREATER_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::POSITION, $position['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($position['max'])) { - $this->addUsingAlias(ContentAssocTableMap::POSITION, $position['max'], Criteria::LESS_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::POSITION, $position['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -456,7 +405,7 @@ abstract class ContentAssocQuery extends ModelCriteria } } - return $this->addUsingAlias(ContentAssocTableMap::POSITION, $position, $comparison); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::POSITION, $position, $comparison); } /** @@ -477,18 +426,18 @@ abstract class ContentAssocQuery extends ModelCriteria * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByCreatedAt($createdAt = null, $comparison = null) { if (is_array($createdAt)) { $useMinMax = false; if (isset($createdAt['min'])) { - $this->addUsingAlias(ContentAssocTableMap::CREATED_AT, $createdAt['min'], Criteria::GREATER_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::CREATED_AT, $createdAt['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($createdAt['max'])) { - $this->addUsingAlias(ContentAssocTableMap::CREATED_AT, $createdAt['max'], Criteria::LESS_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::CREATED_AT, $createdAt['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -499,7 +448,7 @@ abstract class ContentAssocQuery extends ModelCriteria } } - return $this->addUsingAlias(ContentAssocTableMap::CREATED_AT, $createdAt, $comparison); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::CREATED_AT, $createdAt, $comparison); } /** @@ -520,18 +469,18 @@ abstract class ContentAssocQuery extends ModelCriteria * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByUpdatedAt($updatedAt = null, $comparison = null) { if (is_array($updatedAt)) { $useMinMax = false; if (isset($updatedAt['min'])) { - $this->addUsingAlias(ContentAssocTableMap::UPDATED_AT, $updatedAt['min'], Criteria::GREATER_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::UPDATED_AT, $updatedAt['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($updatedAt['max'])) { - $this->addUsingAlias(ContentAssocTableMap::UPDATED_AT, $updatedAt['max'], Criteria::LESS_EQUAL); + $this->addUsingAlias(CategoryAssociatedContentTableMap::UPDATED_AT, $updatedAt['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -542,7 +491,7 @@ abstract class ContentAssocQuery extends ModelCriteria } } - return $this->addUsingAlias(ContentAssocTableMap::UPDATED_AT, $updatedAt, $comparison); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::UPDATED_AT, $updatedAt, $comparison); } /** @@ -551,20 +500,20 @@ abstract class ContentAssocQuery extends ModelCriteria * @param \Thelia\Model\Category|ObjectCollection $category The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByCategory($category, $comparison = null) { if ($category instanceof \Thelia\Model\Category) { return $this - ->addUsingAlias(ContentAssocTableMap::CATEGORY_ID, $category->getId(), $comparison); + ->addUsingAlias(CategoryAssociatedContentTableMap::CATEGORY_ID, $category->getId(), $comparison); } elseif ($category instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this - ->addUsingAlias(ContentAssocTableMap::CATEGORY_ID, $category->toKeyValue('PrimaryKey', 'Id'), $comparison); + ->addUsingAlias(CategoryAssociatedContentTableMap::CATEGORY_ID, $category->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByCategory() only accepts arguments of type \Thelia\Model\Category or Collection'); } @@ -576,9 +525,9 @@ abstract class ContentAssocQuery extends ModelCriteria * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ - public function joinCategory($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinCategory($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Category'); @@ -613,108 +562,33 @@ abstract class ContentAssocQuery extends ModelCriteria * * @return \Thelia\Model\CategoryQuery A secondary query class using the current class as primary query */ - public function useCategoryQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useCategoryQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinCategory($relationAlias, $joinType) ->useQuery($relationAlias ? $relationAlias : 'Category', '\Thelia\Model\CategoryQuery'); } - /** - * Filter the query by a related \Thelia\Model\Product object - * - * @param \Thelia\Model\Product|ObjectCollection $product The related object(s) to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildContentAssocQuery The current query, for fluid interface - */ - public function filterByProduct($product, $comparison = null) - { - if ($product instanceof \Thelia\Model\Product) { - return $this - ->addUsingAlias(ContentAssocTableMap::PRODUCT_ID, $product->getId(), $comparison); - } elseif ($product instanceof ObjectCollection) { - if (null === $comparison) { - $comparison = Criteria::IN; - } - - return $this - ->addUsingAlias(ContentAssocTableMap::PRODUCT_ID, $product->toKeyValue('PrimaryKey', 'Id'), $comparison); - } else { - throw new PropelException('filterByProduct() only accepts arguments of type \Thelia\Model\Product or Collection'); - } - } - - /** - * Adds a JOIN clause to the query using the Product relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return ChildContentAssocQuery The current query, for fluid interface - */ - public function joinProduct($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('Product'); - - // create a ModelJoin object for this join - $join = new ModelJoin(); - $join->setJoinType($joinType); - $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); - if ($previousJoin = $this->getPreviousJoin()) { - $join->setPreviousJoin($previousJoin); - } - - // add the ModelJoin to the current object - if ($relationAlias) { - $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); - $this->addJoinObject($join, $relationAlias); - } else { - $this->addJoinObject($join, 'Product'); - } - - return $this; - } - - /** - * Use the Product relation Product object - * - * @see useQuery() - * - * @param string $relationAlias optional alias for the relation, - * to be used as main alias in the secondary query - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return \Thelia\Model\ProductQuery A secondary query class using the current class as primary query - */ - public function useProductQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinProduct($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'Product', '\Thelia\Model\ProductQuery'); - } - /** * Filter the query by a related \Thelia\Model\Content object * * @param \Thelia\Model\Content|ObjectCollection $content The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function filterByContent($content, $comparison = null) { if ($content instanceof \Thelia\Model\Content) { return $this - ->addUsingAlias(ContentAssocTableMap::CONTENT_ID, $content->getId(), $comparison); + ->addUsingAlias(CategoryAssociatedContentTableMap::CONTENT_ID, $content->getId(), $comparison); } elseif ($content instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this - ->addUsingAlias(ContentAssocTableMap::CONTENT_ID, $content->toKeyValue('PrimaryKey', 'Id'), $comparison); + ->addUsingAlias(CategoryAssociatedContentTableMap::CONTENT_ID, $content->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByContent() only accepts arguments of type \Thelia\Model\Content or Collection'); } @@ -726,9 +600,9 @@ abstract class ContentAssocQuery extends ModelCriteria * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ - public function joinContent($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinContent($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); $relationMap = $tableMap->getRelation('Content'); @@ -763,7 +637,7 @@ abstract class ContentAssocQuery extends ModelCriteria * * @return \Thelia\Model\ContentQuery A secondary query class using the current class as primary query */ - public function useContentQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useContentQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this ->joinContent($relationAlias, $joinType) @@ -773,21 +647,21 @@ abstract class ContentAssocQuery extends ModelCriteria /** * Exclude object from result * - * @param ChildContentAssoc $contentAssoc Object to remove from the list of results + * @param ChildCategoryAssociatedContent $categoryAssociatedContent Object to remove from the list of results * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ - public function prune($contentAssoc = null) + public function prune($categoryAssociatedContent = null) { - if ($contentAssoc) { - $this->addUsingAlias(ContentAssocTableMap::ID, $contentAssoc->getId(), Criteria::NOT_EQUAL); + if ($categoryAssociatedContent) { + $this->addUsingAlias(CategoryAssociatedContentTableMap::ID, $categoryAssociatedContent->getId(), Criteria::NOT_EQUAL); } return $this; } /** - * Deletes all rows from the content_assoc table. + * Deletes all rows from the category_associated_content table. * * @param ConnectionInterface $con the connection to use * @return int The number of affected rows (if supported by underlying database driver). @@ -795,7 +669,7 @@ abstract class ContentAssocQuery extends ModelCriteria public function doDeleteAll(ConnectionInterface $con = null) { if (null === $con) { - $con = Propel::getServiceContainer()->getWriteConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getWriteConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } $affectedRows = 0; // initialize var to track total num of affected rows try { @@ -806,8 +680,8 @@ abstract class ContentAssocQuery extends ModelCriteria // Because this db requires some delete cascade/set null emulation, we have to // clear the cached instance *after* the emulation has happened (since // instances get re-added by the select statement contained therein). - ContentAssocTableMap::clearInstancePool(); - ContentAssocTableMap::clearRelatedInstancePool(); + CategoryAssociatedContentTableMap::clearInstancePool(); + CategoryAssociatedContentTableMap::clearRelatedInstancePool(); $con->commit(); } catch (PropelException $e) { @@ -819,9 +693,9 @@ abstract class ContentAssocQuery extends ModelCriteria } /** - * Performs a DELETE on the database, given a ChildContentAssoc or Criteria object OR a primary key value. + * Performs a DELETE on the database, given a ChildCategoryAssociatedContent or Criteria object OR a primary key value. * - * @param mixed $values Criteria or ChildContentAssoc object or primary key or array of primary keys + * @param mixed $values Criteria or ChildCategoryAssociatedContent object or primary key or array of primary keys * which is used to create the DELETE statement * @param ConnectionInterface $con the connection to use * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows @@ -832,13 +706,13 @@ abstract class ContentAssocQuery extends ModelCriteria public function delete(ConnectionInterface $con = null) { if (null === $con) { - $con = Propel::getServiceContainer()->getWriteConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getWriteConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } $criteria = $this; // Set the correct dbName - $criteria->setDbName(ContentAssocTableMap::DATABASE_NAME); + $criteria->setDbName(CategoryAssociatedContentTableMap::DATABASE_NAME); $affectedRows = 0; // initialize var to track total num of affected rows @@ -848,10 +722,10 @@ abstract class ContentAssocQuery extends ModelCriteria $con->beginTransaction(); - ContentAssocTableMap::removeInstanceFromPool($criteria); + CategoryAssociatedContentTableMap::removeInstanceFromPool($criteria); $affectedRows += ModelCriteria::delete($con); - ContentAssocTableMap::clearRelatedInstancePool(); + CategoryAssociatedContentTableMap::clearRelatedInstancePool(); $con->commit(); return $affectedRows; @@ -868,11 +742,11 @@ abstract class ContentAssocQuery extends ModelCriteria * * @param int $nbDays Maximum age of the latest update in days * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function recentlyUpdated($nbDays = 7) { - return $this->addUsingAlias(ContentAssocTableMap::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); } /** @@ -880,51 +754,51 @@ abstract class ContentAssocQuery extends ModelCriteria * * @param int $nbDays Maximum age of in days * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function recentlyCreated($nbDays = 7) { - return $this->addUsingAlias(ContentAssocTableMap::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); + return $this->addUsingAlias(CategoryAssociatedContentTableMap::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); } /** * Order by update date desc * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function lastUpdatedFirst() { - return $this->addDescendingOrderByColumn(ContentAssocTableMap::UPDATED_AT); + return $this->addDescendingOrderByColumn(CategoryAssociatedContentTableMap::UPDATED_AT); } /** * Order by update date asc * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function firstUpdatedFirst() { - return $this->addAscendingOrderByColumn(ContentAssocTableMap::UPDATED_AT); + return $this->addAscendingOrderByColumn(CategoryAssociatedContentTableMap::UPDATED_AT); } /** * Order by create date desc * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function lastCreatedFirst() { - return $this->addDescendingOrderByColumn(ContentAssocTableMap::CREATED_AT); + return $this->addDescendingOrderByColumn(CategoryAssociatedContentTableMap::CREATED_AT); } /** * Order by create date asc * - * @return ChildContentAssocQuery The current query, for fluid interface + * @return ChildCategoryAssociatedContentQuery The current query, for fluid interface */ public function firstCreatedFirst() { - return $this->addAscendingOrderByColumn(ContentAssocTableMap::CREATED_AT); + return $this->addAscendingOrderByColumn(CategoryAssociatedContentTableMap::CREATED_AT); } -} // ContentAssocQuery +} // CategoryAssociatedContentQuery diff --git a/core/lib/Thelia/Model/Base/CategoryDocument.php b/core/lib/Thelia/Model/Base/CategoryDocument.php old mode 100644 new mode 100755 index 165bfa492..a5493815d --- a/core/lib/Thelia/Model/Base/CategoryDocument.php +++ b/core/lib/Thelia/Model/Base/CategoryDocument.php @@ -120,7 +120,7 @@ abstract class CategoryDocument implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class CategoryDocument implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class CategoryDocument implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collCategoryDocumentI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class CategoryDocument implements ActiveRecordInterface * * @return ChildCategoryDocument The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class CategoryDocument implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildCategoryDocumentI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collCategoryDocumentI18ns) { @@ -1742,7 +1742,7 @@ abstract class CategoryDocument implements ActiveRecordInterface * * @return ChildCategoryDocument The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildCategoryDocumentI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php b/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php old mode 100644 new mode 100755 index db3189cc3..2d5f76fcf --- a/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php @@ -61,7 +61,7 @@ abstract class CategoryDocumentI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class CategoryDocumentI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class CategoryDocumentI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class CategoryDocumentI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/CategoryDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/CategoryDocumentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php b/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php old mode 100644 new mode 100755 index 8c0a177ac..239ec6c83 --- a/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php @@ -797,7 +797,7 @@ abstract class CategoryDocumentQuery extends ModelCriteria * * @return ChildCategoryDocumentQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'CategoryDocumentI18n'; @@ -815,7 +815,7 @@ abstract class CategoryDocumentQuery extends ModelCriteria * * @return ChildCategoryDocumentQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class CategoryDocumentQuery extends ModelCriteria * * @return ChildCategoryDocumentI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/CategoryI18n.php b/core/lib/Thelia/Model/Base/CategoryI18n.php old mode 100644 new mode 100755 index 83d62572d..3e3d36521 --- a/core/lib/Thelia/Model/Base/CategoryI18n.php +++ b/core/lib/Thelia/Model/Base/CategoryI18n.php @@ -61,7 +61,7 @@ abstract class CategoryI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class CategoryI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class CategoryI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class CategoryI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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/CategoryImage.php b/core/lib/Thelia/Model/Base/CategoryImage.php old mode 100644 new mode 100755 index efde7b64a..6fd905453 --- a/core/lib/Thelia/Model/Base/CategoryImage.php +++ b/core/lib/Thelia/Model/Base/CategoryImage.php @@ -120,7 +120,7 @@ abstract class CategoryImage implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class CategoryImage implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class CategoryImage implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collCategoryImageI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class CategoryImage implements ActiveRecordInterface * * @return ChildCategoryImage The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class CategoryImage implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildCategoryImageI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collCategoryImageI18ns) { @@ -1742,7 +1742,7 @@ abstract class CategoryImage implements ActiveRecordInterface * * @return ChildCategoryImage The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildCategoryImageI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/CategoryImageI18n.php b/core/lib/Thelia/Model/Base/CategoryImageI18n.php old mode 100644 new mode 100755 index ce61e9836..0c65b8036 --- a/core/lib/Thelia/Model/Base/CategoryImageI18n.php +++ b/core/lib/Thelia/Model/Base/CategoryImageI18n.php @@ -61,7 +61,7 @@ abstract class CategoryImageI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class CategoryImageI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class CategoryImageI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class CategoryImageI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/CategoryImageI18nQuery.php b/core/lib/Thelia/Model/Base/CategoryImageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/CategoryImageQuery.php b/core/lib/Thelia/Model/Base/CategoryImageQuery.php old mode 100644 new mode 100755 index 2130e757b..305b01755 --- a/core/lib/Thelia/Model/Base/CategoryImageQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryImageQuery.php @@ -797,7 +797,7 @@ abstract class CategoryImageQuery extends ModelCriteria * * @return ChildCategoryImageQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'CategoryImageI18n'; @@ -815,7 +815,7 @@ abstract class CategoryImageQuery extends ModelCriteria * * @return ChildCategoryImageQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class CategoryImageQuery extends ModelCriteria * * @return ChildCategoryImageI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/CategoryQuery.php b/core/lib/Thelia/Model/Base/CategoryQuery.php old mode 100644 new mode 100755 index 0b7df33dd..4c823a223 --- a/core/lib/Thelia/Model/Base/CategoryQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryQuery.php @@ -58,10 +58,6 @@ use Thelia\Model\Map\CategoryTableMap; * @method ChildCategoryQuery rightJoinAttributeCategory($relationAlias = null) Adds a RIGHT JOIN clause to the query using the AttributeCategory relation * @method ChildCategoryQuery innerJoinAttributeCategory($relationAlias = null) Adds a INNER JOIN clause to the query using the AttributeCategory relation * - * @method ChildCategoryQuery leftJoinContentAssoc($relationAlias = null) Adds a LEFT JOIN clause to the query using the ContentAssoc relation - * @method ChildCategoryQuery rightJoinContentAssoc($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ContentAssoc relation - * @method ChildCategoryQuery innerJoinContentAssoc($relationAlias = null) Adds a INNER JOIN clause to the query using the ContentAssoc relation - * * @method ChildCategoryQuery leftJoinRewriting($relationAlias = null) Adds a LEFT JOIN clause to the query using the Rewriting relation * @method ChildCategoryQuery rightJoinRewriting($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Rewriting relation * @method ChildCategoryQuery innerJoinRewriting($relationAlias = null) Adds a INNER JOIN clause to the query using the Rewriting relation @@ -74,6 +70,10 @@ use Thelia\Model\Map\CategoryTableMap; * @method ChildCategoryQuery rightJoinCategoryDocument($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CategoryDocument relation * @method ChildCategoryQuery innerJoinCategoryDocument($relationAlias = null) Adds a INNER JOIN clause to the query using the CategoryDocument relation * + * @method ChildCategoryQuery leftJoinCategoryAssociatedContent($relationAlias = null) Adds a LEFT JOIN clause to the query using the CategoryAssociatedContent relation + * @method ChildCategoryQuery rightJoinCategoryAssociatedContent($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CategoryAssociatedContent relation + * @method ChildCategoryQuery innerJoinCategoryAssociatedContent($relationAlias = null) Adds a INNER JOIN clause to the query using the CategoryAssociatedContent relation + * * @method ChildCategoryQuery leftJoinCategoryI18n($relationAlias = null) Adds a LEFT JOIN clause to the query using the CategoryI18n relation * @method ChildCategoryQuery rightJoinCategoryI18n($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CategoryI18n relation * @method ChildCategoryQuery innerJoinCategoryI18n($relationAlias = null) Adds a INNER JOIN clause to the query using the CategoryI18n relation @@ -870,79 +870,6 @@ abstract class CategoryQuery extends ModelCriteria ->useQuery($relationAlias ? $relationAlias : 'AttributeCategory', '\Thelia\Model\AttributeCategoryQuery'); } - /** - * Filter the query by a related \Thelia\Model\ContentAssoc object - * - * @param \Thelia\Model\ContentAssoc|ObjectCollection $contentAssoc the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildCategoryQuery The current query, for fluid interface - */ - public function filterByContentAssoc($contentAssoc, $comparison = null) - { - if ($contentAssoc instanceof \Thelia\Model\ContentAssoc) { - return $this - ->addUsingAlias(CategoryTableMap::ID, $contentAssoc->getCategoryId(), $comparison); - } elseif ($contentAssoc instanceof ObjectCollection) { - return $this - ->useContentAssocQuery() - ->filterByPrimaryKeys($contentAssoc->getPrimaryKeys()) - ->endUse(); - } else { - throw new PropelException('filterByContentAssoc() only accepts arguments of type \Thelia\Model\ContentAssoc or Collection'); - } - } - - /** - * Adds a JOIN clause to the query using the ContentAssoc relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return ChildCategoryQuery The current query, for fluid interface - */ - public function joinContentAssoc($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('ContentAssoc'); - - // create a ModelJoin object for this join - $join = new ModelJoin(); - $join->setJoinType($joinType); - $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); - if ($previousJoin = $this->getPreviousJoin()) { - $join->setPreviousJoin($previousJoin); - } - - // add the ModelJoin to the current object - if ($relationAlias) { - $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); - $this->addJoinObject($join, $relationAlias); - } else { - $this->addJoinObject($join, 'ContentAssoc'); - } - - return $this; - } - - /** - * Use the ContentAssoc relation ContentAssoc object - * - * @see useQuery() - * - * @param string $relationAlias optional alias for the relation, - * to be used as main alias in the secondary query - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return \Thelia\Model\ContentAssocQuery A secondary query class using the current class as primary query - */ - public function useContentAssocQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinContentAssoc($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'ContentAssoc', '\Thelia\Model\ContentAssocQuery'); - } - /** * Filter the query by a related \Thelia\Model\Rewriting object * @@ -1162,6 +1089,79 @@ abstract class CategoryQuery extends ModelCriteria ->useQuery($relationAlias ? $relationAlias : 'CategoryDocument', '\Thelia\Model\CategoryDocumentQuery'); } + /** + * Filter the query by a related \Thelia\Model\CategoryAssociatedContent object + * + * @param \Thelia\Model\CategoryAssociatedContent|ObjectCollection $categoryAssociatedContent the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCategoryQuery The current query, for fluid interface + */ + public function filterByCategoryAssociatedContent($categoryAssociatedContent, $comparison = null) + { + if ($categoryAssociatedContent instanceof \Thelia\Model\CategoryAssociatedContent) { + return $this + ->addUsingAlias(CategoryTableMap::ID, $categoryAssociatedContent->getCategoryId(), $comparison); + } elseif ($categoryAssociatedContent instanceof ObjectCollection) { + return $this + ->useCategoryAssociatedContentQuery() + ->filterByPrimaryKeys($categoryAssociatedContent->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCategoryAssociatedContent() only accepts arguments of type \Thelia\Model\CategoryAssociatedContent or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the CategoryAssociatedContent relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildCategoryQuery The current query, for fluid interface + */ + public function joinCategoryAssociatedContent($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CategoryAssociatedContent'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'CategoryAssociatedContent'); + } + + return $this; + } + + /** + * Use the CategoryAssociatedContent relation CategoryAssociatedContent object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\CategoryAssociatedContentQuery A secondary query class using the current class as primary query + */ + public function useCategoryAssociatedContentQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCategoryAssociatedContent($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CategoryAssociatedContent', '\Thelia\Model\CategoryAssociatedContentQuery'); + } + /** * Filter the query by a related \Thelia\Model\CategoryI18n object * @@ -1461,7 +1461,7 @@ abstract class CategoryQuery extends ModelCriteria * * @return ChildCategoryQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'CategoryI18n'; @@ -1479,7 +1479,7 @@ abstract class CategoryQuery extends ModelCriteria * * @return ChildCategoryQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -1500,7 +1500,7 @@ abstract class CategoryQuery extends ModelCriteria * * @return ChildCategoryI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/CategoryVersion.php b/core/lib/Thelia/Model/Base/CategoryVersion.php old mode 100644 new mode 100755 index d8dfe76e0..416ad95d5 --- a/core/lib/Thelia/Model/Base/CategoryVersion.php +++ b/core/lib/Thelia/Model/Base/CategoryVersion.php @@ -292,7 +292,7 @@ abstract class CategoryVersion implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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/Config.php b/core/lib/Thelia/Model/Base/Config.php old mode 100644 new mode 100755 index d687ffefe..b4d909de4 --- a/core/lib/Thelia/Model/Base/Config.php +++ b/core/lib/Thelia/Model/Base/Config.php @@ -121,7 +121,7 @@ abstract class Config implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -305,7 +305,7 @@ abstract class Config implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1642,7 +1642,7 @@ abstract class Config implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collConfigI18ns instanceof Collection) { @@ -1684,7 +1684,7 @@ abstract class Config implements ActiveRecordInterface * * @return ChildConfig The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1708,7 +1708,7 @@ abstract class Config implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildConfigI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collConfigI18ns) { @@ -1743,7 +1743,7 @@ abstract class Config implements ActiveRecordInterface * * @return ChildConfig The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildConfigI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ConfigI18n.php b/core/lib/Thelia/Model/Base/ConfigI18n.php old mode 100644 new mode 100755 index 6247e15d1..57c72ace8 --- a/core/lib/Thelia/Model/Base/ConfigI18n.php +++ b/core/lib/Thelia/Model/Base/ConfigI18n.php @@ -61,7 +61,7 @@ abstract class ConfigI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ConfigI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ConfigI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ConfigI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index ef47308a4..b2ddc3409 --- a/core/lib/Thelia/Model/Base/ConfigQuery.php +++ b/core/lib/Thelia/Model/Base/ConfigQuery.php @@ -749,7 +749,7 @@ abstract class ConfigQuery extends ModelCriteria * * @return ChildConfigQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ConfigI18n'; @@ -767,7 +767,7 @@ abstract class ConfigQuery extends ModelCriteria * * @return ChildConfigQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -788,7 +788,7 @@ abstract class ConfigQuery extends ModelCriteria * * @return ChildConfigI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Content.php b/core/lib/Thelia/Model/Base/Content.php old mode 100644 new mode 100755 index 96ea69eef..bd4d29046 --- a/core/lib/Thelia/Model/Base/Content.php +++ b/core/lib/Thelia/Model/Base/Content.php @@ -17,9 +17,9 @@ use Propel\Runtime\Exception\PropelException; use Propel\Runtime\Map\TableMap; use Propel\Runtime\Parser\AbstractParser; use Propel\Runtime\Util\PropelDateTime; +use Thelia\Model\CategoryAssociatedContent as ChildCategoryAssociatedContent; +use Thelia\Model\CategoryAssociatedContentQuery as ChildCategoryAssociatedContentQuery; use Thelia\Model\Content as ChildContent; -use Thelia\Model\ContentAssoc as ChildContentAssoc; -use Thelia\Model\ContentAssocQuery as ChildContentAssocQuery; use Thelia\Model\ContentDocument as ChildContentDocument; use Thelia\Model\ContentDocumentQuery as ChildContentDocumentQuery; use Thelia\Model\ContentFolder as ChildContentFolder; @@ -33,6 +33,8 @@ use Thelia\Model\ContentVersion as ChildContentVersion; use Thelia\Model\ContentVersionQuery as ChildContentVersionQuery; use Thelia\Model\Folder as ChildFolder; use Thelia\Model\FolderQuery as ChildFolderQuery; +use Thelia\Model\ProductAssociatedContent as ChildProductAssociatedContent; +use Thelia\Model\ProductAssociatedContentQuery as ChildProductAssociatedContentQuery; use Thelia\Model\Rewriting as ChildRewriting; use Thelia\Model\RewritingQuery as ChildRewritingQuery; use Thelia\Model\Map\ContentTableMap; @@ -121,12 +123,6 @@ abstract class Content implements ActiveRecordInterface */ protected $version_created_by; - /** - * @var ObjectCollection|ChildContentAssoc[] Collection to store aggregation of ChildContentAssoc objects. - */ - protected $collContentAssocs; - protected $collContentAssocsPartial; - /** * @var ObjectCollection|ChildRewriting[] Collection to store aggregation of ChildRewriting objects. */ @@ -151,6 +147,18 @@ abstract class Content implements ActiveRecordInterface protected $collContentDocuments; protected $collContentDocumentsPartial; + /** + * @var ObjectCollection|ChildProductAssociatedContent[] Collection to store aggregation of ChildProductAssociatedContent objects. + */ + protected $collProductAssociatedContents; + protected $collProductAssociatedContentsPartial; + + /** + * @var ObjectCollection|ChildCategoryAssociatedContent[] Collection to store aggregation of ChildCategoryAssociatedContent objects. + */ + protected $collCategoryAssociatedContents; + protected $collCategoryAssociatedContentsPartial; + /** * @var ObjectCollection|ChildContentI18n[] Collection to store aggregation of ChildContentI18n objects. */ @@ -182,7 +190,7 @@ abstract class Content implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -204,12 +212,6 @@ abstract class Content implements ActiveRecordInterface */ protected $foldersScheduledForDeletion = null; - /** - * An array of objects scheduled for deletion. - * @var ObjectCollection - */ - protected $contentAssocsScheduledForDeletion = null; - /** * An array of objects scheduled for deletion. * @var ObjectCollection @@ -234,6 +236,18 @@ abstract class Content implements ActiveRecordInterface */ protected $contentDocumentsScheduledForDeletion = null; + /** + * An array of objects scheduled for deletion. + * @var ObjectCollection + */ + protected $productAssociatedContentsScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var ObjectCollection + */ + protected $categoryAssociatedContentsScheduledForDeletion = null; + /** * An array of objects scheduled for deletion. * @var ObjectCollection @@ -415,7 +429,7 @@ abstract class Content implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -938,8 +952,6 @@ abstract class Content implements ActiveRecordInterface if ($deep) { // also de-associate any related objects? - $this->collContentAssocs = null; - $this->collRewritings = null; $this->collContentFolders = null; @@ -948,6 +960,10 @@ abstract class Content implements ActiveRecordInterface $this->collContentDocuments = null; + $this->collProductAssociatedContents = null; + + $this->collCategoryAssociatedContents = null; + $this->collContentI18ns = null; $this->collContentVersions = null; @@ -1125,23 +1141,6 @@ abstract class Content implements ActiveRecordInterface } } - if ($this->contentAssocsScheduledForDeletion !== null) { - if (!$this->contentAssocsScheduledForDeletion->isEmpty()) { - \Thelia\Model\ContentAssocQuery::create() - ->filterByPrimaryKeys($this->contentAssocsScheduledForDeletion->getPrimaryKeys(false)) - ->delete($con); - $this->contentAssocsScheduledForDeletion = null; - } - } - - if ($this->collContentAssocs !== null) { - foreach ($this->collContentAssocs as $referrerFK) { - if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { - $affectedRows += $referrerFK->save($con); - } - } - } - if ($this->rewritingsScheduledForDeletion !== null) { if (!$this->rewritingsScheduledForDeletion->isEmpty()) { \Thelia\Model\RewritingQuery::create() @@ -1210,6 +1209,40 @@ abstract class Content implements ActiveRecordInterface } } + if ($this->productAssociatedContentsScheduledForDeletion !== null) { + if (!$this->productAssociatedContentsScheduledForDeletion->isEmpty()) { + \Thelia\Model\ProductAssociatedContentQuery::create() + ->filterByPrimaryKeys($this->productAssociatedContentsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->productAssociatedContentsScheduledForDeletion = null; + } + } + + if ($this->collProductAssociatedContents !== null) { + foreach ($this->collProductAssociatedContents as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->categoryAssociatedContentsScheduledForDeletion !== null) { + if (!$this->categoryAssociatedContentsScheduledForDeletion->isEmpty()) { + \Thelia\Model\CategoryAssociatedContentQuery::create() + ->filterByPrimaryKeys($this->categoryAssociatedContentsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->categoryAssociatedContentsScheduledForDeletion = null; + } + } + + if ($this->collCategoryAssociatedContents !== null) { + foreach ($this->collCategoryAssociatedContents as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + if ($this->contentI18nsScheduledForDeletion !== null) { if (!$this->contentI18nsScheduledForDeletion->isEmpty()) { \Thelia\Model\ContentI18nQuery::create() @@ -1460,9 +1493,6 @@ abstract class Content implements ActiveRecordInterface } if ($includeForeignObjects) { - if (null !== $this->collContentAssocs) { - $result['ContentAssocs'] = $this->collContentAssocs->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); - } if (null !== $this->collRewritings) { $result['Rewritings'] = $this->collRewritings->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } @@ -1475,6 +1505,12 @@ abstract class Content implements ActiveRecordInterface if (null !== $this->collContentDocuments) { $result['ContentDocuments'] = $this->collContentDocuments->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } + if (null !== $this->collProductAssociatedContents) { + $result['ProductAssociatedContents'] = $this->collProductAssociatedContents->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCategoryAssociatedContents) { + $result['CategoryAssociatedContents'] = $this->collCategoryAssociatedContents->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } if (null !== $this->collContentI18ns) { $result['ContentI18ns'] = $this->collContentI18ns->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } @@ -1666,12 +1702,6 @@ abstract class Content implements ActiveRecordInterface // the getter/setter methods for fkey referrer objects. $copyObj->setNew(false); - foreach ($this->getContentAssocs() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addContentAssoc($relObj->copy($deepCopy)); - } - } - foreach ($this->getRewritings() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addRewriting($relObj->copy($deepCopy)); @@ -1696,6 +1726,18 @@ abstract class Content implements ActiveRecordInterface } } + foreach ($this->getProductAssociatedContents() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addProductAssociatedContent($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCategoryAssociatedContents() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCategoryAssociatedContent($relObj->copy($deepCopy)); + } + } + foreach ($this->getContentI18ns() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addContentI18n($relObj->copy($deepCopy)); @@ -1749,9 +1791,6 @@ abstract class Content implements ActiveRecordInterface */ public function initRelation($relationName) { - if ('ContentAssoc' == $relationName) { - return $this->initContentAssocs(); - } if ('Rewriting' == $relationName) { return $this->initRewritings(); } @@ -1764,6 +1803,12 @@ abstract class Content implements ActiveRecordInterface if ('ContentDocument' == $relationName) { return $this->initContentDocuments(); } + if ('ProductAssociatedContent' == $relationName) { + return $this->initProductAssociatedContents(); + } + if ('CategoryAssociatedContent' == $relationName) { + return $this->initCategoryAssociatedContents(); + } if ('ContentI18n' == $relationName) { return $this->initContentI18ns(); } @@ -1772,274 +1817,6 @@ abstract class Content implements ActiveRecordInterface } } - /** - * Clears out the collContentAssocs collection - * - * This does not modify the database; however, it will remove any associated objects, causing - * them to be refetched by subsequent calls to accessor method. - * - * @return void - * @see addContentAssocs() - */ - public function clearContentAssocs() - { - $this->collContentAssocs = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Reset is the collContentAssocs collection loaded partially. - */ - public function resetPartialContentAssocs($v = true) - { - $this->collContentAssocsPartial = $v; - } - - /** - * Initializes the collContentAssocs collection. - * - * By default this just sets the collContentAssocs collection to an empty array (like clearcollContentAssocs()); - * however, you may wish to override this method in your stub class to provide setting appropriate - * to your application -- for example, setting the initial array to the values stored in database. - * - * @param boolean $overrideExisting If set to true, the method call initializes - * the collection even if it is not empty - * - * @return void - */ - public function initContentAssocs($overrideExisting = true) - { - if (null !== $this->collContentAssocs && !$overrideExisting) { - return; - } - $this->collContentAssocs = new ObjectCollection(); - $this->collContentAssocs->setModel('\Thelia\Model\ContentAssoc'); - } - - /** - * Gets an array of ChildContentAssoc objects which contain a foreign key that references this object. - * - * If the $criteria is not null, it is used to always fetch the results from the database. - * Otherwise the results are fetched from the database the first time, then cached. - * Next time the same method is called without $criteria, the cached collection is returned. - * If this ChildContent is new, it will return - * an empty collection or the current collection; the criteria is ignored on a new object. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - * @throws PropelException - */ - public function getContentAssocs($criteria = null, ConnectionInterface $con = null) - { - $partial = $this->collContentAssocsPartial && !$this->isNew(); - if (null === $this->collContentAssocs || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collContentAssocs) { - // return empty collection - $this->initContentAssocs(); - } else { - $collContentAssocs = ChildContentAssocQuery::create(null, $criteria) - ->filterByContent($this) - ->find($con); - - if (null !== $criteria) { - if (false !== $this->collContentAssocsPartial && count($collContentAssocs)) { - $this->initContentAssocs(false); - - foreach ($collContentAssocs as $obj) { - if (false == $this->collContentAssocs->contains($obj)) { - $this->collContentAssocs->append($obj); - } - } - - $this->collContentAssocsPartial = true; - } - - $collContentAssocs->getInternalIterator()->rewind(); - - return $collContentAssocs; - } - - if ($partial && $this->collContentAssocs) { - foreach ($this->collContentAssocs as $obj) { - if ($obj->isNew()) { - $collContentAssocs[] = $obj; - } - } - } - - $this->collContentAssocs = $collContentAssocs; - $this->collContentAssocsPartial = false; - } - } - - return $this->collContentAssocs; - } - - /** - * Sets a collection of ContentAssoc objects related by a one-to-many relationship - * to the current object. - * It will also schedule objects for deletion based on a diff between old objects (aka persisted) - * and new objects from the given Propel collection. - * - * @param Collection $contentAssocs A Propel collection. - * @param ConnectionInterface $con Optional connection object - * @return ChildContent The current object (for fluent API support) - */ - public function setContentAssocs(Collection $contentAssocs, ConnectionInterface $con = null) - { - $contentAssocsToDelete = $this->getContentAssocs(new Criteria(), $con)->diff($contentAssocs); - - - $this->contentAssocsScheduledForDeletion = $contentAssocsToDelete; - - foreach ($contentAssocsToDelete as $contentAssocRemoved) { - $contentAssocRemoved->setContent(null); - } - - $this->collContentAssocs = null; - foreach ($contentAssocs as $contentAssoc) { - $this->addContentAssoc($contentAssoc); - } - - $this->collContentAssocs = $contentAssocs; - $this->collContentAssocsPartial = false; - - return $this; - } - - /** - * Returns the number of related ContentAssoc objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param ConnectionInterface $con - * @return int Count of related ContentAssoc objects. - * @throws PropelException - */ - public function countContentAssocs(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) - { - $partial = $this->collContentAssocsPartial && !$this->isNew(); - if (null === $this->collContentAssocs || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collContentAssocs) { - return 0; - } - - if ($partial && !$criteria) { - return count($this->getContentAssocs()); - } - - $query = ChildContentAssocQuery::create(null, $criteria); - if ($distinct) { - $query->distinct(); - } - - return $query - ->filterByContent($this) - ->count($con); - } - - return count($this->collContentAssocs); - } - - /** - * Method called to associate a ChildContentAssoc object to this object - * through the ChildContentAssoc foreign key attribute. - * - * @param ChildContentAssoc $l ChildContentAssoc - * @return \Thelia\Model\Content The current object (for fluent API support) - */ - public function addContentAssoc(ChildContentAssoc $l) - { - if ($this->collContentAssocs === null) { - $this->initContentAssocs(); - $this->collContentAssocsPartial = true; - } - - if (!in_array($l, $this->collContentAssocs->getArrayCopy(), true)) { // only add it if the **same** object is not already associated - $this->doAddContentAssoc($l); - } - - return $this; - } - - /** - * @param ContentAssoc $contentAssoc The contentAssoc object to add. - */ - protected function doAddContentAssoc($contentAssoc) - { - $this->collContentAssocs[]= $contentAssoc; - $contentAssoc->setContent($this); - } - - /** - * @param ContentAssoc $contentAssoc The contentAssoc object to remove. - * @return ChildContent The current object (for fluent API support) - */ - public function removeContentAssoc($contentAssoc) - { - if ($this->getContentAssocs()->contains($contentAssoc)) { - $this->collContentAssocs->remove($this->collContentAssocs->search($contentAssoc)); - if (null === $this->contentAssocsScheduledForDeletion) { - $this->contentAssocsScheduledForDeletion = clone $this->collContentAssocs; - $this->contentAssocsScheduledForDeletion->clear(); - } - $this->contentAssocsScheduledForDeletion[]= $contentAssoc; - $contentAssoc->setContent(null); - } - - return $this; - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this Content is new, it will return - * an empty collection; or if this Content has previously - * been saved, it will retrieve related ContentAssocs from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in Content. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - */ - public function getContentAssocsJoinCategory($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) - { - $query = ChildContentAssocQuery::create(null, $criteria); - $query->joinWith('Category', $joinBehavior); - - return $this->getContentAssocs($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this Content is new, it will return - * an empty collection; or if this Content has previously - * been saved, it will retrieve related ContentAssocs from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in Content. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - */ - public function getContentAssocsJoinProduct($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) - { - $query = ChildContentAssocQuery::create(null, $criteria); - $query->joinWith('Product', $joinBehavior); - - return $this->getContentAssocs($query, $con); - } - /** * Clears out the collRewritings collection * @@ -3015,6 +2792,492 @@ abstract class Content implements ActiveRecordInterface return $this; } + /** + * Clears out the collProductAssociatedContents collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addProductAssociatedContents() + */ + public function clearProductAssociatedContents() + { + $this->collProductAssociatedContents = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collProductAssociatedContents collection loaded partially. + */ + public function resetPartialProductAssociatedContents($v = true) + { + $this->collProductAssociatedContentsPartial = $v; + } + + /** + * Initializes the collProductAssociatedContents collection. + * + * By default this just sets the collProductAssociatedContents collection to an empty array (like clearcollProductAssociatedContents()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initProductAssociatedContents($overrideExisting = true) + { + if (null !== $this->collProductAssociatedContents && !$overrideExisting) { + return; + } + $this->collProductAssociatedContents = new ObjectCollection(); + $this->collProductAssociatedContents->setModel('\Thelia\Model\ProductAssociatedContent'); + } + + /** + * Gets an array of ChildProductAssociatedContent objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildContent is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildProductAssociatedContent[] List of ChildProductAssociatedContent objects + * @throws PropelException + */ + public function getProductAssociatedContents($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collProductAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collProductAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collProductAssociatedContents) { + // return empty collection + $this->initProductAssociatedContents(); + } else { + $collProductAssociatedContents = ChildProductAssociatedContentQuery::create(null, $criteria) + ->filterByContent($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collProductAssociatedContentsPartial && count($collProductAssociatedContents)) { + $this->initProductAssociatedContents(false); + + foreach ($collProductAssociatedContents as $obj) { + if (false == $this->collProductAssociatedContents->contains($obj)) { + $this->collProductAssociatedContents->append($obj); + } + } + + $this->collProductAssociatedContentsPartial = true; + } + + $collProductAssociatedContents->getInternalIterator()->rewind(); + + return $collProductAssociatedContents; + } + + if ($partial && $this->collProductAssociatedContents) { + foreach ($this->collProductAssociatedContents as $obj) { + if ($obj->isNew()) { + $collProductAssociatedContents[] = $obj; + } + } + } + + $this->collProductAssociatedContents = $collProductAssociatedContents; + $this->collProductAssociatedContentsPartial = false; + } + } + + return $this->collProductAssociatedContents; + } + + /** + * Sets a collection of ProductAssociatedContent objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $productAssociatedContents A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildContent The current object (for fluent API support) + */ + public function setProductAssociatedContents(Collection $productAssociatedContents, ConnectionInterface $con = null) + { + $productAssociatedContentsToDelete = $this->getProductAssociatedContents(new Criteria(), $con)->diff($productAssociatedContents); + + + $this->productAssociatedContentsScheduledForDeletion = $productAssociatedContentsToDelete; + + foreach ($productAssociatedContentsToDelete as $productAssociatedContentRemoved) { + $productAssociatedContentRemoved->setContent(null); + } + + $this->collProductAssociatedContents = null; + foreach ($productAssociatedContents as $productAssociatedContent) { + $this->addProductAssociatedContent($productAssociatedContent); + } + + $this->collProductAssociatedContents = $productAssociatedContents; + $this->collProductAssociatedContentsPartial = false; + + return $this; + } + + /** + * Returns the number of related ProductAssociatedContent objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related ProductAssociatedContent objects. + * @throws PropelException + */ + public function countProductAssociatedContents(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collProductAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collProductAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collProductAssociatedContents) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getProductAssociatedContents()); + } + + $query = ChildProductAssociatedContentQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByContent($this) + ->count($con); + } + + return count($this->collProductAssociatedContents); + } + + /** + * Method called to associate a ChildProductAssociatedContent object to this object + * through the ChildProductAssociatedContent foreign key attribute. + * + * @param ChildProductAssociatedContent $l ChildProductAssociatedContent + * @return \Thelia\Model\Content The current object (for fluent API support) + */ + public function addProductAssociatedContent(ChildProductAssociatedContent $l) + { + if ($this->collProductAssociatedContents === null) { + $this->initProductAssociatedContents(); + $this->collProductAssociatedContentsPartial = true; + } + + if (!in_array($l, $this->collProductAssociatedContents->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddProductAssociatedContent($l); + } + + return $this; + } + + /** + * @param ProductAssociatedContent $productAssociatedContent The productAssociatedContent object to add. + */ + protected function doAddProductAssociatedContent($productAssociatedContent) + { + $this->collProductAssociatedContents[]= $productAssociatedContent; + $productAssociatedContent->setContent($this); + } + + /** + * @param ProductAssociatedContent $productAssociatedContent The productAssociatedContent object to remove. + * @return ChildContent The current object (for fluent API support) + */ + public function removeProductAssociatedContent($productAssociatedContent) + { + if ($this->getProductAssociatedContents()->contains($productAssociatedContent)) { + $this->collProductAssociatedContents->remove($this->collProductAssociatedContents->search($productAssociatedContent)); + if (null === $this->productAssociatedContentsScheduledForDeletion) { + $this->productAssociatedContentsScheduledForDeletion = clone $this->collProductAssociatedContents; + $this->productAssociatedContentsScheduledForDeletion->clear(); + } + $this->productAssociatedContentsScheduledForDeletion[]= clone $productAssociatedContent; + $productAssociatedContent->setContent(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this Content is new, it will return + * an empty collection; or if this Content has previously + * been saved, it will retrieve related ProductAssociatedContents from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in Content. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildProductAssociatedContent[] List of ChildProductAssociatedContent objects + */ + public function getProductAssociatedContentsJoinProduct($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildProductAssociatedContentQuery::create(null, $criteria); + $query->joinWith('Product', $joinBehavior); + + return $this->getProductAssociatedContents($query, $con); + } + + /** + * Clears out the collCategoryAssociatedContents collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addCategoryAssociatedContents() + */ + public function clearCategoryAssociatedContents() + { + $this->collCategoryAssociatedContents = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collCategoryAssociatedContents collection loaded partially. + */ + public function resetPartialCategoryAssociatedContents($v = true) + { + $this->collCategoryAssociatedContentsPartial = $v; + } + + /** + * Initializes the collCategoryAssociatedContents collection. + * + * By default this just sets the collCategoryAssociatedContents collection to an empty array (like clearcollCategoryAssociatedContents()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCategoryAssociatedContents($overrideExisting = true) + { + if (null !== $this->collCategoryAssociatedContents && !$overrideExisting) { + return; + } + $this->collCategoryAssociatedContents = new ObjectCollection(); + $this->collCategoryAssociatedContents->setModel('\Thelia\Model\CategoryAssociatedContent'); + } + + /** + * Gets an array of ChildCategoryAssociatedContent objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildContent is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildCategoryAssociatedContent[] List of ChildCategoryAssociatedContent objects + * @throws PropelException + */ + public function getCategoryAssociatedContents($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collCategoryAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collCategoryAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCategoryAssociatedContents) { + // return empty collection + $this->initCategoryAssociatedContents(); + } else { + $collCategoryAssociatedContents = ChildCategoryAssociatedContentQuery::create(null, $criteria) + ->filterByContent($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collCategoryAssociatedContentsPartial && count($collCategoryAssociatedContents)) { + $this->initCategoryAssociatedContents(false); + + foreach ($collCategoryAssociatedContents as $obj) { + if (false == $this->collCategoryAssociatedContents->contains($obj)) { + $this->collCategoryAssociatedContents->append($obj); + } + } + + $this->collCategoryAssociatedContentsPartial = true; + } + + $collCategoryAssociatedContents->getInternalIterator()->rewind(); + + return $collCategoryAssociatedContents; + } + + if ($partial && $this->collCategoryAssociatedContents) { + foreach ($this->collCategoryAssociatedContents as $obj) { + if ($obj->isNew()) { + $collCategoryAssociatedContents[] = $obj; + } + } + } + + $this->collCategoryAssociatedContents = $collCategoryAssociatedContents; + $this->collCategoryAssociatedContentsPartial = false; + } + } + + return $this->collCategoryAssociatedContents; + } + + /** + * Sets a collection of CategoryAssociatedContent objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $categoryAssociatedContents A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildContent The current object (for fluent API support) + */ + public function setCategoryAssociatedContents(Collection $categoryAssociatedContents, ConnectionInterface $con = null) + { + $categoryAssociatedContentsToDelete = $this->getCategoryAssociatedContents(new Criteria(), $con)->diff($categoryAssociatedContents); + + + $this->categoryAssociatedContentsScheduledForDeletion = $categoryAssociatedContentsToDelete; + + foreach ($categoryAssociatedContentsToDelete as $categoryAssociatedContentRemoved) { + $categoryAssociatedContentRemoved->setContent(null); + } + + $this->collCategoryAssociatedContents = null; + foreach ($categoryAssociatedContents as $categoryAssociatedContent) { + $this->addCategoryAssociatedContent($categoryAssociatedContent); + } + + $this->collCategoryAssociatedContents = $categoryAssociatedContents; + $this->collCategoryAssociatedContentsPartial = false; + + return $this; + } + + /** + * Returns the number of related CategoryAssociatedContent objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related CategoryAssociatedContent objects. + * @throws PropelException + */ + public function countCategoryAssociatedContents(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collCategoryAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collCategoryAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCategoryAssociatedContents) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCategoryAssociatedContents()); + } + + $query = ChildCategoryAssociatedContentQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByContent($this) + ->count($con); + } + + return count($this->collCategoryAssociatedContents); + } + + /** + * Method called to associate a ChildCategoryAssociatedContent object to this object + * through the ChildCategoryAssociatedContent foreign key attribute. + * + * @param ChildCategoryAssociatedContent $l ChildCategoryAssociatedContent + * @return \Thelia\Model\Content The current object (for fluent API support) + */ + public function addCategoryAssociatedContent(ChildCategoryAssociatedContent $l) + { + if ($this->collCategoryAssociatedContents === null) { + $this->initCategoryAssociatedContents(); + $this->collCategoryAssociatedContentsPartial = true; + } + + if (!in_array($l, $this->collCategoryAssociatedContents->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCategoryAssociatedContent($l); + } + + return $this; + } + + /** + * @param CategoryAssociatedContent $categoryAssociatedContent The categoryAssociatedContent object to add. + */ + protected function doAddCategoryAssociatedContent($categoryAssociatedContent) + { + $this->collCategoryAssociatedContents[]= $categoryAssociatedContent; + $categoryAssociatedContent->setContent($this); + } + + /** + * @param CategoryAssociatedContent $categoryAssociatedContent The categoryAssociatedContent object to remove. + * @return ChildContent The current object (for fluent API support) + */ + public function removeCategoryAssociatedContent($categoryAssociatedContent) + { + if ($this->getCategoryAssociatedContents()->contains($categoryAssociatedContent)) { + $this->collCategoryAssociatedContents->remove($this->collCategoryAssociatedContents->search($categoryAssociatedContent)); + if (null === $this->categoryAssociatedContentsScheduledForDeletion) { + $this->categoryAssociatedContentsScheduledForDeletion = clone $this->collCategoryAssociatedContents; + $this->categoryAssociatedContentsScheduledForDeletion->clear(); + } + $this->categoryAssociatedContentsScheduledForDeletion[]= clone $categoryAssociatedContent; + $categoryAssociatedContent->setContent(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this Content is new, it will return + * an empty collection; or if this Content has previously + * been saved, it will retrieve related CategoryAssociatedContents from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in Content. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildCategoryAssociatedContent[] List of ChildCategoryAssociatedContent objects + */ + public function getCategoryAssociatedContentsJoinCategory($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildCategoryAssociatedContentQuery::create(null, $criteria); + $query->joinWith('Category', $joinBehavior); + + return $this->getCategoryAssociatedContents($query, $con); + } + /** * Clears out the collContentI18ns collection * @@ -3677,11 +3940,6 @@ abstract class Content implements ActiveRecordInterface public function clearAllReferences($deep = false) { if ($deep) { - if ($this->collContentAssocs) { - foreach ($this->collContentAssocs as $o) { - $o->clearAllReferences($deep); - } - } if ($this->collRewritings) { foreach ($this->collRewritings as $o) { $o->clearAllReferences($deep); @@ -3702,6 +3960,16 @@ abstract class Content implements ActiveRecordInterface $o->clearAllReferences($deep); } } + if ($this->collProductAssociatedContents) { + foreach ($this->collProductAssociatedContents as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCategoryAssociatedContents) { + foreach ($this->collCategoryAssociatedContents as $o) { + $o->clearAllReferences($deep); + } + } if ($this->collContentI18ns) { foreach ($this->collContentI18ns as $o) { $o->clearAllReferences($deep); @@ -3720,13 +3988,9 @@ abstract class Content implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; - if ($this->collContentAssocs instanceof Collection) { - $this->collContentAssocs->clearIterator(); - } - $this->collContentAssocs = null; if ($this->collRewritings instanceof Collection) { $this->collRewritings->clearIterator(); } @@ -3743,6 +4007,14 @@ abstract class Content implements ActiveRecordInterface $this->collContentDocuments->clearIterator(); } $this->collContentDocuments = null; + if ($this->collProductAssociatedContents instanceof Collection) { + $this->collProductAssociatedContents->clearIterator(); + } + $this->collProductAssociatedContents = null; + if ($this->collCategoryAssociatedContents instanceof Collection) { + $this->collCategoryAssociatedContents->clearIterator(); + } + $this->collCategoryAssociatedContents = null; if ($this->collContentI18ns instanceof Collection) { $this->collContentI18ns->clearIterator(); } @@ -3790,7 +4062,7 @@ abstract class Content implements ActiveRecordInterface * * @return ChildContent The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -3814,7 +4086,7 @@ abstract class Content implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildContentI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collContentI18ns) { @@ -3849,7 +4121,7 @@ abstract class Content implements ActiveRecordInterface * * @return ChildContent The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildContentI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ContentDocument.php b/core/lib/Thelia/Model/Base/ContentDocument.php old mode 100644 new mode 100755 index 990fc4a9f..01f631208 --- a/core/lib/Thelia/Model/Base/ContentDocument.php +++ b/core/lib/Thelia/Model/Base/ContentDocument.php @@ -120,7 +120,7 @@ abstract class ContentDocument implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class ContentDocument implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class ContentDocument implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collContentDocumentI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class ContentDocument implements ActiveRecordInterface * * @return ChildContentDocument The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class ContentDocument implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildContentDocumentI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collContentDocumentI18ns) { @@ -1742,7 +1742,7 @@ abstract class ContentDocument implements ActiveRecordInterface * * @return ChildContentDocument The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildContentDocumentI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ContentDocumentI18n.php b/core/lib/Thelia/Model/Base/ContentDocumentI18n.php old mode 100644 new mode 100755 index 2cfc367b0..f11cd8a08 --- a/core/lib/Thelia/Model/Base/ContentDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/ContentDocumentI18n.php @@ -61,7 +61,7 @@ abstract class ContentDocumentI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ContentDocumentI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ContentDocumentI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ContentDocumentI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/ContentDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/ContentDocumentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentDocumentQuery.php b/core/lib/Thelia/Model/Base/ContentDocumentQuery.php old mode 100644 new mode 100755 index 89cf5d48b..72cc8cae4 --- a/core/lib/Thelia/Model/Base/ContentDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/ContentDocumentQuery.php @@ -797,7 +797,7 @@ abstract class ContentDocumentQuery extends ModelCriteria * * @return ChildContentDocumentQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ContentDocumentI18n'; @@ -815,7 +815,7 @@ abstract class ContentDocumentQuery extends ModelCriteria * * @return ChildContentDocumentQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class ContentDocumentQuery extends ModelCriteria * * @return ChildContentDocumentI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/ContentFolder.php b/core/lib/Thelia/Model/Base/ContentFolder.php old mode 100644 new mode 100755 index 52f5fa88a..51d72b974 --- a/core/lib/Thelia/Model/Base/ContentFolder.php +++ b/core/lib/Thelia/Model/Base/ContentFolder.php @@ -256,7 +256,7 @@ abstract class ContentFolder implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index d3974522b..244862800 --- a/core/lib/Thelia/Model/Base/ContentI18n.php +++ b/core/lib/Thelia/Model/Base/ContentI18n.php @@ -61,7 +61,7 @@ abstract class ContentI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ContentI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ContentI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ContentI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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/ContentImage.php b/core/lib/Thelia/Model/Base/ContentImage.php old mode 100644 new mode 100755 index 22c4bed10..33e1eca09 --- a/core/lib/Thelia/Model/Base/ContentImage.php +++ b/core/lib/Thelia/Model/Base/ContentImage.php @@ -120,7 +120,7 @@ abstract class ContentImage implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class ContentImage implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class ContentImage implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collContentImageI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class ContentImage implements ActiveRecordInterface * * @return ChildContentImage The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class ContentImage implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildContentImageI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collContentImageI18ns) { @@ -1742,7 +1742,7 @@ abstract class ContentImage implements ActiveRecordInterface * * @return ChildContentImage The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildContentImageI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ContentImageI18n.php b/core/lib/Thelia/Model/Base/ContentImageI18n.php old mode 100644 new mode 100755 index d655dec53..cba4fba17 --- a/core/lib/Thelia/Model/Base/ContentImageI18n.php +++ b/core/lib/Thelia/Model/Base/ContentImageI18n.php @@ -61,7 +61,7 @@ abstract class ContentImageI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ContentImageI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ContentImageI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ContentImageI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/ContentImageI18nQuery.php b/core/lib/Thelia/Model/Base/ContentImageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ContentImageQuery.php b/core/lib/Thelia/Model/Base/ContentImageQuery.php old mode 100644 new mode 100755 index f69464dd7..26e0ffe5c --- a/core/lib/Thelia/Model/Base/ContentImageQuery.php +++ b/core/lib/Thelia/Model/Base/ContentImageQuery.php @@ -797,7 +797,7 @@ abstract class ContentImageQuery extends ModelCriteria * * @return ChildContentImageQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ContentImageI18n'; @@ -815,7 +815,7 @@ abstract class ContentImageQuery extends ModelCriteria * * @return ChildContentImageQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class ContentImageQuery extends ModelCriteria * * @return ChildContentImageI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/ContentQuery.php b/core/lib/Thelia/Model/Base/ContentQuery.php old mode 100644 new mode 100755 index 2cbbe109b..d4749ce46 --- a/core/lib/Thelia/Model/Base/ContentQuery.php +++ b/core/lib/Thelia/Model/Base/ContentQuery.php @@ -44,10 +44,6 @@ use Thelia\Model\Map\ContentTableMap; * @method ChildContentQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query * @method ChildContentQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method ChildContentQuery leftJoinContentAssoc($relationAlias = null) Adds a LEFT JOIN clause to the query using the ContentAssoc relation - * @method ChildContentQuery rightJoinContentAssoc($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ContentAssoc relation - * @method ChildContentQuery innerJoinContentAssoc($relationAlias = null) Adds a INNER JOIN clause to the query using the ContentAssoc relation - * * @method ChildContentQuery leftJoinRewriting($relationAlias = null) Adds a LEFT JOIN clause to the query using the Rewriting relation * @method ChildContentQuery rightJoinRewriting($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Rewriting relation * @method ChildContentQuery innerJoinRewriting($relationAlias = null) Adds a INNER JOIN clause to the query using the Rewriting relation @@ -64,6 +60,14 @@ use Thelia\Model\Map\ContentTableMap; * @method ChildContentQuery rightJoinContentDocument($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ContentDocument relation * @method ChildContentQuery innerJoinContentDocument($relationAlias = null) Adds a INNER JOIN clause to the query using the ContentDocument relation * + * @method ChildContentQuery leftJoinProductAssociatedContent($relationAlias = null) Adds a LEFT JOIN clause to the query using the ProductAssociatedContent relation + * @method ChildContentQuery rightJoinProductAssociatedContent($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ProductAssociatedContent relation + * @method ChildContentQuery innerJoinProductAssociatedContent($relationAlias = null) Adds a INNER JOIN clause to the query using the ProductAssociatedContent relation + * + * @method ChildContentQuery leftJoinCategoryAssociatedContent($relationAlias = null) Adds a LEFT JOIN clause to the query using the CategoryAssociatedContent relation + * @method ChildContentQuery rightJoinCategoryAssociatedContent($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CategoryAssociatedContent relation + * @method ChildContentQuery innerJoinCategoryAssociatedContent($relationAlias = null) Adds a INNER JOIN clause to the query using the CategoryAssociatedContent relation + * * @method ChildContentQuery leftJoinContentI18n($relationAlias = null) Adds a LEFT JOIN clause to the query using the ContentI18n relation * @method ChildContentQuery rightJoinContentI18n($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ContentI18n relation * @method ChildContentQuery innerJoinContentI18n($relationAlias = null) Adds a INNER JOIN clause to the query using the ContentI18n relation @@ -598,79 +602,6 @@ abstract class ContentQuery extends ModelCriteria return $this->addUsingAlias(ContentTableMap::VERSION_CREATED_BY, $versionCreatedBy, $comparison); } - /** - * Filter the query by a related \Thelia\Model\ContentAssoc object - * - * @param \Thelia\Model\ContentAssoc|ObjectCollection $contentAssoc the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildContentQuery The current query, for fluid interface - */ - public function filterByContentAssoc($contentAssoc, $comparison = null) - { - if ($contentAssoc instanceof \Thelia\Model\ContentAssoc) { - return $this - ->addUsingAlias(ContentTableMap::ID, $contentAssoc->getContentId(), $comparison); - } elseif ($contentAssoc instanceof ObjectCollection) { - return $this - ->useContentAssocQuery() - ->filterByPrimaryKeys($contentAssoc->getPrimaryKeys()) - ->endUse(); - } else { - throw new PropelException('filterByContentAssoc() only accepts arguments of type \Thelia\Model\ContentAssoc or Collection'); - } - } - - /** - * Adds a JOIN clause to the query using the ContentAssoc relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return ChildContentQuery The current query, for fluid interface - */ - public function joinContentAssoc($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('ContentAssoc'); - - // create a ModelJoin object for this join - $join = new ModelJoin(); - $join->setJoinType($joinType); - $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); - if ($previousJoin = $this->getPreviousJoin()) { - $join->setPreviousJoin($previousJoin); - } - - // add the ModelJoin to the current object - if ($relationAlias) { - $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); - $this->addJoinObject($join, $relationAlias); - } else { - $this->addJoinObject($join, 'ContentAssoc'); - } - - return $this; - } - - /** - * Use the ContentAssoc relation ContentAssoc object - * - * @see useQuery() - * - * @param string $relationAlias optional alias for the relation, - * to be used as main alias in the secondary query - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return \Thelia\Model\ContentAssocQuery A secondary query class using the current class as primary query - */ - public function useContentAssocQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinContentAssoc($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'ContentAssoc', '\Thelia\Model\ContentAssocQuery'); - } - /** * Filter the query by a related \Thelia\Model\Rewriting object * @@ -963,6 +894,152 @@ abstract class ContentQuery extends ModelCriteria ->useQuery($relationAlias ? $relationAlias : 'ContentDocument', '\Thelia\Model\ContentDocumentQuery'); } + /** + * Filter the query by a related \Thelia\Model\ProductAssociatedContent object + * + * @param \Thelia\Model\ProductAssociatedContent|ObjectCollection $productAssociatedContent the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildContentQuery The current query, for fluid interface + */ + public function filterByProductAssociatedContent($productAssociatedContent, $comparison = null) + { + if ($productAssociatedContent instanceof \Thelia\Model\ProductAssociatedContent) { + return $this + ->addUsingAlias(ContentTableMap::ID, $productAssociatedContent->getContentId(), $comparison); + } elseif ($productAssociatedContent instanceof ObjectCollection) { + return $this + ->useProductAssociatedContentQuery() + ->filterByPrimaryKeys($productAssociatedContent->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByProductAssociatedContent() only accepts arguments of type \Thelia\Model\ProductAssociatedContent or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the ProductAssociatedContent relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildContentQuery The current query, for fluid interface + */ + public function joinProductAssociatedContent($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('ProductAssociatedContent'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'ProductAssociatedContent'); + } + + return $this; + } + + /** + * Use the ProductAssociatedContent relation ProductAssociatedContent object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\ProductAssociatedContentQuery A secondary query class using the current class as primary query + */ + public function useProductAssociatedContentQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinProductAssociatedContent($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'ProductAssociatedContent', '\Thelia\Model\ProductAssociatedContentQuery'); + } + + /** + * Filter the query by a related \Thelia\Model\CategoryAssociatedContent object + * + * @param \Thelia\Model\CategoryAssociatedContent|ObjectCollection $categoryAssociatedContent the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildContentQuery The current query, for fluid interface + */ + public function filterByCategoryAssociatedContent($categoryAssociatedContent, $comparison = null) + { + if ($categoryAssociatedContent instanceof \Thelia\Model\CategoryAssociatedContent) { + return $this + ->addUsingAlias(ContentTableMap::ID, $categoryAssociatedContent->getContentId(), $comparison); + } elseif ($categoryAssociatedContent instanceof ObjectCollection) { + return $this + ->useCategoryAssociatedContentQuery() + ->filterByPrimaryKeys($categoryAssociatedContent->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCategoryAssociatedContent() only accepts arguments of type \Thelia\Model\CategoryAssociatedContent or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the CategoryAssociatedContent relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildContentQuery The current query, for fluid interface + */ + public function joinCategoryAssociatedContent($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CategoryAssociatedContent'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'CategoryAssociatedContent'); + } + + return $this; + } + + /** + * Use the CategoryAssociatedContent relation CategoryAssociatedContent object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\CategoryAssociatedContentQuery A secondary query class using the current class as primary query + */ + public function useCategoryAssociatedContentQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCategoryAssociatedContent($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CategoryAssociatedContent', '\Thelia\Model\CategoryAssociatedContentQuery'); + } + /** * Filter the query by a related \Thelia\Model\ContentI18n object * @@ -1294,7 +1371,7 @@ abstract class ContentQuery extends ModelCriteria * * @return ChildContentQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ContentI18n'; @@ -1312,7 +1389,7 @@ abstract class ContentQuery extends ModelCriteria * * @return ChildContentQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -1333,7 +1410,7 @@ abstract class ContentQuery extends ModelCriteria * * @return ChildContentI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/ContentVersion.php b/core/lib/Thelia/Model/Base/ContentVersion.php old mode 100644 new mode 100755 index ca9189608..ef2897030 --- a/core/lib/Thelia/Model/Base/ContentVersion.php +++ b/core/lib/Thelia/Model/Base/ContentVersion.php @@ -286,7 +286,7 @@ abstract class ContentVersion implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index 704375de2..3794bff3c --- a/core/lib/Thelia/Model/Base/Country.php +++ b/core/lib/Thelia/Model/Base/Country.php @@ -142,7 +142,7 @@ abstract class Country implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -324,7 +324,7 @@ abstract class Country implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2323,7 +2323,7 @@ abstract class Country implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collTaxRuleCountries instanceof Collection) { @@ -2374,7 +2374,7 @@ abstract class Country implements ActiveRecordInterface * * @return ChildCountry The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2398,7 +2398,7 @@ abstract class Country implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildCountryI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collCountryI18ns) { @@ -2433,7 +2433,7 @@ abstract class Country implements ActiveRecordInterface * * @return ChildCountry The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildCountryI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/CountryI18n.php b/core/lib/Thelia/Model/Base/CountryI18n.php old mode 100644 new mode 100755 index be63955ca..fbba979a1 --- a/core/lib/Thelia/Model/Base/CountryI18n.php +++ b/core/lib/Thelia/Model/Base/CountryI18n.php @@ -61,7 +61,7 @@ abstract class CountryI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class CountryI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class CountryI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class CountryI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index 6c3a1c950..2c709f800 --- a/core/lib/Thelia/Model/Base/CountryQuery.php +++ b/core/lib/Thelia/Model/Base/CountryQuery.php @@ -972,7 +972,7 @@ abstract class CountryQuery extends ModelCriteria * * @return ChildCountryQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'CountryI18n'; @@ -990,7 +990,7 @@ abstract class CountryQuery extends ModelCriteria * * @return ChildCountryQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -1011,7 +1011,7 @@ abstract class CountryQuery extends ModelCriteria * * @return ChildCountryI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Coupon.php b/core/lib/Thelia/Model/Base/Coupon.php old mode 100644 new mode 100755 index 2c3dae5c9..0a6ee2061 --- a/core/lib/Thelia/Model/Base/Coupon.php +++ b/core/lib/Thelia/Model/Base/Coupon.php @@ -18,10 +18,15 @@ use Propel\Runtime\Map\TableMap; use Propel\Runtime\Parser\AbstractParser; use Propel\Runtime\Util\PropelDateTime; use Thelia\Model\Coupon as ChildCoupon; +use Thelia\Model\CouponI18n as ChildCouponI18n; +use Thelia\Model\CouponI18nQuery as ChildCouponI18nQuery; +use Thelia\Model\CouponOrder as ChildCouponOrder; +use Thelia\Model\CouponOrderQuery as ChildCouponOrderQuery; use Thelia\Model\CouponQuery as ChildCouponQuery; -use Thelia\Model\CouponRule as ChildCouponRule; -use Thelia\Model\CouponRuleQuery as ChildCouponRuleQuery; +use Thelia\Model\CouponVersion as ChildCouponVersion; +use Thelia\Model\CouponVersionQuery as ChildCouponVersionQuery; use Thelia\Model\Map\CouponTableMap; +use Thelia\Model\Map\CouponVersionTableMap; abstract class Coupon implements ActiveRecordInterface { @@ -70,10 +75,28 @@ abstract class Coupon implements ActiveRecordInterface protected $code; /** - * The value for the action field. + * The value for the type field. * @var string */ - protected $action; + protected $type; + + /** + * The value for the title field. + * @var string + */ + protected $title; + + /** + * The value for the short_description field. + * @var string + */ + protected $short_description; + + /** + * The value for the description field. + * @var string + */ + protected $description; /** * The value for the value field. @@ -82,28 +105,28 @@ abstract class Coupon implements ActiveRecordInterface protected $value; /** - * The value for the used field. + * The value for the is_used field. * @var int */ - protected $used; + protected $is_used; /** - * The value for the available_since field. - * @var string - */ - protected $available_since; - - /** - * The value for the date_limit field. - * @var string - */ - protected $date_limit; - - /** - * The value for the activate field. + * The value for the is_enabled field. * @var int */ - protected $activate; + protected $is_enabled; + + /** + * The value for the expiration_date field. + * @var string + */ + protected $expiration_date; + + /** + * The value for the serialized_rules field. + * @var string + */ + protected $serialized_rules; /** * The value for the created_at field. @@ -118,10 +141,29 @@ abstract class Coupon implements ActiveRecordInterface protected $updated_at; /** - * @var ObjectCollection|ChildCouponRule[] Collection to store aggregation of ChildCouponRule objects. + * The value for the version field. + * Note: this column has a database default value of: 0 + * @var int */ - protected $collCouponRules; - protected $collCouponRulesPartial; + protected $version; + + /** + * @var ObjectCollection|ChildCouponOrder[] Collection to store aggregation of ChildCouponOrder objects. + */ + protected $collCouponOrders; + protected $collCouponOrdersPartial; + + /** + * @var ObjectCollection|ChildCouponI18n[] Collection to store aggregation of ChildCouponI18n objects. + */ + protected $collCouponI18ns; + protected $collCouponI18nsPartial; + + /** + * @var ObjectCollection|ChildCouponVersion[] Collection to store aggregation of ChildCouponVersion objects. + */ + protected $collCouponVersions; + protected $collCouponVersionsPartial; /** * Flag to prevent endless save loop, if this object is referenced @@ -131,17 +173,64 @@ abstract class Coupon implements ActiveRecordInterface */ protected $alreadyInSave = false; + // i18n behavior + + /** + * Current locale + * @var string + */ + protected $currentLocale = 'en_EN'; + + /** + * Current translation objects + * @var array[ChildCouponI18n] + */ + protected $currentTranslations; + + // versionable behavior + + + /** + * @var bool + */ + protected $enforceVersion = false; + /** * An array of objects scheduled for deletion. * @var ObjectCollection */ - protected $couponRulesScheduledForDeletion = null; + protected $couponOrdersScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var ObjectCollection + */ + protected $couponI18nsScheduledForDeletion = null; + + /** + * An array of objects scheduled for deletion. + * @var ObjectCollection + */ + protected $couponVersionsScheduledForDeletion = null; + + /** + * Applies default values to this object. + * This method should be called from the object's constructor (or + * equivalent initialization method). + * @see __construct() + */ + public function applyDefaultValues() + { + $this->version = 0; + } /** * Initializes internal state of Thelia\Model\Base\Coupon object. + * @see applyDefaults() */ public function __construct() { + $this->applyDefaultValues(); } /** @@ -293,7 +382,7 @@ abstract class Coupon implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -414,14 +503,47 @@ abstract class Coupon implements ActiveRecordInterface } /** - * Get the [action] column value. + * Get the [type] column value. * * @return string */ - public function getAction() + public function getType() { - return $this->action; + return $this->type; + } + + /** + * Get the [title] column value. + * + * @return string + */ + public function getTitle() + { + + return $this->title; + } + + /** + * Get the [short_description] column value. + * + * @return string + */ + public function getShortDescription() + { + + return $this->short_description; + } + + /** + * Get the [description] column value. + * + * @return string + */ + public function getDescription() + { + + return $this->description; } /** @@ -436,18 +558,29 @@ abstract class Coupon implements ActiveRecordInterface } /** - * Get the [used] column value. + * Get the [is_used] column value. * * @return int */ - public function getUsed() + public function getIsUsed() { - return $this->used; + return $this->is_used; } /** - * Get the [optionally formatted] temporal [available_since] column value. + * Get the [is_enabled] column value. + * + * @return int + */ + public function getIsEnabled() + { + + return $this->is_enabled; + } + + /** + * Get the [optionally formatted] temporal [expiration_date] column value. * * * @param string $format The date/time format string (either date()-style or strftime()-style). @@ -457,44 +590,24 @@ abstract class Coupon implements ActiveRecordInterface * * @throws PropelException - if unable to parse/validate the date/time value. */ - public function getAvailableSince($format = NULL) + public function getExpirationDate($format = NULL) { if ($format === null) { - return $this->available_since; + return $this->expiration_date; } else { - return $this->available_since !== null ? $this->available_since->format($format) : null; + return $this->expiration_date !== null ? $this->expiration_date->format($format) : null; } } /** - * Get the [optionally formatted] temporal [date_limit] column value. + * Get the [serialized_rules] column value. * - * - * @param string $format The date/time format string (either date()-style or strftime()-style). - * If format is NULL, then the raw \DateTime object will be returned. - * - * @return mixed Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00 - * - * @throws PropelException - if unable to parse/validate the date/time value. + * @return string */ - public function getDateLimit($format = NULL) - { - if ($format === null) { - return $this->date_limit; - } else { - return $this->date_limit !== null ? $this->date_limit->format($format) : null; - } - } - - /** - * Get the [activate] column value. - * - * @return int - */ - public function getActivate() + public function getSerializedRules() { - return $this->activate; + return $this->serialized_rules; } /** @@ -537,6 +650,17 @@ abstract class Coupon implements ActiveRecordInterface } } + /** + * Get the [version] column value. + * + * @return int + */ + public function getVersion() + { + + return $this->version; + } + /** * Set the value of [id] column. * @@ -580,25 +704,88 @@ abstract class Coupon implements ActiveRecordInterface } // setCode() /** - * Set the value of [action] column. + * Set the value of [type] column. * * @param string $v new value * @return \Thelia\Model\Coupon The current object (for fluent API support) */ - public function setAction($v) + public function setType($v) { if ($v !== null) { $v = (string) $v; } - if ($this->action !== $v) { - $this->action = $v; - $this->modifiedColumns[] = CouponTableMap::ACTION; + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CouponTableMap::TYPE; } return $this; - } // setAction() + } // setType() + + /** + * Set the value of [title] column. + * + * @param string $v new value + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function setTitle($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->title !== $v) { + $this->title = $v; + $this->modifiedColumns[] = CouponTableMap::TITLE; + } + + + return $this; + } // setTitle() + + /** + * Set the value of [short_description] column. + * + * @param string $v new value + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function setShortDescription($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->short_description !== $v) { + $this->short_description = $v; + $this->modifiedColumns[] = CouponTableMap::SHORT_DESCRIPTION; + } + + + return $this; + } // setShortDescription() + + /** + * Set the value of [description] column. + * + * @param string $v new value + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function setDescription($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->description !== $v) { + $this->description = $v; + $this->modifiedColumns[] = CouponTableMap::DESCRIPTION; + } + + + return $this; + } // setDescription() /** * Set the value of [value] column. @@ -622,88 +809,88 @@ abstract class Coupon implements ActiveRecordInterface } // setValue() /** - * Set the value of [used] column. + * Set the value of [is_used] column. * * @param int $v new value * @return \Thelia\Model\Coupon The current object (for fluent API support) */ - public function setUsed($v) + public function setIsUsed($v) { if ($v !== null) { $v = (int) $v; } - if ($this->used !== $v) { - $this->used = $v; - $this->modifiedColumns[] = CouponTableMap::USED; + if ($this->is_used !== $v) { + $this->is_used = $v; + $this->modifiedColumns[] = CouponTableMap::IS_USED; } return $this; - } // setUsed() + } // setIsUsed() /** - * Sets the value of [available_since] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or \DateTime value. - * Empty strings are treated as NULL. - * @return \Thelia\Model\Coupon The current object (for fluent API support) - */ - public function setAvailableSince($v) - { - $dt = PropelDateTime::newInstance($v, null, '\DateTime'); - if ($this->available_since !== null || $dt !== null) { - if ($dt !== $this->available_since) { - $this->available_since = $dt; - $this->modifiedColumns[] = CouponTableMap::AVAILABLE_SINCE; - } - } // if either are not null - - - return $this; - } // setAvailableSince() - - /** - * Sets the value of [date_limit] column to a normalized version of the date/time value specified. - * - * @param mixed $v string, integer (timestamp), or \DateTime value. - * Empty strings are treated as NULL. - * @return \Thelia\Model\Coupon The current object (for fluent API support) - */ - public function setDateLimit($v) - { - $dt = PropelDateTime::newInstance($v, null, '\DateTime'); - if ($this->date_limit !== null || $dt !== null) { - if ($dt !== $this->date_limit) { - $this->date_limit = $dt; - $this->modifiedColumns[] = CouponTableMap::DATE_LIMIT; - } - } // if either are not null - - - return $this; - } // setDateLimit() - - /** - * Set the value of [activate] column. + * Set the value of [is_enabled] column. * * @param int $v new value * @return \Thelia\Model\Coupon The current object (for fluent API support) */ - public function setActivate($v) + public function setIsEnabled($v) { if ($v !== null) { $v = (int) $v; } - if ($this->activate !== $v) { - $this->activate = $v; - $this->modifiedColumns[] = CouponTableMap::ACTIVATE; + if ($this->is_enabled !== $v) { + $this->is_enabled = $v; + $this->modifiedColumns[] = CouponTableMap::IS_ENABLED; } return $this; - } // setActivate() + } // setIsEnabled() + + /** + * Sets the value of [expiration_date] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or \DateTime value. + * Empty strings are treated as NULL. + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function setExpirationDate($v) + { + $dt = PropelDateTime::newInstance($v, null, '\DateTime'); + if ($this->expiration_date !== null || $dt !== null) { + if ($dt !== $this->expiration_date) { + $this->expiration_date = $dt; + $this->modifiedColumns[] = CouponTableMap::EXPIRATION_DATE; + } + } // if either are not null + + + return $this; + } // setExpirationDate() + + /** + * Set the value of [serialized_rules] column. + * + * @param string $v new value + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function setSerializedRules($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->serialized_rules !== $v) { + $this->serialized_rules = $v; + $this->modifiedColumns[] = CouponTableMap::SERIALIZED_RULES; + } + + + return $this; + } // setSerializedRules() /** * Sets the value of [created_at] column to a normalized version of the date/time value specified. @@ -747,6 +934,27 @@ abstract class Coupon implements ActiveRecordInterface return $this; } // setUpdatedAt() + /** + * Set the value of [version] column. + * + * @param int $v new value + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function setVersion($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->version !== $v) { + $this->version = $v; + $this->modifiedColumns[] = CouponTableMap::VERSION; + } + + + return $this; + } // setVersion() + /** * Indicates whether the columns in this object are only set to default values. * @@ -757,6 +965,10 @@ abstract class Coupon implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { + if ($this->version !== 0) { + return false; + } + // otherwise, everything was equal, so return TRUE return true; } // hasOnlyDefaultValues() @@ -790,41 +1002,50 @@ abstract class Coupon implements ActiveRecordInterface $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : CouponTableMap::translateFieldName('Code', TableMap::TYPE_PHPNAME, $indexType)]; $this->code = (null !== $col) ? (string) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CouponTableMap::translateFieldName('Action', TableMap::TYPE_PHPNAME, $indexType)]; - $this->action = (null !== $col) ? (string) $col : null; + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CouponTableMap::translateFieldName('Type', TableMap::TYPE_PHPNAME, $indexType)]; + $this->type = (null !== $col) ? (string) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CouponTableMap::translateFieldName('Value', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CouponTableMap::translateFieldName('Title', TableMap::TYPE_PHPNAME, $indexType)]; + $this->title = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CouponTableMap::translateFieldName('ShortDescription', TableMap::TYPE_PHPNAME, $indexType)]; + $this->short_description = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CouponTableMap::translateFieldName('Description', TableMap::TYPE_PHPNAME, $indexType)]; + $this->description = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : CouponTableMap::translateFieldName('Value', TableMap::TYPE_PHPNAME, $indexType)]; $this->value = (null !== $col) ? (double) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CouponTableMap::translateFieldName('Used', TableMap::TYPE_PHPNAME, $indexType)]; - $this->used = (null !== $col) ? (int) $col : null; + $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : CouponTableMap::translateFieldName('IsUsed', TableMap::TYPE_PHPNAME, $indexType)]; + $this->is_used = (null !== $col) ? (int) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CouponTableMap::translateFieldName('AvailableSince', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : CouponTableMap::translateFieldName('IsEnabled', TableMap::TYPE_PHPNAME, $indexType)]; + $this->is_enabled = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 9 + $startcol : CouponTableMap::translateFieldName('ExpirationDate', TableMap::TYPE_PHPNAME, $indexType)]; if ($col === '0000-00-00 00:00:00') { $col = null; } - $this->available_since = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; + $this->expiration_date = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : CouponTableMap::translateFieldName('DateLimit', TableMap::TYPE_PHPNAME, $indexType)]; - if ($col === '0000-00-00 00:00:00') { - $col = null; - } - $this->date_limit = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; + $col = $row[TableMap::TYPE_NUM == $indexType ? 10 + $startcol : CouponTableMap::translateFieldName('SerializedRules', TableMap::TYPE_PHPNAME, $indexType)]; + $this->serialized_rules = (null !== $col) ? (string) $col : null; - $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : CouponTableMap::translateFieldName('Activate', TableMap::TYPE_PHPNAME, $indexType)]; - $this->activate = (null !== $col) ? (int) $col : null; - - $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : CouponTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 11 + $startcol : CouponTableMap::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 ? 9 + $startcol : CouponTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)]; + $col = $row[TableMap::TYPE_NUM == $indexType ? 12 + $startcol : CouponTableMap::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 ? 13 + $startcol : CouponTableMap::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)]; + $this->version = (null !== $col) ? (int) $col : null; $this->resetModified(); $this->setNew(false); @@ -833,7 +1054,7 @@ abstract class Coupon implements ActiveRecordInterface $this->ensureConsistency(); } - return $startcol + 10; // 10 = CouponTableMap::NUM_HYDRATE_COLUMNS. + return $startcol + 14; // 14 = CouponTableMap::NUM_HYDRATE_COLUMNS. } catch (Exception $e) { throw new PropelException("Error populating \Thelia\Model\Coupon object", 0, $e); @@ -894,7 +1115,11 @@ abstract class Coupon implements ActiveRecordInterface if ($deep) { // also de-associate any related objects? - $this->collCouponRules = null; + $this->collCouponOrders = null; + + $this->collCouponI18ns = null; + + $this->collCouponVersions = null; } // if (deep) } @@ -964,6 +1189,11 @@ abstract class Coupon implements ActiveRecordInterface $isInsert = $this->isNew(); try { $ret = $this->preSave($con); + // versionable behavior + if ($this->isVersioningNecessary()) { + $this->setVersion($this->isNew() ? 1 : $this->getLastVersionNumber($con) + 1); + $createVersion = true; // for postSave hook + } if ($isInsert) { $ret = $ret && $this->preInsert($con); // timestampable behavior @@ -988,6 +1218,10 @@ abstract class Coupon implements ActiveRecordInterface $this->postUpdate($con); } $this->postSave($con); + // versionable behavior + if (isset($createVersion)) { + $this->addVersion($con); + } CouponTableMap::addInstanceToPool($this); } else { $affectedRows = 0; @@ -1029,17 +1263,51 @@ abstract class Coupon implements ActiveRecordInterface $this->resetModified(); } - if ($this->couponRulesScheduledForDeletion !== null) { - if (!$this->couponRulesScheduledForDeletion->isEmpty()) { - \Thelia\Model\CouponRuleQuery::create() - ->filterByPrimaryKeys($this->couponRulesScheduledForDeletion->getPrimaryKeys(false)) + if ($this->couponOrdersScheduledForDeletion !== null) { + if (!$this->couponOrdersScheduledForDeletion->isEmpty()) { + \Thelia\Model\CouponOrderQuery::create() + ->filterByPrimaryKeys($this->couponOrdersScheduledForDeletion->getPrimaryKeys(false)) ->delete($con); - $this->couponRulesScheduledForDeletion = null; + $this->couponOrdersScheduledForDeletion = null; } } - if ($this->collCouponRules !== null) { - foreach ($this->collCouponRules as $referrerFK) { + if ($this->collCouponOrders !== null) { + foreach ($this->collCouponOrders as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->couponI18nsScheduledForDeletion !== null) { + if (!$this->couponI18nsScheduledForDeletion->isEmpty()) { + \Thelia\Model\CouponI18nQuery::create() + ->filterByPrimaryKeys($this->couponI18nsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->couponI18nsScheduledForDeletion = null; + } + } + + if ($this->collCouponI18ns !== null) { + foreach ($this->collCouponI18ns as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + + if ($this->couponVersionsScheduledForDeletion !== null) { + if (!$this->couponVersionsScheduledForDeletion->isEmpty()) { + \Thelia\Model\CouponVersionQuery::create() + ->filterByPrimaryKeys($this->couponVersionsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->couponVersionsScheduledForDeletion = null; + } + } + + if ($this->collCouponVersions !== null) { + foreach ($this->collCouponVersions as $referrerFK) { if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { $affectedRows += $referrerFK->save($con); } @@ -1078,23 +1346,32 @@ abstract class Coupon implements ActiveRecordInterface if ($this->isColumnModified(CouponTableMap::CODE)) { $modifiedColumns[':p' . $index++] = 'CODE'; } - if ($this->isColumnModified(CouponTableMap::ACTION)) { - $modifiedColumns[':p' . $index++] = 'ACTION'; + if ($this->isColumnModified(CouponTableMap::TYPE)) { + $modifiedColumns[':p' . $index++] = 'TYPE'; + } + if ($this->isColumnModified(CouponTableMap::TITLE)) { + $modifiedColumns[':p' . $index++] = 'TITLE'; + } + if ($this->isColumnModified(CouponTableMap::SHORT_DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = 'SHORT_DESCRIPTION'; + } + if ($this->isColumnModified(CouponTableMap::DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(CouponTableMap::VALUE)) { $modifiedColumns[':p' . $index++] = 'VALUE'; } - if ($this->isColumnModified(CouponTableMap::USED)) { - $modifiedColumns[':p' . $index++] = 'USED'; + if ($this->isColumnModified(CouponTableMap::IS_USED)) { + $modifiedColumns[':p' . $index++] = 'IS_USED'; } - if ($this->isColumnModified(CouponTableMap::AVAILABLE_SINCE)) { - $modifiedColumns[':p' . $index++] = 'AVAILABLE_SINCE'; + if ($this->isColumnModified(CouponTableMap::IS_ENABLED)) { + $modifiedColumns[':p' . $index++] = 'IS_ENABLED'; } - if ($this->isColumnModified(CouponTableMap::DATE_LIMIT)) { - $modifiedColumns[':p' . $index++] = 'DATE_LIMIT'; + if ($this->isColumnModified(CouponTableMap::EXPIRATION_DATE)) { + $modifiedColumns[':p' . $index++] = 'EXPIRATION_DATE'; } - if ($this->isColumnModified(CouponTableMap::ACTIVATE)) { - $modifiedColumns[':p' . $index++] = 'ACTIVATE'; + if ($this->isColumnModified(CouponTableMap::SERIALIZED_RULES)) { + $modifiedColumns[':p' . $index++] = 'SERIALIZED_RULES'; } if ($this->isColumnModified(CouponTableMap::CREATED_AT)) { $modifiedColumns[':p' . $index++] = 'CREATED_AT'; @@ -1102,6 +1379,9 @@ abstract class Coupon implements ActiveRecordInterface if ($this->isColumnModified(CouponTableMap::UPDATED_AT)) { $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } + if ($this->isColumnModified(CouponTableMap::VERSION)) { + $modifiedColumns[':p' . $index++] = 'VERSION'; + } $sql = sprintf( 'INSERT INTO coupon (%s) VALUES (%s)', @@ -1119,23 +1399,32 @@ abstract class Coupon implements ActiveRecordInterface case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case 'ACTION': - $stmt->bindValue($identifier, $this->action, PDO::PARAM_STR); + case 'TYPE': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + case 'TITLE': + $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); + break; + case 'SHORT_DESCRIPTION': + $stmt->bindValue($identifier, $this->short_description, PDO::PARAM_STR); + break; + case 'DESCRIPTION': + $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; case 'VALUE': $stmt->bindValue($identifier, $this->value, PDO::PARAM_STR); break; - case 'USED': - $stmt->bindValue($identifier, $this->used, PDO::PARAM_INT); + case 'IS_USED': + $stmt->bindValue($identifier, $this->is_used, PDO::PARAM_INT); break; - case 'AVAILABLE_SINCE': - $stmt->bindValue($identifier, $this->available_since ? $this->available_since->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); + case 'IS_ENABLED': + $stmt->bindValue($identifier, $this->is_enabled, PDO::PARAM_INT); break; - case 'DATE_LIMIT': - $stmt->bindValue($identifier, $this->date_limit ? $this->date_limit->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); + case 'EXPIRATION_DATE': + $stmt->bindValue($identifier, $this->expiration_date ? $this->expiration_date->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case 'ACTIVATE': - $stmt->bindValue($identifier, $this->activate, PDO::PARAM_INT); + case 'SERIALIZED_RULES': + $stmt->bindValue($identifier, $this->serialized_rules, PDO::PARAM_STR); break; case 'CREATED_AT': $stmt->bindValue($identifier, $this->created_at ? $this->created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); @@ -1143,6 +1432,9 @@ abstract class Coupon implements ActiveRecordInterface case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; + case 'VERSION': + $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); + break; } } $stmt->execute(); @@ -1212,29 +1504,41 @@ abstract class Coupon implements ActiveRecordInterface return $this->getCode(); break; case 2: - return $this->getAction(); + return $this->getType(); break; case 3: - return $this->getValue(); + return $this->getTitle(); break; case 4: - return $this->getUsed(); + return $this->getShortDescription(); break; case 5: - return $this->getAvailableSince(); + return $this->getDescription(); break; case 6: - return $this->getDateLimit(); + return $this->getValue(); break; case 7: - return $this->getActivate(); + return $this->getIsUsed(); break; case 8: - return $this->getCreatedAt(); + return $this->getIsEnabled(); break; case 9: + return $this->getExpirationDate(); + break; + case 10: + return $this->getSerializedRules(); + break; + case 11: + return $this->getCreatedAt(); + break; + case 12: return $this->getUpdatedAt(); break; + case 13: + return $this->getVersion(); + break; default: return null; break; @@ -1266,14 +1570,18 @@ abstract class Coupon implements ActiveRecordInterface $result = array( $keys[0] => $this->getId(), $keys[1] => $this->getCode(), - $keys[2] => $this->getAction(), - $keys[3] => $this->getValue(), - $keys[4] => $this->getUsed(), - $keys[5] => $this->getAvailableSince(), - $keys[6] => $this->getDateLimit(), - $keys[7] => $this->getActivate(), - $keys[8] => $this->getCreatedAt(), - $keys[9] => $this->getUpdatedAt(), + $keys[2] => $this->getType(), + $keys[3] => $this->getTitle(), + $keys[4] => $this->getShortDescription(), + $keys[5] => $this->getDescription(), + $keys[6] => $this->getValue(), + $keys[7] => $this->getIsUsed(), + $keys[8] => $this->getIsEnabled(), + $keys[9] => $this->getExpirationDate(), + $keys[10] => $this->getSerializedRules(), + $keys[11] => $this->getCreatedAt(), + $keys[12] => $this->getUpdatedAt(), + $keys[13] => $this->getVersion(), ); $virtualColumns = $this->virtualColumns; foreach($virtualColumns as $key => $virtualColumn) @@ -1282,8 +1590,14 @@ abstract class Coupon implements ActiveRecordInterface } if ($includeForeignObjects) { - if (null !== $this->collCouponRules) { - $result['CouponRules'] = $this->collCouponRules->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + if (null !== $this->collCouponOrders) { + $result['CouponOrders'] = $this->collCouponOrders->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCouponI18ns) { + $result['CouponI18ns'] = $this->collCouponI18ns->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } + if (null !== $this->collCouponVersions) { + $result['CouponVersions'] = $this->collCouponVersions->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } } @@ -1326,29 +1640,41 @@ abstract class Coupon implements ActiveRecordInterface $this->setCode($value); break; case 2: - $this->setAction($value); + $this->setType($value); break; case 3: - $this->setValue($value); + $this->setTitle($value); break; case 4: - $this->setUsed($value); + $this->setShortDescription($value); break; case 5: - $this->setAvailableSince($value); + $this->setDescription($value); break; case 6: - $this->setDateLimit($value); + $this->setValue($value); break; case 7: - $this->setActivate($value); + $this->setIsUsed($value); break; case 8: - $this->setCreatedAt($value); + $this->setIsEnabled($value); break; case 9: + $this->setExpirationDate($value); + break; + case 10: + $this->setSerializedRules($value); + break; + case 11: + $this->setCreatedAt($value); + break; + case 12: $this->setUpdatedAt($value); break; + case 13: + $this->setVersion($value); + break; } // switch() } @@ -1375,14 +1701,18 @@ abstract class Coupon implements ActiveRecordInterface if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); if (array_key_exists($keys[1], $arr)) $this->setCode($arr[$keys[1]]); - if (array_key_exists($keys[2], $arr)) $this->setAction($arr[$keys[2]]); - if (array_key_exists($keys[3], $arr)) $this->setValue($arr[$keys[3]]); - if (array_key_exists($keys[4], $arr)) $this->setUsed($arr[$keys[4]]); - if (array_key_exists($keys[5], $arr)) $this->setAvailableSince($arr[$keys[5]]); - if (array_key_exists($keys[6], $arr)) $this->setDateLimit($arr[$keys[6]]); - if (array_key_exists($keys[7], $arr)) $this->setActivate($arr[$keys[7]]); - if (array_key_exists($keys[8], $arr)) $this->setCreatedAt($arr[$keys[8]]); - if (array_key_exists($keys[9], $arr)) $this->setUpdatedAt($arr[$keys[9]]); + if (array_key_exists($keys[2], $arr)) $this->setType($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setTitle($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setShortDescription($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDescription($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setValue($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setIsUsed($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setIsEnabled($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setExpirationDate($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setSerializedRules($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setCreatedAt($arr[$keys[11]]); + if (array_key_exists($keys[12], $arr)) $this->setUpdatedAt($arr[$keys[12]]); + if (array_key_exists($keys[13], $arr)) $this->setVersion($arr[$keys[13]]); } /** @@ -1396,14 +1726,18 @@ abstract class Coupon implements ActiveRecordInterface if ($this->isColumnModified(CouponTableMap::ID)) $criteria->add(CouponTableMap::ID, $this->id); if ($this->isColumnModified(CouponTableMap::CODE)) $criteria->add(CouponTableMap::CODE, $this->code); - if ($this->isColumnModified(CouponTableMap::ACTION)) $criteria->add(CouponTableMap::ACTION, $this->action); + if ($this->isColumnModified(CouponTableMap::TYPE)) $criteria->add(CouponTableMap::TYPE, $this->type); + if ($this->isColumnModified(CouponTableMap::TITLE)) $criteria->add(CouponTableMap::TITLE, $this->title); + if ($this->isColumnModified(CouponTableMap::SHORT_DESCRIPTION)) $criteria->add(CouponTableMap::SHORT_DESCRIPTION, $this->short_description); + if ($this->isColumnModified(CouponTableMap::DESCRIPTION)) $criteria->add(CouponTableMap::DESCRIPTION, $this->description); if ($this->isColumnModified(CouponTableMap::VALUE)) $criteria->add(CouponTableMap::VALUE, $this->value); - if ($this->isColumnModified(CouponTableMap::USED)) $criteria->add(CouponTableMap::USED, $this->used); - if ($this->isColumnModified(CouponTableMap::AVAILABLE_SINCE)) $criteria->add(CouponTableMap::AVAILABLE_SINCE, $this->available_since); - if ($this->isColumnModified(CouponTableMap::DATE_LIMIT)) $criteria->add(CouponTableMap::DATE_LIMIT, $this->date_limit); - if ($this->isColumnModified(CouponTableMap::ACTIVATE)) $criteria->add(CouponTableMap::ACTIVATE, $this->activate); + if ($this->isColumnModified(CouponTableMap::IS_USED)) $criteria->add(CouponTableMap::IS_USED, $this->is_used); + if ($this->isColumnModified(CouponTableMap::IS_ENABLED)) $criteria->add(CouponTableMap::IS_ENABLED, $this->is_enabled); + if ($this->isColumnModified(CouponTableMap::EXPIRATION_DATE)) $criteria->add(CouponTableMap::EXPIRATION_DATE, $this->expiration_date); + if ($this->isColumnModified(CouponTableMap::SERIALIZED_RULES)) $criteria->add(CouponTableMap::SERIALIZED_RULES, $this->serialized_rules); if ($this->isColumnModified(CouponTableMap::CREATED_AT)) $criteria->add(CouponTableMap::CREATED_AT, $this->created_at); if ($this->isColumnModified(CouponTableMap::UPDATED_AT)) $criteria->add(CouponTableMap::UPDATED_AT, $this->updated_at); + if ($this->isColumnModified(CouponTableMap::VERSION)) $criteria->add(CouponTableMap::VERSION, $this->version); return $criteria; } @@ -1468,23 +1802,39 @@ abstract class Coupon implements ActiveRecordInterface public function copyInto($copyObj, $deepCopy = false, $makeNew = true) { $copyObj->setCode($this->getCode()); - $copyObj->setAction($this->getAction()); + $copyObj->setType($this->getType()); + $copyObj->setTitle($this->getTitle()); + $copyObj->setShortDescription($this->getShortDescription()); + $copyObj->setDescription($this->getDescription()); $copyObj->setValue($this->getValue()); - $copyObj->setUsed($this->getUsed()); - $copyObj->setAvailableSince($this->getAvailableSince()); - $copyObj->setDateLimit($this->getDateLimit()); - $copyObj->setActivate($this->getActivate()); + $copyObj->setIsUsed($this->getIsUsed()); + $copyObj->setIsEnabled($this->getIsEnabled()); + $copyObj->setExpirationDate($this->getExpirationDate()); + $copyObj->setSerializedRules($this->getSerializedRules()); $copyObj->setCreatedAt($this->getCreatedAt()); $copyObj->setUpdatedAt($this->getUpdatedAt()); + $copyObj->setVersion($this->getVersion()); if ($deepCopy) { // important: temporarily setNew(false) because this affects the behavior of // the getter/setter methods for fkey referrer objects. $copyObj->setNew(false); - foreach ($this->getCouponRules() as $relObj) { + foreach ($this->getCouponOrders() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addCouponRule($relObj->copy($deepCopy)); + $copyObj->addCouponOrder($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCouponI18ns() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCouponI18n($relObj->copy($deepCopy)); + } + } + + foreach ($this->getCouponVersions() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addCouponVersion($relObj->copy($deepCopy)); } } @@ -1529,37 +1879,43 @@ abstract class Coupon implements ActiveRecordInterface */ public function initRelation($relationName) { - if ('CouponRule' == $relationName) { - return $this->initCouponRules(); + if ('CouponOrder' == $relationName) { + return $this->initCouponOrders(); + } + if ('CouponI18n' == $relationName) { + return $this->initCouponI18ns(); + } + if ('CouponVersion' == $relationName) { + return $this->initCouponVersions(); } } /** - * Clears out the collCouponRules collection + * Clears out the collCouponOrders collection * * This does not modify the database; however, it will remove any associated objects, causing * them to be refetched by subsequent calls to accessor method. * * @return void - * @see addCouponRules() + * @see addCouponOrders() */ - public function clearCouponRules() + public function clearCouponOrders() { - $this->collCouponRules = null; // important to set this to NULL since that means it is uninitialized + $this->collCouponOrders = null; // important to set this to NULL since that means it is uninitialized } /** - * Reset is the collCouponRules collection loaded partially. + * Reset is the collCouponOrders collection loaded partially. */ - public function resetPartialCouponRules($v = true) + public function resetPartialCouponOrders($v = true) { - $this->collCouponRulesPartial = $v; + $this->collCouponOrdersPartial = $v; } /** - * Initializes the collCouponRules collection. + * Initializes the collCouponOrders collection. * - * By default this just sets the collCouponRules collection to an empty array (like clearcollCouponRules()); + * By default this just sets the collCouponOrders collection to an empty array (like clearcollCouponOrders()); * however, you may wish to override this method in your stub class to provide setting appropriate * to your application -- for example, setting the initial array to the values stored in database. * @@ -1568,17 +1924,17 @@ abstract class Coupon implements ActiveRecordInterface * * @return void */ - public function initCouponRules($overrideExisting = true) + public function initCouponOrders($overrideExisting = true) { - if (null !== $this->collCouponRules && !$overrideExisting) { + if (null !== $this->collCouponOrders && !$overrideExisting) { return; } - $this->collCouponRules = new ObjectCollection(); - $this->collCouponRules->setModel('\Thelia\Model\CouponRule'); + $this->collCouponOrders = new ObjectCollection(); + $this->collCouponOrders->setModel('\Thelia\Model\CouponOrder'); } /** - * Gets an array of ChildCouponRule objects which contain a foreign key that references this object. + * Gets an array of ChildCouponOrder objects which contain a foreign key that references this object. * * If the $criteria is not null, it is used to always fetch the results from the database. * Otherwise the results are fetched from the database the first time, then cached. @@ -1588,109 +1944,109 @@ abstract class Coupon implements ActiveRecordInterface * * @param Criteria $criteria optional Criteria object to narrow the query * @param ConnectionInterface $con optional connection object - * @return Collection|ChildCouponRule[] List of ChildCouponRule objects + * @return Collection|ChildCouponOrder[] List of ChildCouponOrder objects * @throws PropelException */ - public function getCouponRules($criteria = null, ConnectionInterface $con = null) + public function getCouponOrders($criteria = null, ConnectionInterface $con = null) { - $partial = $this->collCouponRulesPartial && !$this->isNew(); - if (null === $this->collCouponRules || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collCouponRules) { + $partial = $this->collCouponOrdersPartial && !$this->isNew(); + if (null === $this->collCouponOrders || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCouponOrders) { // return empty collection - $this->initCouponRules(); + $this->initCouponOrders(); } else { - $collCouponRules = ChildCouponRuleQuery::create(null, $criteria) + $collCouponOrders = ChildCouponOrderQuery::create(null, $criteria) ->filterByCoupon($this) ->find($con); if (null !== $criteria) { - if (false !== $this->collCouponRulesPartial && count($collCouponRules)) { - $this->initCouponRules(false); + if (false !== $this->collCouponOrdersPartial && count($collCouponOrders)) { + $this->initCouponOrders(false); - foreach ($collCouponRules as $obj) { - if (false == $this->collCouponRules->contains($obj)) { - $this->collCouponRules->append($obj); + foreach ($collCouponOrders as $obj) { + if (false == $this->collCouponOrders->contains($obj)) { + $this->collCouponOrders->append($obj); } } - $this->collCouponRulesPartial = true; + $this->collCouponOrdersPartial = true; } - $collCouponRules->getInternalIterator()->rewind(); + $collCouponOrders->getInternalIterator()->rewind(); - return $collCouponRules; + return $collCouponOrders; } - if ($partial && $this->collCouponRules) { - foreach ($this->collCouponRules as $obj) { + if ($partial && $this->collCouponOrders) { + foreach ($this->collCouponOrders as $obj) { if ($obj->isNew()) { - $collCouponRules[] = $obj; + $collCouponOrders[] = $obj; } } } - $this->collCouponRules = $collCouponRules; - $this->collCouponRulesPartial = false; + $this->collCouponOrders = $collCouponOrders; + $this->collCouponOrdersPartial = false; } } - return $this->collCouponRules; + return $this->collCouponOrders; } /** - * Sets a collection of CouponRule objects related by a one-to-many relationship + * Sets a collection of CouponOrder objects related by a one-to-many relationship * to the current object. * It will also schedule objects for deletion based on a diff between old objects (aka persisted) * and new objects from the given Propel collection. * - * @param Collection $couponRules A Propel collection. + * @param Collection $couponOrders A Propel collection. * @param ConnectionInterface $con Optional connection object * @return ChildCoupon The current object (for fluent API support) */ - public function setCouponRules(Collection $couponRules, ConnectionInterface $con = null) + public function setCouponOrders(Collection $couponOrders, ConnectionInterface $con = null) { - $couponRulesToDelete = $this->getCouponRules(new Criteria(), $con)->diff($couponRules); + $couponOrdersToDelete = $this->getCouponOrders(new Criteria(), $con)->diff($couponOrders); - $this->couponRulesScheduledForDeletion = $couponRulesToDelete; + $this->couponOrdersScheduledForDeletion = $couponOrdersToDelete; - foreach ($couponRulesToDelete as $couponRuleRemoved) { - $couponRuleRemoved->setCoupon(null); + foreach ($couponOrdersToDelete as $couponOrderRemoved) { + $couponOrderRemoved->setCoupon(null); } - $this->collCouponRules = null; - foreach ($couponRules as $couponRule) { - $this->addCouponRule($couponRule); + $this->collCouponOrders = null; + foreach ($couponOrders as $couponOrder) { + $this->addCouponOrder($couponOrder); } - $this->collCouponRules = $couponRules; - $this->collCouponRulesPartial = false; + $this->collCouponOrders = $couponOrders; + $this->collCouponOrdersPartial = false; return $this; } /** - * Returns the number of related CouponRule objects. + * Returns the number of related CouponOrder objects. * * @param Criteria $criteria * @param boolean $distinct * @param ConnectionInterface $con - * @return int Count of related CouponRule objects. + * @return int Count of related CouponOrder objects. * @throws PropelException */ - public function countCouponRules(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + public function countCouponOrders(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) { - $partial = $this->collCouponRulesPartial && !$this->isNew(); - if (null === $this->collCouponRules || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collCouponRules) { + $partial = $this->collCouponOrdersPartial && !$this->isNew(); + if (null === $this->collCouponOrders || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCouponOrders) { return 0; } if ($partial && !$criteria) { - return count($this->getCouponRules()); + return count($this->getCouponOrders()); } - $query = ChildCouponRuleQuery::create(null, $criteria); + $query = ChildCouponOrderQuery::create(null, $criteria); if ($distinct) { $query->distinct(); } @@ -1700,53 +2056,524 @@ abstract class Coupon implements ActiveRecordInterface ->count($con); } - return count($this->collCouponRules); + return count($this->collCouponOrders); } /** - * Method called to associate a ChildCouponRule object to this object - * through the ChildCouponRule foreign key attribute. + * Method called to associate a ChildCouponOrder object to this object + * through the ChildCouponOrder foreign key attribute. * - * @param ChildCouponRule $l ChildCouponRule + * @param ChildCouponOrder $l ChildCouponOrder * @return \Thelia\Model\Coupon The current object (for fluent API support) */ - public function addCouponRule(ChildCouponRule $l) + public function addCouponOrder(ChildCouponOrder $l) { - if ($this->collCouponRules === null) { - $this->initCouponRules(); - $this->collCouponRulesPartial = true; + if ($this->collCouponOrders === null) { + $this->initCouponOrders(); + $this->collCouponOrdersPartial = true; } - if (!in_array($l, $this->collCouponRules->getArrayCopy(), true)) { // only add it if the **same** object is not already associated - $this->doAddCouponRule($l); + if (!in_array($l, $this->collCouponOrders->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCouponOrder($l); } return $this; } /** - * @param CouponRule $couponRule The couponRule object to add. + * @param CouponOrder $couponOrder The couponOrder object to add. */ - protected function doAddCouponRule($couponRule) + protected function doAddCouponOrder($couponOrder) { - $this->collCouponRules[]= $couponRule; - $couponRule->setCoupon($this); + $this->collCouponOrders[]= $couponOrder; + $couponOrder->setCoupon($this); } /** - * @param CouponRule $couponRule The couponRule object to remove. + * @param CouponOrder $couponOrder The couponOrder object to remove. * @return ChildCoupon The current object (for fluent API support) */ - public function removeCouponRule($couponRule) + public function removeCouponOrder($couponOrder) { - if ($this->getCouponRules()->contains($couponRule)) { - $this->collCouponRules->remove($this->collCouponRules->search($couponRule)); - if (null === $this->couponRulesScheduledForDeletion) { - $this->couponRulesScheduledForDeletion = clone $this->collCouponRules; - $this->couponRulesScheduledForDeletion->clear(); + if ($this->getCouponOrders()->contains($couponOrder)) { + $this->collCouponOrders->remove($this->collCouponOrders->search($couponOrder)); + if (null === $this->couponOrdersScheduledForDeletion) { + $this->couponOrdersScheduledForDeletion = clone $this->collCouponOrders; + $this->couponOrdersScheduledForDeletion->clear(); } - $this->couponRulesScheduledForDeletion[]= clone $couponRule; - $couponRule->setCoupon(null); + $this->couponOrdersScheduledForDeletion[]= clone $couponOrder; + $couponOrder->setCoupon(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this Coupon is new, it will return + * an empty collection; or if this Coupon has previously + * been saved, it will retrieve related CouponOrders from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in Coupon. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildCouponOrder[] List of ChildCouponOrder objects + */ + public function getCouponOrdersJoinOrder($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildCouponOrderQuery::create(null, $criteria); + $query->joinWith('Order', $joinBehavior); + + return $this->getCouponOrders($query, $con); + } + + /** + * Clears out the collCouponI18ns collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addCouponI18ns() + */ + public function clearCouponI18ns() + { + $this->collCouponI18ns = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collCouponI18ns collection loaded partially. + */ + public function resetPartialCouponI18ns($v = true) + { + $this->collCouponI18nsPartial = $v; + } + + /** + * Initializes the collCouponI18ns collection. + * + * By default this just sets the collCouponI18ns collection to an empty array (like clearcollCouponI18ns()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCouponI18ns($overrideExisting = true) + { + if (null !== $this->collCouponI18ns && !$overrideExisting) { + return; + } + $this->collCouponI18ns = new ObjectCollection(); + $this->collCouponI18ns->setModel('\Thelia\Model\CouponI18n'); + } + + /** + * Gets an array of ChildCouponI18n objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildCoupon is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildCouponI18n[] List of ChildCouponI18n objects + * @throws PropelException + */ + public function getCouponI18ns($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collCouponI18nsPartial && !$this->isNew(); + if (null === $this->collCouponI18ns || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCouponI18ns) { + // return empty collection + $this->initCouponI18ns(); + } else { + $collCouponI18ns = ChildCouponI18nQuery::create(null, $criteria) + ->filterByCoupon($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collCouponI18nsPartial && count($collCouponI18ns)) { + $this->initCouponI18ns(false); + + foreach ($collCouponI18ns as $obj) { + if (false == $this->collCouponI18ns->contains($obj)) { + $this->collCouponI18ns->append($obj); + } + } + + $this->collCouponI18nsPartial = true; + } + + $collCouponI18ns->getInternalIterator()->rewind(); + + return $collCouponI18ns; + } + + if ($partial && $this->collCouponI18ns) { + foreach ($this->collCouponI18ns as $obj) { + if ($obj->isNew()) { + $collCouponI18ns[] = $obj; + } + } + } + + $this->collCouponI18ns = $collCouponI18ns; + $this->collCouponI18nsPartial = false; + } + } + + return $this->collCouponI18ns; + } + + /** + * Sets a collection of CouponI18n objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $couponI18ns A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildCoupon The current object (for fluent API support) + */ + public function setCouponI18ns(Collection $couponI18ns, ConnectionInterface $con = null) + { + $couponI18nsToDelete = $this->getCouponI18ns(new Criteria(), $con)->diff($couponI18ns); + + + //since at least one column in the foreign key is at the same time a PK + //we can not just set a PK to NULL in the lines below. We have to store + //a backup of all values, so we are able to manipulate these items based on the onDelete value later. + $this->couponI18nsScheduledForDeletion = clone $couponI18nsToDelete; + + foreach ($couponI18nsToDelete as $couponI18nRemoved) { + $couponI18nRemoved->setCoupon(null); + } + + $this->collCouponI18ns = null; + foreach ($couponI18ns as $couponI18n) { + $this->addCouponI18n($couponI18n); + } + + $this->collCouponI18ns = $couponI18ns; + $this->collCouponI18nsPartial = false; + + return $this; + } + + /** + * Returns the number of related CouponI18n objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related CouponI18n objects. + * @throws PropelException + */ + public function countCouponI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collCouponI18nsPartial && !$this->isNew(); + if (null === $this->collCouponI18ns || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCouponI18ns) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCouponI18ns()); + } + + $query = ChildCouponI18nQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCoupon($this) + ->count($con); + } + + return count($this->collCouponI18ns); + } + + /** + * Method called to associate a ChildCouponI18n object to this object + * through the ChildCouponI18n foreign key attribute. + * + * @param ChildCouponI18n $l ChildCouponI18n + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function addCouponI18n(ChildCouponI18n $l) + { + if ($l && $locale = $l->getLocale()) { + $this->setLocale($locale); + $this->currentTranslations[$locale] = $l; + } + if ($this->collCouponI18ns === null) { + $this->initCouponI18ns(); + $this->collCouponI18nsPartial = true; + } + + if (!in_array($l, $this->collCouponI18ns->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCouponI18n($l); + } + + return $this; + } + + /** + * @param CouponI18n $couponI18n The couponI18n object to add. + */ + protected function doAddCouponI18n($couponI18n) + { + $this->collCouponI18ns[]= $couponI18n; + $couponI18n->setCoupon($this); + } + + /** + * @param CouponI18n $couponI18n The couponI18n object to remove. + * @return ChildCoupon The current object (for fluent API support) + */ + public function removeCouponI18n($couponI18n) + { + if ($this->getCouponI18ns()->contains($couponI18n)) { + $this->collCouponI18ns->remove($this->collCouponI18ns->search($couponI18n)); + if (null === $this->couponI18nsScheduledForDeletion) { + $this->couponI18nsScheduledForDeletion = clone $this->collCouponI18ns; + $this->couponI18nsScheduledForDeletion->clear(); + } + $this->couponI18nsScheduledForDeletion[]= clone $couponI18n; + $couponI18n->setCoupon(null); + } + + return $this; + } + + /** + * Clears out the collCouponVersions collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addCouponVersions() + */ + public function clearCouponVersions() + { + $this->collCouponVersions = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collCouponVersions collection loaded partially. + */ + public function resetPartialCouponVersions($v = true) + { + $this->collCouponVersionsPartial = $v; + } + + /** + * Initializes the collCouponVersions collection. + * + * By default this just sets the collCouponVersions collection to an empty array (like clearcollCouponVersions()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initCouponVersions($overrideExisting = true) + { + if (null !== $this->collCouponVersions && !$overrideExisting) { + return; + } + $this->collCouponVersions = new ObjectCollection(); + $this->collCouponVersions->setModel('\Thelia\Model\CouponVersion'); + } + + /** + * Gets an array of ChildCouponVersion objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildCoupon is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildCouponVersion[] List of ChildCouponVersion objects + * @throws PropelException + */ + public function getCouponVersions($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collCouponVersionsPartial && !$this->isNew(); + if (null === $this->collCouponVersions || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCouponVersions) { + // return empty collection + $this->initCouponVersions(); + } else { + $collCouponVersions = ChildCouponVersionQuery::create(null, $criteria) + ->filterByCoupon($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collCouponVersionsPartial && count($collCouponVersions)) { + $this->initCouponVersions(false); + + foreach ($collCouponVersions as $obj) { + if (false == $this->collCouponVersions->contains($obj)) { + $this->collCouponVersions->append($obj); + } + } + + $this->collCouponVersionsPartial = true; + } + + $collCouponVersions->getInternalIterator()->rewind(); + + return $collCouponVersions; + } + + if ($partial && $this->collCouponVersions) { + foreach ($this->collCouponVersions as $obj) { + if ($obj->isNew()) { + $collCouponVersions[] = $obj; + } + } + } + + $this->collCouponVersions = $collCouponVersions; + $this->collCouponVersionsPartial = false; + } + } + + return $this->collCouponVersions; + } + + /** + * Sets a collection of CouponVersion objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $couponVersions A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildCoupon The current object (for fluent API support) + */ + public function setCouponVersions(Collection $couponVersions, ConnectionInterface $con = null) + { + $couponVersionsToDelete = $this->getCouponVersions(new Criteria(), $con)->diff($couponVersions); + + + //since at least one column in the foreign key is at the same time a PK + //we can not just set a PK to NULL in the lines below. We have to store + //a backup of all values, so we are able to manipulate these items based on the onDelete value later. + $this->couponVersionsScheduledForDeletion = clone $couponVersionsToDelete; + + foreach ($couponVersionsToDelete as $couponVersionRemoved) { + $couponVersionRemoved->setCoupon(null); + } + + $this->collCouponVersions = null; + foreach ($couponVersions as $couponVersion) { + $this->addCouponVersion($couponVersion); + } + + $this->collCouponVersions = $couponVersions; + $this->collCouponVersionsPartial = false; + + return $this; + } + + /** + * Returns the number of related CouponVersion objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related CouponVersion objects. + * @throws PropelException + */ + public function countCouponVersions(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collCouponVersionsPartial && !$this->isNew(); + if (null === $this->collCouponVersions || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collCouponVersions) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getCouponVersions()); + } + + $query = ChildCouponVersionQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByCoupon($this) + ->count($con); + } + + return count($this->collCouponVersions); + } + + /** + * Method called to associate a ChildCouponVersion object to this object + * through the ChildCouponVersion foreign key attribute. + * + * @param ChildCouponVersion $l ChildCouponVersion + * @return \Thelia\Model\Coupon The current object (for fluent API support) + */ + public function addCouponVersion(ChildCouponVersion $l) + { + if ($this->collCouponVersions === null) { + $this->initCouponVersions(); + $this->collCouponVersionsPartial = true; + } + + if (!in_array($l, $this->collCouponVersions->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddCouponVersion($l); + } + + return $this; + } + + /** + * @param CouponVersion $couponVersion The couponVersion object to add. + */ + protected function doAddCouponVersion($couponVersion) + { + $this->collCouponVersions[]= $couponVersion; + $couponVersion->setCoupon($this); + } + + /** + * @param CouponVersion $couponVersion The couponVersion object to remove. + * @return ChildCoupon The current object (for fluent API support) + */ + public function removeCouponVersion($couponVersion) + { + if ($this->getCouponVersions()->contains($couponVersion)) { + $this->collCouponVersions->remove($this->collCouponVersions->search($couponVersion)); + if (null === $this->couponVersionsScheduledForDeletion) { + $this->couponVersionsScheduledForDeletion = clone $this->collCouponVersions; + $this->couponVersionsScheduledForDeletion->clear(); + } + $this->couponVersionsScheduledForDeletion[]= clone $couponVersion; + $couponVersion->setCoupon(null); } return $this; @@ -1759,16 +2586,21 @@ abstract class Coupon implements ActiveRecordInterface { $this->id = null; $this->code = null; - $this->action = null; + $this->type = null; + $this->title = null; + $this->short_description = null; + $this->description = null; $this->value = null; - $this->used = null; - $this->available_since = null; - $this->date_limit = null; - $this->activate = null; + $this->is_used = null; + $this->is_enabled = null; + $this->expiration_date = null; + $this->serialized_rules = null; $this->created_at = null; $this->updated_at = null; + $this->version = null; $this->alreadyInSave = false; $this->clearAllReferences(); + $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); @@ -1786,17 +2618,39 @@ abstract class Coupon implements ActiveRecordInterface public function clearAllReferences($deep = false) { if ($deep) { - if ($this->collCouponRules) { - foreach ($this->collCouponRules as $o) { + if ($this->collCouponOrders) { + foreach ($this->collCouponOrders as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCouponI18ns) { + foreach ($this->collCouponI18ns as $o) { + $o->clearAllReferences($deep); + } + } + if ($this->collCouponVersions) { + foreach ($this->collCouponVersions as $o) { $o->clearAllReferences($deep); } } } // if ($deep) - if ($this->collCouponRules instanceof Collection) { - $this->collCouponRules->clearIterator(); + // i18n behavior + $this->currentLocale = 'en_EN'; + $this->currentTranslations = null; + + if ($this->collCouponOrders instanceof Collection) { + $this->collCouponOrders->clearIterator(); } - $this->collCouponRules = null; + $this->collCouponOrders = null; + if ($this->collCouponI18ns instanceof Collection) { + $this->collCouponI18ns->clearIterator(); + } + $this->collCouponI18ns = null; + if ($this->collCouponVersions instanceof Collection) { + $this->collCouponVersions->clearIterator(); + } + $this->collCouponVersions = null; } /** @@ -1823,6 +2677,397 @@ abstract class Coupon implements ActiveRecordInterface return $this; } + // i18n behavior + + /** + * Sets the locale for translations + * + * @param string $locale Locale to use for the translation, e.g. 'fr_FR' + * + * @return ChildCoupon The current object (for fluent API support) + */ + public function setLocale($locale = 'en_EN') + { + $this->currentLocale = $locale; + + return $this; + } + + /** + * Gets the locale for translations + * + * @return string $locale Locale to use for the translation, e.g. 'fr_FR' + */ + public function getLocale() + { + return $this->currentLocale; + } + + /** + * Returns the current translation for a given locale + * + * @param string $locale Locale to use for the translation, e.g. 'fr_FR' + * @param ConnectionInterface $con an optional connection object + * + * @return ChildCouponI18n */ + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) + { + if (!isset($this->currentTranslations[$locale])) { + if (null !== $this->collCouponI18ns) { + foreach ($this->collCouponI18ns as $translation) { + if ($translation->getLocale() == $locale) { + $this->currentTranslations[$locale] = $translation; + + return $translation; + } + } + } + if ($this->isNew()) { + $translation = new ChildCouponI18n(); + $translation->setLocale($locale); + } else { + $translation = ChildCouponI18nQuery::create() + ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale)) + ->findOneOrCreate($con); + $this->currentTranslations[$locale] = $translation; + } + $this->addCouponI18n($translation); + } + + return $this->currentTranslations[$locale]; + } + + /** + * Remove the translation for a given locale + * + * @param string $locale Locale to use for the translation, e.g. 'fr_FR' + * @param ConnectionInterface $con an optional connection object + * + * @return ChildCoupon The current object (for fluent API support) + */ + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) + { + if (!$this->isNew()) { + ChildCouponI18nQuery::create() + ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale)) + ->delete($con); + } + if (isset($this->currentTranslations[$locale])) { + unset($this->currentTranslations[$locale]); + } + foreach ($this->collCouponI18ns as $key => $translation) { + if ($translation->getLocale() == $locale) { + unset($this->collCouponI18ns[$key]); + break; + } + } + + return $this; + } + + /** + * Returns the current translation + * + * @param ConnectionInterface $con an optional connection object + * + * @return ChildCouponI18n */ + public function getCurrentTranslation(ConnectionInterface $con = null) + { + return $this->getTranslation($this->getLocale(), $con); + } + + // versionable behavior + + /** + * Enforce a new Version of this object upon next save. + * + * @return \Thelia\Model\Coupon + */ + public function enforceVersioning() + { + $this->enforceVersion = true; + + return $this; + } + + /** + * Checks whether the current state must be recorded as a version + * + * @return boolean + */ + public function isVersioningNecessary($con = null) + { + if ($this->alreadyInSave) { + return false; + } + + if ($this->enforceVersion) { + return true; + } + + if (ChildCouponQuery::isVersioningEnabled() && ($this->isNew() || $this->isModified()) || $this->isDeleted()) { + return true; + } + + return false; + } + + /** + * Creates a version of the current object and saves it. + * + * @param ConnectionInterface $con the connection to use + * + * @return ChildCouponVersion A version object + */ + public function addVersion($con = null) + { + $this->enforceVersion = false; + + $version = new ChildCouponVersion(); + $version->setId($this->getId()); + $version->setCode($this->getCode()); + $version->setType($this->getType()); + $version->setTitle($this->getTitle()); + $version->setShortDescription($this->getShortDescription()); + $version->setDescription($this->getDescription()); + $version->setValue($this->getValue()); + $version->setIsUsed($this->getIsUsed()); + $version->setIsEnabled($this->getIsEnabled()); + $version->setExpirationDate($this->getExpirationDate()); + $version->setSerializedRules($this->getSerializedRules()); + $version->setCreatedAt($this->getCreatedAt()); + $version->setUpdatedAt($this->getUpdatedAt()); + $version->setVersion($this->getVersion()); + $version->setCoupon($this); + $version->save($con); + + return $version; + } + + /** + * Sets the properties of the current object to the value they had at a specific version + * + * @param integer $versionNumber The version number to read + * @param ConnectionInterface $con The connection to use + * + * @return ChildCoupon The current object (for fluent API support) + */ + public function toVersion($versionNumber, $con = null) + { + $version = $this->getOneVersion($versionNumber, $con); + if (!$version) { + throw new PropelException(sprintf('No ChildCoupon object found with version %d', $version)); + } + $this->populateFromVersion($version, $con); + + return $this; + } + + /** + * Sets the properties of the current object to the value they had at a specific version + * + * @param ChildCouponVersion $version The version object to use + * @param ConnectionInterface $con the connection to use + * @param array $loadedObjects objects that been loaded in a chain of populateFromVersion calls on referrer or fk objects. + * + * @return ChildCoupon The current object (for fluent API support) + */ + public function populateFromVersion($version, $con = null, &$loadedObjects = array()) + { + $loadedObjects['ChildCoupon'][$version->getId()][$version->getVersion()] = $this; + $this->setId($version->getId()); + $this->setCode($version->getCode()); + $this->setType($version->getType()); + $this->setTitle($version->getTitle()); + $this->setShortDescription($version->getShortDescription()); + $this->setDescription($version->getDescription()); + $this->setValue($version->getValue()); + $this->setIsUsed($version->getIsUsed()); + $this->setIsEnabled($version->getIsEnabled()); + $this->setExpirationDate($version->getExpirationDate()); + $this->setSerializedRules($version->getSerializedRules()); + $this->setCreatedAt($version->getCreatedAt()); + $this->setUpdatedAt($version->getUpdatedAt()); + $this->setVersion($version->getVersion()); + + return $this; + } + + /** + * Gets the latest persisted version number for the current object + * + * @param ConnectionInterface $con the connection to use + * + * @return integer + */ + public function getLastVersionNumber($con = null) + { + $v = ChildCouponVersionQuery::create() + ->filterByCoupon($this) + ->orderByVersion('desc') + ->findOne($con); + if (!$v) { + return 0; + } + + return $v->getVersion(); + } + + /** + * Checks whether the current object is the latest one + * + * @param ConnectionInterface $con the connection to use + * + * @return Boolean + */ + public function isLastVersion($con = null) + { + return $this->getLastVersionNumber($con) == $this->getVersion(); + } + + /** + * Retrieves a version object for this entity and a version number + * + * @param integer $versionNumber The version number to read + * @param ConnectionInterface $con the connection to use + * + * @return ChildCouponVersion A version object + */ + public function getOneVersion($versionNumber, $con = null) + { + return ChildCouponVersionQuery::create() + ->filterByCoupon($this) + ->filterByVersion($versionNumber) + ->findOne($con); + } + + /** + * Gets all the versions of this object, in incremental order + * + * @param ConnectionInterface $con the connection to use + * + * @return ObjectCollection A list of ChildCouponVersion objects + */ + public function getAllVersions($con = null) + { + $criteria = new Criteria(); + $criteria->addAscendingOrderByColumn(CouponVersionTableMap::VERSION); + + return $this->getCouponVersions($criteria, $con); + } + + /** + * Compares the current object with another of its version. + * + * print_r($book->compareVersion(1)); + * => array( + * '1' => array('Title' => 'Book title at version 1'), + * '2' => array('Title' => 'Book title at version 2') + * ); + * + * + * @param integer $versionNumber + * @param string $keys Main key used for the result diff (versions|columns) + * @param ConnectionInterface $con the connection to use + * @param array $ignoredColumns The columns to exclude from the diff. + * + * @return array A list of differences + */ + public function compareVersion($versionNumber, $keys = 'columns', $con = null, $ignoredColumns = array()) + { + $fromVersion = $this->toArray(); + $toVersion = $this->getOneVersion($versionNumber, $con)->toArray(); + + return $this->computeDiff($fromVersion, $toVersion, $keys, $ignoredColumns); + } + + /** + * Compares two versions of the current object. + * + * print_r($book->compareVersions(1, 2)); + * => array( + * '1' => array('Title' => 'Book title at version 1'), + * '2' => array('Title' => 'Book title at version 2') + * ); + * + * + * @param integer $fromVersionNumber + * @param integer $toVersionNumber + * @param string $keys Main key used for the result diff (versions|columns) + * @param ConnectionInterface $con the connection to use + * @param array $ignoredColumns The columns to exclude from the diff. + * + * @return array A list of differences + */ + public function compareVersions($fromVersionNumber, $toVersionNumber, $keys = 'columns', $con = null, $ignoredColumns = array()) + { + $fromVersion = $this->getOneVersion($fromVersionNumber, $con)->toArray(); + $toVersion = $this->getOneVersion($toVersionNumber, $con)->toArray(); + + return $this->computeDiff($fromVersion, $toVersion, $keys, $ignoredColumns); + } + + /** + * Computes the diff between two versions. + * + * print_r($book->computeDiff(1, 2)); + * => array( + * '1' => array('Title' => 'Book title at version 1'), + * '2' => array('Title' => 'Book title at version 2') + * ); + * + * + * @param array $fromVersion An array representing the original version. + * @param array $toVersion An array representing the destination version. + * @param string $keys Main key used for the result diff (versions|columns). + * @param array $ignoredColumns The columns to exclude from the diff. + * + * @return array A list of differences + */ + protected function computeDiff($fromVersion, $toVersion, $keys = 'columns', $ignoredColumns = array()) + { + $fromVersionNumber = $fromVersion['Version']; + $toVersionNumber = $toVersion['Version']; + $ignoredColumns = array_merge(array( + 'Version', + ), $ignoredColumns); + $diff = array(); + foreach ($fromVersion as $key => $value) { + if (in_array($key, $ignoredColumns)) { + continue; + } + if ($toVersion[$key] != $value) { + switch ($keys) { + case 'versions': + $diff[$fromVersionNumber][$key] = $value; + $diff[$toVersionNumber][$key] = $toVersion[$key]; + break; + default: + $diff[$key] = array( + $fromVersionNumber => $value, + $toVersionNumber => $toVersion[$key], + ); + break; + } + } + } + + return $diff; + } + /** + * retrieve the last $number versions. + * + * @param Integer $number the number of record to return. + * @return PropelCollection|array \Thelia\Model\CouponVersion[] List of \Thelia\Model\CouponVersion objects + */ + public function getLastVersions($number = 10, $criteria = null, $con = null) + { + $criteria = ChildCouponVersionQuery::create(null, $criteria); + $criteria->addDescendingOrderByColumn(CouponVersionTableMap::VERSION); + $criteria->limit($number); + + return $this->getCouponVersions($criteria, $con); + } /** * Code to be run before persisting the object * @param ConnectionInterface $con diff --git a/core/lib/Thelia/Model/Base/CouponI18n.php b/core/lib/Thelia/Model/Base/CouponI18n.php new file mode 100644 index 000000000..c15ba0309 --- /dev/null +++ b/core/lib/Thelia/Model/Base/CouponI18n.php @@ -0,0 +1,1207 @@ +locale = 'en_EN'; + } + + /** + * Initializes internal state of Thelia\Model\Base\CouponI18n object. + * @see applyDefaults() + */ + public function __construct() + { + $this->applyDefaultValues(); + } + + /** + * Returns whether the object has been modified. + * + * @return boolean True if the object has been modified. + */ + public function isModified() + { + return !empty($this->modifiedColumns); + } + + /** + * Has specified column been modified? + * + * @param string $col column fully qualified name (TableMap::TYPE_COLNAME), e.g. Book::AUTHOR_ID + * @return boolean True if $col has been modified. + */ + public function isColumnModified($col) + { + return in_array($col, $this->modifiedColumns); + } + + /** + * Get the columns that have been modified in this object. + * @return array A unique list of the modified column names for this object. + */ + public function getModifiedColumns() + { + return array_unique($this->modifiedColumns); + } + + /** + * Returns whether the object has ever been saved. This will + * be false, if the object was retrieved from storage or was created + * and then saved. + * + * @return true, if the object has never been persisted. + */ + public function isNew() + { + return $this->new; + } + + /** + * Setter for the isNew attribute. This method will be called + * by Propel-generated children and objects. + * + * @param boolean $b the state of the object. + */ + public function setNew($b) + { + $this->new = (Boolean) $b; + } + + /** + * Whether this object has been deleted. + * @return boolean The deleted state of this object. + */ + public function isDeleted() + { + return $this->deleted; + } + + /** + * Specify whether this object has been deleted. + * @param boolean $b The deleted state of this object. + * @return void + */ + public function setDeleted($b) + { + $this->deleted = (Boolean) $b; + } + + /** + * Sets the modified state for the object to be false. + * @param string $col If supplied, only the specified column is reset. + * @return void + */ + public function resetModified($col = null) + { + if (null !== $col) { + while (false !== ($offset = array_search($col, $this->modifiedColumns))) { + array_splice($this->modifiedColumns, $offset, 1); + } + } else { + $this->modifiedColumns = array(); + } + } + + /** + * Compares this with another CouponI18n instance. If + * obj is an instance of CouponI18n, delegates to + * equals(CouponI18n). Otherwise, returns false. + * + * @param obj The object to compare to. + * @return Whether equal to the object specified. + */ + public function equals($obj) + { + $thisclazz = get_class($this); + if (!is_object($obj) || !($obj instanceof $thisclazz)) { + return false; + } + + if ($this === $obj) { + return true; + } + + if (null === $this->getPrimaryKey() + || null === $obj->getPrimaryKey()) { + return false; + } + + return $this->getPrimaryKey() === $obj->getPrimaryKey(); + } + + /** + * If the primary key is not null, return the hashcode of the + * primary key. Otherwise, return the hash code of the object. + * + * @return int Hashcode + */ + public function hashCode() + { + if (null !== $this->getPrimaryKey()) { + return crc32(serialize($this->getPrimaryKey())); + } + + return crc32(serialize(clone $this)); + } + + /** + * Get the associative array of the virtual columns in this object + * + * @param string $name The virtual column name + * + * @return array + */ + public function getVirtualColumns() + { + return $this->virtualColumns; + } + + /** + * Checks the existence of a virtual column in this object + * + * @return boolean + */ + public function hasVirtualColumn($name) + { + return array_key_exists($name, $this->virtualColumns); + } + + /** + * Get the value of a virtual column in this object + * + * @return mixed + */ + public function getVirtualColumn($name) + { + if (!$this->hasVirtualColumn($name)) { + throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name)); + } + + return $this->virtualColumns[$name]; + } + + /** + * Set the value of a virtual column in this object + * + * @param string $name The virtual column name + * @param mixed $value The value to give to the virtual column + * + * @return CouponI18n The current object, for fluid interface + */ + public function setVirtualColumn($name, $value) + { + $this->virtualColumns[$name] = $value; + + return $this; + } + + /** + * Logs a message using Propel::log(). + * + * @param string $msg + * @param int $priority One of the Propel::LOG_* logging levels + * @return boolean + */ + protected function log($msg, $priority = Propel::LOG_INFO) + { + return Propel::log(get_class($this) . ': ' . $msg, $priority); + } + + /** + * Populate the current object from a string, using a given parser format + * + * $book = new Book(); + * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, + * or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param string $data The source data to import from + * + * @return CouponI18n The current object, for fluid interface + */ + public function importFrom($parser, $data) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $this->fromArray($parser->toArray($data), TableMap::TYPE_PHPNAME); + } + + /** + * Export the current object properties to a string, using a given parser format + * + * $book = BookQuery::create()->findPk(9012); + * echo $book->exportTo('JSON'); + * => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. + * @return string The exported data + */ + public function exportTo($parser, $includeLazyLoadColumns = true) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true)); + } + + /** + * Clean up internal collections prior to serializing + * Avoids recursive loops that turn into segmentation faults when serializing + */ + public function __sleep() + { + $this->clearAllReferences(); + + return array_keys(get_object_vars($this)); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [locale] column value. + * + * @return string + */ + public function getLocale() + { + + return $this->locale; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return \Thelia\Model\CouponI18n The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CouponI18nTableMap::ID; + } + + if ($this->aCoupon !== null && $this->aCoupon->getId() !== $v) { + $this->aCoupon = null; + } + + + return $this; + } // setId() + + /** + * Set the value of [locale] column. + * + * @param string $v new value + * @return \Thelia\Model\CouponI18n The current object (for fluent API support) + */ + public function setLocale($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->locale !== $v) { + $this->locale = $v; + $this->modifiedColumns[] = CouponI18nTableMap::LOCALE; + } + + + return $this; + } // setLocale() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->locale !== 'en_EN') { + return false; + } + + // otherwise, everything was equal, so return TRUE + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by DataFetcher->fetch(). + * @param int $startcol 0-based offset column which indicates which restultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) + { + try { + + + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : CouponI18nTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $this->id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : CouponI18nTableMap::translateFieldName('Locale', TableMap::TYPE_PHPNAME, $indexType)]; + $this->locale = (null !== $col) ? (string) $col : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + + return $startcol + 2; // 2 = CouponI18nTableMap::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating \Thelia\Model\CouponI18n object", 0, $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + if ($this->aCoupon !== null && $this->id !== $this->aCoupon->getId()) { + $this->aCoupon = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param ConnectionInterface $con (optional) The ConnectionInterface connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(CouponI18nTableMap::DATABASE_NAME); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $dataFetcher = ChildCouponI18nQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $row = $dataFetcher->fetch(); + $dataFetcher->close(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCoupon = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param ConnectionInterface $con + * @return void + * @throws PropelException + * @see CouponI18n::setDeleted() + * @see CouponI18n::isDeleted() + */ + public function delete(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponI18nTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + try { + $deleteQuery = ChildCouponI18nQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see doSave() + */ + public function save(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponI18nTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CouponI18nTableMap::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(ConnectionInterface $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCoupon !== null) { + if ($this->aCoupon->isModified() || $this->aCoupon->isNew()) { + $affectedRows += $this->aCoupon->save($con); + } + $this->setCoupon($this->aCoupon); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param ConnectionInterface $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(ConnectionInterface $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CouponI18nTableMap::ID)) { + $modifiedColumns[':p' . $index++] = 'ID'; + } + if ($this->isColumnModified(CouponI18nTableMap::LOCALE)) { + $modifiedColumns[':p' . $index++] = 'LOCALE'; + } + + $sql = sprintf( + 'INSERT INTO coupon_i18n (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case 'ID': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case 'LOCALE': + $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param ConnectionInterface $con + * + * @return Integer Number of updated rows + * @see doSave() + */ + protected function doUpdate(ConnectionInterface $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + + return $selectCriteria->doUpdate($valuesCriteria, $con); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return mixed Value of field. + */ + public function getByName($name, $type = TableMap::TYPE_PHPNAME) + { + $pos = CouponI18nTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getLocale(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CouponI18n'][serialize($this->getPrimaryKey())])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CouponI18n'][serialize($this->getPrimaryKey())] = true; + $keys = CouponI18nTableMap::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getLocale(), + ); + $virtualColumns = $this->virtualColumns; + foreach($virtualColumns as $key => $virtualColumn) + { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCoupon) { + $result['Coupon'] = $this->aCoupon->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return void + */ + public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) + { + $pos = CouponI18nTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + + return $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setLocale($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * The default key type is the column's TableMap::TYPE_PHPNAME. + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) + { + $keys = CouponI18nTableMap::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setLocale($arr[$keys[1]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CouponI18nTableMap::DATABASE_NAME); + + if ($this->isColumnModified(CouponI18nTableMap::ID)) $criteria->add(CouponI18nTableMap::ID, $this->id); + if ($this->isColumnModified(CouponI18nTableMap::LOCALE)) $criteria->add(CouponI18nTableMap::LOCALE, $this->locale); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CouponI18nTableMap::DATABASE_NAME); + $criteria->add(CouponI18nTableMap::ID, $this->id); + $criteria->add(CouponI18nTableMap::LOCALE, $this->locale); + + return $criteria; + } + + /** + * Returns the composite primary key for this object. + * The array elements will be in same order as specified in XML. + * @return array + */ + public function getPrimaryKey() + { + $pks = array(); + $pks[0] = $this->getId(); + $pks[1] = $this->getLocale(); + + return $pks; + } + + /** + * Set the [composite] primary key. + * + * @param array $keys The elements of the composite key (order must match the order in XML file). + * @return void + */ + public function setPrimaryKey($keys) + { + $this->setId($keys[0]); + $this->setLocale($keys[1]); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return (null === $this->getId()) && (null === $this->getLocale()); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of \Thelia\Model\CouponI18n (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setId($this->getId()); + $copyObj->setLocale($this->getLocale()); + if ($makeNew) { + $copyObj->setNew(true); + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return \Thelia\Model\CouponI18n Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Declares an association between this object and a ChildCoupon object. + * + * @param ChildCoupon $v + * @return \Thelia\Model\CouponI18n The current object (for fluent API support) + * @throws PropelException + */ + public function setCoupon(ChildCoupon $v = null) + { + if ($v === null) { + $this->setId(NULL); + } else { + $this->setId($v->getId()); + } + + $this->aCoupon = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildCoupon object, it will not be re-added. + if ($v !== null) { + $v->addCouponI18n($this); + } + + + return $this; + } + + + /** + * Get the associated ChildCoupon object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildCoupon The associated ChildCoupon object. + * @throws PropelException + */ + public function getCoupon(ConnectionInterface $con = null) + { + if ($this->aCoupon === null && ($this->id !== null)) { + $this->aCoupon = ChildCouponQuery::create()->findPk($this->id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCoupon->addCouponI18ns($this); + */ + } + + return $this->aCoupon; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->locale = null; + $this->alreadyInSave = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep) { + } // if ($deep) + + $this->aCoupon = null; + } + + /** + * Return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CouponI18nTableMap::DEFAULT_STRING_FORMAT); + } + + /** + * Code to be run before persisting the object + * @param ConnectionInterface $con + * @return boolean + */ + public function preSave(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after persisting the object + * @param ConnectionInterface $con + */ + public function postSave(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before inserting to database + * @param ConnectionInterface $con + * @return boolean + */ + public function preInsert(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after inserting to database + * @param ConnectionInterface $con + */ + public function postInsert(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before updating the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preUpdate(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after updating the object in database + * @param ConnectionInterface $con + */ + public function postUpdate(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before deleting the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preDelete(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after deleting the object in database + * @param ConnectionInterface $con + */ + public function postDelete(ConnectionInterface $con = null) + { + + } + + + /** + * Derived method to catches calls to undefined methods. + * + * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). + * Allows to define default __call() behavior if you overwrite __call() + * + * @param string $name + * @param mixed $params + * + * @return array|string + */ + public function __call($name, $params) + { + if (0 === strpos($name, 'get')) { + $virtualColumn = substr($name, 3); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + + $virtualColumn = lcfirst($virtualColumn); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + } + + if (0 === strpos($name, 'from')) { + $format = substr($name, 4); + + return $this->importFrom($format, reset($params)); + } + + if (0 === strpos($name, 'to')) { + $format = substr($name, 2); + $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true; + + return $this->exportTo($format, $includeLazyLoadColumns); + } + + throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name)); + } + +} diff --git a/core/lib/Thelia/Model/Base/CouponI18nQuery.php b/core/lib/Thelia/Model/Base/CouponI18nQuery.php new file mode 100644 index 000000000..9468f787f --- /dev/null +++ b/core/lib/Thelia/Model/Base/CouponI18nQuery.php @@ -0,0 +1,475 @@ +setModelAlias($modelAlias); + } + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(array(12, 34), $con); + * + * + * @param array[$id, $locale] $key Primary key to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ChildCouponI18n|array|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CouponI18nTableMap::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(CouponI18nTableMap::DATABASE_NAME); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildCouponI18n A model object, or null if the key is not found + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT ID, LOCALE FROM coupon_i18n WHERE ID = :p0 AND LOCALE = :p1'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); + $stmt->bindValue(':p1', $key[1], PDO::PARAM_STR); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); + } + $obj = null; + if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { + $obj = new ChildCouponI18n(); + $obj->hydrate($row); + CouponI18nTableMap::addInstanceToPool($obj, serialize(array((string) $key[0], (string) $key[1]))); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildCouponI18n|array|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con); + * + * @param array $keys Primary keys to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($dataFetcher); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return ChildCouponI18nQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + $this->addUsingAlias(CouponI18nTableMap::ID, $key[0], Criteria::EQUAL); + $this->addUsingAlias(CouponI18nTableMap::LOCALE, $key[1], Criteria::EQUAL); + + return $this; + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return ChildCouponI18nQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + if (empty($keys)) { + return $this->add(null, '1<>1', Criteria::CUSTOM); + } + foreach ($keys as $key) { + $cton0 = $this->getNewCriterion(CouponI18nTableMap::ID, $key[0], Criteria::EQUAL); + $cton1 = $this->getNewCriterion(CouponI18nTableMap::LOCALE, $key[1], Criteria::EQUAL); + $cton0->addAnd($cton1); + $this->addOr($cton0); + } + + return $this; + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id > 12 + * + * + * @see filterByCoupon() + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponI18nQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(CouponI18nTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(CouponI18nTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponI18nTableMap::ID, $id, $comparison); + } + + /** + * Filter the query on the locale column + * + * Example usage: + * + * $query->filterByLocale('fooValue'); // WHERE locale = 'fooValue' + * $query->filterByLocale('%fooValue%'); // WHERE locale LIKE '%fooValue%' + * + * + * @param string $locale 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 ChildCouponI18nQuery The current query, for fluid interface + */ + public function filterByLocale($locale = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($locale)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $locale)) { + $locale = str_replace('*', '%', $locale); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponI18nTableMap::LOCALE, $locale, $comparison); + } + + /** + * Filter the query by a related \Thelia\Model\Coupon object + * + * @param \Thelia\Model\Coupon|ObjectCollection $coupon The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponI18nQuery The current query, for fluid interface + */ + public function filterByCoupon($coupon, $comparison = null) + { + if ($coupon instanceof \Thelia\Model\Coupon) { + return $this + ->addUsingAlias(CouponI18nTableMap::ID, $coupon->getId(), $comparison); + } elseif ($coupon instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CouponI18nTableMap::ID, $coupon->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByCoupon() only accepts arguments of type \Thelia\Model\Coupon or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Coupon relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildCouponI18nQuery The current query, for fluid interface + */ + public function joinCoupon($relationAlias = null, $joinType = 'LEFT JOIN') + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Coupon'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Coupon'); + } + + return $this; + } + + /** + * Use the Coupon relation Coupon object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\CouponQuery A secondary query class using the current class as primary query + */ + public function useCouponQuery($relationAlias = null, $joinType = 'LEFT JOIN') + { + return $this + ->joinCoupon($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Coupon', '\Thelia\Model\CouponQuery'); + } + + /** + * Exclude object from result + * + * @param ChildCouponI18n $couponI18n Object to remove from the list of results + * + * @return ChildCouponI18nQuery The current query, for fluid interface + */ + public function prune($couponI18n = null) + { + if ($couponI18n) { + $this->addCond('pruneCond0', $this->getAliasedColName(CouponI18nTableMap::ID), $couponI18n->getId(), Criteria::NOT_EQUAL); + $this->addCond('pruneCond1', $this->getAliasedColName(CouponI18nTableMap::LOCALE), $couponI18n->getLocale(), Criteria::NOT_EQUAL); + $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); + } + + return $this; + } + + /** + * Deletes all rows from the coupon_i18n table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public function doDeleteAll(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponI18nTableMap::DATABASE_NAME); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += parent::doDeleteAll($con); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CouponI18nTableMap::clearInstancePool(); + CouponI18nTableMap::clearRelatedInstancePool(); + + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $affectedRows; + } + + /** + * Performs a DELETE on the database, given a ChildCouponI18n or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChildCouponI18n object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public function delete(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponI18nTableMap::DATABASE_NAME); + } + + $criteria = $this; + + // Set the correct dbName + $criteria->setDbName(CouponI18nTableMap::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + + CouponI18nTableMap::removeInstanceFromPool($criteria); + + $affectedRows += ModelCriteria::delete($con); + CouponI18nTableMap::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + } + +} // CouponI18nQuery diff --git a/core/lib/Thelia/Model/Base/CouponOrder.php b/core/lib/Thelia/Model/Base/CouponOrder.php old mode 100644 new mode 100755 index 32ae68fde..a183f262e --- a/core/lib/Thelia/Model/Base/CouponOrder.php +++ b/core/lib/Thelia/Model/Base/CouponOrder.php @@ -16,8 +16,10 @@ use Propel\Runtime\Exception\PropelException; use Propel\Runtime\Map\TableMap; use Propel\Runtime\Parser\AbstractParser; use Propel\Runtime\Util\PropelDateTime; +use Thelia\Model\Coupon as ChildCoupon; use Thelia\Model\CouponOrder as ChildCouponOrder; use Thelia\Model\CouponOrderQuery as ChildCouponOrderQuery; +use Thelia\Model\CouponQuery as ChildCouponQuery; use Thelia\Model\Order as ChildOrder; use Thelia\Model\OrderQuery as ChildOrderQuery; use Thelia\Model\Map\CouponOrderTableMap; @@ -97,6 +99,11 @@ abstract class CouponOrder implements ActiveRecordInterface */ protected $aOrder; + /** + * @var Coupon + */ + protected $aCoupon; + /** * Flag to prevent endless save loop, if this object is referenced * by another object which falls in this transaction. @@ -261,7 +268,7 @@ abstract class CouponOrder implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -506,6 +513,10 @@ abstract class CouponOrder implements ActiveRecordInterface $this->modifiedColumns[] = CouponOrderTableMap::CODE; } + if ($this->aCoupon !== null && $this->aCoupon->getCode() !== $v) { + $this->aCoupon = null; + } + return $this; } // setCode() @@ -666,6 +677,9 @@ abstract class CouponOrder implements ActiveRecordInterface if ($this->aOrder !== null && $this->order_id !== $this->aOrder->getId()) { $this->aOrder = null; } + if ($this->aCoupon !== null && $this->code !== $this->aCoupon->getCode()) { + $this->aCoupon = null; + } } // ensureConsistency /** @@ -706,6 +720,7 @@ abstract class CouponOrder implements ActiveRecordInterface if ($deep) { // also de-associate any related objects? $this->aOrder = null; + $this->aCoupon = null; } // if (deep) } @@ -840,6 +855,13 @@ abstract class CouponOrder implements ActiveRecordInterface $this->setOrder($this->aOrder); } + if ($this->aCoupon !== null) { + if ($this->aCoupon->isModified() || $this->aCoupon->isNew()) { + $affectedRows += $this->aCoupon->save($con); + } + $this->setCoupon($this->aCoupon); + } + if ($this->isNew() || $this->isModified()) { // persist changes if ($this->isNew()) { @@ -1050,6 +1072,9 @@ abstract class CouponOrder implements ActiveRecordInterface if (null !== $this->aOrder) { $result['Order'] = $this->aOrder->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } + if (null !== $this->aCoupon) { + $result['Coupon'] = $this->aCoupon->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } } return $result; @@ -1296,6 +1321,59 @@ abstract class CouponOrder implements ActiveRecordInterface return $this->aOrder; } + /** + * Declares an association between this object and a ChildCoupon object. + * + * @param ChildCoupon $v + * @return \Thelia\Model\CouponOrder The current object (for fluent API support) + * @throws PropelException + */ + public function setCoupon(ChildCoupon $v = null) + { + if ($v === null) { + $this->setCode(NULL); + } else { + $this->setCode($v->getCode()); + } + + $this->aCoupon = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildCoupon object, it will not be re-added. + if ($v !== null) { + $v->addCouponOrder($this); + } + + + return $this; + } + + + /** + * Get the associated ChildCoupon object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildCoupon The associated ChildCoupon object. + * @throws PropelException + */ + public function getCoupon(ConnectionInterface $con = null) + { + if ($this->aCoupon === null && (($this->code !== "" && $this->code !== null))) { + $this->aCoupon = ChildCouponQuery::create() + ->filterByCouponOrder($this) // here + ->findOne($con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCoupon->addCouponOrders($this); + */ + } + + return $this->aCoupon; + } + /** * Clears the current object and sets all attributes to their default values */ @@ -1329,6 +1407,7 @@ abstract class CouponOrder implements ActiveRecordInterface } // if ($deep) $this->aOrder = null; + $this->aCoupon = null; } /** diff --git a/core/lib/Thelia/Model/Base/CouponOrderQuery.php b/core/lib/Thelia/Model/Base/CouponOrderQuery.php old mode 100644 new mode 100755 index 6897f56dd..e3a95ea1a --- a/core/lib/Thelia/Model/Base/CouponOrderQuery.php +++ b/core/lib/Thelia/Model/Base/CouponOrderQuery.php @@ -43,6 +43,10 @@ use Thelia\Model\Map\CouponOrderTableMap; * @method ChildCouponOrderQuery rightJoinOrder($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Order relation * @method ChildCouponOrderQuery innerJoinOrder($relationAlias = null) Adds a INNER JOIN clause to the query using the Order relation * + * @method ChildCouponOrderQuery leftJoinCoupon($relationAlias = null) Adds a LEFT JOIN clause to the query using the Coupon relation + * @method ChildCouponOrderQuery rightJoinCoupon($relationAlias = null) Adds a RIGHT JOIN clause to the query using the Coupon relation + * @method ChildCouponOrderQuery innerJoinCoupon($relationAlias = null) Adds a INNER JOIN clause to the query using the Coupon relation + * * @method ChildCouponOrder findOne(ConnectionInterface $con = null) Return the first ChildCouponOrder matching the query * @method ChildCouponOrder findOneOrCreate(ConnectionInterface $con = null) Return the first ChildCouponOrder matching the query, or a new ChildCouponOrder object populated from the query conditions when no match is found * @@ -551,6 +555,81 @@ abstract class CouponOrderQuery extends ModelCriteria ->useQuery($relationAlias ? $relationAlias : 'Order', '\Thelia\Model\OrderQuery'); } + /** + * Filter the query by a related \Thelia\Model\Coupon object + * + * @param \Thelia\Model\Coupon|ObjectCollection $coupon The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponOrderQuery The current query, for fluid interface + */ + public function filterByCoupon($coupon, $comparison = null) + { + if ($coupon instanceof \Thelia\Model\Coupon) { + return $this + ->addUsingAlias(CouponOrderTableMap::CODE, $coupon->getCode(), $comparison); + } elseif ($coupon instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CouponOrderTableMap::CODE, $coupon->toKeyValue('PrimaryKey', 'Code'), $comparison); + } else { + throw new PropelException('filterByCoupon() only accepts arguments of type \Thelia\Model\Coupon or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Coupon relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildCouponOrderQuery The current query, for fluid interface + */ + public function joinCoupon($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Coupon'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Coupon'); + } + + return $this; + } + + /** + * Use the Coupon relation Coupon object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\CouponQuery A secondary query class using the current class as primary query + */ + public function useCouponQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCoupon($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Coupon', '\Thelia\Model\CouponQuery'); + } + /** * Exclude object from result * diff --git a/core/lib/Thelia/Model/Base/CouponQuery.php b/core/lib/Thelia/Model/Base/CouponQuery.php old mode 100644 new mode 100755 index 23fdd2e4c..fa5700786 --- a/core/lib/Thelia/Model/Base/CouponQuery.php +++ b/core/lib/Thelia/Model/Base/CouponQuery.php @@ -13,6 +13,7 @@ use Propel\Runtime\Collection\ObjectCollection; use Propel\Runtime\Connection\ConnectionInterface; use Propel\Runtime\Exception\PropelException; use Thelia\Model\Coupon as ChildCoupon; +use Thelia\Model\CouponI18nQuery as ChildCouponI18nQuery; use Thelia\Model\CouponQuery as ChildCouponQuery; use Thelia\Model\Map\CouponTableMap; @@ -23,63 +24,94 @@ use Thelia\Model\Map\CouponTableMap; * * @method ChildCouponQuery orderById($order = Criteria::ASC) Order by the id column * @method ChildCouponQuery orderByCode($order = Criteria::ASC) Order by the code column - * @method ChildCouponQuery orderByAction($order = Criteria::ASC) Order by the action column + * @method ChildCouponQuery orderByType($order = Criteria::ASC) Order by the type column + * @method ChildCouponQuery orderByTitle($order = Criteria::ASC) Order by the title column + * @method ChildCouponQuery orderByShortDescription($order = Criteria::ASC) Order by the short_description column + * @method ChildCouponQuery orderByDescription($order = Criteria::ASC) Order by the description column * @method ChildCouponQuery orderByValue($order = Criteria::ASC) Order by the value column - * @method ChildCouponQuery orderByUsed($order = Criteria::ASC) Order by the used column - * @method ChildCouponQuery orderByAvailableSince($order = Criteria::ASC) Order by the available_since column - * @method ChildCouponQuery orderByDateLimit($order = Criteria::ASC) Order by the date_limit column - * @method ChildCouponQuery orderByActivate($order = Criteria::ASC) Order by the activate column + * @method ChildCouponQuery orderByIsUsed($order = Criteria::ASC) Order by the is_used column + * @method ChildCouponQuery orderByIsEnabled($order = Criteria::ASC) Order by the is_enabled column + * @method ChildCouponQuery orderByExpirationDate($order = Criteria::ASC) Order by the expiration_date column + * @method ChildCouponQuery orderBySerializedRules($order = Criteria::ASC) Order by the serialized_rules column * @method ChildCouponQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column * @method ChildCouponQuery orderByUpdatedAt($order = Criteria::ASC) Order by the updated_at column + * @method ChildCouponQuery orderByVersion($order = Criteria::ASC) Order by the version column * * @method ChildCouponQuery groupById() Group by the id column * @method ChildCouponQuery groupByCode() Group by the code column - * @method ChildCouponQuery groupByAction() Group by the action column + * @method ChildCouponQuery groupByType() Group by the type column + * @method ChildCouponQuery groupByTitle() Group by the title column + * @method ChildCouponQuery groupByShortDescription() Group by the short_description column + * @method ChildCouponQuery groupByDescription() Group by the description column * @method ChildCouponQuery groupByValue() Group by the value column - * @method ChildCouponQuery groupByUsed() Group by the used column - * @method ChildCouponQuery groupByAvailableSince() Group by the available_since column - * @method ChildCouponQuery groupByDateLimit() Group by the date_limit column - * @method ChildCouponQuery groupByActivate() Group by the activate column + * @method ChildCouponQuery groupByIsUsed() Group by the is_used column + * @method ChildCouponQuery groupByIsEnabled() Group by the is_enabled column + * @method ChildCouponQuery groupByExpirationDate() Group by the expiration_date column + * @method ChildCouponQuery groupBySerializedRules() Group by the serialized_rules column * @method ChildCouponQuery groupByCreatedAt() Group by the created_at column * @method ChildCouponQuery groupByUpdatedAt() Group by the updated_at column + * @method ChildCouponQuery groupByVersion() Group by the version column * * @method ChildCouponQuery leftJoin($relation) Adds a LEFT JOIN clause to the query * @method ChildCouponQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query * @method ChildCouponQuery innerJoin($relation) Adds a INNER JOIN clause to the query * - * @method ChildCouponQuery leftJoinCouponRule($relationAlias = null) Adds a LEFT JOIN clause to the query using the CouponRule relation - * @method ChildCouponQuery rightJoinCouponRule($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CouponRule relation - * @method ChildCouponQuery innerJoinCouponRule($relationAlias = null) Adds a INNER JOIN clause to the query using the CouponRule relation + * @method ChildCouponQuery leftJoinCouponOrder($relationAlias = null) Adds a LEFT JOIN clause to the query using the CouponOrder relation + * @method ChildCouponQuery rightJoinCouponOrder($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CouponOrder relation + * @method ChildCouponQuery innerJoinCouponOrder($relationAlias = null) Adds a INNER JOIN clause to the query using the CouponOrder relation + * + * @method ChildCouponQuery leftJoinCouponI18n($relationAlias = null) Adds a LEFT JOIN clause to the query using the CouponI18n relation + * @method ChildCouponQuery rightJoinCouponI18n($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CouponI18n relation + * @method ChildCouponQuery innerJoinCouponI18n($relationAlias = null) Adds a INNER JOIN clause to the query using the CouponI18n relation + * + * @method ChildCouponQuery leftJoinCouponVersion($relationAlias = null) Adds a LEFT JOIN clause to the query using the CouponVersion relation + * @method ChildCouponQuery rightJoinCouponVersion($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CouponVersion relation + * @method ChildCouponQuery innerJoinCouponVersion($relationAlias = null) Adds a INNER JOIN clause to the query using the CouponVersion relation * * @method ChildCoupon findOne(ConnectionInterface $con = null) Return the first ChildCoupon matching the query * @method ChildCoupon findOneOrCreate(ConnectionInterface $con = null) Return the first ChildCoupon matching the query, or a new ChildCoupon object populated from the query conditions when no match is found * * @method ChildCoupon findOneById(int $id) Return the first ChildCoupon filtered by the id column * @method ChildCoupon findOneByCode(string $code) Return the first ChildCoupon filtered by the code column - * @method ChildCoupon findOneByAction(string $action) Return the first ChildCoupon filtered by the action column + * @method ChildCoupon findOneByType(string $type) Return the first ChildCoupon filtered by the type column + * @method ChildCoupon findOneByTitle(string $title) Return the first ChildCoupon filtered by the title column + * @method ChildCoupon findOneByShortDescription(string $short_description) Return the first ChildCoupon filtered by the short_description column + * @method ChildCoupon findOneByDescription(string $description) Return the first ChildCoupon filtered by the description column * @method ChildCoupon findOneByValue(double $value) Return the first ChildCoupon filtered by the value column - * @method ChildCoupon findOneByUsed(int $used) Return the first ChildCoupon filtered by the used column - * @method ChildCoupon findOneByAvailableSince(string $available_since) Return the first ChildCoupon filtered by the available_since column - * @method ChildCoupon findOneByDateLimit(string $date_limit) Return the first ChildCoupon filtered by the date_limit column - * @method ChildCoupon findOneByActivate(int $activate) Return the first ChildCoupon filtered by the activate column + * @method ChildCoupon findOneByIsUsed(int $is_used) Return the first ChildCoupon filtered by the is_used column + * @method ChildCoupon findOneByIsEnabled(int $is_enabled) Return the first ChildCoupon filtered by the is_enabled column + * @method ChildCoupon findOneByExpirationDate(string $expiration_date) Return the first ChildCoupon filtered by the expiration_date column + * @method ChildCoupon findOneBySerializedRules(string $serialized_rules) Return the first ChildCoupon filtered by the serialized_rules column * @method ChildCoupon findOneByCreatedAt(string $created_at) Return the first ChildCoupon filtered by the created_at column * @method ChildCoupon findOneByUpdatedAt(string $updated_at) Return the first ChildCoupon filtered by the updated_at column + * @method ChildCoupon findOneByVersion(int $version) Return the first ChildCoupon filtered by the version column * * @method array findById(int $id) Return ChildCoupon objects filtered by the id column * @method array findByCode(string $code) Return ChildCoupon objects filtered by the code column - * @method array findByAction(string $action) Return ChildCoupon objects filtered by the action column + * @method array findByType(string $type) Return ChildCoupon objects filtered by the type column + * @method array findByTitle(string $title) Return ChildCoupon objects filtered by the title column + * @method array findByShortDescription(string $short_description) Return ChildCoupon objects filtered by the short_description column + * @method array findByDescription(string $description) Return ChildCoupon objects filtered by the description column * @method array findByValue(double $value) Return ChildCoupon objects filtered by the value column - * @method array findByUsed(int $used) Return ChildCoupon objects filtered by the used column - * @method array findByAvailableSince(string $available_since) Return ChildCoupon objects filtered by the available_since column - * @method array findByDateLimit(string $date_limit) Return ChildCoupon objects filtered by the date_limit column - * @method array findByActivate(int $activate) Return ChildCoupon objects filtered by the activate column + * @method array findByIsUsed(int $is_used) Return ChildCoupon objects filtered by the is_used column + * @method array findByIsEnabled(int $is_enabled) Return ChildCoupon objects filtered by the is_enabled column + * @method array findByExpirationDate(string $expiration_date) Return ChildCoupon objects filtered by the expiration_date column + * @method array findBySerializedRules(string $serialized_rules) Return ChildCoupon objects filtered by the serialized_rules column * @method array findByCreatedAt(string $created_at) Return ChildCoupon objects filtered by the created_at column * @method array findByUpdatedAt(string $updated_at) Return ChildCoupon objects filtered by the updated_at column + * @method array findByVersion(int $version) Return ChildCoupon objects filtered by the version column * */ abstract class CouponQuery extends ModelCriteria { + // versionable behavior + + /** + * Whether the versioning is enabled + */ + static $isVersioningEnabled = true; + /** * Initializes internal state of \Thelia\Model\Base\CouponQuery object. * @@ -163,7 +195,7 @@ abstract class CouponQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT ID, CODE, ACTION, VALUE, USED, AVAILABLE_SINCE, DATE_LIMIT, ACTIVATE, CREATED_AT, UPDATED_AT FROM coupon WHERE ID = :p0'; + $sql = 'SELECT ID, CODE, TYPE, TITLE, SHORT_DESCRIPTION, DESCRIPTION, VALUE, IS_USED, IS_ENABLED, EXPIRATION_DATE, SERIALIZED_RULES, CREATED_AT, UPDATED_AT, VERSION FROM coupon WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); @@ -323,32 +355,119 @@ abstract class CouponQuery extends ModelCriteria } /** - * Filter the query on the action column + * Filter the query on the type column * * Example usage: * - * $query->filterByAction('fooValue'); // WHERE action = 'fooValue' - * $query->filterByAction('%fooValue%'); // WHERE action LIKE '%fooValue%' + * $query->filterByType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByType('%fooValue%'); // WHERE type LIKE '%fooValue%' * * - * @param string $action The value to use as filter. + * @param string $type 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 ChildCouponQuery The current query, for fluid interface */ - public function filterByAction($action = null, $comparison = null) + public function filterByType($type = null, $comparison = null) { if (null === $comparison) { - if (is_array($action)) { + if (is_array($type)) { $comparison = Criteria::IN; - } elseif (preg_match('/[\%\*]/', $action)) { - $action = str_replace('*', '%', $action); + } elseif (preg_match('/[\%\*]/', $type)) { + $type = str_replace('*', '%', $type); $comparison = Criteria::LIKE; } } - return $this->addUsingAlias(CouponTableMap::ACTION, $action, $comparison); + return $this->addUsingAlias(CouponTableMap::TYPE, $type, $comparison); + } + + /** + * Filter the query on the title column + * + * Example usage: + * + * $query->filterByTitle('fooValue'); // WHERE title = 'fooValue' + * $query->filterByTitle('%fooValue%'); // WHERE title LIKE '%fooValue%' + * + * + * @param string $title 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 ChildCouponQuery The current query, for fluid interface + */ + public function filterByTitle($title = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($title)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $title)) { + $title = str_replace('*', '%', $title); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponTableMap::TITLE, $title, $comparison); + } + + /** + * Filter the query on the short_description column + * + * Example usage: + * + * $query->filterByShortDescription('fooValue'); // WHERE short_description = 'fooValue' + * $query->filterByShortDescription('%fooValue%'); // WHERE short_description LIKE '%fooValue%' + * + * + * @param string $shortDescription 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 ChildCouponQuery The current query, for fluid interface + */ + public function filterByShortDescription($shortDescription = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($shortDescription)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $shortDescription)) { + $shortDescription = str_replace('*', '%', $shortDescription); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponTableMap::SHORT_DESCRIPTION, $shortDescription, $comparison); + } + + /** + * Filter the query on the description column + * + * Example usage: + * + * $query->filterByDescription('fooValue'); // WHERE description = 'fooValue' + * $query->filterByDescription('%fooValue%'); // WHERE description LIKE '%fooValue%' + * + * + * @param string $description 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 ChildCouponQuery The current query, for fluid interface + */ + public function filterByDescription($description = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($description)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $description)) { + $description = str_replace('*', '%', $description); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponTableMap::DESCRIPTION, $description, $comparison); } /** @@ -393,16 +512,16 @@ abstract class CouponQuery extends ModelCriteria } /** - * Filter the query on the used column + * Filter the query on the is_used column * * Example usage: * - * $query->filterByUsed(1234); // WHERE used = 1234 - * $query->filterByUsed(array(12, 34)); // WHERE used IN (12, 34) - * $query->filterByUsed(array('min' => 12)); // WHERE used > 12 + * $query->filterByIsUsed(1234); // WHERE is_used = 1234 + * $query->filterByIsUsed(array(12, 34)); // WHERE is_used IN (12, 34) + * $query->filterByIsUsed(array('min' => 12)); // WHERE is_used > 12 * * - * @param mixed $used The value to use as filter. + * @param mixed $isUsed The value to use as filter. * Use scalar values for equality. * Use array values for in_array() equivalent. * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. @@ -410,16 +529,16 @@ abstract class CouponQuery extends ModelCriteria * * @return ChildCouponQuery The current query, for fluid interface */ - public function filterByUsed($used = null, $comparison = null) + public function filterByIsUsed($isUsed = null, $comparison = null) { - if (is_array($used)) { + if (is_array($isUsed)) { $useMinMax = false; - if (isset($used['min'])) { - $this->addUsingAlias(CouponTableMap::USED, $used['min'], Criteria::GREATER_EQUAL); + if (isset($isUsed['min'])) { + $this->addUsingAlias(CouponTableMap::IS_USED, $isUsed['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } - if (isset($used['max'])) { - $this->addUsingAlias(CouponTableMap::USED, $used['max'], Criteria::LESS_EQUAL); + if (isset($isUsed['max'])) { + $this->addUsingAlias(CouponTableMap::IS_USED, $isUsed['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -430,20 +549,61 @@ abstract class CouponQuery extends ModelCriteria } } - return $this->addUsingAlias(CouponTableMap::USED, $used, $comparison); + return $this->addUsingAlias(CouponTableMap::IS_USED, $isUsed, $comparison); } /** - * Filter the query on the available_since column + * Filter the query on the is_enabled column * * Example usage: * - * $query->filterByAvailableSince('2011-03-14'); // WHERE available_since = '2011-03-14' - * $query->filterByAvailableSince('now'); // WHERE available_since = '2011-03-14' - * $query->filterByAvailableSince(array('max' => 'yesterday')); // WHERE available_since > '2011-03-13' + * $query->filterByIsEnabled(1234); // WHERE is_enabled = 1234 + * $query->filterByIsEnabled(array(12, 34)); // WHERE is_enabled IN (12, 34) + * $query->filterByIsEnabled(array('min' => 12)); // WHERE is_enabled > 12 * * - * @param mixed $availableSince The value to use as filter. + * @param mixed $isEnabled The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function filterByIsEnabled($isEnabled = null, $comparison = null) + { + if (is_array($isEnabled)) { + $useMinMax = false; + if (isset($isEnabled['min'])) { + $this->addUsingAlias(CouponTableMap::IS_ENABLED, $isEnabled['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($isEnabled['max'])) { + $this->addUsingAlias(CouponTableMap::IS_ENABLED, $isEnabled['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponTableMap::IS_ENABLED, $isEnabled, $comparison); + } + + /** + * Filter the query on the expiration_date column + * + * Example usage: + * + * $query->filterByExpirationDate('2011-03-14'); // WHERE expiration_date = '2011-03-14' + * $query->filterByExpirationDate('now'); // WHERE expiration_date = '2011-03-14' + * $query->filterByExpirationDate(array('max' => 'yesterday')); // WHERE expiration_date > '2011-03-13' + * + * + * @param mixed $expirationDate The value to use as filter. * Values can be integers (unix timestamps), DateTime objects, or strings. * Empty strings are treated as NULL. * Use scalar values for equality. @@ -453,16 +613,16 @@ abstract class CouponQuery extends ModelCriteria * * @return ChildCouponQuery The current query, for fluid interface */ - public function filterByAvailableSince($availableSince = null, $comparison = null) + public function filterByExpirationDate($expirationDate = null, $comparison = null) { - if (is_array($availableSince)) { + if (is_array($expirationDate)) { $useMinMax = false; - if (isset($availableSince['min'])) { - $this->addUsingAlias(CouponTableMap::AVAILABLE_SINCE, $availableSince['min'], Criteria::GREATER_EQUAL); + if (isset($expirationDate['min'])) { + $this->addUsingAlias(CouponTableMap::EXPIRATION_DATE, $expirationDate['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } - if (isset($availableSince['max'])) { - $this->addUsingAlias(CouponTableMap::AVAILABLE_SINCE, $availableSince['max'], Criteria::LESS_EQUAL); + if (isset($expirationDate['max'])) { + $this->addUsingAlias(CouponTableMap::EXPIRATION_DATE, $expirationDate['max'], Criteria::LESS_EQUAL); $useMinMax = true; } if ($useMinMax) { @@ -473,91 +633,36 @@ abstract class CouponQuery extends ModelCriteria } } - return $this->addUsingAlias(CouponTableMap::AVAILABLE_SINCE, $availableSince, $comparison); + return $this->addUsingAlias(CouponTableMap::EXPIRATION_DATE, $expirationDate, $comparison); } /** - * Filter the query on the date_limit column + * Filter the query on the serialized_rules column * * Example usage: * - * $query->filterByDateLimit('2011-03-14'); // WHERE date_limit = '2011-03-14' - * $query->filterByDateLimit('now'); // WHERE date_limit = '2011-03-14' - * $query->filterByDateLimit(array('max' => 'yesterday')); // WHERE date_limit > '2011-03-13' + * $query->filterBySerializedRules('fooValue'); // WHERE serialized_rules = 'fooValue' + * $query->filterBySerializedRules('%fooValue%'); // WHERE serialized_rules LIKE '%fooValue%' * * - * @param mixed $dateLimit The value to use as filter. - * Values can be integers (unix timestamps), DateTime objects, or strings. - * Empty strings are treated as NULL. - * Use scalar values for equality. - * Use array values for in_array() equivalent. - * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $serializedRules 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 ChildCouponQuery The current query, for fluid interface */ - public function filterByDateLimit($dateLimit = null, $comparison = null) + public function filterBySerializedRules($serializedRules = null, $comparison = null) { - if (is_array($dateLimit)) { - $useMinMax = false; - if (isset($dateLimit['min'])) { - $this->addUsingAlias(CouponTableMap::DATE_LIMIT, $dateLimit['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($dateLimit['max'])) { - $this->addUsingAlias(CouponTableMap::DATE_LIMIT, $dateLimit['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { + if (null === $comparison) { + if (is_array($serializedRules)) { $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $serializedRules)) { + $serializedRules = str_replace('*', '%', $serializedRules); + $comparison = Criteria::LIKE; } } - return $this->addUsingAlias(CouponTableMap::DATE_LIMIT, $dateLimit, $comparison); - } - - /** - * Filter the query on the activate column - * - * Example usage: - * - * $query->filterByActivate(1234); // WHERE activate = 1234 - * $query->filterByActivate(array(12, 34)); // WHERE activate IN (12, 34) - * $query->filterByActivate(array('min' => 12)); // WHERE activate > 12 - * - * - * @param mixed $activate The value to use as filter. - * Use scalar values for equality. - * Use array values for in_array() equivalent. - * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildCouponQuery The current query, for fluid interface - */ - public function filterByActivate($activate = null, $comparison = null) - { - if (is_array($activate)) { - $useMinMax = false; - if (isset($activate['min'])) { - $this->addUsingAlias(CouponTableMap::ACTIVATE, $activate['min'], Criteria::GREATER_EQUAL); - $useMinMax = true; - } - if (isset($activate['max'])) { - $this->addUsingAlias(CouponTableMap::ACTIVATE, $activate['max'], Criteria::LESS_EQUAL); - $useMinMax = true; - } - if ($useMinMax) { - return $this; - } - if (null === $comparison) { - $comparison = Criteria::IN; - } - } - - return $this->addUsingAlias(CouponTableMap::ACTIVATE, $activate, $comparison); + return $this->addUsingAlias(CouponTableMap::SERIALIZED_RULES, $serializedRules, $comparison); } /** @@ -647,40 +752,81 @@ abstract class CouponQuery extends ModelCriteria } /** - * Filter the query by a related \Thelia\Model\CouponRule object + * Filter the query on the version column * - * @param \Thelia\Model\CouponRule|ObjectCollection $couponRule the related object to use as filter + * Example usage: + * + * $query->filterByVersion(1234); // WHERE version = 1234 + * $query->filterByVersion(array(12, 34)); // WHERE version IN (12, 34) + * $query->filterByVersion(array('min' => 12)); // WHERE version > 12 + * + * + * @param mixed $version The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function filterByVersion($version = null, $comparison = null) + { + if (is_array($version)) { + $useMinMax = false; + if (isset($version['min'])) { + $this->addUsingAlias(CouponTableMap::VERSION, $version['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($version['max'])) { + $this->addUsingAlias(CouponTableMap::VERSION, $version['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponTableMap::VERSION, $version, $comparison); + } + + /** + * Filter the query by a related \Thelia\Model\CouponOrder object + * + * @param \Thelia\Model\CouponOrder|ObjectCollection $couponOrder the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildCouponQuery The current query, for fluid interface */ - public function filterByCouponRule($couponRule, $comparison = null) + public function filterByCouponOrder($couponOrder, $comparison = null) { - if ($couponRule instanceof \Thelia\Model\CouponRule) { + if ($couponOrder instanceof \Thelia\Model\CouponOrder) { return $this - ->addUsingAlias(CouponTableMap::ID, $couponRule->getCouponId(), $comparison); - } elseif ($couponRule instanceof ObjectCollection) { + ->addUsingAlias(CouponTableMap::CODE, $couponOrder->getCode(), $comparison); + } elseif ($couponOrder instanceof ObjectCollection) { return $this - ->useCouponRuleQuery() - ->filterByPrimaryKeys($couponRule->getPrimaryKeys()) + ->useCouponOrderQuery() + ->filterByPrimaryKeys($couponOrder->getPrimaryKeys()) ->endUse(); } else { - throw new PropelException('filterByCouponRule() only accepts arguments of type \Thelia\Model\CouponRule or Collection'); + throw new PropelException('filterByCouponOrder() only accepts arguments of type \Thelia\Model\CouponOrder or Collection'); } } /** - * Adds a JOIN clause to the query using the CouponRule relation + * Adds a JOIN clause to the query using the CouponOrder relation * * @param string $relationAlias optional alias for the relation * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * * @return ChildCouponQuery The current query, for fluid interface */ - public function joinCouponRule($relationAlias = null, $joinType = Criteria::INNER_JOIN) + public function joinCouponOrder($relationAlias = null, $joinType = Criteria::INNER_JOIN) { $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('CouponRule'); + $relationMap = $tableMap->getRelation('CouponOrder'); // create a ModelJoin object for this join $join = new ModelJoin(); @@ -695,14 +841,14 @@ abstract class CouponQuery extends ModelCriteria $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); $this->addJoinObject($join, $relationAlias); } else { - $this->addJoinObject($join, 'CouponRule'); + $this->addJoinObject($join, 'CouponOrder'); } return $this; } /** - * Use the CouponRule relation CouponRule object + * Use the CouponOrder relation CouponOrder object * * @see useQuery() * @@ -710,13 +856,159 @@ abstract class CouponQuery extends ModelCriteria * to be used as main alias in the secondary query * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' * - * @return \Thelia\Model\CouponRuleQuery A secondary query class using the current class as primary query + * @return \Thelia\Model\CouponOrderQuery A secondary query class using the current class as primary query */ - public function useCouponRuleQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + public function useCouponOrderQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) { return $this - ->joinCouponRule($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'CouponRule', '\Thelia\Model\CouponRuleQuery'); + ->joinCouponOrder($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CouponOrder', '\Thelia\Model\CouponOrderQuery'); + } + + /** + * Filter the query by a related \Thelia\Model\CouponI18n object + * + * @param \Thelia\Model\CouponI18n|ObjectCollection $couponI18n the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function filterByCouponI18n($couponI18n, $comparison = null) + { + if ($couponI18n instanceof \Thelia\Model\CouponI18n) { + return $this + ->addUsingAlias(CouponTableMap::ID, $couponI18n->getId(), $comparison); + } elseif ($couponI18n instanceof ObjectCollection) { + return $this + ->useCouponI18nQuery() + ->filterByPrimaryKeys($couponI18n->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCouponI18n() only accepts arguments of type \Thelia\Model\CouponI18n or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the CouponI18n relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function joinCouponI18n($relationAlias = null, $joinType = 'LEFT JOIN') + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CouponI18n'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'CouponI18n'); + } + + return $this; + } + + /** + * Use the CouponI18n relation CouponI18n object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\CouponI18nQuery A secondary query class using the current class as primary query + */ + public function useCouponI18nQuery($relationAlias = null, $joinType = 'LEFT JOIN') + { + return $this + ->joinCouponI18n($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CouponI18n', '\Thelia\Model\CouponI18nQuery'); + } + + /** + * Filter the query by a related \Thelia\Model\CouponVersion object + * + * @param \Thelia\Model\CouponVersion|ObjectCollection $couponVersion the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function filterByCouponVersion($couponVersion, $comparison = null) + { + if ($couponVersion instanceof \Thelia\Model\CouponVersion) { + return $this + ->addUsingAlias(CouponTableMap::ID, $couponVersion->getId(), $comparison); + } elseif ($couponVersion instanceof ObjectCollection) { + return $this + ->useCouponVersionQuery() + ->filterByPrimaryKeys($couponVersion->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByCouponVersion() only accepts arguments of type \Thelia\Model\CouponVersion or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the CouponVersion relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function joinCouponVersion($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('CouponVersion'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'CouponVersion'); + } + + return $this; + } + + /** + * Use the CouponVersion relation CouponVersion object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\CouponVersionQuery A secondary query class using the current class as primary query + */ + public function useCouponVersionQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCouponVersion($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CouponVersion', '\Thelia\Model\CouponVersionQuery'); } /** @@ -876,4 +1168,89 @@ abstract class CouponQuery extends ModelCriteria return $this->addAscendingOrderByColumn(CouponTableMap::CREATED_AT); } + // i18n behavior + + /** + * Adds a JOIN clause to the query using the i18n relation + * + * @param string $locale Locale to use for the join condition, e.g. 'fr_FR' + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join. + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + $relationName = $relationAlias ? $relationAlias : 'CouponI18n'; + + return $this + ->joinCouponI18n($relationAlias, $joinType) + ->addJoinCondition($relationName, $relationName . '.Locale = ?', $locale); + } + + /** + * Adds a JOIN clause to the query and hydrates the related I18n object. + * Shortcut for $c->joinI18n($locale)->with() + * + * @param string $locale Locale to use for the join condition, e.g. 'fr_FR' + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join. + * + * @return ChildCouponQuery The current query, for fluid interface + */ + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) + { + $this + ->joinI18n($locale, null, $joinType) + ->with('CouponI18n'); + $this->with['CouponI18n']->setIsWithOneToMany(false); + + return $this; + } + + /** + * Use the I18n relation query object + * + * @see useQuery() + * + * @param string $locale Locale to use for the join condition, e.g. 'fr_FR' + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'. Defaults to left join. + * + * @return ChildCouponI18nQuery A secondary query class using the current class as primary query + */ + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + { + return $this + ->joinI18n($locale, $relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'CouponI18n', '\Thelia\Model\CouponI18nQuery'); + } + + // versionable behavior + + /** + * Checks whether versioning is enabled + * + * @return boolean + */ + static public function isVersioningEnabled() + { + return self::$isVersioningEnabled; + } + + /** + * Enables versioning + */ + static public function enableVersioning() + { + self::$isVersioningEnabled = true; + } + + /** + * Disables versioning + */ + static public function disableVersioning() + { + self::$isVersioningEnabled = false; + } + } // CouponQuery diff --git a/core/lib/Thelia/Model/Base/CouponRule.php b/core/lib/Thelia/Model/Base/CouponRule.php old mode 100644 new mode 100755 index 5602b0044..8a34f5d0b --- a/core/lib/Thelia/Model/Base/CouponRule.php +++ b/core/lib/Thelia/Model/Base/CouponRule.php @@ -267,7 +267,7 @@ abstract class CouponRule implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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/CouponVersion.php b/core/lib/Thelia/Model/Base/CouponVersion.php new file mode 100644 index 000000000..34d525a7a --- /dev/null +++ b/core/lib/Thelia/Model/Base/CouponVersion.php @@ -0,0 +1,1941 @@ +version = 0; + } + + /** + * Initializes internal state of Thelia\Model\Base\CouponVersion object. + * @see applyDefaults() + */ + public function __construct() + { + $this->applyDefaultValues(); + } + + /** + * Returns whether the object has been modified. + * + * @return boolean True if the object has been modified. + */ + public function isModified() + { + return !empty($this->modifiedColumns); + } + + /** + * Has specified column been modified? + * + * @param string $col column fully qualified name (TableMap::TYPE_COLNAME), e.g. Book::AUTHOR_ID + * @return boolean True if $col has been modified. + */ + public function isColumnModified($col) + { + return in_array($col, $this->modifiedColumns); + } + + /** + * Get the columns that have been modified in this object. + * @return array A unique list of the modified column names for this object. + */ + public function getModifiedColumns() + { + return array_unique($this->modifiedColumns); + } + + /** + * Returns whether the object has ever been saved. This will + * be false, if the object was retrieved from storage or was created + * and then saved. + * + * @return true, if the object has never been persisted. + */ + public function isNew() + { + return $this->new; + } + + /** + * Setter for the isNew attribute. This method will be called + * by Propel-generated children and objects. + * + * @param boolean $b the state of the object. + */ + public function setNew($b) + { + $this->new = (Boolean) $b; + } + + /** + * Whether this object has been deleted. + * @return boolean The deleted state of this object. + */ + public function isDeleted() + { + return $this->deleted; + } + + /** + * Specify whether this object has been deleted. + * @param boolean $b The deleted state of this object. + * @return void + */ + public function setDeleted($b) + { + $this->deleted = (Boolean) $b; + } + + /** + * Sets the modified state for the object to be false. + * @param string $col If supplied, only the specified column is reset. + * @return void + */ + public function resetModified($col = null) + { + if (null !== $col) { + while (false !== ($offset = array_search($col, $this->modifiedColumns))) { + array_splice($this->modifiedColumns, $offset, 1); + } + } else { + $this->modifiedColumns = array(); + } + } + + /** + * Compares this with another CouponVersion instance. If + * obj is an instance of CouponVersion, delegates to + * equals(CouponVersion). Otherwise, returns false. + * + * @param obj The object to compare to. + * @return Whether equal to the object specified. + */ + public function equals($obj) + { + $thisclazz = get_class($this); + if (!is_object($obj) || !($obj instanceof $thisclazz)) { + return false; + } + + if ($this === $obj) { + return true; + } + + if (null === $this->getPrimaryKey() + || null === $obj->getPrimaryKey()) { + return false; + } + + return $this->getPrimaryKey() === $obj->getPrimaryKey(); + } + + /** + * If the primary key is not null, return the hashcode of the + * primary key. Otherwise, return the hash code of the object. + * + * @return int Hashcode + */ + public function hashCode() + { + if (null !== $this->getPrimaryKey()) { + return crc32(serialize($this->getPrimaryKey())); + } + + return crc32(serialize(clone $this)); + } + + /** + * Get the associative array of the virtual columns in this object + * + * @param string $name The virtual column name + * + * @return array + */ + public function getVirtualColumns() + { + return $this->virtualColumns; + } + + /** + * Checks the existence of a virtual column in this object + * + * @return boolean + */ + public function hasVirtualColumn($name) + { + return array_key_exists($name, $this->virtualColumns); + } + + /** + * Get the value of a virtual column in this object + * + * @return mixed + */ + public function getVirtualColumn($name) + { + if (!$this->hasVirtualColumn($name)) { + throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name)); + } + + return $this->virtualColumns[$name]; + } + + /** + * Set the value of a virtual column in this object + * + * @param string $name The virtual column name + * @param mixed $value The value to give to the virtual column + * + * @return CouponVersion The current object, for fluid interface + */ + public function setVirtualColumn($name, $value) + { + $this->virtualColumns[$name] = $value; + + return $this; + } + + /** + * Logs a message using Propel::log(). + * + * @param string $msg + * @param int $priority One of the Propel::LOG_* logging levels + * @return boolean + */ + protected function log($msg, $priority = Propel::LOG_INFO) + { + return Propel::log(get_class($this) . ': ' . $msg, $priority); + } + + /** + * Populate the current object from a string, using a given parser format + * + * $book = new Book(); + * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, + * or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param string $data The source data to import from + * + * @return CouponVersion The current object, for fluid interface + */ + public function importFrom($parser, $data) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $this->fromArray($parser->toArray($data), TableMap::TYPE_PHPNAME); + } + + /** + * Export the current object properties to a string, using a given parser format + * + * $book = BookQuery::create()->findPk(9012); + * echo $book->exportTo('JSON'); + * => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. + * @return string The exported data + */ + public function exportTo($parser, $includeLazyLoadColumns = true) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true)); + } + + /** + * Clean up internal collections prior to serializing + * Avoids recursive loops that turn into segmentation faults when serializing + */ + public function __sleep() + { + $this->clearAllReferences(); + + return array_keys(get_object_vars($this)); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [code] column value. + * + * @return string + */ + public function getCode() + { + + return $this->code; + } + + /** + * Get the [type] column value. + * + * @return string + */ + public function getType() + { + + return $this->type; + } + + /** + * Get the [title] column value. + * + * @return string + */ + public function getTitle() + { + + return $this->title; + } + + /** + * Get the [short_description] column value. + * + * @return string + */ + public function getShortDescription() + { + + return $this->short_description; + } + + /** + * Get the [description] column value. + * + * @return string + */ + public function getDescription() + { + + return $this->description; + } + + /** + * Get the [value] column value. + * + * @return double + */ + public function getValue() + { + + return $this->value; + } + + /** + * Get the [is_used] column value. + * + * @return int + */ + public function getIsUsed() + { + + return $this->is_used; + } + + /** + * Get the [is_enabled] column value. + * + * @return int + */ + public function getIsEnabled() + { + + return $this->is_enabled; + } + + /** + * Get the [optionally formatted] temporal [expiration_date] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is NULL, then the raw \DateTime object will be returned. + * + * @return mixed Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00 + * + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getExpirationDate($format = NULL) + { + if ($format === null) { + return $this->expiration_date; + } else { + return $this->expiration_date !== null ? $this->expiration_date->format($format) : null; + } + } + + /** + * Get the [serialized_rules] column value. + * + * @return string + */ + public function getSerializedRules() + { + + return $this->serialized_rules; + } + + /** + * Get the [optionally formatted] temporal [created_at] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is NULL, then the raw \DateTime object will be returned. + * + * @return mixed Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00 + * + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getCreatedAt($format = NULL) + { + if ($format === null) { + return $this->created_at; + } else { + return $this->created_at !== null ? $this->created_at->format($format) : null; + } + } + + /** + * Get the [optionally formatted] temporal [updated_at] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is NULL, then the raw \DateTime object will be returned. + * + * @return mixed Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00 + * + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getUpdatedAt($format = NULL) + { + if ($format === null) { + return $this->updated_at; + } else { + return $this->updated_at !== null ? $this->updated_at->format($format) : null; + } + } + + /** + * Get the [version] column value. + * + * @return int + */ + public function getVersion() + { + + return $this->version; + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = CouponVersionTableMap::ID; + } + + if ($this->aCoupon !== null && $this->aCoupon->getId() !== $v) { + $this->aCoupon = null; + } + + + return $this; + } // setId() + + /** + * Set the value of [code] column. + * + * @param string $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setCode($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->code !== $v) { + $this->code = $v; + $this->modifiedColumns[] = CouponVersionTableMap::CODE; + } + + + return $this; + } // setCode() + + /** + * Set the value of [type] column. + * + * @param string $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setType($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->type !== $v) { + $this->type = $v; + $this->modifiedColumns[] = CouponVersionTableMap::TYPE; + } + + + return $this; + } // setType() + + /** + * Set the value of [title] column. + * + * @param string $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setTitle($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->title !== $v) { + $this->title = $v; + $this->modifiedColumns[] = CouponVersionTableMap::TITLE; + } + + + return $this; + } // setTitle() + + /** + * Set the value of [short_description] column. + * + * @param string $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setShortDescription($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->short_description !== $v) { + $this->short_description = $v; + $this->modifiedColumns[] = CouponVersionTableMap::SHORT_DESCRIPTION; + } + + + return $this; + } // setShortDescription() + + /** + * Set the value of [description] column. + * + * @param string $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setDescription($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->description !== $v) { + $this->description = $v; + $this->modifiedColumns[] = CouponVersionTableMap::DESCRIPTION; + } + + + return $this; + } // setDescription() + + /** + * Set the value of [value] column. + * + * @param double $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setValue($v) + { + if ($v !== null) { + $v = (double) $v; + } + + if ($this->value !== $v) { + $this->value = $v; + $this->modifiedColumns[] = CouponVersionTableMap::VALUE; + } + + + return $this; + } // setValue() + + /** + * Set the value of [is_used] column. + * + * @param int $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setIsUsed($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->is_used !== $v) { + $this->is_used = $v; + $this->modifiedColumns[] = CouponVersionTableMap::IS_USED; + } + + + return $this; + } // setIsUsed() + + /** + * Set the value of [is_enabled] column. + * + * @param int $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setIsEnabled($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->is_enabled !== $v) { + $this->is_enabled = $v; + $this->modifiedColumns[] = CouponVersionTableMap::IS_ENABLED; + } + + + return $this; + } // setIsEnabled() + + /** + * Sets the value of [expiration_date] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or \DateTime value. + * Empty strings are treated as NULL. + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setExpirationDate($v) + { + $dt = PropelDateTime::newInstance($v, null, '\DateTime'); + if ($this->expiration_date !== null || $dt !== null) { + if ($dt !== $this->expiration_date) { + $this->expiration_date = $dt; + $this->modifiedColumns[] = CouponVersionTableMap::EXPIRATION_DATE; + } + } // if either are not null + + + return $this; + } // setExpirationDate() + + /** + * Set the value of [serialized_rules] column. + * + * @param string $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setSerializedRules($v) + { + if ($v !== null) { + $v = (string) $v; + } + + if ($this->serialized_rules !== $v) { + $this->serialized_rules = $v; + $this->modifiedColumns[] = CouponVersionTableMap::SERIALIZED_RULES; + } + + + return $this; + } // setSerializedRules() + + /** + * Sets the value of [created_at] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or \DateTime value. + * Empty strings are treated as NULL. + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setCreatedAt($v) + { + $dt = PropelDateTime::newInstance($v, null, '\DateTime'); + if ($this->created_at !== null || $dt !== null) { + if ($dt !== $this->created_at) { + $this->created_at = $dt; + $this->modifiedColumns[] = CouponVersionTableMap::CREATED_AT; + } + } // if either are not null + + + return $this; + } // setCreatedAt() + + /** + * Sets the value of [updated_at] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or \DateTime value. + * Empty strings are treated as NULL. + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setUpdatedAt($v) + { + $dt = PropelDateTime::newInstance($v, null, '\DateTime'); + if ($this->updated_at !== null || $dt !== null) { + if ($dt !== $this->updated_at) { + $this->updated_at = $dt; + $this->modifiedColumns[] = CouponVersionTableMap::UPDATED_AT; + } + } // if either are not null + + + return $this; + } // setUpdatedAt() + + /** + * Set the value of [version] column. + * + * @param int $v new value + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + */ + public function setVersion($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->version !== $v) { + $this->version = $v; + $this->modifiedColumns[] = CouponVersionTableMap::VERSION; + } + + + return $this; + } // setVersion() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + if ($this->version !== 0) { + return false; + } + + // otherwise, everything was equal, so return TRUE + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by DataFetcher->fetch(). + * @param int $startcol 0-based offset column which indicates which restultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) + { + try { + + + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : CouponVersionTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $this->id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : CouponVersionTableMap::translateFieldName('Code', TableMap::TYPE_PHPNAME, $indexType)]; + $this->code = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : CouponVersionTableMap::translateFieldName('Type', TableMap::TYPE_PHPNAME, $indexType)]; + $this->type = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : CouponVersionTableMap::translateFieldName('Title', TableMap::TYPE_PHPNAME, $indexType)]; + $this->title = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : CouponVersionTableMap::translateFieldName('ShortDescription', TableMap::TYPE_PHPNAME, $indexType)]; + $this->short_description = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : CouponVersionTableMap::translateFieldName('Description', TableMap::TYPE_PHPNAME, $indexType)]; + $this->description = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : CouponVersionTableMap::translateFieldName('Value', TableMap::TYPE_PHPNAME, $indexType)]; + $this->value = (null !== $col) ? (double) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 7 + $startcol : CouponVersionTableMap::translateFieldName('IsUsed', TableMap::TYPE_PHPNAME, $indexType)]; + $this->is_used = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 8 + $startcol : CouponVersionTableMap::translateFieldName('IsEnabled', TableMap::TYPE_PHPNAME, $indexType)]; + $this->is_enabled = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 9 + $startcol : CouponVersionTableMap::translateFieldName('ExpirationDate', TableMap::TYPE_PHPNAME, $indexType)]; + if ($col === '0000-00-00 00:00:00') { + $col = null; + } + $this->expiration_date = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 10 + $startcol : CouponVersionTableMap::translateFieldName('SerializedRules', TableMap::TYPE_PHPNAME, $indexType)]; + $this->serialized_rules = (null !== $col) ? (string) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 11 + $startcol : CouponVersionTableMap::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 ? 12 + $startcol : CouponVersionTableMap::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 ? 13 + $startcol : CouponVersionTableMap::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)]; + $this->version = (null !== $col) ? (int) $col : null; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + + return $startcol + 14; // 14 = CouponVersionTableMap::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating \Thelia\Model\CouponVersion object", 0, $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + if ($this->aCoupon !== null && $this->id !== $this->aCoupon->getId()) { + $this->aCoupon = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param ConnectionInterface $con (optional) The ConnectionInterface connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(CouponVersionTableMap::DATABASE_NAME); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $dataFetcher = ChildCouponVersionQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $row = $dataFetcher->fetch(); + $dataFetcher->close(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aCoupon = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param ConnectionInterface $con + * @return void + * @throws PropelException + * @see CouponVersion::setDeleted() + * @see CouponVersion::isDeleted() + */ + public function delete(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponVersionTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + try { + $deleteQuery = ChildCouponVersionQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see doSave() + */ + public function save(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponVersionTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + } else { + $ret = $ret && $this->preUpdate($con); + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + CouponVersionTableMap::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(ConnectionInterface $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aCoupon !== null) { + if ($this->aCoupon->isModified() || $this->aCoupon->isNew()) { + $affectedRows += $this->aCoupon->save($con); + } + $this->setCoupon($this->aCoupon); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param ConnectionInterface $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(ConnectionInterface $con) + { + $modifiedColumns = array(); + $index = 0; + + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(CouponVersionTableMap::ID)) { + $modifiedColumns[':p' . $index++] = 'ID'; + } + if ($this->isColumnModified(CouponVersionTableMap::CODE)) { + $modifiedColumns[':p' . $index++] = 'CODE'; + } + if ($this->isColumnModified(CouponVersionTableMap::TYPE)) { + $modifiedColumns[':p' . $index++] = 'TYPE'; + } + if ($this->isColumnModified(CouponVersionTableMap::TITLE)) { + $modifiedColumns[':p' . $index++] = 'TITLE'; + } + if ($this->isColumnModified(CouponVersionTableMap::SHORT_DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = 'SHORT_DESCRIPTION'; + } + if ($this->isColumnModified(CouponVersionTableMap::DESCRIPTION)) { + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; + } + if ($this->isColumnModified(CouponVersionTableMap::VALUE)) { + $modifiedColumns[':p' . $index++] = 'VALUE'; + } + if ($this->isColumnModified(CouponVersionTableMap::IS_USED)) { + $modifiedColumns[':p' . $index++] = 'IS_USED'; + } + if ($this->isColumnModified(CouponVersionTableMap::IS_ENABLED)) { + $modifiedColumns[':p' . $index++] = 'IS_ENABLED'; + } + if ($this->isColumnModified(CouponVersionTableMap::EXPIRATION_DATE)) { + $modifiedColumns[':p' . $index++] = 'EXPIRATION_DATE'; + } + if ($this->isColumnModified(CouponVersionTableMap::SERIALIZED_RULES)) { + $modifiedColumns[':p' . $index++] = 'SERIALIZED_RULES'; + } + if ($this->isColumnModified(CouponVersionTableMap::CREATED_AT)) { + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; + } + if ($this->isColumnModified(CouponVersionTableMap::UPDATED_AT)) { + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; + } + if ($this->isColumnModified(CouponVersionTableMap::VERSION)) { + $modifiedColumns[':p' . $index++] = 'VERSION'; + } + + $sql = sprintf( + 'INSERT INTO coupon_version (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case 'ID': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case 'CODE': + $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); + break; + case 'TYPE': + $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); + break; + case 'TITLE': + $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); + break; + case 'SHORT_DESCRIPTION': + $stmt->bindValue($identifier, $this->short_description, PDO::PARAM_STR); + break; + case 'DESCRIPTION': + $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); + break; + case 'VALUE': + $stmt->bindValue($identifier, $this->value, PDO::PARAM_STR); + break; + case 'IS_USED': + $stmt->bindValue($identifier, $this->is_used, PDO::PARAM_INT); + break; + case 'IS_ENABLED': + $stmt->bindValue($identifier, $this->is_enabled, PDO::PARAM_INT); + break; + case 'EXPIRATION_DATE': + $stmt->bindValue($identifier, $this->expiration_date ? $this->expiration_date->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); + break; + case 'SERIALIZED_RULES': + $stmt->bindValue($identifier, $this->serialized_rules, PDO::PARAM_STR); + break; + case 'CREATED_AT': + $stmt->bindValue($identifier, $this->created_at ? $this->created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); + break; + case 'UPDATED_AT': + $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); + break; + case 'VERSION': + $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); + } + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param ConnectionInterface $con + * + * @return Integer Number of updated rows + * @see doSave() + */ + protected function doUpdate(ConnectionInterface $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + + return $selectCriteria->doUpdate($valuesCriteria, $con); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return mixed Value of field. + */ + public function getByName($name, $type = TableMap::TYPE_PHPNAME) + { + $pos = CouponVersionTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getCode(); + break; + case 2: + return $this->getType(); + break; + case 3: + return $this->getTitle(); + break; + case 4: + return $this->getShortDescription(); + break; + case 5: + return $this->getDescription(); + break; + case 6: + return $this->getValue(); + break; + case 7: + return $this->getIsUsed(); + break; + case 8: + return $this->getIsEnabled(); + break; + case 9: + return $this->getExpirationDate(); + break; + case 10: + return $this->getSerializedRules(); + break; + case 11: + return $this->getCreatedAt(); + break; + case 12: + return $this->getUpdatedAt(); + break; + case 13: + return $this->getVersion(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['CouponVersion'][serialize($this->getPrimaryKey())])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['CouponVersion'][serialize($this->getPrimaryKey())] = true; + $keys = CouponVersionTableMap::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getCode(), + $keys[2] => $this->getType(), + $keys[3] => $this->getTitle(), + $keys[4] => $this->getShortDescription(), + $keys[5] => $this->getDescription(), + $keys[6] => $this->getValue(), + $keys[7] => $this->getIsUsed(), + $keys[8] => $this->getIsEnabled(), + $keys[9] => $this->getExpirationDate(), + $keys[10] => $this->getSerializedRules(), + $keys[11] => $this->getCreatedAt(), + $keys[12] => $this->getUpdatedAt(), + $keys[13] => $this->getVersion(), + ); + $virtualColumns = $this->virtualColumns; + foreach($virtualColumns as $key => $virtualColumn) + { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aCoupon) { + $result['Coupon'] = $this->aCoupon->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return void + */ + public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) + { + $pos = CouponVersionTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + + return $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setCode($value); + break; + case 2: + $this->setType($value); + break; + case 3: + $this->setTitle($value); + break; + case 4: + $this->setShortDescription($value); + break; + case 5: + $this->setDescription($value); + break; + case 6: + $this->setValue($value); + break; + case 7: + $this->setIsUsed($value); + break; + case 8: + $this->setIsEnabled($value); + break; + case 9: + $this->setExpirationDate($value); + break; + case 10: + $this->setSerializedRules($value); + break; + case 11: + $this->setCreatedAt($value); + break; + case 12: + $this->setUpdatedAt($value); + break; + case 13: + $this->setVersion($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * The default key type is the column's TableMap::TYPE_PHPNAME. + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) + { + $keys = CouponVersionTableMap::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setCode($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setType($arr[$keys[2]]); + if (array_key_exists($keys[3], $arr)) $this->setTitle($arr[$keys[3]]); + if (array_key_exists($keys[4], $arr)) $this->setShortDescription($arr[$keys[4]]); + if (array_key_exists($keys[5], $arr)) $this->setDescription($arr[$keys[5]]); + if (array_key_exists($keys[6], $arr)) $this->setValue($arr[$keys[6]]); + if (array_key_exists($keys[7], $arr)) $this->setIsUsed($arr[$keys[7]]); + if (array_key_exists($keys[8], $arr)) $this->setIsEnabled($arr[$keys[8]]); + if (array_key_exists($keys[9], $arr)) $this->setExpirationDate($arr[$keys[9]]); + if (array_key_exists($keys[10], $arr)) $this->setSerializedRules($arr[$keys[10]]); + if (array_key_exists($keys[11], $arr)) $this->setCreatedAt($arr[$keys[11]]); + if (array_key_exists($keys[12], $arr)) $this->setUpdatedAt($arr[$keys[12]]); + if (array_key_exists($keys[13], $arr)) $this->setVersion($arr[$keys[13]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(CouponVersionTableMap::DATABASE_NAME); + + if ($this->isColumnModified(CouponVersionTableMap::ID)) $criteria->add(CouponVersionTableMap::ID, $this->id); + if ($this->isColumnModified(CouponVersionTableMap::CODE)) $criteria->add(CouponVersionTableMap::CODE, $this->code); + if ($this->isColumnModified(CouponVersionTableMap::TYPE)) $criteria->add(CouponVersionTableMap::TYPE, $this->type); + if ($this->isColumnModified(CouponVersionTableMap::TITLE)) $criteria->add(CouponVersionTableMap::TITLE, $this->title); + if ($this->isColumnModified(CouponVersionTableMap::SHORT_DESCRIPTION)) $criteria->add(CouponVersionTableMap::SHORT_DESCRIPTION, $this->short_description); + if ($this->isColumnModified(CouponVersionTableMap::DESCRIPTION)) $criteria->add(CouponVersionTableMap::DESCRIPTION, $this->description); + if ($this->isColumnModified(CouponVersionTableMap::VALUE)) $criteria->add(CouponVersionTableMap::VALUE, $this->value); + if ($this->isColumnModified(CouponVersionTableMap::IS_USED)) $criteria->add(CouponVersionTableMap::IS_USED, $this->is_used); + if ($this->isColumnModified(CouponVersionTableMap::IS_ENABLED)) $criteria->add(CouponVersionTableMap::IS_ENABLED, $this->is_enabled); + if ($this->isColumnModified(CouponVersionTableMap::EXPIRATION_DATE)) $criteria->add(CouponVersionTableMap::EXPIRATION_DATE, $this->expiration_date); + if ($this->isColumnModified(CouponVersionTableMap::SERIALIZED_RULES)) $criteria->add(CouponVersionTableMap::SERIALIZED_RULES, $this->serialized_rules); + if ($this->isColumnModified(CouponVersionTableMap::CREATED_AT)) $criteria->add(CouponVersionTableMap::CREATED_AT, $this->created_at); + if ($this->isColumnModified(CouponVersionTableMap::UPDATED_AT)) $criteria->add(CouponVersionTableMap::UPDATED_AT, $this->updated_at); + if ($this->isColumnModified(CouponVersionTableMap::VERSION)) $criteria->add(CouponVersionTableMap::VERSION, $this->version); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(CouponVersionTableMap::DATABASE_NAME); + $criteria->add(CouponVersionTableMap::ID, $this->id); + $criteria->add(CouponVersionTableMap::VERSION, $this->version); + + return $criteria; + } + + /** + * Returns the composite primary key for this object. + * The array elements will be in same order as specified in XML. + * @return array + */ + public function getPrimaryKey() + { + $pks = array(); + $pks[0] = $this->getId(); + $pks[1] = $this->getVersion(); + + return $pks; + } + + /** + * Set the [composite] primary key. + * + * @param array $keys The elements of the composite key (order must match the order in XML file). + * @return void + */ + public function setPrimaryKey($keys) + { + $this->setId($keys[0]); + $this->setVersion($keys[1]); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return (null === $this->getId()) && (null === $this->getVersion()); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of \Thelia\Model\CouponVersion (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setId($this->getId()); + $copyObj->setCode($this->getCode()); + $copyObj->setType($this->getType()); + $copyObj->setTitle($this->getTitle()); + $copyObj->setShortDescription($this->getShortDescription()); + $copyObj->setDescription($this->getDescription()); + $copyObj->setValue($this->getValue()); + $copyObj->setIsUsed($this->getIsUsed()); + $copyObj->setIsEnabled($this->getIsEnabled()); + $copyObj->setExpirationDate($this->getExpirationDate()); + $copyObj->setSerializedRules($this->getSerializedRules()); + $copyObj->setCreatedAt($this->getCreatedAt()); + $copyObj->setUpdatedAt($this->getUpdatedAt()); + $copyObj->setVersion($this->getVersion()); + if ($makeNew) { + $copyObj->setNew(true); + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return \Thelia\Model\CouponVersion Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Declares an association between this object and a ChildCoupon object. + * + * @param ChildCoupon $v + * @return \Thelia\Model\CouponVersion The current object (for fluent API support) + * @throws PropelException + */ + public function setCoupon(ChildCoupon $v = null) + { + if ($v === null) { + $this->setId(NULL); + } else { + $this->setId($v->getId()); + } + + $this->aCoupon = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildCoupon object, it will not be re-added. + if ($v !== null) { + $v->addCouponVersion($this); + } + + + return $this; + } + + + /** + * Get the associated ChildCoupon object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildCoupon The associated ChildCoupon object. + * @throws PropelException + */ + public function getCoupon(ConnectionInterface $con = null) + { + if ($this->aCoupon === null && ($this->id !== null)) { + $this->aCoupon = ChildCouponQuery::create()->findPk($this->id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aCoupon->addCouponVersions($this); + */ + } + + return $this->aCoupon; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->code = null; + $this->type = null; + $this->title = null; + $this->short_description = null; + $this->description = null; + $this->value = null; + $this->is_used = null; + $this->is_enabled = null; + $this->expiration_date = null; + $this->serialized_rules = null; + $this->created_at = null; + $this->updated_at = null; + $this->version = null; + $this->alreadyInSave = false; + $this->clearAllReferences(); + $this->applyDefaultValues(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep) { + } // if ($deep) + + $this->aCoupon = null; + } + + /** + * Return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(CouponVersionTableMap::DEFAULT_STRING_FORMAT); + } + + /** + * Code to be run before persisting the object + * @param ConnectionInterface $con + * @return boolean + */ + public function preSave(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after persisting the object + * @param ConnectionInterface $con + */ + public function postSave(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before inserting to database + * @param ConnectionInterface $con + * @return boolean + */ + public function preInsert(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after inserting to database + * @param ConnectionInterface $con + */ + public function postInsert(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before updating the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preUpdate(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after updating the object in database + * @param ConnectionInterface $con + */ + public function postUpdate(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before deleting the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preDelete(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after deleting the object in database + * @param ConnectionInterface $con + */ + public function postDelete(ConnectionInterface $con = null) + { + + } + + + /** + * Derived method to catches calls to undefined methods. + * + * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). + * Allows to define default __call() behavior if you overwrite __call() + * + * @param string $name + * @param mixed $params + * + * @return array|string + */ + public function __call($name, $params) + { + if (0 === strpos($name, 'get')) { + $virtualColumn = substr($name, 3); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + + $virtualColumn = lcfirst($virtualColumn); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + } + + if (0 === strpos($name, 'from')) { + $format = substr($name, 4); + + return $this->importFrom($format, reset($params)); + } + + if (0 === strpos($name, 'to')) { + $format = substr($name, 2); + $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true; + + return $this->exportTo($format, $includeLazyLoadColumns); + } + + throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name)); + } + +} diff --git a/core/lib/Thelia/Model/Base/CouponVersionQuery.php b/core/lib/Thelia/Model/Base/CouponVersionQuery.php new file mode 100644 index 000000000..e1acec354 --- /dev/null +++ b/core/lib/Thelia/Model/Base/CouponVersionQuery.php @@ -0,0 +1,961 @@ +setModelAlias($modelAlias); + } + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(array(12, 34), $con); + * + * + * @param array[$id, $version] $key Primary key to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ChildCouponVersion|array|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = CouponVersionTableMap::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(CouponVersionTableMap::DATABASE_NAME); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildCouponVersion A model object, or null if the key is not found + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT ID, CODE, TYPE, TITLE, SHORT_DESCRIPTION, DESCRIPTION, VALUE, IS_USED, IS_ENABLED, EXPIRATION_DATE, SERIALIZED_RULES, CREATED_AT, UPDATED_AT, VERSION FROM coupon_version WHERE ID = :p0 AND VERSION = :p1'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); + $stmt->bindValue(':p1', $key[1], PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); + } + $obj = null; + if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { + $obj = new ChildCouponVersion(); + $obj->hydrate($row); + CouponVersionTableMap::addInstanceToPool($obj, serialize(array((string) $key[0], (string) $key[1]))); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildCouponVersion|array|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con); + * + * @param array $keys Primary keys to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($dataFetcher); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + $this->addUsingAlias(CouponVersionTableMap::ID, $key[0], Criteria::EQUAL); + $this->addUsingAlias(CouponVersionTableMap::VERSION, $key[1], Criteria::EQUAL); + + return $this; + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + if (empty($keys)) { + return $this->add(null, '1<>1', Criteria::CUSTOM); + } + foreach ($keys as $key) { + $cton0 = $this->getNewCriterion(CouponVersionTableMap::ID, $key[0], Criteria::EQUAL); + $cton1 = $this->getNewCriterion(CouponVersionTableMap::VERSION, $key[1], Criteria::EQUAL); + $cton0->addAnd($cton1); + $this->addOr($cton0); + } + + return $this; + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id > 12 + * + * + * @see filterByCoupon() + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(CouponVersionTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(CouponVersionTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::ID, $id, $comparison); + } + + /** + * Filter the query on the code column + * + * Example usage: + * + * $query->filterByCode('fooValue'); // WHERE code = 'fooValue' + * $query->filterByCode('%fooValue%'); // WHERE code LIKE '%fooValue%' + * + * + * @param string $code 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 ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByCode($code = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($code)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $code)) { + $code = str_replace('*', '%', $code); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::CODE, $code, $comparison); + } + + /** + * Filter the query on the type column + * + * Example usage: + * + * $query->filterByType('fooValue'); // WHERE type = 'fooValue' + * $query->filterByType('%fooValue%'); // WHERE type LIKE '%fooValue%' + * + * + * @param string $type 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 ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByType($type = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($type)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $type)) { + $type = str_replace('*', '%', $type); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::TYPE, $type, $comparison); + } + + /** + * Filter the query on the title column + * + * Example usage: + * + * $query->filterByTitle('fooValue'); // WHERE title = 'fooValue' + * $query->filterByTitle('%fooValue%'); // WHERE title LIKE '%fooValue%' + * + * + * @param string $title 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 ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByTitle($title = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($title)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $title)) { + $title = str_replace('*', '%', $title); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::TITLE, $title, $comparison); + } + + /** + * Filter the query on the short_description column + * + * Example usage: + * + * $query->filterByShortDescription('fooValue'); // WHERE short_description = 'fooValue' + * $query->filterByShortDescription('%fooValue%'); // WHERE short_description LIKE '%fooValue%' + * + * + * @param string $shortDescription 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 ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByShortDescription($shortDescription = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($shortDescription)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $shortDescription)) { + $shortDescription = str_replace('*', '%', $shortDescription); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::SHORT_DESCRIPTION, $shortDescription, $comparison); + } + + /** + * Filter the query on the description column + * + * Example usage: + * + * $query->filterByDescription('fooValue'); // WHERE description = 'fooValue' + * $query->filterByDescription('%fooValue%'); // WHERE description LIKE '%fooValue%' + * + * + * @param string $description 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 ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByDescription($description = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($description)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $description)) { + $description = str_replace('*', '%', $description); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::DESCRIPTION, $description, $comparison); + } + + /** + * Filter the query on the value column + * + * Example usage: + * + * $query->filterByValue(1234); // WHERE value = 1234 + * $query->filterByValue(array(12, 34)); // WHERE value IN (12, 34) + * $query->filterByValue(array('min' => 12)); // WHERE value > 12 + * + * + * @param mixed $value The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByValue($value = null, $comparison = null) + { + if (is_array($value)) { + $useMinMax = false; + if (isset($value['min'])) { + $this->addUsingAlias(CouponVersionTableMap::VALUE, $value['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($value['max'])) { + $this->addUsingAlias(CouponVersionTableMap::VALUE, $value['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::VALUE, $value, $comparison); + } + + /** + * Filter the query on the is_used column + * + * Example usage: + * + * $query->filterByIsUsed(1234); // WHERE is_used = 1234 + * $query->filterByIsUsed(array(12, 34)); // WHERE is_used IN (12, 34) + * $query->filterByIsUsed(array('min' => 12)); // WHERE is_used > 12 + * + * + * @param mixed $isUsed The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByIsUsed($isUsed = null, $comparison = null) + { + if (is_array($isUsed)) { + $useMinMax = false; + if (isset($isUsed['min'])) { + $this->addUsingAlias(CouponVersionTableMap::IS_USED, $isUsed['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($isUsed['max'])) { + $this->addUsingAlias(CouponVersionTableMap::IS_USED, $isUsed['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::IS_USED, $isUsed, $comparison); + } + + /** + * Filter the query on the is_enabled column + * + * Example usage: + * + * $query->filterByIsEnabled(1234); // WHERE is_enabled = 1234 + * $query->filterByIsEnabled(array(12, 34)); // WHERE is_enabled IN (12, 34) + * $query->filterByIsEnabled(array('min' => 12)); // WHERE is_enabled > 12 + * + * + * @param mixed $isEnabled The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByIsEnabled($isEnabled = null, $comparison = null) + { + if (is_array($isEnabled)) { + $useMinMax = false; + if (isset($isEnabled['min'])) { + $this->addUsingAlias(CouponVersionTableMap::IS_ENABLED, $isEnabled['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($isEnabled['max'])) { + $this->addUsingAlias(CouponVersionTableMap::IS_ENABLED, $isEnabled['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::IS_ENABLED, $isEnabled, $comparison); + } + + /** + * Filter the query on the expiration_date column + * + * Example usage: + * + * $query->filterByExpirationDate('2011-03-14'); // WHERE expiration_date = '2011-03-14' + * $query->filterByExpirationDate('now'); // WHERE expiration_date = '2011-03-14' + * $query->filterByExpirationDate(array('max' => 'yesterday')); // WHERE expiration_date > '2011-03-13' + * + * + * @param mixed $expirationDate The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByExpirationDate($expirationDate = null, $comparison = null) + { + if (is_array($expirationDate)) { + $useMinMax = false; + if (isset($expirationDate['min'])) { + $this->addUsingAlias(CouponVersionTableMap::EXPIRATION_DATE, $expirationDate['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($expirationDate['max'])) { + $this->addUsingAlias(CouponVersionTableMap::EXPIRATION_DATE, $expirationDate['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::EXPIRATION_DATE, $expirationDate, $comparison); + } + + /** + * Filter the query on the serialized_rules column + * + * Example usage: + * + * $query->filterBySerializedRules('fooValue'); // WHERE serialized_rules = 'fooValue' + * $query->filterBySerializedRules('%fooValue%'); // WHERE serialized_rules LIKE '%fooValue%' + * + * + * @param string $serializedRules 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 ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterBySerializedRules($serializedRules = null, $comparison = null) + { + if (null === $comparison) { + if (is_array($serializedRules)) { + $comparison = Criteria::IN; + } elseif (preg_match('/[\%\*]/', $serializedRules)) { + $serializedRules = str_replace('*', '%', $serializedRules); + $comparison = Criteria::LIKE; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::SERIALIZED_RULES, $serializedRules, $comparison); + } + + /** + * Filter the query on the created_at column + * + * Example usage: + * + * $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14' + * $query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14' + * $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13' + * + * + * @param mixed $createdAt The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByCreatedAt($createdAt = null, $comparison = null) + { + if (is_array($createdAt)) { + $useMinMax = false; + if (isset($createdAt['min'])) { + $this->addUsingAlias(CouponVersionTableMap::CREATED_AT, $createdAt['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($createdAt['max'])) { + $this->addUsingAlias(CouponVersionTableMap::CREATED_AT, $createdAt['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::CREATED_AT, $createdAt, $comparison); + } + + /** + * Filter the query on the updated_at column + * + * Example usage: + * + * $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14' + * $query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14' + * $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13' + * + * + * @param mixed $updatedAt The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByUpdatedAt($updatedAt = null, $comparison = null) + { + if (is_array($updatedAt)) { + $useMinMax = false; + if (isset($updatedAt['min'])) { + $this->addUsingAlias(CouponVersionTableMap::UPDATED_AT, $updatedAt['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($updatedAt['max'])) { + $this->addUsingAlias(CouponVersionTableMap::UPDATED_AT, $updatedAt['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::UPDATED_AT, $updatedAt, $comparison); + } + + /** + * Filter the query on the version column + * + * Example usage: + * + * $query->filterByVersion(1234); // WHERE version = 1234 + * $query->filterByVersion(array(12, 34)); // WHERE version IN (12, 34) + * $query->filterByVersion(array('min' => 12)); // WHERE version > 12 + * + * + * @param mixed $version The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByVersion($version = null, $comparison = null) + { + if (is_array($version)) { + $useMinMax = false; + if (isset($version['min'])) { + $this->addUsingAlias(CouponVersionTableMap::VERSION, $version['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($version['max'])) { + $this->addUsingAlias(CouponVersionTableMap::VERSION, $version['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(CouponVersionTableMap::VERSION, $version, $comparison); + } + + /** + * Filter the query by a related \Thelia\Model\Coupon object + * + * @param \Thelia\Model\Coupon|ObjectCollection $coupon The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function filterByCoupon($coupon, $comparison = null) + { + if ($coupon instanceof \Thelia\Model\Coupon) { + return $this + ->addUsingAlias(CouponVersionTableMap::ID, $coupon->getId(), $comparison); + } elseif ($coupon instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(CouponVersionTableMap::ID, $coupon->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByCoupon() only accepts arguments of type \Thelia\Model\Coupon or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Coupon relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function joinCoupon($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Coupon'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Coupon'); + } + + return $this; + } + + /** + * Use the Coupon relation Coupon object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\CouponQuery A secondary query class using the current class as primary query + */ + public function useCouponQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinCoupon($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Coupon', '\Thelia\Model\CouponQuery'); + } + + /** + * Exclude object from result + * + * @param ChildCouponVersion $couponVersion Object to remove from the list of results + * + * @return ChildCouponVersionQuery The current query, for fluid interface + */ + public function prune($couponVersion = null) + { + if ($couponVersion) { + $this->addCond('pruneCond0', $this->getAliasedColName(CouponVersionTableMap::ID), $couponVersion->getId(), Criteria::NOT_EQUAL); + $this->addCond('pruneCond1', $this->getAliasedColName(CouponVersionTableMap::VERSION), $couponVersion->getVersion(), Criteria::NOT_EQUAL); + $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); + } + + return $this; + } + + /** + * Deletes all rows from the coupon_version table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public function doDeleteAll(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponVersionTableMap::DATABASE_NAME); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += parent::doDeleteAll($con); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + CouponVersionTableMap::clearInstancePool(); + CouponVersionTableMap::clearRelatedInstancePool(); + + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $affectedRows; + } + + /** + * Performs a DELETE on the database, given a ChildCouponVersion or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChildCouponVersion object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public function delete(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponVersionTableMap::DATABASE_NAME); + } + + $criteria = $this; + + // Set the correct dbName + $criteria->setDbName(CouponVersionTableMap::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + + CouponVersionTableMap::removeInstanceFromPool($criteria); + + $affectedRows += ModelCriteria::delete($con); + CouponVersionTableMap::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + } + +} // CouponVersionQuery diff --git a/core/lib/Thelia/Model/Base/Currency.php b/core/lib/Thelia/Model/Base/Currency.php old mode 100644 new mode 100755 index 77718992f..f99288679 --- a/core/lib/Thelia/Model/Base/Currency.php +++ b/core/lib/Thelia/Model/Base/Currency.php @@ -149,7 +149,7 @@ abstract class Currency implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -337,7 +337,7 @@ abstract class Currency implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2681,7 +2681,7 @@ abstract class Currency implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collOrders instanceof Collection) { @@ -2735,7 +2735,7 @@ abstract class Currency implements ActiveRecordInterface * * @return ChildCurrency The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2759,7 +2759,7 @@ abstract class Currency implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildCurrencyI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collCurrencyI18ns) { @@ -2794,7 +2794,7 @@ abstract class Currency implements ActiveRecordInterface * * @return ChildCurrency The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildCurrencyI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/CurrencyI18n.php b/core/lib/Thelia/Model/Base/CurrencyI18n.php old mode 100644 new mode 100755 index eb86a87c4..931c3acbf --- a/core/lib/Thelia/Model/Base/CurrencyI18n.php +++ b/core/lib/Thelia/Model/Base/CurrencyI18n.php @@ -61,7 +61,7 @@ abstract class CurrencyI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -93,7 +93,7 @@ abstract class CurrencyI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -254,7 +254,7 @@ abstract class CurrencyI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -462,7 +462,7 @@ abstract class CurrencyI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/CurrencyI18nQuery.php b/core/lib/Thelia/Model/Base/CurrencyI18nQuery.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 index eb4b1b2f7..9b4ecf51e --- a/core/lib/Thelia/Model/Base/CurrencyQuery.php +++ b/core/lib/Thelia/Model/Base/CurrencyQuery.php @@ -1025,7 +1025,7 @@ abstract class CurrencyQuery extends ModelCriteria * * @return ChildCurrencyQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'CurrencyI18n'; @@ -1043,7 +1043,7 @@ abstract class CurrencyQuery extends ModelCriteria * * @return ChildCurrencyQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -1064,7 +1064,7 @@ abstract class CurrencyQuery extends ModelCriteria * * @return ChildCurrencyI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Customer.php b/core/lib/Thelia/Model/Base/Customer.php old mode 100644 new mode 100755 index c3315ac6f..3d87f3e28 --- a/core/lib/Thelia/Model/Base/Customer.php +++ b/core/lib/Thelia/Model/Base/Customer.php @@ -352,7 +352,7 @@ abstract class Customer implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index 5f8b11dd9..dcf271206 --- a/core/lib/Thelia/Model/Base/CustomerTitle.php +++ b/core/lib/Thelia/Model/Base/CustomerTitle.php @@ -124,7 +124,7 @@ abstract class CustomerTitle implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -319,7 +319,7 @@ abstract class CustomerTitle implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2106,7 +2106,7 @@ abstract class CustomerTitle implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collCustomers instanceof Collection) { @@ -2156,7 +2156,7 @@ abstract class CustomerTitle implements ActiveRecordInterface * * @return ChildCustomerTitle The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2180,7 +2180,7 @@ abstract class CustomerTitle implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildCustomerTitleI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collCustomerTitleI18ns) { @@ -2215,7 +2215,7 @@ abstract class CustomerTitle implements ActiveRecordInterface * * @return ChildCustomerTitle The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildCustomerTitleI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/CustomerTitleI18n.php b/core/lib/Thelia/Model/Base/CustomerTitleI18n.php old mode 100644 new mode 100755 index c68b87123..4ea186061 --- a/core/lib/Thelia/Model/Base/CustomerTitleI18n.php +++ b/core/lib/Thelia/Model/Base/CustomerTitleI18n.php @@ -61,7 +61,7 @@ abstract class CustomerTitleI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -99,7 +99,7 @@ abstract class CustomerTitleI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -260,7 +260,7 @@ abstract class CustomerTitleI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -500,7 +500,7 @@ abstract class CustomerTitleI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index ea34c8c91..1c4be4081 --- a/core/lib/Thelia/Model/Base/CustomerTitleQuery.php +++ b/core/lib/Thelia/Model/Base/CustomerTitleQuery.php @@ -825,7 +825,7 @@ abstract class CustomerTitleQuery extends ModelCriteria * * @return ChildCustomerTitleQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'CustomerTitleI18n'; @@ -843,7 +843,7 @@ abstract class CustomerTitleQuery extends ModelCriteria * * @return ChildCustomerTitleQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -864,7 +864,7 @@ abstract class CustomerTitleQuery extends ModelCriteria * * @return ChildCustomerTitleI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Delivzone.php b/core/lib/Thelia/Model/Base/Delivzone.php old mode 100644 new mode 100755 index 08125044e..deb21997e --- a/core/lib/Thelia/Model/Base/Delivzone.php +++ b/core/lib/Thelia/Model/Base/Delivzone.php @@ -255,7 +255,7 @@ abstract class Delivzone implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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/Feature.php b/core/lib/Thelia/Model/Base/Feature.php old mode 100644 new mode 100755 index 0dddd14e0..070bac50b --- a/core/lib/Thelia/Model/Base/Feature.php +++ b/core/lib/Thelia/Model/Base/Feature.php @@ -139,7 +139,7 @@ abstract class Feature implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -346,7 +346,7 @@ abstract class Feature implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2628,7 +2628,7 @@ abstract class Feature implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collFeatureAvs instanceof Collection) { @@ -2686,7 +2686,7 @@ abstract class Feature implements ActiveRecordInterface * * @return ChildFeature The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2710,7 +2710,7 @@ abstract class Feature implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildFeatureI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collFeatureI18ns) { @@ -2745,7 +2745,7 @@ abstract class Feature implements ActiveRecordInterface * * @return ChildFeature The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildFeatureI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/FeatureAv.php b/core/lib/Thelia/Model/Base/FeatureAv.php old mode 100644 new mode 100755 index b09a27cec..14e6cd35c --- a/core/lib/Thelia/Model/Base/FeatureAv.php +++ b/core/lib/Thelia/Model/Base/FeatureAv.php @@ -122,7 +122,7 @@ abstract class FeatureAv implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -298,7 +298,7 @@ abstract class FeatureAv implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1900,7 +1900,7 @@ abstract class FeatureAv implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collFeatureProducts instanceof Collection) { @@ -1947,7 +1947,7 @@ abstract class FeatureAv implements ActiveRecordInterface * * @return ChildFeatureAv The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1971,7 +1971,7 @@ abstract class FeatureAv implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildFeatureAvI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collFeatureAvI18ns) { @@ -2006,7 +2006,7 @@ abstract class FeatureAv implements ActiveRecordInterface * * @return ChildFeatureAv The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildFeatureAvI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/FeatureAvI18n.php b/core/lib/Thelia/Model/Base/FeatureAvI18n.php old mode 100644 new mode 100755 index 7cbca8129..a508d6075 --- a/core/lib/Thelia/Model/Base/FeatureAvI18n.php +++ b/core/lib/Thelia/Model/Base/FeatureAvI18n.php @@ -61,7 +61,7 @@ abstract class FeatureAvI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class FeatureAvI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class FeatureAvI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class FeatureAvI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index fb3796c97..6b3af4ed9 --- a/core/lib/Thelia/Model/Base/FeatureAvQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureAvQuery.php @@ -841,7 +841,7 @@ abstract class FeatureAvQuery extends ModelCriteria * * @return ChildFeatureAvQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'FeatureAvI18n'; @@ -859,7 +859,7 @@ abstract class FeatureAvQuery extends ModelCriteria * * @return ChildFeatureAvQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -880,7 +880,7 @@ abstract class FeatureAvQuery extends ModelCriteria * * @return ChildFeatureAvI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/FeatureCategory.php b/core/lib/Thelia/Model/Base/FeatureCategory.php old mode 100644 new mode 100755 index f3ce14349..035e077d2 --- a/core/lib/Thelia/Model/Base/FeatureCategory.php +++ b/core/lib/Thelia/Model/Base/FeatureCategory.php @@ -262,7 +262,7 @@ abstract class FeatureCategory implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index 0ede8eddb..06964ee19 --- a/core/lib/Thelia/Model/Base/FeatureI18n.php +++ b/core/lib/Thelia/Model/Base/FeatureI18n.php @@ -61,7 +61,7 @@ abstract class FeatureI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class FeatureI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class FeatureI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class FeatureI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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/FeatureProduct.php b/core/lib/Thelia/Model/Base/FeatureProduct.php old mode 100644 new mode 100755 index b68f4acd2..4af200d51 --- a/core/lib/Thelia/Model/Base/FeatureProduct.php +++ b/core/lib/Thelia/Model/Base/FeatureProduct.php @@ -287,7 +287,7 @@ abstract class FeatureProduct implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** diff --git a/core/lib/Thelia/Model/Base/FeatureProductQuery.php b/core/lib/Thelia/Model/Base/FeatureProductQuery.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 index 9b00e812e..f1fc81a3f --- a/core/lib/Thelia/Model/Base/FeatureQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureQuery.php @@ -931,7 +931,7 @@ abstract class FeatureQuery extends ModelCriteria * * @return ChildFeatureQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'FeatureI18n'; @@ -949,7 +949,7 @@ abstract class FeatureQuery extends ModelCriteria * * @return ChildFeatureQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -970,7 +970,7 @@ abstract class FeatureQuery extends ModelCriteria * * @return ChildFeatureI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Folder.php b/core/lib/Thelia/Model/Base/Folder.php old mode 100644 new mode 100755 index 6ee28e7ff..8899ae6be --- a/core/lib/Thelia/Model/Base/Folder.php +++ b/core/lib/Thelia/Model/Base/Folder.php @@ -180,7 +180,7 @@ abstract class Folder implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -407,7 +407,7 @@ abstract class Folder implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -3460,7 +3460,7 @@ abstract class Folder implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collRewritings instanceof Collection) { @@ -3526,7 +3526,7 @@ abstract class Folder implements ActiveRecordInterface * * @return ChildFolder The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -3550,7 +3550,7 @@ abstract class Folder implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildFolderI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collFolderI18ns) { @@ -3585,7 +3585,7 @@ abstract class Folder implements ActiveRecordInterface * * @return ChildFolder The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildFolderI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/FolderDocument.php b/core/lib/Thelia/Model/Base/FolderDocument.php old mode 100644 new mode 100755 index 31e7c57a6..fbe0c91b1 --- a/core/lib/Thelia/Model/Base/FolderDocument.php +++ b/core/lib/Thelia/Model/Base/FolderDocument.php @@ -120,7 +120,7 @@ abstract class FolderDocument implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class FolderDocument implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class FolderDocument implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collFolderDocumentI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class FolderDocument implements ActiveRecordInterface * * @return ChildFolderDocument The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class FolderDocument implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildFolderDocumentI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collFolderDocumentI18ns) { @@ -1742,7 +1742,7 @@ abstract class FolderDocument implements ActiveRecordInterface * * @return ChildFolderDocument The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildFolderDocumentI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/FolderDocumentI18n.php b/core/lib/Thelia/Model/Base/FolderDocumentI18n.php old mode 100644 new mode 100755 index d39a49af7..57a38034f --- a/core/lib/Thelia/Model/Base/FolderDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/FolderDocumentI18n.php @@ -61,7 +61,7 @@ abstract class FolderDocumentI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class FolderDocumentI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class FolderDocumentI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class FolderDocumentI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/FolderDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/FolderDocumentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FolderDocumentQuery.php b/core/lib/Thelia/Model/Base/FolderDocumentQuery.php old mode 100644 new mode 100755 index b1c41a29e..85ed5c241 --- a/core/lib/Thelia/Model/Base/FolderDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/FolderDocumentQuery.php @@ -797,7 +797,7 @@ abstract class FolderDocumentQuery extends ModelCriteria * * @return ChildFolderDocumentQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'FolderDocumentI18n'; @@ -815,7 +815,7 @@ abstract class FolderDocumentQuery extends ModelCriteria * * @return ChildFolderDocumentQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class FolderDocumentQuery extends ModelCriteria * * @return ChildFolderDocumentI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/FolderI18n.php b/core/lib/Thelia/Model/Base/FolderI18n.php old mode 100644 new mode 100755 index fcdc66705..12d627cac --- a/core/lib/Thelia/Model/Base/FolderI18n.php +++ b/core/lib/Thelia/Model/Base/FolderI18n.php @@ -61,7 +61,7 @@ abstract class FolderI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class FolderI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class FolderI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class FolderI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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/FolderImage.php b/core/lib/Thelia/Model/Base/FolderImage.php old mode 100644 new mode 100755 index 46c39060d..f1eb8a5ab --- a/core/lib/Thelia/Model/Base/FolderImage.php +++ b/core/lib/Thelia/Model/Base/FolderImage.php @@ -120,7 +120,7 @@ abstract class FolderImage implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class FolderImage implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class FolderImage implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collFolderImageI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class FolderImage implements ActiveRecordInterface * * @return ChildFolderImage The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class FolderImage implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildFolderImageI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collFolderImageI18ns) { @@ -1742,7 +1742,7 @@ abstract class FolderImage implements ActiveRecordInterface * * @return ChildFolderImage The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildFolderImageI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/FolderImageI18n.php b/core/lib/Thelia/Model/Base/FolderImageI18n.php old mode 100644 new mode 100755 index d5cc004d1..894b6ec0f --- a/core/lib/Thelia/Model/Base/FolderImageI18n.php +++ b/core/lib/Thelia/Model/Base/FolderImageI18n.php @@ -61,7 +61,7 @@ abstract class FolderImageI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class FolderImageI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class FolderImageI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class FolderImageI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/FolderImageI18nQuery.php b/core/lib/Thelia/Model/Base/FolderImageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/FolderImageQuery.php b/core/lib/Thelia/Model/Base/FolderImageQuery.php old mode 100644 new mode 100755 index ca12e098e..4ea930e20 --- a/core/lib/Thelia/Model/Base/FolderImageQuery.php +++ b/core/lib/Thelia/Model/Base/FolderImageQuery.php @@ -797,7 +797,7 @@ abstract class FolderImageQuery extends ModelCriteria * * @return ChildFolderImageQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'FolderImageI18n'; @@ -815,7 +815,7 @@ abstract class FolderImageQuery extends ModelCriteria * * @return ChildFolderImageQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class FolderImageQuery extends ModelCriteria * * @return ChildFolderImageI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/FolderQuery.php b/core/lib/Thelia/Model/Base/FolderQuery.php old mode 100644 new mode 100755 index 893bb9819..22d2f3735 --- a/core/lib/Thelia/Model/Base/FolderQuery.php +++ b/core/lib/Thelia/Model/Base/FolderQuery.php @@ -1262,7 +1262,7 @@ abstract class FolderQuery extends ModelCriteria * * @return ChildFolderQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'FolderI18n'; @@ -1280,7 +1280,7 @@ abstract class FolderQuery extends ModelCriteria * * @return ChildFolderQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -1301,7 +1301,7 @@ abstract class FolderQuery extends ModelCriteria * * @return ChildFolderI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/FolderVersion.php b/core/lib/Thelia/Model/Base/FolderVersion.php old mode 100644 new mode 100755 index 4f6305b7e..ec588dcbd --- a/core/lib/Thelia/Model/Base/FolderVersion.php +++ b/core/lib/Thelia/Model/Base/FolderVersion.php @@ -292,7 +292,7 @@ abstract class FolderVersion implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index 9cfde2bdc..eed65d778 --- a/core/lib/Thelia/Model/Base/Group.php +++ b/core/lib/Thelia/Model/Base/Group.php @@ -139,7 +139,7 @@ abstract class Group implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -339,7 +339,7 @@ abstract class Group implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2786,7 +2786,7 @@ abstract class Group implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collAdminGroups instanceof Collection) { @@ -2848,7 +2848,7 @@ abstract class Group implements ActiveRecordInterface * * @return ChildGroup The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2872,7 +2872,7 @@ abstract class Group implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildGroupI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collGroupI18ns) { @@ -2907,7 +2907,7 @@ abstract class Group implements ActiveRecordInterface * * @return ChildGroup The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildGroupI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/GroupI18n.php b/core/lib/Thelia/Model/Base/GroupI18n.php old mode 100644 new mode 100755 index 4de63ea63..4ba0aac29 --- a/core/lib/Thelia/Model/Base/GroupI18n.php +++ b/core/lib/Thelia/Model/Base/GroupI18n.php @@ -61,7 +61,7 @@ abstract class GroupI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class GroupI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class GroupI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class GroupI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index 620ca9c91..82d6056f2 --- a/core/lib/Thelia/Model/Base/GroupModule.php +++ b/core/lib/Thelia/Model/Base/GroupModule.php @@ -282,7 +282,7 @@ abstract class GroupModule implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index d0eded79b..8ca963848 --- a/core/lib/Thelia/Model/Base/GroupQuery.php +++ b/core/lib/Thelia/Model/Base/GroupQuery.php @@ -891,7 +891,7 @@ abstract class GroupQuery extends ModelCriteria * * @return ChildGroupQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'GroupI18n'; @@ -909,7 +909,7 @@ abstract class GroupQuery extends ModelCriteria * * @return ChildGroupQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -930,7 +930,7 @@ abstract class GroupQuery extends ModelCriteria * * @return ChildGroupI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/GroupResource.php b/core/lib/Thelia/Model/Base/GroupResource.php old mode 100644 new mode 100755 index 84d6006b0..ea6c0ff47 --- a/core/lib/Thelia/Model/Base/GroupResource.php +++ b/core/lib/Thelia/Model/Base/GroupResource.php @@ -290,7 +290,7 @@ abstract class GroupResource implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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/Lang.php b/core/lib/Thelia/Model/Base/Lang.php old mode 100644 new mode 100755 index 3379594ef..293b0f3a7 --- a/core/lib/Thelia/Model/Base/Lang.php +++ b/core/lib/Thelia/Model/Base/Lang.php @@ -272,7 +272,7 @@ abstract class Lang implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index a2327f388..5245c3765 --- a/core/lib/Thelia/Model/Base/Message.php +++ b/core/lib/Thelia/Model/Base/Message.php @@ -141,7 +141,7 @@ abstract class Message implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -338,7 +338,7 @@ abstract class Message implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2056,7 +2056,7 @@ abstract class Message implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collMessageI18ns instanceof Collection) { @@ -2102,7 +2102,7 @@ abstract class Message implements ActiveRecordInterface * * @return ChildMessage The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2126,7 +2126,7 @@ abstract class Message implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildMessageI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collMessageI18ns) { @@ -2161,7 +2161,7 @@ abstract class Message implements ActiveRecordInterface * * @return ChildMessage The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildMessageI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/MessageI18n.php b/core/lib/Thelia/Model/Base/MessageI18n.php old mode 100644 new mode 100755 index 4d1a532fe..575e22907 --- a/core/lib/Thelia/Model/Base/MessageI18n.php +++ b/core/lib/Thelia/Model/Base/MessageI18n.php @@ -61,7 +61,7 @@ abstract class MessageI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -105,7 +105,7 @@ abstract class MessageI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -266,7 +266,7 @@ abstract class MessageI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -538,7 +538,7 @@ abstract class MessageI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index cf0155f36..938a16aab --- a/core/lib/Thelia/Model/Base/MessageQuery.php +++ b/core/lib/Thelia/Model/Base/MessageQuery.php @@ -913,7 +913,7 @@ abstract class MessageQuery extends ModelCriteria * * @return ChildMessageQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'MessageI18n'; @@ -931,7 +931,7 @@ abstract class MessageQuery extends ModelCriteria * * @return ChildMessageQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -952,7 +952,7 @@ abstract class MessageQuery extends ModelCriteria * * @return ChildMessageI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/MessageVersion.php b/core/lib/Thelia/Model/Base/MessageVersion.php old mode 100644 new mode 100755 index 0781a503a..e425b5c50 --- a/core/lib/Thelia/Model/Base/MessageVersion.php +++ b/core/lib/Thelia/Model/Base/MessageVersion.php @@ -292,7 +292,7 @@ abstract class MessageVersion implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index c1ee2ed8d..76c391207 --- a/core/lib/Thelia/Model/Base/Module.php +++ b/core/lib/Thelia/Model/Base/Module.php @@ -127,7 +127,7 @@ abstract class Module implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -303,7 +303,7 @@ abstract class Module implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1910,7 +1910,7 @@ abstract class Module implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collGroupModules instanceof Collection) { @@ -1956,7 +1956,7 @@ abstract class Module implements ActiveRecordInterface * * @return ChildModule The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1980,7 +1980,7 @@ abstract class Module implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildModuleI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collModuleI18ns) { @@ -2015,7 +2015,7 @@ abstract class Module implements ActiveRecordInterface * * @return ChildModule The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildModuleI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ModuleI18n.php b/core/lib/Thelia/Model/Base/ModuleI18n.php old mode 100644 new mode 100755 index fbb4293ba..d31dda0ba --- a/core/lib/Thelia/Model/Base/ModuleI18n.php +++ b/core/lib/Thelia/Model/Base/ModuleI18n.php @@ -61,7 +61,7 @@ abstract class ModuleI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ModuleI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ModuleI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ModuleI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index e1bd9de68..7db21ca22 --- a/core/lib/Thelia/Model/Base/ModuleQuery.php +++ b/core/lib/Thelia/Model/Base/ModuleQuery.php @@ -838,7 +838,7 @@ abstract class ModuleQuery extends ModelCriteria * * @return ChildModuleQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ModuleI18n'; @@ -856,7 +856,7 @@ abstract class ModuleQuery extends ModelCriteria * * @return ChildModuleQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -877,7 +877,7 @@ abstract class ModuleQuery extends ModelCriteria * * @return ChildModuleI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Order.php b/core/lib/Thelia/Model/Base/Order.php old mode 100644 new mode 100755 index b815aff34..3c47ce415 --- a/core/lib/Thelia/Model/Base/Order.php +++ b/core/lib/Thelia/Model/Base/Order.php @@ -388,7 +388,7 @@ abstract class Order implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2842,6 +2842,31 @@ abstract class Order implements ActiveRecordInterface return $this; } + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this Order is new, it will return + * an empty collection; or if this Order has previously + * been saved, it will retrieve related CouponOrders from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in Order. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildCouponOrder[] List of ChildCouponOrder objects + */ + public function getCouponOrdersJoinCoupon($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildCouponOrderQuery::create(null, $criteria); + $query->joinWith('Coupon', $joinBehavior); + + return $this->getCouponOrders($query, $con); + } + /** * Clears the current object and sets all attributes to their default values */ diff --git a/core/lib/Thelia/Model/Base/OrderAddress.php b/core/lib/Thelia/Model/Base/OrderAddress.php old mode 100644 new mode 100755 index b5ff32951..d0220d4e0 --- a/core/lib/Thelia/Model/Base/OrderAddress.php +++ b/core/lib/Thelia/Model/Base/OrderAddress.php @@ -329,7 +329,7 @@ abstract class OrderAddress implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index 49c1a0911..e2b52e6b1 --- a/core/lib/Thelia/Model/Base/OrderFeature.php +++ b/core/lib/Thelia/Model/Base/OrderFeature.php @@ -261,7 +261,7 @@ abstract class OrderFeature implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index b448e4e0c..2bf9c7ace --- a/core/lib/Thelia/Model/Base/OrderProduct.php +++ b/core/lib/Thelia/Model/Base/OrderProduct.php @@ -312,7 +312,7 @@ abstract class OrderProduct implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index fc4a224d1..99bb87879 --- a/core/lib/Thelia/Model/Base/OrderStatus.php +++ b/core/lib/Thelia/Model/Base/OrderStatus.php @@ -109,7 +109,7 @@ abstract class OrderStatus implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -285,7 +285,7 @@ abstract class OrderStatus implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1812,7 +1812,7 @@ abstract class OrderStatus implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collOrders instanceof Collection) { @@ -1858,7 +1858,7 @@ abstract class OrderStatus implements ActiveRecordInterface * * @return ChildOrderStatus The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1882,7 +1882,7 @@ abstract class OrderStatus implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildOrderStatusI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collOrderStatusI18ns) { @@ -1917,7 +1917,7 @@ abstract class OrderStatus implements ActiveRecordInterface * * @return ChildOrderStatus The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildOrderStatusI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/OrderStatusI18n.php b/core/lib/Thelia/Model/Base/OrderStatusI18n.php old mode 100644 new mode 100755 index 76ec4a28a..249944854 --- a/core/lib/Thelia/Model/Base/OrderStatusI18n.php +++ b/core/lib/Thelia/Model/Base/OrderStatusI18n.php @@ -61,7 +61,7 @@ abstract class OrderStatusI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class OrderStatusI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class OrderStatusI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class OrderStatusI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index 908efd6b6..07fcdb8dc --- a/core/lib/Thelia/Model/Base/OrderStatusQuery.php +++ b/core/lib/Thelia/Model/Base/OrderStatusQuery.php @@ -703,7 +703,7 @@ abstract class OrderStatusQuery extends ModelCriteria * * @return ChildOrderStatusQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'OrderStatusI18n'; @@ -721,7 +721,7 @@ abstract class OrderStatusQuery extends ModelCriteria * * @return ChildOrderStatusQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -742,7 +742,7 @@ abstract class OrderStatusQuery extends ModelCriteria * * @return ChildOrderStatusI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Product.php b/core/lib/Thelia/Model/Base/Product.php old mode 100644 new mode 100755 index 9a1828e25..e66c2fe17 --- a/core/lib/Thelia/Model/Base/Product.php +++ b/core/lib/Thelia/Model/Base/Product.php @@ -23,11 +23,11 @@ use Thelia\Model\CartItem as ChildCartItem; use Thelia\Model\CartItemQuery as ChildCartItemQuery; use Thelia\Model\Category as ChildCategory; use Thelia\Model\CategoryQuery as ChildCategoryQuery; -use Thelia\Model\ContentAssoc as ChildContentAssoc; -use Thelia\Model\ContentAssocQuery as ChildContentAssocQuery; use Thelia\Model\FeatureProduct as ChildFeatureProduct; use Thelia\Model\FeatureProductQuery as ChildFeatureProductQuery; use Thelia\Model\Product as ChildProduct; +use Thelia\Model\ProductAssociatedContent as ChildProductAssociatedContent; +use Thelia\Model\ProductAssociatedContentQuery as ChildProductAssociatedContentQuery; use Thelia\Model\ProductCategory as ChildProductCategory; use Thelia\Model\ProductCategoryQuery as ChildProductCategoryQuery; use Thelia\Model\ProductDocument as ChildProductDocument; @@ -167,12 +167,6 @@ abstract class Product implements ActiveRecordInterface protected $collProductSaleElementss; protected $collProductSaleElementssPartial; - /** - * @var ObjectCollection|ChildContentAssoc[] Collection to store aggregation of ChildContentAssoc objects. - */ - protected $collContentAssocs; - protected $collContentAssocsPartial; - /** * @var ObjectCollection|ChildProductImage[] Collection to store aggregation of ChildProductImage objects. */ @@ -209,6 +203,12 @@ abstract class Product implements ActiveRecordInterface protected $collCartItems; protected $collCartItemsPartial; + /** + * @var ObjectCollection|ChildProductAssociatedContent[] Collection to store aggregation of ChildProductAssociatedContent objects. + */ + protected $collProductAssociatedContents; + protected $collProductAssociatedContentsPartial; + /** * @var ObjectCollection|ChildProductI18n[] Collection to store aggregation of ChildProductI18n objects. */ @@ -250,7 +250,7 @@ abstract class Product implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -302,12 +302,6 @@ abstract class Product implements ActiveRecordInterface */ protected $productSaleElementssScheduledForDeletion = null; - /** - * An array of objects scheduled for deletion. - * @var ObjectCollection - */ - protected $contentAssocsScheduledForDeletion = null; - /** * An array of objects scheduled for deletion. * @var ObjectCollection @@ -344,6 +338,12 @@ abstract class Product implements ActiveRecordInterface */ protected $cartItemsScheduledForDeletion = null; + /** + * An array of objects scheduled for deletion. + * @var ObjectCollection + */ + protected $productAssociatedContentsScheduledForDeletion = null; + /** * An array of objects scheduled for deletion. * @var ObjectCollection @@ -526,7 +526,7 @@ abstract class Product implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1137,8 +1137,6 @@ abstract class Product implements ActiveRecordInterface $this->collProductSaleElementss = null; - $this->collContentAssocs = null; - $this->collProductImages = null; $this->collProductDocuments = null; @@ -1151,6 +1149,8 @@ abstract class Product implements ActiveRecordInterface $this->collCartItems = null; + $this->collProductAssociatedContents = null; + $this->collProductI18ns = null; $this->collProductVersions = null; @@ -1447,23 +1447,6 @@ abstract class Product implements ActiveRecordInterface } } - if ($this->contentAssocsScheduledForDeletion !== null) { - if (!$this->contentAssocsScheduledForDeletion->isEmpty()) { - \Thelia\Model\ContentAssocQuery::create() - ->filterByPrimaryKeys($this->contentAssocsScheduledForDeletion->getPrimaryKeys(false)) - ->delete($con); - $this->contentAssocsScheduledForDeletion = null; - } - } - - if ($this->collContentAssocs !== null) { - foreach ($this->collContentAssocs as $referrerFK) { - if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { - $affectedRows += $referrerFK->save($con); - } - } - } - if ($this->productImagesScheduledForDeletion !== null) { if (!$this->productImagesScheduledForDeletion->isEmpty()) { \Thelia\Model\ProductImageQuery::create() @@ -1566,6 +1549,23 @@ abstract class Product implements ActiveRecordInterface } } + if ($this->productAssociatedContentsScheduledForDeletion !== null) { + if (!$this->productAssociatedContentsScheduledForDeletion->isEmpty()) { + \Thelia\Model\ProductAssociatedContentQuery::create() + ->filterByPrimaryKeys($this->productAssociatedContentsScheduledForDeletion->getPrimaryKeys(false)) + ->delete($con); + $this->productAssociatedContentsScheduledForDeletion = null; + } + } + + if ($this->collProductAssociatedContents !== null) { + foreach ($this->collProductAssociatedContents as $referrerFK) { + if (!$referrerFK->isDeleted() && ($referrerFK->isNew() || $referrerFK->isModified())) { + $affectedRows += $referrerFK->save($con); + } + } + } + if ($this->productI18nsScheduledForDeletion !== null) { if (!$this->productI18nsScheduledForDeletion->isEmpty()) { \Thelia\Model\ProductI18nQuery::create() @@ -1848,9 +1848,6 @@ abstract class Product implements ActiveRecordInterface if (null !== $this->collProductSaleElementss) { $result['ProductSaleElementss'] = $this->collProductSaleElementss->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } - if (null !== $this->collContentAssocs) { - $result['ContentAssocs'] = $this->collContentAssocs->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); - } if (null !== $this->collProductImages) { $result['ProductImages'] = $this->collProductImages->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } @@ -1869,6 +1866,9 @@ abstract class Product implements ActiveRecordInterface if (null !== $this->collCartItems) { $result['CartItems'] = $this->collCartItems->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } + if (null !== $this->collProductAssociatedContents) { + $result['ProductAssociatedContents'] = $this->collProductAssociatedContents->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); + } if (null !== $this->collProductI18ns) { $result['ProductI18ns'] = $this->collProductI18ns->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } @@ -2090,12 +2090,6 @@ abstract class Product implements ActiveRecordInterface } } - foreach ($this->getContentAssocs() as $relObj) { - if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves - $copyObj->addContentAssoc($relObj->copy($deepCopy)); - } - } - foreach ($this->getProductImages() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addProductImage($relObj->copy($deepCopy)); @@ -2132,6 +2126,12 @@ abstract class Product implements ActiveRecordInterface } } + foreach ($this->getProductAssociatedContents() as $relObj) { + if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves + $copyObj->addProductAssociatedContent($relObj->copy($deepCopy)); + } + } + foreach ($this->getProductI18ns() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addProductI18n($relObj->copy($deepCopy)); @@ -2245,9 +2245,6 @@ abstract class Product implements ActiveRecordInterface if ('ProductSaleElements' == $relationName) { return $this->initProductSaleElementss(); } - if ('ContentAssoc' == $relationName) { - return $this->initContentAssocs(); - } if ('ProductImage' == $relationName) { return $this->initProductImages(); } @@ -2266,6 +2263,9 @@ abstract class Product implements ActiveRecordInterface if ('CartItem' == $relationName) { return $this->initCartItems(); } + if ('ProductAssociatedContent' == $relationName) { + return $this->initProductAssociatedContents(); + } if ('ProductI18n' == $relationName) { return $this->initProductI18ns(); } @@ -3006,274 +3006,6 @@ abstract class Product implements ActiveRecordInterface return $this; } - /** - * Clears out the collContentAssocs collection - * - * This does not modify the database; however, it will remove any associated objects, causing - * them to be refetched by subsequent calls to accessor method. - * - * @return void - * @see addContentAssocs() - */ - public function clearContentAssocs() - { - $this->collContentAssocs = null; // important to set this to NULL since that means it is uninitialized - } - - /** - * Reset is the collContentAssocs collection loaded partially. - */ - public function resetPartialContentAssocs($v = true) - { - $this->collContentAssocsPartial = $v; - } - - /** - * Initializes the collContentAssocs collection. - * - * By default this just sets the collContentAssocs collection to an empty array (like clearcollContentAssocs()); - * however, you may wish to override this method in your stub class to provide setting appropriate - * to your application -- for example, setting the initial array to the values stored in database. - * - * @param boolean $overrideExisting If set to true, the method call initializes - * the collection even if it is not empty - * - * @return void - */ - public function initContentAssocs($overrideExisting = true) - { - if (null !== $this->collContentAssocs && !$overrideExisting) { - return; - } - $this->collContentAssocs = new ObjectCollection(); - $this->collContentAssocs->setModel('\Thelia\Model\ContentAssoc'); - } - - /** - * Gets an array of ChildContentAssoc objects which contain a foreign key that references this object. - * - * If the $criteria is not null, it is used to always fetch the results from the database. - * Otherwise the results are fetched from the database the first time, then cached. - * Next time the same method is called without $criteria, the cached collection is returned. - * If this ChildProduct is new, it will return - * an empty collection or the current collection; the criteria is ignored on a new object. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - * @throws PropelException - */ - public function getContentAssocs($criteria = null, ConnectionInterface $con = null) - { - $partial = $this->collContentAssocsPartial && !$this->isNew(); - if (null === $this->collContentAssocs || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collContentAssocs) { - // return empty collection - $this->initContentAssocs(); - } else { - $collContentAssocs = ChildContentAssocQuery::create(null, $criteria) - ->filterByProduct($this) - ->find($con); - - if (null !== $criteria) { - if (false !== $this->collContentAssocsPartial && count($collContentAssocs)) { - $this->initContentAssocs(false); - - foreach ($collContentAssocs as $obj) { - if (false == $this->collContentAssocs->contains($obj)) { - $this->collContentAssocs->append($obj); - } - } - - $this->collContentAssocsPartial = true; - } - - $collContentAssocs->getInternalIterator()->rewind(); - - return $collContentAssocs; - } - - if ($partial && $this->collContentAssocs) { - foreach ($this->collContentAssocs as $obj) { - if ($obj->isNew()) { - $collContentAssocs[] = $obj; - } - } - } - - $this->collContentAssocs = $collContentAssocs; - $this->collContentAssocsPartial = false; - } - } - - return $this->collContentAssocs; - } - - /** - * Sets a collection of ContentAssoc objects related by a one-to-many relationship - * to the current object. - * It will also schedule objects for deletion based on a diff between old objects (aka persisted) - * and new objects from the given Propel collection. - * - * @param Collection $contentAssocs A Propel collection. - * @param ConnectionInterface $con Optional connection object - * @return ChildProduct The current object (for fluent API support) - */ - public function setContentAssocs(Collection $contentAssocs, ConnectionInterface $con = null) - { - $contentAssocsToDelete = $this->getContentAssocs(new Criteria(), $con)->diff($contentAssocs); - - - $this->contentAssocsScheduledForDeletion = $contentAssocsToDelete; - - foreach ($contentAssocsToDelete as $contentAssocRemoved) { - $contentAssocRemoved->setProduct(null); - } - - $this->collContentAssocs = null; - foreach ($contentAssocs as $contentAssoc) { - $this->addContentAssoc($contentAssoc); - } - - $this->collContentAssocs = $contentAssocs; - $this->collContentAssocsPartial = false; - - return $this; - } - - /** - * Returns the number of related ContentAssoc objects. - * - * @param Criteria $criteria - * @param boolean $distinct - * @param ConnectionInterface $con - * @return int Count of related ContentAssoc objects. - * @throws PropelException - */ - public function countContentAssocs(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) - { - $partial = $this->collContentAssocsPartial && !$this->isNew(); - if (null === $this->collContentAssocs || null !== $criteria || $partial) { - if ($this->isNew() && null === $this->collContentAssocs) { - return 0; - } - - if ($partial && !$criteria) { - return count($this->getContentAssocs()); - } - - $query = ChildContentAssocQuery::create(null, $criteria); - if ($distinct) { - $query->distinct(); - } - - return $query - ->filterByProduct($this) - ->count($con); - } - - return count($this->collContentAssocs); - } - - /** - * Method called to associate a ChildContentAssoc object to this object - * through the ChildContentAssoc foreign key attribute. - * - * @param ChildContentAssoc $l ChildContentAssoc - * @return \Thelia\Model\Product The current object (for fluent API support) - */ - public function addContentAssoc(ChildContentAssoc $l) - { - if ($this->collContentAssocs === null) { - $this->initContentAssocs(); - $this->collContentAssocsPartial = true; - } - - if (!in_array($l, $this->collContentAssocs->getArrayCopy(), true)) { // only add it if the **same** object is not already associated - $this->doAddContentAssoc($l); - } - - return $this; - } - - /** - * @param ContentAssoc $contentAssoc The contentAssoc object to add. - */ - protected function doAddContentAssoc($contentAssoc) - { - $this->collContentAssocs[]= $contentAssoc; - $contentAssoc->setProduct($this); - } - - /** - * @param ContentAssoc $contentAssoc The contentAssoc object to remove. - * @return ChildProduct The current object (for fluent API support) - */ - public function removeContentAssoc($contentAssoc) - { - if ($this->getContentAssocs()->contains($contentAssoc)) { - $this->collContentAssocs->remove($this->collContentAssocs->search($contentAssoc)); - if (null === $this->contentAssocsScheduledForDeletion) { - $this->contentAssocsScheduledForDeletion = clone $this->collContentAssocs; - $this->contentAssocsScheduledForDeletion->clear(); - } - $this->contentAssocsScheduledForDeletion[]= $contentAssoc; - $contentAssoc->setProduct(null); - } - - return $this; - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this Product is new, it will return - * an empty collection; or if this Product has previously - * been saved, it will retrieve related ContentAssocs from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in Product. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - */ - public function getContentAssocsJoinCategory($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) - { - $query = ChildContentAssocQuery::create(null, $criteria); - $query->joinWith('Category', $joinBehavior); - - return $this->getContentAssocs($query, $con); - } - - - /** - * If this collection has already been initialized with - * an identical criteria, it returns the collection. - * Otherwise if this Product is new, it will return - * an empty collection; or if this Product has previously - * been saved, it will retrieve related ContentAssocs from storage. - * - * This method is protected by default in order to keep the public - * api reasonable. You can provide public methods for those you - * actually need in Product. - * - * @param Criteria $criteria optional Criteria object to narrow the query - * @param ConnectionInterface $con optional connection object - * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) - * @return Collection|ChildContentAssoc[] List of ChildContentAssoc objects - */ - public function getContentAssocsJoinContent($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) - { - $query = ChildContentAssocQuery::create(null, $criteria); - $query->joinWith('Content', $joinBehavior); - - return $this->getContentAssocs($query, $con); - } - /** * Clears out the collProductImages collection * @@ -4707,6 +4439,249 @@ abstract class Product implements ActiveRecordInterface return $this->getCartItems($query, $con); } + /** + * Clears out the collProductAssociatedContents collection + * + * This does not modify the database; however, it will remove any associated objects, causing + * them to be refetched by subsequent calls to accessor method. + * + * @return void + * @see addProductAssociatedContents() + */ + public function clearProductAssociatedContents() + { + $this->collProductAssociatedContents = null; // important to set this to NULL since that means it is uninitialized + } + + /** + * Reset is the collProductAssociatedContents collection loaded partially. + */ + public function resetPartialProductAssociatedContents($v = true) + { + $this->collProductAssociatedContentsPartial = $v; + } + + /** + * Initializes the collProductAssociatedContents collection. + * + * By default this just sets the collProductAssociatedContents collection to an empty array (like clearcollProductAssociatedContents()); + * however, you may wish to override this method in your stub class to provide setting appropriate + * to your application -- for example, setting the initial array to the values stored in database. + * + * @param boolean $overrideExisting If set to true, the method call initializes + * the collection even if it is not empty + * + * @return void + */ + public function initProductAssociatedContents($overrideExisting = true) + { + if (null !== $this->collProductAssociatedContents && !$overrideExisting) { + return; + } + $this->collProductAssociatedContents = new ObjectCollection(); + $this->collProductAssociatedContents->setModel('\Thelia\Model\ProductAssociatedContent'); + } + + /** + * Gets an array of ChildProductAssociatedContent objects which contain a foreign key that references this object. + * + * If the $criteria is not null, it is used to always fetch the results from the database. + * Otherwise the results are fetched from the database the first time, then cached. + * Next time the same method is called without $criteria, the cached collection is returned. + * If this ChildProduct is new, it will return + * an empty collection or the current collection; the criteria is ignored on a new object. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @return Collection|ChildProductAssociatedContent[] List of ChildProductAssociatedContent objects + * @throws PropelException + */ + public function getProductAssociatedContents($criteria = null, ConnectionInterface $con = null) + { + $partial = $this->collProductAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collProductAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collProductAssociatedContents) { + // return empty collection + $this->initProductAssociatedContents(); + } else { + $collProductAssociatedContents = ChildProductAssociatedContentQuery::create(null, $criteria) + ->filterByProduct($this) + ->find($con); + + if (null !== $criteria) { + if (false !== $this->collProductAssociatedContentsPartial && count($collProductAssociatedContents)) { + $this->initProductAssociatedContents(false); + + foreach ($collProductAssociatedContents as $obj) { + if (false == $this->collProductAssociatedContents->contains($obj)) { + $this->collProductAssociatedContents->append($obj); + } + } + + $this->collProductAssociatedContentsPartial = true; + } + + $collProductAssociatedContents->getInternalIterator()->rewind(); + + return $collProductAssociatedContents; + } + + if ($partial && $this->collProductAssociatedContents) { + foreach ($this->collProductAssociatedContents as $obj) { + if ($obj->isNew()) { + $collProductAssociatedContents[] = $obj; + } + } + } + + $this->collProductAssociatedContents = $collProductAssociatedContents; + $this->collProductAssociatedContentsPartial = false; + } + } + + return $this->collProductAssociatedContents; + } + + /** + * Sets a collection of ProductAssociatedContent objects related by a one-to-many relationship + * to the current object. + * It will also schedule objects for deletion based on a diff between old objects (aka persisted) + * and new objects from the given Propel collection. + * + * @param Collection $productAssociatedContents A Propel collection. + * @param ConnectionInterface $con Optional connection object + * @return ChildProduct The current object (for fluent API support) + */ + public function setProductAssociatedContents(Collection $productAssociatedContents, ConnectionInterface $con = null) + { + $productAssociatedContentsToDelete = $this->getProductAssociatedContents(new Criteria(), $con)->diff($productAssociatedContents); + + + $this->productAssociatedContentsScheduledForDeletion = $productAssociatedContentsToDelete; + + foreach ($productAssociatedContentsToDelete as $productAssociatedContentRemoved) { + $productAssociatedContentRemoved->setProduct(null); + } + + $this->collProductAssociatedContents = null; + foreach ($productAssociatedContents as $productAssociatedContent) { + $this->addProductAssociatedContent($productAssociatedContent); + } + + $this->collProductAssociatedContents = $productAssociatedContents; + $this->collProductAssociatedContentsPartial = false; + + return $this; + } + + /** + * Returns the number of related ProductAssociatedContent objects. + * + * @param Criteria $criteria + * @param boolean $distinct + * @param ConnectionInterface $con + * @return int Count of related ProductAssociatedContent objects. + * @throws PropelException + */ + public function countProductAssociatedContents(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) + { + $partial = $this->collProductAssociatedContentsPartial && !$this->isNew(); + if (null === $this->collProductAssociatedContents || null !== $criteria || $partial) { + if ($this->isNew() && null === $this->collProductAssociatedContents) { + return 0; + } + + if ($partial && !$criteria) { + return count($this->getProductAssociatedContents()); + } + + $query = ChildProductAssociatedContentQuery::create(null, $criteria); + if ($distinct) { + $query->distinct(); + } + + return $query + ->filterByProduct($this) + ->count($con); + } + + return count($this->collProductAssociatedContents); + } + + /** + * Method called to associate a ChildProductAssociatedContent object to this object + * through the ChildProductAssociatedContent foreign key attribute. + * + * @param ChildProductAssociatedContent $l ChildProductAssociatedContent + * @return \Thelia\Model\Product The current object (for fluent API support) + */ + public function addProductAssociatedContent(ChildProductAssociatedContent $l) + { + if ($this->collProductAssociatedContents === null) { + $this->initProductAssociatedContents(); + $this->collProductAssociatedContentsPartial = true; + } + + if (!in_array($l, $this->collProductAssociatedContents->getArrayCopy(), true)) { // only add it if the **same** object is not already associated + $this->doAddProductAssociatedContent($l); + } + + return $this; + } + + /** + * @param ProductAssociatedContent $productAssociatedContent The productAssociatedContent object to add. + */ + protected function doAddProductAssociatedContent($productAssociatedContent) + { + $this->collProductAssociatedContents[]= $productAssociatedContent; + $productAssociatedContent->setProduct($this); + } + + /** + * @param ProductAssociatedContent $productAssociatedContent The productAssociatedContent object to remove. + * @return ChildProduct The current object (for fluent API support) + */ + public function removeProductAssociatedContent($productAssociatedContent) + { + if ($this->getProductAssociatedContents()->contains($productAssociatedContent)) { + $this->collProductAssociatedContents->remove($this->collProductAssociatedContents->search($productAssociatedContent)); + if (null === $this->productAssociatedContentsScheduledForDeletion) { + $this->productAssociatedContentsScheduledForDeletion = clone $this->collProductAssociatedContents; + $this->productAssociatedContentsScheduledForDeletion->clear(); + } + $this->productAssociatedContentsScheduledForDeletion[]= clone $productAssociatedContent; + $productAssociatedContent->setProduct(null); + } + + return $this; + } + + + /** + * If this collection has already been initialized with + * an identical criteria, it returns the collection. + * Otherwise if this Product is new, it will return + * an empty collection; or if this Product has previously + * been saved, it will retrieve related ProductAssociatedContents from storage. + * + * This method is protected by default in order to keep the public + * api reasonable. You can provide public methods for those you + * actually need in Product. + * + * @param Criteria $criteria optional Criteria object to narrow the query + * @param ConnectionInterface $con optional connection object + * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) + * @return Collection|ChildProductAssociatedContent[] List of ChildProductAssociatedContent objects + */ + public function getProductAssociatedContentsJoinContent($criteria = null, $con = null, $joinBehavior = Criteria::LEFT_JOIN) + { + $query = ChildProductAssociatedContentQuery::create(null, $criteria); + $query->joinWith('Content', $joinBehavior); + + return $this->getProductAssociatedContents($query, $con); + } + /** * Clears out the collProductI18ns collection * @@ -5752,11 +5727,6 @@ abstract class Product implements ActiveRecordInterface $o->clearAllReferences($deep); } } - if ($this->collContentAssocs) { - foreach ($this->collContentAssocs as $o) { - $o->clearAllReferences($deep); - } - } if ($this->collProductImages) { foreach ($this->collProductImages as $o) { $o->clearAllReferences($deep); @@ -5787,6 +5757,11 @@ abstract class Product implements ActiveRecordInterface $o->clearAllReferences($deep); } } + if ($this->collProductAssociatedContents) { + foreach ($this->collProductAssociatedContents as $o) { + $o->clearAllReferences($deep); + } + } if ($this->collProductI18ns) { foreach ($this->collProductI18ns as $o) { $o->clearAllReferences($deep); @@ -5815,7 +5790,7 @@ abstract class Product implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collProductCategories instanceof Collection) { @@ -5830,10 +5805,6 @@ abstract class Product implements ActiveRecordInterface $this->collProductSaleElementss->clearIterator(); } $this->collProductSaleElementss = null; - if ($this->collContentAssocs instanceof Collection) { - $this->collContentAssocs->clearIterator(); - } - $this->collContentAssocs = null; if ($this->collProductImages instanceof Collection) { $this->collProductImages->clearIterator(); } @@ -5858,6 +5829,10 @@ abstract class Product implements ActiveRecordInterface $this->collCartItems->clearIterator(); } $this->collCartItems = null; + if ($this->collProductAssociatedContents instanceof Collection) { + $this->collProductAssociatedContents->clearIterator(); + } + $this->collProductAssociatedContents = null; if ($this->collProductI18ns instanceof Collection) { $this->collProductI18ns->clearIterator(); } @@ -5914,7 +5889,7 @@ abstract class Product implements ActiveRecordInterface * * @return ChildProduct The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -5938,7 +5913,7 @@ abstract class Product implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildProductI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collProductI18ns) { @@ -5973,7 +5948,7 @@ abstract class Product implements ActiveRecordInterface * * @return ChildProduct The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildProductI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ProductAssociatedContent.php b/core/lib/Thelia/Model/Base/ProductAssociatedContent.php new file mode 100644 index 000000000..bbc97d5d1 --- /dev/null +++ b/core/lib/Thelia/Model/Base/ProductAssociatedContent.php @@ -0,0 +1,1553 @@ +modifiedColumns); + } + + /** + * Has specified column been modified? + * + * @param string $col column fully qualified name (TableMap::TYPE_COLNAME), e.g. Book::AUTHOR_ID + * @return boolean True if $col has been modified. + */ + public function isColumnModified($col) + { + return in_array($col, $this->modifiedColumns); + } + + /** + * Get the columns that have been modified in this object. + * @return array A unique list of the modified column names for this object. + */ + public function getModifiedColumns() + { + return array_unique($this->modifiedColumns); + } + + /** + * Returns whether the object has ever been saved. This will + * be false, if the object was retrieved from storage or was created + * and then saved. + * + * @return true, if the object has never been persisted. + */ + public function isNew() + { + return $this->new; + } + + /** + * Setter for the isNew attribute. This method will be called + * by Propel-generated children and objects. + * + * @param boolean $b the state of the object. + */ + public function setNew($b) + { + $this->new = (Boolean) $b; + } + + /** + * Whether this object has been deleted. + * @return boolean The deleted state of this object. + */ + public function isDeleted() + { + return $this->deleted; + } + + /** + * Specify whether this object has been deleted. + * @param boolean $b The deleted state of this object. + * @return void + */ + public function setDeleted($b) + { + $this->deleted = (Boolean) $b; + } + + /** + * Sets the modified state for the object to be false. + * @param string $col If supplied, only the specified column is reset. + * @return void + */ + public function resetModified($col = null) + { + if (null !== $col) { + while (false !== ($offset = array_search($col, $this->modifiedColumns))) { + array_splice($this->modifiedColumns, $offset, 1); + } + } else { + $this->modifiedColumns = array(); + } + } + + /** + * Compares this with another ProductAssociatedContent instance. If + * obj is an instance of ProductAssociatedContent, delegates to + * equals(ProductAssociatedContent). Otherwise, returns false. + * + * @param obj The object to compare to. + * @return Whether equal to the object specified. + */ + public function equals($obj) + { + $thisclazz = get_class($this); + if (!is_object($obj) || !($obj instanceof $thisclazz)) { + return false; + } + + if ($this === $obj) { + return true; + } + + if (null === $this->getPrimaryKey() + || null === $obj->getPrimaryKey()) { + return false; + } + + return $this->getPrimaryKey() === $obj->getPrimaryKey(); + } + + /** + * If the primary key is not null, return the hashcode of the + * primary key. Otherwise, return the hash code of the object. + * + * @return int Hashcode + */ + public function hashCode() + { + if (null !== $this->getPrimaryKey()) { + return crc32(serialize($this->getPrimaryKey())); + } + + return crc32(serialize(clone $this)); + } + + /** + * Get the associative array of the virtual columns in this object + * + * @param string $name The virtual column name + * + * @return array + */ + public function getVirtualColumns() + { + return $this->virtualColumns; + } + + /** + * Checks the existence of a virtual column in this object + * + * @return boolean + */ + public function hasVirtualColumn($name) + { + return array_key_exists($name, $this->virtualColumns); + } + + /** + * Get the value of a virtual column in this object + * + * @return mixed + */ + public function getVirtualColumn($name) + { + if (!$this->hasVirtualColumn($name)) { + throw new PropelException(sprintf('Cannot get value of inexistent virtual column %s.', $name)); + } + + return $this->virtualColumns[$name]; + } + + /** + * Set the value of a virtual column in this object + * + * @param string $name The virtual column name + * @param mixed $value The value to give to the virtual column + * + * @return ProductAssociatedContent The current object, for fluid interface + */ + public function setVirtualColumn($name, $value) + { + $this->virtualColumns[$name] = $value; + + return $this; + } + + /** + * Logs a message using Propel::log(). + * + * @param string $msg + * @param int $priority One of the Propel::LOG_* logging levels + * @return boolean + */ + protected function log($msg, $priority = Propel::LOG_INFO) + { + return Propel::log(get_class($this) . ': ' . $msg, $priority); + } + + /** + * Populate the current object from a string, using a given parser format + * + * $book = new Book(); + * $book->importFrom('JSON', '{"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, + * or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param string $data The source data to import from + * + * @return ProductAssociatedContent The current object, for fluid interface + */ + public function importFrom($parser, $data) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $this->fromArray($parser->toArray($data), TableMap::TYPE_PHPNAME); + } + + /** + * Export the current object properties to a string, using a given parser format + * + * $book = BookQuery::create()->findPk(9012); + * echo $book->exportTo('JSON'); + * => {"Id":9012,"Title":"Don Juan","ISBN":"0140422161","Price":12.99,"PublisherId":1234,"AuthorId":5678}'); + * + * + * @param mixed $parser A AbstractParser instance, or a format name ('XML', 'YAML', 'JSON', 'CSV') + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE. + * @return string The exported data + */ + public function exportTo($parser, $includeLazyLoadColumns = true) + { + if (!$parser instanceof AbstractParser) { + $parser = AbstractParser::getParser($parser); + } + + return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true)); + } + + /** + * Clean up internal collections prior to serializing + * Avoids recursive loops that turn into segmentation faults when serializing + */ + public function __sleep() + { + $this->clearAllReferences(); + + return array_keys(get_object_vars($this)); + } + + /** + * Get the [id] column value. + * + * @return int + */ + public function getId() + { + + return $this->id; + } + + /** + * Get the [product_id] column value. + * + * @return int + */ + public function getProductId() + { + + return $this->product_id; + } + + /** + * Get the [content_id] column value. + * + * @return int + */ + public function getContentId() + { + + return $this->content_id; + } + + /** + * Get the [position] column value. + * + * @return int + */ + public function getPosition() + { + + return $this->position; + } + + /** + * Get the [optionally formatted] temporal [created_at] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is NULL, then the raw \DateTime object will be returned. + * + * @return mixed Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00 + * + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getCreatedAt($format = NULL) + { + if ($format === null) { + return $this->created_at; + } else { + return $this->created_at !== null ? $this->created_at->format($format) : null; + } + } + + /** + * Get the [optionally formatted] temporal [updated_at] column value. + * + * + * @param string $format The date/time format string (either date()-style or strftime()-style). + * If format is NULL, then the raw \DateTime object will be returned. + * + * @return mixed Formatted date/time value as string or \DateTime object (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00 + * + * @throws PropelException - if unable to parse/validate the date/time value. + */ + public function getUpdatedAt($format = NULL) + { + if ($format === null) { + return $this->updated_at; + } else { + return $this->updated_at !== null ? $this->updated_at->format($format) : null; + } + } + + /** + * Set the value of [id] column. + * + * @param int $v new value + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + */ + public function setId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->id !== $v) { + $this->id = $v; + $this->modifiedColumns[] = ProductAssociatedContentTableMap::ID; + } + + + return $this; + } // setId() + + /** + * Set the value of [product_id] column. + * + * @param int $v new value + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + */ + public function setProductId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->product_id !== $v) { + $this->product_id = $v; + $this->modifiedColumns[] = ProductAssociatedContentTableMap::PRODUCT_ID; + } + + if ($this->aProduct !== null && $this->aProduct->getId() !== $v) { + $this->aProduct = null; + } + + + return $this; + } // setProductId() + + /** + * Set the value of [content_id] column. + * + * @param int $v new value + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + */ + public function setContentId($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->content_id !== $v) { + $this->content_id = $v; + $this->modifiedColumns[] = ProductAssociatedContentTableMap::CONTENT_ID; + } + + if ($this->aContent !== null && $this->aContent->getId() !== $v) { + $this->aContent = null; + } + + + return $this; + } // setContentId() + + /** + * Set the value of [position] column. + * + * @param int $v new value + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + */ + public function setPosition($v) + { + if ($v !== null) { + $v = (int) $v; + } + + if ($this->position !== $v) { + $this->position = $v; + $this->modifiedColumns[] = ProductAssociatedContentTableMap::POSITION; + } + + + return $this; + } // setPosition() + + /** + * Sets the value of [created_at] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or \DateTime value. + * Empty strings are treated as NULL. + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + */ + public function setCreatedAt($v) + { + $dt = PropelDateTime::newInstance($v, null, '\DateTime'); + if ($this->created_at !== null || $dt !== null) { + if ($dt !== $this->created_at) { + $this->created_at = $dt; + $this->modifiedColumns[] = ProductAssociatedContentTableMap::CREATED_AT; + } + } // if either are not null + + + return $this; + } // setCreatedAt() + + /** + * Sets the value of [updated_at] column to a normalized version of the date/time value specified. + * + * @param mixed $v string, integer (timestamp), or \DateTime value. + * Empty strings are treated as NULL. + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + */ + public function setUpdatedAt($v) + { + $dt = PropelDateTime::newInstance($v, null, '\DateTime'); + if ($this->updated_at !== null || $dt !== null) { + if ($dt !== $this->updated_at) { + $this->updated_at = $dt; + $this->modifiedColumns[] = ProductAssociatedContentTableMap::UPDATED_AT; + } + } // if either are not null + + + return $this; + } // setUpdatedAt() + + /** + * Indicates whether the columns in this object are only set to default values. + * + * This method can be used in conjunction with isModified() to indicate whether an object is both + * modified _and_ has some values set which are non-default. + * + * @return boolean Whether the columns in this object are only been set with default values. + */ + public function hasOnlyDefaultValues() + { + // otherwise, everything was equal, so return TRUE + return true; + } // hasOnlyDefaultValues() + + /** + * Hydrates (populates) the object variables with values from the database resultset. + * + * An offset (0-based "start column") is specified so that objects can be hydrated + * with a subset of the columns in the resultset rows. This is needed, for example, + * for results of JOIN queries where the resultset row includes columns from two or + * more tables. + * + * @param array $row The row returned by DataFetcher->fetch(). + * @param int $startcol 0-based offset column which indicates which restultset column to start with. + * @param boolean $rehydrate Whether this object is being re-hydrated from the database. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @return int next starting column + * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. + */ + public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) + { + try { + + + $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ProductAssociatedContentTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + $this->id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ProductAssociatedContentTableMap::translateFieldName('ProductId', TableMap::TYPE_PHPNAME, $indexType)]; + $this->product_id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ProductAssociatedContentTableMap::translateFieldName('ContentId', TableMap::TYPE_PHPNAME, $indexType)]; + $this->content_id = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ProductAssociatedContentTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)]; + $this->position = (null !== $col) ? (int) $col : null; + + $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ProductAssociatedContentTableMap::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 ? 5 + $startcol : ProductAssociatedContentTableMap::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; + $this->resetModified(); + + $this->setNew(false); + + if ($rehydrate) { + $this->ensureConsistency(); + } + + return $startcol + 6; // 6 = ProductAssociatedContentTableMap::NUM_HYDRATE_COLUMNS. + + } catch (Exception $e) { + throw new PropelException("Error populating \Thelia\Model\ProductAssociatedContent object", 0, $e); + } + } + + /** + * Checks and repairs the internal consistency of the object. + * + * This method is executed after an already-instantiated object is re-hydrated + * from the database. It exists to check any foreign keys to make sure that + * the objects related to the current object are correct based on foreign key. + * + * You can override this method in the stub class, but you should always invoke + * the base method from the overridden method (i.e. parent::ensureConsistency()), + * in case your model changes. + * + * @throws PropelException + */ + public function ensureConsistency() + { + if ($this->aProduct !== null && $this->product_id !== $this->aProduct->getId()) { + $this->aProduct = null; + } + if ($this->aContent !== null && $this->content_id !== $this->aContent->getId()) { + $this->aContent = null; + } + } // ensureConsistency + + /** + * Reloads this object from datastore based on primary key and (optionally) resets all associated objects. + * + * This will only work if the object has been saved and has a valid primary key set. + * + * @param boolean $deep (optional) Whether to also de-associated any related objects. + * @param ConnectionInterface $con (optional) The ConnectionInterface connection to use. + * @return void + * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db + */ + public function reload($deep = false, ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("Cannot reload a deleted object."); + } + + if ($this->isNew()) { + throw new PropelException("Cannot reload an unsaved object."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + + // We don't need to alter the object instance pool; we're just modifying this instance + // already in the pool. + + $dataFetcher = ChildProductAssociatedContentQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); + $row = $dataFetcher->fetch(); + $dataFetcher->close(); + if (!$row) { + throw new PropelException('Cannot find matching row in the database to reload object values.'); + } + $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate + + if ($deep) { // also de-associate any related objects? + + $this->aProduct = null; + $this->aContent = null; + } // if (deep) + } + + /** + * Removes this object from datastore and sets delete attribute. + * + * @param ConnectionInterface $con + * @return void + * @throws PropelException + * @see ProductAssociatedContent::setDeleted() + * @see ProductAssociatedContent::isDeleted() + */ + public function delete(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("This object has already been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + try { + $deleteQuery = ChildProductAssociatedContentQuery::create() + ->filterByPrimaryKey($this->getPrimaryKey()); + $ret = $this->preDelete($con); + if ($ret) { + $deleteQuery->delete($con); + $this->postDelete($con); + $con->commit(); + $this->setDeleted(true); + } else { + $con->commit(); + } + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Persists this object to the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All modified related objects will also be persisted in the doSave() + * method. This method wraps all precipitate database operations in a + * single transaction. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see doSave() + */ + public function save(ConnectionInterface $con = null) + { + if ($this->isDeleted()) { + throw new PropelException("You cannot save an object that has been deleted."); + } + + if ($con === null) { + $con = Propel::getServiceContainer()->getWriteConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + + $con->beginTransaction(); + $isInsert = $this->isNew(); + try { + $ret = $this->preSave($con); + if ($isInsert) { + $ret = $ret && $this->preInsert($con); + // timestampable behavior + if (!$this->isColumnModified(ProductAssociatedContentTableMap::CREATED_AT)) { + $this->setCreatedAt(time()); + } + if (!$this->isColumnModified(ProductAssociatedContentTableMap::UPDATED_AT)) { + $this->setUpdatedAt(time()); + } + } else { + $ret = $ret && $this->preUpdate($con); + // timestampable behavior + if ($this->isModified() && !$this->isColumnModified(ProductAssociatedContentTableMap::UPDATED_AT)) { + $this->setUpdatedAt(time()); + } + } + if ($ret) { + $affectedRows = $this->doSave($con); + if ($isInsert) { + $this->postInsert($con); + } else { + $this->postUpdate($con); + } + $this->postSave($con); + ProductAssociatedContentTableMap::addInstanceToPool($this); + } else { + $affectedRows = 0; + } + $con->commit(); + + return $affectedRows; + } catch (Exception $e) { + $con->rollBack(); + throw $e; + } + } + + /** + * Performs the work of inserting or updating the row in the database. + * + * If the object is new, it inserts it; otherwise an update is performed. + * All related objects are also updated in this method. + * + * @param ConnectionInterface $con + * @return int The number of rows affected by this insert/update and any referring fk objects' save() operations. + * @throws PropelException + * @see save() + */ + protected function doSave(ConnectionInterface $con) + { + $affectedRows = 0; // initialize var to track total num of affected rows + if (!$this->alreadyInSave) { + $this->alreadyInSave = true; + + // We call the save method on the following object(s) if they + // were passed to this object by their corresponding set + // method. This object relates to these object(s) by a + // foreign key reference. + + if ($this->aProduct !== null) { + if ($this->aProduct->isModified() || $this->aProduct->isNew()) { + $affectedRows += $this->aProduct->save($con); + } + $this->setProduct($this->aProduct); + } + + if ($this->aContent !== null) { + if ($this->aContent->isModified() || $this->aContent->isNew()) { + $affectedRows += $this->aContent->save($con); + } + $this->setContent($this->aContent); + } + + if ($this->isNew() || $this->isModified()) { + // persist changes + if ($this->isNew()) { + $this->doInsert($con); + } else { + $this->doUpdate($con); + } + $affectedRows += 1; + $this->resetModified(); + } + + $this->alreadyInSave = false; + + } + + return $affectedRows; + } // doSave() + + /** + * Insert the row in the database. + * + * @param ConnectionInterface $con + * + * @throws PropelException + * @see doSave() + */ + protected function doInsert(ConnectionInterface $con) + { + $modifiedColumns = array(); + $index = 0; + + $this->modifiedColumns[] = ProductAssociatedContentTableMap::ID; + if (null !== $this->id) { + throw new PropelException('Cannot insert a value for auto-increment primary key (' . ProductAssociatedContentTableMap::ID . ')'); + } + + // check the columns in natural order for more readable SQL queries + if ($this->isColumnModified(ProductAssociatedContentTableMap::ID)) { + $modifiedColumns[':p' . $index++] = 'ID'; + } + if ($this->isColumnModified(ProductAssociatedContentTableMap::PRODUCT_ID)) { + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; + } + if ($this->isColumnModified(ProductAssociatedContentTableMap::CONTENT_ID)) { + $modifiedColumns[':p' . $index++] = 'CONTENT_ID'; + } + if ($this->isColumnModified(ProductAssociatedContentTableMap::POSITION)) { + $modifiedColumns[':p' . $index++] = 'POSITION'; + } + if ($this->isColumnModified(ProductAssociatedContentTableMap::CREATED_AT)) { + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; + } + if ($this->isColumnModified(ProductAssociatedContentTableMap::UPDATED_AT)) { + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; + } + + $sql = sprintf( + 'INSERT INTO product_associated_content (%s) VALUES (%s)', + implode(', ', $modifiedColumns), + implode(', ', array_keys($modifiedColumns)) + ); + + try { + $stmt = $con->prepare($sql); + foreach ($modifiedColumns as $identifier => $columnName) { + switch ($columnName) { + case 'ID': + $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); + break; + case 'PRODUCT_ID': + $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); + break; + case 'CONTENT_ID': + $stmt->bindValue($identifier, $this->content_id, PDO::PARAM_INT); + break; + case 'POSITION': + $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); + break; + case 'CREATED_AT': + $stmt->bindValue($identifier, $this->created_at ? $this->created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); + break; + case 'UPDATED_AT': + $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); + break; + } + } + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute INSERT statement [%s]', $sql), 0, $e); + } + + try { + $pk = $con->lastInsertId(); + } catch (Exception $e) { + throw new PropelException('Unable to get autoincrement id.', 0, $e); + } + $this->setId($pk); + + $this->setNew(false); + } + + /** + * Update the row in the database. + * + * @param ConnectionInterface $con + * + * @return Integer Number of updated rows + * @see doSave() + */ + protected function doUpdate(ConnectionInterface $con) + { + $selectCriteria = $this->buildPkeyCriteria(); + $valuesCriteria = $this->buildCriteria(); + + return $selectCriteria->doUpdate($valuesCriteria, $con); + } + + /** + * Retrieves a field from the object by name passed in as a string. + * + * @param string $name name + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return mixed Value of field. + */ + public function getByName($name, $type = TableMap::TYPE_PHPNAME) + { + $pos = ProductAssociatedContentTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + $field = $this->getByPosition($pos); + + return $field; + } + + /** + * Retrieves a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @return mixed Value of field at $pos + */ + public function getByPosition($pos) + { + switch ($pos) { + case 0: + return $this->getId(); + break; + case 1: + return $this->getProductId(); + break; + case 2: + return $this->getContentId(); + break; + case 3: + return $this->getPosition(); + break; + case 4: + return $this->getCreatedAt(); + break; + case 5: + return $this->getUpdatedAt(); + break; + default: + return null; + break; + } // switch() + } + + /** + * Exports the object as an array. + * + * You can specify the key type of the array by passing one of the class + * type constants. + * + * @param string $keyType (optional) One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. + * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion + * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. + * + * @return array an associative array containing the field names (as keys) and field values + */ + public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) + { + if (isset($alreadyDumpedObjects['ProductAssociatedContent'][$this->getPrimaryKey()])) { + return '*RECURSION*'; + } + $alreadyDumpedObjects['ProductAssociatedContent'][$this->getPrimaryKey()] = true; + $keys = ProductAssociatedContentTableMap::getFieldNames($keyType); + $result = array( + $keys[0] => $this->getId(), + $keys[1] => $this->getProductId(), + $keys[2] => $this->getContentId(), + $keys[3] => $this->getPosition(), + $keys[4] => $this->getCreatedAt(), + $keys[5] => $this->getUpdatedAt(), + ); + $virtualColumns = $this->virtualColumns; + foreach($virtualColumns as $key => $virtualColumn) + { + $result[$key] = $virtualColumn; + } + + if ($includeForeignObjects) { + if (null !== $this->aProduct) { + $result['Product'] = $this->aProduct->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + if (null !== $this->aContent) { + $result['Content'] = $this->aContent->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); + } + } + + return $result; + } + + /** + * Sets a field from the object by name passed in as a string. + * + * @param string $name + * @param mixed $value field value + * @param string $type The type of fieldname the $name is of: + * one of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * Defaults to TableMap::TYPE_PHPNAME. + * @return void + */ + public function setByName($name, $value, $type = TableMap::TYPE_PHPNAME) + { + $pos = ProductAssociatedContentTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); + + return $this->setByPosition($pos, $value); + } + + /** + * Sets a field from the object by Position as specified in the xml schema. + * Zero-based. + * + * @param int $pos position in xml schema + * @param mixed $value field value + * @return void + */ + public function setByPosition($pos, $value) + { + switch ($pos) { + case 0: + $this->setId($value); + break; + case 1: + $this->setProductId($value); + break; + case 2: + $this->setContentId($value); + break; + case 3: + $this->setPosition($value); + break; + case 4: + $this->setCreatedAt($value); + break; + case 5: + $this->setUpdatedAt($value); + break; + } // switch() + } + + /** + * Populates the object using an array. + * + * This is particularly useful when populating an object from one of the + * request arrays (e.g. $_POST). This method goes through the column + * names, checking to see whether a matching key exists in populated + * array. If so the setByName() method is called for that column. + * + * You can specify the key type of the array by additionally passing one + * of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME, + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * The default key type is the column's TableMap::TYPE_PHPNAME. + * + * @param array $arr An array to populate the object from. + * @param string $keyType The type of keys the array uses. + * @return void + */ + public function fromArray($arr, $keyType = TableMap::TYPE_PHPNAME) + { + $keys = ProductAssociatedContentTableMap::getFieldNames($keyType); + + if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); + if (array_key_exists($keys[1], $arr)) $this->setProductId($arr[$keys[1]]); + if (array_key_exists($keys[2], $arr)) $this->setContentId($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]]); + } + + /** + * Build a Criteria object containing the values of all modified columns in this object. + * + * @return Criteria The Criteria object containing all modified values. + */ + public function buildCriteria() + { + $criteria = new Criteria(ProductAssociatedContentTableMap::DATABASE_NAME); + + if ($this->isColumnModified(ProductAssociatedContentTableMap::ID)) $criteria->add(ProductAssociatedContentTableMap::ID, $this->id); + if ($this->isColumnModified(ProductAssociatedContentTableMap::PRODUCT_ID)) $criteria->add(ProductAssociatedContentTableMap::PRODUCT_ID, $this->product_id); + if ($this->isColumnModified(ProductAssociatedContentTableMap::CONTENT_ID)) $criteria->add(ProductAssociatedContentTableMap::CONTENT_ID, $this->content_id); + if ($this->isColumnModified(ProductAssociatedContentTableMap::POSITION)) $criteria->add(ProductAssociatedContentTableMap::POSITION, $this->position); + if ($this->isColumnModified(ProductAssociatedContentTableMap::CREATED_AT)) $criteria->add(ProductAssociatedContentTableMap::CREATED_AT, $this->created_at); + if ($this->isColumnModified(ProductAssociatedContentTableMap::UPDATED_AT)) $criteria->add(ProductAssociatedContentTableMap::UPDATED_AT, $this->updated_at); + + return $criteria; + } + + /** + * Builds a Criteria object containing the primary key for this object. + * + * Unlike buildCriteria() this method includes the primary key values regardless + * of whether or not they have been modified. + * + * @return Criteria The Criteria object containing value(s) for primary key(s). + */ + public function buildPkeyCriteria() + { + $criteria = new Criteria(ProductAssociatedContentTableMap::DATABASE_NAME); + $criteria->add(ProductAssociatedContentTableMap::ID, $this->id); + + return $criteria; + } + + /** + * Returns the primary key for this object (row). + * @return int + */ + public function getPrimaryKey() + { + return $this->getId(); + } + + /** + * Generic method to set the primary key (id column). + * + * @param int $key Primary key. + * @return void + */ + public function setPrimaryKey($key) + { + $this->setId($key); + } + + /** + * Returns true if the primary key for this object is null. + * @return boolean + */ + public function isPrimaryKeyNull() + { + + return null === $this->getId(); + } + + /** + * Sets contents of passed object to values from current object. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param object $copyObj An object of \Thelia\Model\ProductAssociatedContent (or compatible) type. + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. + * @throws PropelException + */ + public function copyInto($copyObj, $deepCopy = false, $makeNew = true) + { + $copyObj->setProductId($this->getProductId()); + $copyObj->setContentId($this->getContentId()); + $copyObj->setPosition($this->getPosition()); + $copyObj->setCreatedAt($this->getCreatedAt()); + $copyObj->setUpdatedAt($this->getUpdatedAt()); + if ($makeNew) { + $copyObj->setNew(true); + $copyObj->setId(NULL); // this is a auto-increment column, so set to default value + } + } + + /** + * Makes a copy of this object that will be inserted as a new row in table when saved. + * It creates a new object filling in the simple attributes, but skipping any primary + * keys that are defined for the table. + * + * If desired, this method can also make copies of all associated (fkey referrers) + * objects. + * + * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. + * @return \Thelia\Model\ProductAssociatedContent Clone of current object. + * @throws PropelException + */ + public function copy($deepCopy = false) + { + // we use get_class(), because this might be a subclass + $clazz = get_class($this); + $copyObj = new $clazz(); + $this->copyInto($copyObj, $deepCopy); + + return $copyObj; + } + + /** + * Declares an association between this object and a ChildProduct object. + * + * @param ChildProduct $v + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + * @throws PropelException + */ + public function setProduct(ChildProduct $v = null) + { + if ($v === null) { + $this->setProductId(NULL); + } else { + $this->setProductId($v->getId()); + } + + $this->aProduct = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildProduct object, it will not be re-added. + if ($v !== null) { + $v->addProductAssociatedContent($this); + } + + + return $this; + } + + + /** + * Get the associated ChildProduct object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildProduct The associated ChildProduct object. + * @throws PropelException + */ + public function getProduct(ConnectionInterface $con = null) + { + if ($this->aProduct === null && ($this->product_id !== null)) { + $this->aProduct = ChildProductQuery::create()->findPk($this->product_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aProduct->addProductAssociatedContents($this); + */ + } + + return $this->aProduct; + } + + /** + * Declares an association between this object and a ChildContent object. + * + * @param ChildContent $v + * @return \Thelia\Model\ProductAssociatedContent The current object (for fluent API support) + * @throws PropelException + */ + public function setContent(ChildContent $v = null) + { + if ($v === null) { + $this->setContentId(NULL); + } else { + $this->setContentId($v->getId()); + } + + $this->aContent = $v; + + // Add binding for other direction of this n:n relationship. + // If this object has already been added to the ChildContent object, it will not be re-added. + if ($v !== null) { + $v->addProductAssociatedContent($this); + } + + + return $this; + } + + + /** + * Get the associated ChildContent object + * + * @param ConnectionInterface $con Optional Connection object. + * @return ChildContent The associated ChildContent object. + * @throws PropelException + */ + public function getContent(ConnectionInterface $con = null) + { + if ($this->aContent === null && ($this->content_id !== null)) { + $this->aContent = ChildContentQuery::create()->findPk($this->content_id, $con); + /* The following can be used additionally to + guarantee the related object contains a reference + to this object. This level of coupling may, however, be + undesirable since it could result in an only partially populated collection + in the referenced object. + $this->aContent->addProductAssociatedContents($this); + */ + } + + return $this->aContent; + } + + /** + * Clears the current object and sets all attributes to their default values + */ + public function clear() + { + $this->id = null; + $this->product_id = null; + $this->content_id = null; + $this->position = null; + $this->created_at = null; + $this->updated_at = null; + $this->alreadyInSave = false; + $this->clearAllReferences(); + $this->resetModified(); + $this->setNew(true); + $this->setDeleted(false); + } + + /** + * Resets all references to other model objects or collections of model objects. + * + * This method is a user-space workaround for PHP's inability to garbage collect + * objects with circular references (even in PHP 5.3). This is currently necessary + * when using Propel in certain daemon or large-volume/high-memory operations. + * + * @param boolean $deep Whether to also clear the references on all referrer objects. + */ + public function clearAllReferences($deep = false) + { + if ($deep) { + } // if ($deep) + + $this->aProduct = null; + $this->aContent = null; + } + + /** + * Return the string representation of this object + * + * @return string + */ + public function __toString() + { + return (string) $this->exportTo(ProductAssociatedContentTableMap::DEFAULT_STRING_FORMAT); + } + + // timestampable behavior + + /** + * Mark the current object so that the update date doesn't get updated during next save + * + * @return ChildProductAssociatedContent The current object (for fluent API support) + */ + public function keepUpdateDateUnchanged() + { + $this->modifiedColumns[] = ProductAssociatedContentTableMap::UPDATED_AT; + + return $this; + } + + /** + * Code to be run before persisting the object + * @param ConnectionInterface $con + * @return boolean + */ + public function preSave(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after persisting the object + * @param ConnectionInterface $con + */ + public function postSave(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before inserting to database + * @param ConnectionInterface $con + * @return boolean + */ + public function preInsert(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after inserting to database + * @param ConnectionInterface $con + */ + public function postInsert(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before updating the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preUpdate(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after updating the object in database + * @param ConnectionInterface $con + */ + public function postUpdate(ConnectionInterface $con = null) + { + + } + + /** + * Code to be run before deleting the object in database + * @param ConnectionInterface $con + * @return boolean + */ + public function preDelete(ConnectionInterface $con = null) + { + return true; + } + + /** + * Code to be run after deleting the object in database + * @param ConnectionInterface $con + */ + public function postDelete(ConnectionInterface $con = null) + { + + } + + + /** + * Derived method to catches calls to undefined methods. + * + * Provides magic import/export method support (fromXML()/toXML(), fromYAML()/toYAML(), etc.). + * Allows to define default __call() behavior if you overwrite __call() + * + * @param string $name + * @param mixed $params + * + * @return array|string + */ + public function __call($name, $params) + { + if (0 === strpos($name, 'get')) { + $virtualColumn = substr($name, 3); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + + $virtualColumn = lcfirst($virtualColumn); + if ($this->hasVirtualColumn($virtualColumn)) { + return $this->getVirtualColumn($virtualColumn); + } + } + + if (0 === strpos($name, 'from')) { + $format = substr($name, 4); + + return $this->importFrom($format, reset($params)); + } + + if (0 === strpos($name, 'to')) { + $format = substr($name, 2); + $includeLazyLoadColumns = isset($params[0]) ? $params[0] : true; + + return $this->exportTo($format, $includeLazyLoadColumns); + } + + throw new BadMethodCallException(sprintf('Call to undefined method: %s.', $name)); + } + +} diff --git a/core/lib/Thelia/Model/Base/ProductAssociatedContentQuery.php b/core/lib/Thelia/Model/Base/ProductAssociatedContentQuery.php new file mode 100644 index 000000000..d387f40ed --- /dev/null +++ b/core/lib/Thelia/Model/Base/ProductAssociatedContentQuery.php @@ -0,0 +1,804 @@ +setModelAlias($modelAlias); + } + if ($criteria instanceof Criteria) { + $query->mergeWith($criteria); + } + + return $query; + } + + /** + * Find object by primary key. + * Propel uses the instance pool to skip the database if the object exists. + * Go fast if the query is untouched. + * + * + * $obj = $c->findPk(12, $con); + * + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ChildProductAssociatedContent|array|mixed the result, formatted by the current formatter + */ + public function findPk($key, $con = null) + { + if ($key === null) { + return null; + } + if ((null !== ($obj = ProductAssociatedContentTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) { + // the object is already in the instance pool + return $obj; + } + if ($con === null) { + $con = Propel::getServiceContainer()->getReadConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + $this->basePreSelect($con); + if ($this->formatter || $this->modelAlias || $this->with || $this->select + || $this->selectColumns || $this->asColumns || $this->selectModifiers + || $this->map || $this->having || $this->joins) { + return $this->findPkComplex($key, $con); + } else { + return $this->findPkSimple($key, $con); + } + } + + /** + * Find object by primary key using raw SQL to go fast. + * Bypass doSelect() and the object formatter by using generated code. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildProductAssociatedContent A model object, or null if the key is not found + */ + protected function findPkSimple($key, $con) + { + $sql = 'SELECT ID, PRODUCT_ID, CONTENT_ID, POSITION, CREATED_AT, UPDATED_AT FROM product_associated_content WHERE ID = :p0'; + try { + $stmt = $con->prepare($sql); + $stmt->bindValue(':p0', $key, PDO::PARAM_INT); + $stmt->execute(); + } catch (Exception $e) { + Propel::log($e->getMessage(), Propel::LOG_ERR); + throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), 0, $e); + } + $obj = null; + if ($row = $stmt->fetch(\PDO::FETCH_NUM)) { + $obj = new ChildProductAssociatedContent(); + $obj->hydrate($row); + ProductAssociatedContentTableMap::addInstanceToPool($obj, (string) $key); + } + $stmt->closeCursor(); + + return $obj; + } + + /** + * Find object by primary key. + * + * @param mixed $key Primary key to use for the query + * @param ConnectionInterface $con A connection object + * + * @return ChildProductAssociatedContent|array|mixed the result, formatted by the current formatter + */ + protected function findPkComplex($key, $con) + { + // As the query uses a PK condition, no limit(1) is necessary. + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKey($key) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher); + } + + /** + * Find objects by primary key + * + * $objs = $c->findPks(array(12, 56, 832), $con); + * + * @param array $keys Primary keys to use for the query + * @param ConnectionInterface $con an optional connection object + * + * @return ObjectCollection|array|mixed the list of results, formatted by the current formatter + */ + public function findPks($keys, $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getReadConnection($this->getDbName()); + } + $this->basePreSelect($con); + $criteria = $this->isKeepQuery() ? clone $this : $this; + $dataFetcher = $criteria + ->filterByPrimaryKeys($keys) + ->doSelect($con); + + return $criteria->getFormatter()->init($criteria)->format($dataFetcher); + } + + /** + * Filter the query by primary key + * + * @param mixed $key Primary key to use for the query + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByPrimaryKey($key) + { + + return $this->addUsingAlias(ProductAssociatedContentTableMap::ID, $key, Criteria::EQUAL); + } + + /** + * Filter the query by a list of primary keys + * + * @param array $keys The list of primary key to use for the query + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByPrimaryKeys($keys) + { + + return $this->addUsingAlias(ProductAssociatedContentTableMap::ID, $keys, Criteria::IN); + } + + /** + * Filter the query on the id column + * + * Example usage: + * + * $query->filterById(1234); // WHERE id = 1234 + * $query->filterById(array(12, 34)); // WHERE id IN (12, 34) + * $query->filterById(array('min' => 12)); // WHERE id > 12 + * + * + * @param mixed $id The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterById($id = null, $comparison = null) + { + if (is_array($id)) { + $useMinMax = false; + if (isset($id['min'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::ID, $id['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($id['max'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::ID, $id['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ProductAssociatedContentTableMap::ID, $id, $comparison); + } + + /** + * Filter the query on the product_id column + * + * Example usage: + * + * $query->filterByProductId(1234); // WHERE product_id = 1234 + * $query->filterByProductId(array(12, 34)); // WHERE product_id IN (12, 34) + * $query->filterByProductId(array('min' => 12)); // WHERE product_id > 12 + * + * + * @see filterByProduct() + * + * @param mixed $productId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByProductId($productId = null, $comparison = null) + { + if (is_array($productId)) { + $useMinMax = false; + if (isset($productId['min'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::PRODUCT_ID, $productId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($productId['max'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::PRODUCT_ID, $productId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ProductAssociatedContentTableMap::PRODUCT_ID, $productId, $comparison); + } + + /** + * Filter the query on the content_id column + * + * Example usage: + * + * $query->filterByContentId(1234); // WHERE content_id = 1234 + * $query->filterByContentId(array(12, 34)); // WHERE content_id IN (12, 34) + * $query->filterByContentId(array('min' => 12)); // WHERE content_id > 12 + * + * + * @see filterByContent() + * + * @param mixed $contentId The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByContentId($contentId = null, $comparison = null) + { + if (is_array($contentId)) { + $useMinMax = false; + if (isset($contentId['min'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::CONTENT_ID, $contentId['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($contentId['max'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::CONTENT_ID, $contentId['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ProductAssociatedContentTableMap::CONTENT_ID, $contentId, $comparison); + } + + /** + * Filter the query on the position column + * + * Example usage: + * + * $query->filterByPosition(1234); // WHERE position = 1234 + * $query->filterByPosition(array(12, 34)); // WHERE position IN (12, 34) + * $query->filterByPosition(array('min' => 12)); // WHERE position > 12 + * + * + * @param mixed $position The value to use as filter. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByPosition($position = null, $comparison = null) + { + if (is_array($position)) { + $useMinMax = false; + if (isset($position['min'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::POSITION, $position['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($position['max'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::POSITION, $position['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ProductAssociatedContentTableMap::POSITION, $position, $comparison); + } + + /** + * Filter the query on the created_at column + * + * Example usage: + * + * $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14' + * $query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14' + * $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13' + * + * + * @param mixed $createdAt The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByCreatedAt($createdAt = null, $comparison = null) + { + if (is_array($createdAt)) { + $useMinMax = false; + if (isset($createdAt['min'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::CREATED_AT, $createdAt['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($createdAt['max'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::CREATED_AT, $createdAt['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ProductAssociatedContentTableMap::CREATED_AT, $createdAt, $comparison); + } + + /** + * Filter the query on the updated_at column + * + * Example usage: + * + * $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14' + * $query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14' + * $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13' + * + * + * @param mixed $updatedAt The value to use as filter. + * Values can be integers (unix timestamps), DateTime objects, or strings. + * Empty strings are treated as NULL. + * Use scalar values for equality. + * Use array values for in_array() equivalent. + * Use associative array('min' => $minValue, 'max' => $maxValue) for intervals. + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByUpdatedAt($updatedAt = null, $comparison = null) + { + if (is_array($updatedAt)) { + $useMinMax = false; + if (isset($updatedAt['min'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::UPDATED_AT, $updatedAt['min'], Criteria::GREATER_EQUAL); + $useMinMax = true; + } + if (isset($updatedAt['max'])) { + $this->addUsingAlias(ProductAssociatedContentTableMap::UPDATED_AT, $updatedAt['max'], Criteria::LESS_EQUAL); + $useMinMax = true; + } + if ($useMinMax) { + return $this; + } + if (null === $comparison) { + $comparison = Criteria::IN; + } + } + + return $this->addUsingAlias(ProductAssociatedContentTableMap::UPDATED_AT, $updatedAt, $comparison); + } + + /** + * Filter the query by a related \Thelia\Model\Product object + * + * @param \Thelia\Model\Product|ObjectCollection $product The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByProduct($product, $comparison = null) + { + if ($product instanceof \Thelia\Model\Product) { + return $this + ->addUsingAlias(ProductAssociatedContentTableMap::PRODUCT_ID, $product->getId(), $comparison); + } elseif ($product instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(ProductAssociatedContentTableMap::PRODUCT_ID, $product->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByProduct() only accepts arguments of type \Thelia\Model\Product or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Product relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function joinProduct($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Product'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Product'); + } + + return $this; + } + + /** + * Use the Product relation Product object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\ProductQuery A secondary query class using the current class as primary query + */ + public function useProductQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinProduct($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Product', '\Thelia\Model\ProductQuery'); + } + + /** + * Filter the query by a related \Thelia\Model\Content object + * + * @param \Thelia\Model\Content|ObjectCollection $content The related object(s) to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function filterByContent($content, $comparison = null) + { + if ($content instanceof \Thelia\Model\Content) { + return $this + ->addUsingAlias(ProductAssociatedContentTableMap::CONTENT_ID, $content->getId(), $comparison); + } elseif ($content instanceof ObjectCollection) { + if (null === $comparison) { + $comparison = Criteria::IN; + } + + return $this + ->addUsingAlias(ProductAssociatedContentTableMap::CONTENT_ID, $content->toKeyValue('PrimaryKey', 'Id'), $comparison); + } else { + throw new PropelException('filterByContent() only accepts arguments of type \Thelia\Model\Content or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the Content relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function joinContent($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('Content'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'Content'); + } + + return $this; + } + + /** + * Use the Content relation Content object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\ContentQuery A secondary query class using the current class as primary query + */ + public function useContentQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinContent($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'Content', '\Thelia\Model\ContentQuery'); + } + + /** + * Exclude object from result + * + * @param ChildProductAssociatedContent $productAssociatedContent Object to remove from the list of results + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function prune($productAssociatedContent = null) + { + if ($productAssociatedContent) { + $this->addUsingAlias(ProductAssociatedContentTableMap::ID, $productAssociatedContent->getId(), Criteria::NOT_EQUAL); + } + + return $this; + } + + /** + * Deletes all rows from the product_associated_content table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public function doDeleteAll(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + $affectedRows = 0; // initialize var to track total num of affected rows + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + $affectedRows += parent::doDeleteAll($con); + // Because this db requires some delete cascade/set null emulation, we have to + // clear the cached instance *after* the emulation has happened (since + // instances get re-added by the select statement contained therein). + ProductAssociatedContentTableMap::clearInstancePool(); + ProductAssociatedContentTableMap::clearRelatedInstancePool(); + + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $affectedRows; + } + + /** + * Performs a DELETE on the database, given a ChildProductAssociatedContent or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ChildProductAssociatedContent object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public function delete(ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + + $criteria = $this; + + // Set the correct dbName + $criteria->setDbName(ProductAssociatedContentTableMap::DATABASE_NAME); + + $affectedRows = 0; // initialize var to track total num of affected rows + + try { + // use transaction because $criteria could contain info + // for more than one table or we could emulating ON DELETE CASCADE, etc. + $con->beginTransaction(); + + + ProductAssociatedContentTableMap::removeInstanceFromPool($criteria); + + $affectedRows += ModelCriteria::delete($con); + ProductAssociatedContentTableMap::clearRelatedInstancePool(); + $con->commit(); + + return $affectedRows; + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + } + + // timestampable behavior + + /** + * Filter by the latest updated + * + * @param int $nbDays Maximum age of the latest update in days + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function recentlyUpdated($nbDays = 7) + { + return $this->addUsingAlias(ProductAssociatedContentTableMap::UPDATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); + } + + /** + * Filter by the latest created + * + * @param int $nbDays Maximum age of in days + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function recentlyCreated($nbDays = 7) + { + return $this->addUsingAlias(ProductAssociatedContentTableMap::CREATED_AT, time() - $nbDays * 24 * 60 * 60, Criteria::GREATER_EQUAL); + } + + /** + * Order by update date desc + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function lastUpdatedFirst() + { + return $this->addDescendingOrderByColumn(ProductAssociatedContentTableMap::UPDATED_AT); + } + + /** + * Order by update date asc + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function firstUpdatedFirst() + { + return $this->addAscendingOrderByColumn(ProductAssociatedContentTableMap::UPDATED_AT); + } + + /** + * Order by create date desc + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function lastCreatedFirst() + { + return $this->addDescendingOrderByColumn(ProductAssociatedContentTableMap::CREATED_AT); + } + + /** + * Order by create date asc + * + * @return ChildProductAssociatedContentQuery The current query, for fluid interface + */ + public function firstCreatedFirst() + { + return $this->addAscendingOrderByColumn(ProductAssociatedContentTableMap::CREATED_AT); + } + +} // ProductAssociatedContentQuery diff --git a/core/lib/Thelia/Model/Base/ProductCategory.php b/core/lib/Thelia/Model/Base/ProductCategory.php old mode 100644 new mode 100755 index 74affb0c0..62a6ea425 --- a/core/lib/Thelia/Model/Base/ProductCategory.php +++ b/core/lib/Thelia/Model/Base/ProductCategory.php @@ -256,7 +256,7 @@ abstract class ProductCategory implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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/ProductDocument.php b/core/lib/Thelia/Model/Base/ProductDocument.php old mode 100644 new mode 100755 index 58c9999ed..96a584dab --- a/core/lib/Thelia/Model/Base/ProductDocument.php +++ b/core/lib/Thelia/Model/Base/ProductDocument.php @@ -120,7 +120,7 @@ abstract class ProductDocument implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class ProductDocument implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class ProductDocument implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collProductDocumentI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class ProductDocument implements ActiveRecordInterface * * @return ChildProductDocument The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class ProductDocument implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildProductDocumentI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collProductDocumentI18ns) { @@ -1742,7 +1742,7 @@ abstract class ProductDocument implements ActiveRecordInterface * * @return ChildProductDocument The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildProductDocumentI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ProductDocumentI18n.php b/core/lib/Thelia/Model/Base/ProductDocumentI18n.php old mode 100644 new mode 100755 index 2c5ca4d0c..ba04b5ccc --- a/core/lib/Thelia/Model/Base/ProductDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/ProductDocumentI18n.php @@ -61,7 +61,7 @@ abstract class ProductDocumentI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ProductDocumentI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ProductDocumentI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ProductDocumentI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/ProductDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/ProductDocumentI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductDocumentQuery.php b/core/lib/Thelia/Model/Base/ProductDocumentQuery.php old mode 100644 new mode 100755 index 06af05a9c..32321554d --- a/core/lib/Thelia/Model/Base/ProductDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/ProductDocumentQuery.php @@ -797,7 +797,7 @@ abstract class ProductDocumentQuery extends ModelCriteria * * @return ChildProductDocumentQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ProductDocumentI18n'; @@ -815,7 +815,7 @@ abstract class ProductDocumentQuery extends ModelCriteria * * @return ChildProductDocumentQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class ProductDocumentQuery extends ModelCriteria * * @return ChildProductDocumentI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/ProductI18n.php b/core/lib/Thelia/Model/Base/ProductI18n.php old mode 100644 new mode 100755 index b0c74bb54..ee7514fd4 --- a/core/lib/Thelia/Model/Base/ProductI18n.php +++ b/core/lib/Thelia/Model/Base/ProductI18n.php @@ -61,7 +61,7 @@ abstract class ProductI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ProductI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ProductI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ProductI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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/ProductImage.php b/core/lib/Thelia/Model/Base/ProductImage.php old mode 100644 new mode 100755 index 0b4030ccb..152a298a5 --- a/core/lib/Thelia/Model/Base/ProductImage.php +++ b/core/lib/Thelia/Model/Base/ProductImage.php @@ -120,7 +120,7 @@ abstract class ProductImage implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -290,7 +290,7 @@ abstract class ProductImage implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1640,7 +1640,7 @@ abstract class ProductImage implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collProductImageI18ns instanceof Collection) { @@ -1683,7 +1683,7 @@ abstract class ProductImage implements ActiveRecordInterface * * @return ChildProductImage The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1707,7 +1707,7 @@ abstract class ProductImage implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildProductImageI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collProductImageI18ns) { @@ -1742,7 +1742,7 @@ abstract class ProductImage implements ActiveRecordInterface * * @return ChildProductImage The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildProductImageI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ProductImageI18n.php b/core/lib/Thelia/Model/Base/ProductImageI18n.php old mode 100644 new mode 100755 index 634f726a3..c84f99af2 --- a/core/lib/Thelia/Model/Base/ProductImageI18n.php +++ b/core/lib/Thelia/Model/Base/ProductImageI18n.php @@ -61,7 +61,7 @@ abstract class ProductImageI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ProductImageI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ProductImageI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ProductImageI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } diff --git a/core/lib/Thelia/Model/Base/ProductImageI18nQuery.php b/core/lib/Thelia/Model/Base/ProductImageI18nQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Base/ProductImageQuery.php b/core/lib/Thelia/Model/Base/ProductImageQuery.php old mode 100644 new mode 100755 index 94cb1b361..e351c6f40 --- a/core/lib/Thelia/Model/Base/ProductImageQuery.php +++ b/core/lib/Thelia/Model/Base/ProductImageQuery.php @@ -797,7 +797,7 @@ abstract class ProductImageQuery extends ModelCriteria * * @return ChildProductImageQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ProductImageI18n'; @@ -815,7 +815,7 @@ abstract class ProductImageQuery extends ModelCriteria * * @return ChildProductImageQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -836,7 +836,7 @@ abstract class ProductImageQuery extends ModelCriteria * * @return ChildProductImageI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/ProductPrice.php b/core/lib/Thelia/Model/Base/ProductPrice.php old mode 100644 new mode 100755 index dab6e47a4..15502a385 --- a/core/lib/Thelia/Model/Base/ProductPrice.php +++ b/core/lib/Thelia/Model/Base/ProductPrice.php @@ -274,7 +274,7 @@ abstract class ProductPrice implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** diff --git a/core/lib/Thelia/Model/Base/ProductPriceQuery.php b/core/lib/Thelia/Model/Base/ProductPriceQuery.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 index 3df8ecbae..8a4d4ed18 --- a/core/lib/Thelia/Model/Base/ProductQuery.php +++ b/core/lib/Thelia/Model/Base/ProductQuery.php @@ -64,10 +64,6 @@ use Thelia\Model\Map\ProductTableMap; * @method ChildProductQuery rightJoinProductSaleElements($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ProductSaleElements relation * @method ChildProductQuery innerJoinProductSaleElements($relationAlias = null) Adds a INNER JOIN clause to the query using the ProductSaleElements relation * - * @method ChildProductQuery leftJoinContentAssoc($relationAlias = null) Adds a LEFT JOIN clause to the query using the ContentAssoc relation - * @method ChildProductQuery rightJoinContentAssoc($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ContentAssoc relation - * @method ChildProductQuery innerJoinContentAssoc($relationAlias = null) Adds a INNER JOIN clause to the query using the ContentAssoc relation - * * @method ChildProductQuery leftJoinProductImage($relationAlias = null) Adds a LEFT JOIN clause to the query using the ProductImage relation * @method ChildProductQuery rightJoinProductImage($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ProductImage relation * @method ChildProductQuery innerJoinProductImage($relationAlias = null) Adds a INNER JOIN clause to the query using the ProductImage relation @@ -92,6 +88,10 @@ use Thelia\Model\Map\ProductTableMap; * @method ChildProductQuery rightJoinCartItem($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CartItem relation * @method ChildProductQuery innerJoinCartItem($relationAlias = null) Adds a INNER JOIN clause to the query using the CartItem relation * + * @method ChildProductQuery leftJoinProductAssociatedContent($relationAlias = null) Adds a LEFT JOIN clause to the query using the ProductAssociatedContent relation + * @method ChildProductQuery rightJoinProductAssociatedContent($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ProductAssociatedContent relation + * @method ChildProductQuery innerJoinProductAssociatedContent($relationAlias = null) Adds a INNER JOIN clause to the query using the ProductAssociatedContent relation + * * @method ChildProductQuery leftJoinProductI18n($relationAlias = null) Adds a LEFT JOIN clause to the query using the ProductI18n relation * @method ChildProductQuery rightJoinProductI18n($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ProductI18n relation * @method ChildProductQuery innerJoinProductI18n($relationAlias = null) Adds a INNER JOIN clause to the query using the ProductI18n relation @@ -996,79 +996,6 @@ abstract class ProductQuery extends ModelCriteria ->useQuery($relationAlias ? $relationAlias : 'ProductSaleElements', '\Thelia\Model\ProductSaleElementsQuery'); } - /** - * Filter the query by a related \Thelia\Model\ContentAssoc object - * - * @param \Thelia\Model\ContentAssoc|ObjectCollection $contentAssoc the related object to use as filter - * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL - * - * @return ChildProductQuery The current query, for fluid interface - */ - public function filterByContentAssoc($contentAssoc, $comparison = null) - { - if ($contentAssoc instanceof \Thelia\Model\ContentAssoc) { - return $this - ->addUsingAlias(ProductTableMap::ID, $contentAssoc->getProductId(), $comparison); - } elseif ($contentAssoc instanceof ObjectCollection) { - return $this - ->useContentAssocQuery() - ->filterByPrimaryKeys($contentAssoc->getPrimaryKeys()) - ->endUse(); - } else { - throw new PropelException('filterByContentAssoc() only accepts arguments of type \Thelia\Model\ContentAssoc or Collection'); - } - } - - /** - * Adds a JOIN clause to the query using the ContentAssoc relation - * - * @param string $relationAlias optional alias for the relation - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return ChildProductQuery The current query, for fluid interface - */ - public function joinContentAssoc($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - $tableMap = $this->getTableMap(); - $relationMap = $tableMap->getRelation('ContentAssoc'); - - // create a ModelJoin object for this join - $join = new ModelJoin(); - $join->setJoinType($joinType); - $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); - if ($previousJoin = $this->getPreviousJoin()) { - $join->setPreviousJoin($previousJoin); - } - - // add the ModelJoin to the current object - if ($relationAlias) { - $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); - $this->addJoinObject($join, $relationAlias); - } else { - $this->addJoinObject($join, 'ContentAssoc'); - } - - return $this; - } - - /** - * Use the ContentAssoc relation ContentAssoc object - * - * @see useQuery() - * - * @param string $relationAlias optional alias for the relation, - * to be used as main alias in the secondary query - * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' - * - * @return \Thelia\Model\ContentAssocQuery A secondary query class using the current class as primary query - */ - public function useContentAssocQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) - { - return $this - ->joinContentAssoc($relationAlias, $joinType) - ->useQuery($relationAlias ? $relationAlias : 'ContentAssoc', '\Thelia\Model\ContentAssocQuery'); - } - /** * Filter the query by a related \Thelia\Model\ProductImage object * @@ -1507,6 +1434,79 @@ abstract class ProductQuery extends ModelCriteria ->useQuery($relationAlias ? $relationAlias : 'CartItem', '\Thelia\Model\CartItemQuery'); } + /** + * Filter the query by a related \Thelia\Model\ProductAssociatedContent object + * + * @param \Thelia\Model\ProductAssociatedContent|ObjectCollection $productAssociatedContent the related object to use as filter + * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL + * + * @return ChildProductQuery The current query, for fluid interface + */ + public function filterByProductAssociatedContent($productAssociatedContent, $comparison = null) + { + if ($productAssociatedContent instanceof \Thelia\Model\ProductAssociatedContent) { + return $this + ->addUsingAlias(ProductTableMap::ID, $productAssociatedContent->getProductId(), $comparison); + } elseif ($productAssociatedContent instanceof ObjectCollection) { + return $this + ->useProductAssociatedContentQuery() + ->filterByPrimaryKeys($productAssociatedContent->getPrimaryKeys()) + ->endUse(); + } else { + throw new PropelException('filterByProductAssociatedContent() only accepts arguments of type \Thelia\Model\ProductAssociatedContent or Collection'); + } + } + + /** + * Adds a JOIN clause to the query using the ProductAssociatedContent relation + * + * @param string $relationAlias optional alias for the relation + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return ChildProductQuery The current query, for fluid interface + */ + public function joinProductAssociatedContent($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + $tableMap = $this->getTableMap(); + $relationMap = $tableMap->getRelation('ProductAssociatedContent'); + + // create a ModelJoin object for this join + $join = new ModelJoin(); + $join->setJoinType($joinType); + $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias); + if ($previousJoin = $this->getPreviousJoin()) { + $join->setPreviousJoin($previousJoin); + } + + // add the ModelJoin to the current object + if ($relationAlias) { + $this->addAlias($relationAlias, $relationMap->getRightTable()->getName()); + $this->addJoinObject($join, $relationAlias); + } else { + $this->addJoinObject($join, 'ProductAssociatedContent'); + } + + return $this; + } + + /** + * Use the ProductAssociatedContent relation ProductAssociatedContent object + * + * @see useQuery() + * + * @param string $relationAlias optional alias for the relation, + * to be used as main alias in the secondary query + * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' + * + * @return \Thelia\Model\ProductAssociatedContentQuery A secondary query class using the current class as primary query + */ + public function useProductAssociatedContentQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN) + { + return $this + ->joinProductAssociatedContent($relationAlias, $joinType) + ->useQuery($relationAlias ? $relationAlias : 'ProductAssociatedContent', '\Thelia\Model\ProductAssociatedContentQuery'); + } + /** * Filter the query by a related \Thelia\Model\ProductI18n object * @@ -1872,7 +1872,7 @@ abstract class ProductQuery extends ModelCriteria * * @return ChildProductQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ProductI18n'; @@ -1890,7 +1890,7 @@ abstract class ProductQuery extends ModelCriteria * * @return ChildProductQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -1911,7 +1911,7 @@ abstract class ProductQuery extends ModelCriteria * * @return ChildProductI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/ProductSaleElements.php b/core/lib/Thelia/Model/Base/ProductSaleElements.php old mode 100644 new mode 100755 index 22a8c9752..f79d9a246 --- a/core/lib/Thelia/Model/Base/ProductSaleElements.php +++ b/core/lib/Thelia/Model/Base/ProductSaleElements.php @@ -332,7 +332,7 @@ abstract class ProductSaleElements implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** diff --git a/core/lib/Thelia/Model/Base/ProductSaleElementsQuery.php b/core/lib/Thelia/Model/Base/ProductSaleElementsQuery.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 index 1779cee20..071dfc742 --- a/core/lib/Thelia/Model/Base/ProductVersion.php +++ b/core/lib/Thelia/Model/Base/ProductVersion.php @@ -300,7 +300,7 @@ abstract class ProductVersion implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index c6c527134..b513ea326 --- a/core/lib/Thelia/Model/Base/Resource.php +++ b/core/lib/Thelia/Model/Base/Resource.php @@ -116,7 +116,7 @@ abstract class Resource implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -298,7 +298,7 @@ abstract class Resource implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1968,7 +1968,7 @@ abstract class Resource implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collGroupResources instanceof Collection) { @@ -2018,7 +2018,7 @@ abstract class Resource implements ActiveRecordInterface * * @return ChildResource The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2042,7 +2042,7 @@ abstract class Resource implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildResourceI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collResourceI18ns) { @@ -2077,7 +2077,7 @@ abstract class Resource implements ActiveRecordInterface * * @return ChildResource The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildResourceI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/ResourceI18n.php b/core/lib/Thelia/Model/Base/ResourceI18n.php old mode 100644 new mode 100755 index c060e8776..4419f7fc8 --- a/core/lib/Thelia/Model/Base/ResourceI18n.php +++ b/core/lib/Thelia/Model/Base/ResourceI18n.php @@ -61,7 +61,7 @@ abstract class ResourceI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -111,7 +111,7 @@ abstract class ResourceI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -272,7 +272,7 @@ abstract class ResourceI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -576,7 +576,7 @@ abstract class ResourceI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index 6559d6522..e12ee8f53 --- a/core/lib/Thelia/Model/Base/ResourceQuery.php +++ b/core/lib/Thelia/Model/Base/ResourceQuery.php @@ -720,7 +720,7 @@ abstract class ResourceQuery extends ModelCriteria * * @return ChildResourceQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'ResourceI18n'; @@ -738,7 +738,7 @@ abstract class ResourceQuery extends ModelCriteria * * @return ChildResourceQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -759,7 +759,7 @@ abstract class ResourceQuery extends ModelCriteria * * @return ChildResourceI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/Rewriting.php b/core/lib/Thelia/Model/Base/Rewriting.php old mode 100644 new mode 100755 index 12229c438..c8109458d --- a/core/lib/Thelia/Model/Base/Rewriting.php +++ b/core/lib/Thelia/Model/Base/Rewriting.php @@ -294,7 +294,7 @@ abstract class Rewriting implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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/Tax.php b/core/lib/Thelia/Model/Base/Tax.php old mode 100644 new mode 100755 index 3e405414c..c1ddbf23a --- a/core/lib/Thelia/Model/Base/Tax.php +++ b/core/lib/Thelia/Model/Base/Tax.php @@ -109,7 +109,7 @@ abstract class Tax implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -285,7 +285,7 @@ abstract class Tax implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -1762,7 +1762,7 @@ abstract class Tax implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collTaxRuleCountries instanceof Collection) { @@ -1808,7 +1808,7 @@ abstract class Tax implements ActiveRecordInterface * * @return ChildTax The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -1832,7 +1832,7 @@ abstract class Tax implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildTaxI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collTaxI18ns) { @@ -1867,7 +1867,7 @@ abstract class Tax implements ActiveRecordInterface * * @return ChildTax The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildTaxI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/TaxI18n.php b/core/lib/Thelia/Model/Base/TaxI18n.php old mode 100644 new mode 100755 index f8577e860..a066fe4a8 --- a/core/lib/Thelia/Model/Base/TaxI18n.php +++ b/core/lib/Thelia/Model/Base/TaxI18n.php @@ -61,7 +61,7 @@ abstract class TaxI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -99,7 +99,7 @@ abstract class TaxI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -260,7 +260,7 @@ abstract class TaxI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -500,7 +500,7 @@ abstract class TaxI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index 307ace57c..0a61cbb3c --- a/core/lib/Thelia/Model/Base/TaxQuery.php +++ b/core/lib/Thelia/Model/Base/TaxQuery.php @@ -715,7 +715,7 @@ abstract class TaxQuery extends ModelCriteria * * @return ChildTaxQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'TaxI18n'; @@ -733,7 +733,7 @@ abstract class TaxQuery extends ModelCriteria * * @return ChildTaxQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -754,7 +754,7 @@ abstract class TaxQuery extends ModelCriteria * * @return ChildTaxI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Base/TaxRule.php b/core/lib/Thelia/Model/Base/TaxRule.php old mode 100644 new mode 100755 index bf318498c..e363541d7 --- a/core/lib/Thelia/Model/Base/TaxRule.php +++ b/core/lib/Thelia/Model/Base/TaxRule.php @@ -129,7 +129,7 @@ abstract class TaxRule implements ActiveRecordInterface * Current locale * @var string */ - protected $currentLocale = 'en_US'; + protected $currentLocale = 'en_EN'; /** * Current translation objects @@ -311,7 +311,7 @@ abstract class TaxRule implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -2146,7 +2146,7 @@ abstract class TaxRule implements ActiveRecordInterface } // if ($deep) // i18n behavior - $this->currentLocale = 'en_US'; + $this->currentLocale = 'en_EN'; $this->currentTranslations = null; if ($this->collProducts instanceof Collection) { @@ -2196,7 +2196,7 @@ abstract class TaxRule implements ActiveRecordInterface * * @return ChildTaxRule The current object (for fluent API support) */ - public function setLocale($locale = 'en_US') + public function setLocale($locale = 'en_EN') { $this->currentLocale = $locale; @@ -2220,7 +2220,7 @@ abstract class TaxRule implements ActiveRecordInterface * @param ConnectionInterface $con an optional connection object * * @return ChildTaxRuleI18n */ - public function getTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function getTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!isset($this->currentTranslations[$locale])) { if (null !== $this->collTaxRuleI18ns) { @@ -2255,7 +2255,7 @@ abstract class TaxRule implements ActiveRecordInterface * * @return ChildTaxRule The current object (for fluent API support) */ - public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null) + public function removeTranslation($locale = 'en_EN', ConnectionInterface $con = null) { if (!$this->isNew()) { ChildTaxRuleI18nQuery::create() diff --git a/core/lib/Thelia/Model/Base/TaxRuleCountry.php b/core/lib/Thelia/Model/Base/TaxRuleCountry.php old mode 100644 new mode 100755 index b5ae7941b..66f6f585b --- a/core/lib/Thelia/Model/Base/TaxRuleCountry.php +++ b/core/lib/Thelia/Model/Base/TaxRuleCountry.php @@ -281,7 +281,7 @@ abstract class TaxRuleCountry implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** 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 index 51bab6a77..f685dd3cc --- a/core/lib/Thelia/Model/Base/TaxRuleI18n.php +++ b/core/lib/Thelia/Model/Base/TaxRuleI18n.php @@ -61,7 +61,7 @@ abstract class TaxRuleI18n implements ActiveRecordInterface /** * The value for the locale field. - * Note: this column has a database default value of: 'en_US' + * Note: this column has a database default value of: 'en_EN' * @var string */ protected $locale; @@ -87,7 +87,7 @@ abstract class TaxRuleI18n implements ActiveRecordInterface */ public function applyDefaultValues() { - $this->locale = 'en_US'; + $this->locale = 'en_EN'; } /** @@ -248,7 +248,7 @@ abstract class TaxRuleI18n implements ActiveRecordInterface */ public function hasVirtualColumn($name) { - return isset($this->virtualColumns[$name]); + return array_key_exists($name, $this->virtualColumns); } /** @@ -424,7 +424,7 @@ abstract class TaxRuleI18n implements ActiveRecordInterface */ public function hasOnlyDefaultValues() { - if ($this->locale !== 'en_US') { + if ($this->locale !== 'en_EN') { return false; } 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 index 2fb478b7a..36f2edd99 --- a/core/lib/Thelia/Model/Base/TaxRuleQuery.php +++ b/core/lib/Thelia/Model/Base/TaxRuleQuery.php @@ -846,7 +846,7 @@ abstract class TaxRuleQuery extends ModelCriteria * * @return ChildTaxRuleQuery The current query, for fluid interface */ - public function joinI18n($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function joinI18n($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { $relationName = $relationAlias ? $relationAlias : 'TaxRuleI18n'; @@ -864,7 +864,7 @@ abstract class TaxRuleQuery extends ModelCriteria * * @return ChildTaxRuleQuery The current query, for fluid interface */ - public function joinWithI18n($locale = 'en_US', $joinType = Criteria::LEFT_JOIN) + public function joinWithI18n($locale = 'en_EN', $joinType = Criteria::LEFT_JOIN) { $this ->joinI18n($locale, null, $joinType) @@ -885,7 +885,7 @@ abstract class TaxRuleQuery extends ModelCriteria * * @return ChildTaxRuleI18nQuery A secondary query class using the current class as primary query */ - public function useI18nQuery($locale = 'en_US', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) + public function useI18nQuery($locale = 'en_EN', $relationAlias = null, $joinType = Criteria::LEFT_JOIN) { return $this ->joinI18n($locale, $relationAlias, $joinType) diff --git a/core/lib/Thelia/Model/Cart.php b/core/lib/Thelia/Model/Cart.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CartItem.php b/core/lib/Thelia/Model/CartItem.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CartItemQuery.php b/core/lib/Thelia/Model/CartItemQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CartQuery.php b/core/lib/Thelia/Model/CartQuery.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/CategoryAssociatedContent.php b/core/lib/Thelia/Model/CategoryAssociatedContent.php new file mode 100644 index 000000000..9296e6274 --- /dev/null +++ b/core/lib/Thelia/Model/CategoryAssociatedContent.php @@ -0,0 +1,9 @@ +setPhpName('Accessory'); $this->setClassName('\\Thelia\\Model\\Accessory'); $this->setPackage('Thelia.Model'); - $this->setUseIdGenerator(false); + $this->setUseIdGenerator(true); $this->setIsCrossRef(true); // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); @@ -429,6 +429,10 @@ class AccessoryTableMap extends TableMap $criteria = $criteria->buildCriteria(); // build Criteria from Accessory object } + if ($criteria->containsKey(AccessoryTableMap::ID) && $criteria->keyContainsValue(AccessoryTableMap::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.AccessoryTableMap::ID.')'); + } + // Set the correct dbName $query = AccessoryQuery::create()->mergeWith($criteria); 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 index 02a20540e..14fc79eeb --- a/core/lib/Thelia/Model/Map/AttributeAvI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/AttributeAvI18nTableMap.php @@ -151,7 +151,7 @@ class AttributeAvI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'attribute_av', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/AttributeAvTableMap.php b/core/lib/Thelia/Model/Map/AttributeAvTableMap.php old mode 100644 new mode 100755 index 0c5c2e1c9..138f0fa9c --- a/core/lib/Thelia/Model/Map/AttributeAvTableMap.php +++ b/core/lib/Thelia/Model/Map/AttributeAvTableMap.php @@ -106,7 +106,7 @@ class AttributeAvTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index 8471d3e26..b60cae5b8 --- a/core/lib/Thelia/Model/Map/AttributeI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/AttributeI18nTableMap.php @@ -151,7 +151,7 @@ class AttributeI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'attribute', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/AttributeTableMap.php b/core/lib/Thelia/Model/Map/AttributeTableMap.php old mode 100644 new mode 100755 index 773e13cab..dca811cbc --- a/core/lib/Thelia/Model/Map/AttributeTableMap.php +++ b/core/lib/Thelia/Model/Map/AttributeTableMap.php @@ -101,7 +101,7 @@ class AttributeTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/CartItemTableMap.php b/core/lib/Thelia/Model/Map/CartItemTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/CartTableMap.php b/core/lib/Thelia/Model/Map/CartTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ContentAssocTableMap.php b/core/lib/Thelia/Model/Map/CategoryAssociatedContentTableMap.php similarity index 68% rename from core/lib/Thelia/Model/Map/ContentAssocTableMap.php rename to core/lib/Thelia/Model/Map/CategoryAssociatedContentTableMap.php index b080bea83..c78d59506 100644 --- a/core/lib/Thelia/Model/Map/ContentAssocTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryAssociatedContentTableMap.php @@ -10,12 +10,12 @@ use Propel\Runtime\Exception\PropelException; use Propel\Runtime\Map\RelationMap; use Propel\Runtime\Map\TableMap; use Propel\Runtime\Map\TableMapTrait; -use Thelia\Model\ContentAssoc; -use Thelia\Model\ContentAssocQuery; +use Thelia\Model\CategoryAssociatedContent; +use Thelia\Model\CategoryAssociatedContentQuery; /** - * This class defines the structure of the 'content_assoc' table. + * This class defines the structure of the 'category_associated_content' table. * * * @@ -25,14 +25,14 @@ use Thelia\Model\ContentAssocQuery; * (i.e. if it's a text column type). * */ -class ContentAssocTableMap extends TableMap +class CategoryAssociatedContentTableMap extends TableMap { use InstancePoolTrait; use TableMapTrait; /** * The (dot-path) name of this class */ - const CLASS_NAME = 'Thelia.Model.Map.ContentAssocTableMap'; + const CLASS_NAME = 'Thelia.Model.Map.CategoryAssociatedContentTableMap'; /** * The default database name for this class @@ -42,22 +42,22 @@ class ContentAssocTableMap extends TableMap /** * The table name for this class */ - const TABLE_NAME = 'content_assoc'; + const TABLE_NAME = 'category_associated_content'; /** * The related Propel class for this table */ - const OM_CLASS = '\\Thelia\\Model\\ContentAssoc'; + const OM_CLASS = '\\Thelia\\Model\\CategoryAssociatedContent'; /** * A class that can be returned by this tableMap */ - const CLASS_DEFAULT = 'Thelia.Model.ContentAssoc'; + const CLASS_DEFAULT = 'Thelia.Model.CategoryAssociatedContent'; /** * The total number of columns */ - const NUM_COLUMNS = 7; + const NUM_COLUMNS = 6; /** * The number of lazy-loaded columns @@ -67,42 +67,37 @@ class ContentAssocTableMap extends TableMap /** * The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ - const NUM_HYDRATE_COLUMNS = 7; + const NUM_HYDRATE_COLUMNS = 6; /** * the column name for the ID field */ - const ID = 'content_assoc.ID'; + const ID = 'category_associated_content.ID'; /** * the column name for the CATEGORY_ID field */ - const CATEGORY_ID = 'content_assoc.CATEGORY_ID'; - - /** - * the column name for the PRODUCT_ID field - */ - const PRODUCT_ID = 'content_assoc.PRODUCT_ID'; + const CATEGORY_ID = 'category_associated_content.CATEGORY_ID'; /** * the column name for the CONTENT_ID field */ - const CONTENT_ID = 'content_assoc.CONTENT_ID'; + const CONTENT_ID = 'category_associated_content.CONTENT_ID'; /** * the column name for the POSITION field */ - const POSITION = 'content_assoc.POSITION'; + const POSITION = 'category_associated_content.POSITION'; /** * the column name for the CREATED_AT field */ - const CREATED_AT = 'content_assoc.CREATED_AT'; + const CREATED_AT = 'category_associated_content.CREATED_AT'; /** * the column name for the UPDATED_AT field */ - const UPDATED_AT = 'content_assoc.UPDATED_AT'; + const UPDATED_AT = 'category_associated_content.UPDATED_AT'; /** * The default string format for model objects of the related table @@ -116,12 +111,12 @@ class ContentAssocTableMap extends TableMap * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' */ protected static $fieldNames = array ( - self::TYPE_PHPNAME => array('Id', 'CategoryId', 'ProductId', 'ContentId', 'Position', 'CreatedAt', 'UpdatedAt', ), - self::TYPE_STUDLYPHPNAME => array('id', 'categoryId', 'productId', 'contentId', 'position', 'createdAt', 'updatedAt', ), - self::TYPE_COLNAME => array(ContentAssocTableMap::ID, ContentAssocTableMap::CATEGORY_ID, ContentAssocTableMap::PRODUCT_ID, ContentAssocTableMap::CONTENT_ID, ContentAssocTableMap::POSITION, ContentAssocTableMap::CREATED_AT, ContentAssocTableMap::UPDATED_AT, ), - self::TYPE_RAW_COLNAME => array('ID', 'CATEGORY_ID', 'PRODUCT_ID', 'CONTENT_ID', 'POSITION', 'CREATED_AT', 'UPDATED_AT', ), - self::TYPE_FIELDNAME => array('id', 'category_id', 'product_id', 'content_id', 'position', 'created_at', 'updated_at', ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, ) + self::TYPE_PHPNAME => array('Id', 'CategoryId', 'ContentId', 'Position', 'CreatedAt', 'UpdatedAt', ), + self::TYPE_STUDLYPHPNAME => array('id', 'categoryId', 'contentId', 'position', 'createdAt', 'updatedAt', ), + self::TYPE_COLNAME => array(CategoryAssociatedContentTableMap::ID, CategoryAssociatedContentTableMap::CATEGORY_ID, CategoryAssociatedContentTableMap::CONTENT_ID, CategoryAssociatedContentTableMap::POSITION, CategoryAssociatedContentTableMap::CREATED_AT, CategoryAssociatedContentTableMap::UPDATED_AT, ), + self::TYPE_RAW_COLNAME => array('ID', 'CATEGORY_ID', 'CONTENT_ID', 'POSITION', 'CREATED_AT', 'UPDATED_AT', ), + self::TYPE_FIELDNAME => array('id', 'category_id', 'content_id', 'position', 'created_at', 'updated_at', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, ) ); /** @@ -131,12 +126,12 @@ class ContentAssocTableMap extends TableMap * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 */ protected static $fieldKeys = array ( - self::TYPE_PHPNAME => array('Id' => 0, 'CategoryId' => 1, 'ProductId' => 2, 'ContentId' => 3, 'Position' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, ), - self::TYPE_STUDLYPHPNAME => array('id' => 0, 'categoryId' => 1, 'productId' => 2, 'contentId' => 3, 'position' => 4, 'createdAt' => 5, 'updatedAt' => 6, ), - self::TYPE_COLNAME => array(ContentAssocTableMap::ID => 0, ContentAssocTableMap::CATEGORY_ID => 1, ContentAssocTableMap::PRODUCT_ID => 2, ContentAssocTableMap::CONTENT_ID => 3, ContentAssocTableMap::POSITION => 4, ContentAssocTableMap::CREATED_AT => 5, ContentAssocTableMap::UPDATED_AT => 6, ), - self::TYPE_RAW_COLNAME => array('ID' => 0, 'CATEGORY_ID' => 1, 'PRODUCT_ID' => 2, 'CONTENT_ID' => 3, 'POSITION' => 4, 'CREATED_AT' => 5, 'UPDATED_AT' => 6, ), - self::TYPE_FIELDNAME => array('id' => 0, 'category_id' => 1, 'product_id' => 2, 'content_id' => 3, 'position' => 4, 'created_at' => 5, 'updated_at' => 6, ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, ) + self::TYPE_PHPNAME => array('Id' => 0, 'CategoryId' => 1, 'ContentId' => 2, 'Position' => 3, 'CreatedAt' => 4, 'UpdatedAt' => 5, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'categoryId' => 1, 'contentId' => 2, 'position' => 3, 'createdAt' => 4, 'updatedAt' => 5, ), + self::TYPE_COLNAME => array(CategoryAssociatedContentTableMap::ID => 0, CategoryAssociatedContentTableMap::CATEGORY_ID => 1, CategoryAssociatedContentTableMap::CONTENT_ID => 2, CategoryAssociatedContentTableMap::POSITION => 3, CategoryAssociatedContentTableMap::CREATED_AT => 4, CategoryAssociatedContentTableMap::UPDATED_AT => 5, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'CATEGORY_ID' => 1, 'CONTENT_ID' => 2, 'POSITION' => 3, 'CREATED_AT' => 4, 'UPDATED_AT' => 5, ), + self::TYPE_FIELDNAME => array('id' => 0, 'category_id' => 1, 'content_id' => 2, 'position' => 3, 'created_at' => 4, 'updated_at' => 5, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, ) ); /** @@ -149,17 +144,16 @@ class ContentAssocTableMap extends TableMap public function initialize() { // attributes - $this->setName('content_assoc'); - $this->setPhpName('ContentAssoc'); - $this->setClassName('\\Thelia\\Model\\ContentAssoc'); + $this->setName('category_associated_content'); + $this->setPhpName('CategoryAssociatedContent'); + $this->setClassName('\\Thelia\\Model\\CategoryAssociatedContent'); $this->setPackage('Thelia.Model'); $this->setUseIdGenerator(true); // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); - $this->addForeignKey('CATEGORY_ID', 'CategoryId', 'INTEGER', 'category', 'ID', false, null, null); - $this->addForeignKey('PRODUCT_ID', 'ProductId', 'INTEGER', 'product', 'ID', false, null, null); - $this->addForeignKey('CONTENT_ID', 'ContentId', 'INTEGER', 'content', 'ID', false, null, null); - $this->addColumn('POSITION', 'Position', 'INTEGER', false, null, null); + $this->addForeignKey('CATEGORY_ID', 'CategoryId', 'INTEGER', 'category', 'ID', true, null, null); + $this->addForeignKey('CONTENT_ID', 'ContentId', 'INTEGER', 'content', 'ID', true, null, null); + $this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null); $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null); $this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null); } // initialize() @@ -170,7 +164,6 @@ class ContentAssocTableMap extends TableMap public function buildRelations() { $this->addRelation('Category', '\\Thelia\\Model\\Category', RelationMap::MANY_TO_ONE, array('category_id' => 'id', ), 'CASCADE', 'RESTRICT'); - $this->addRelation('Product', '\\Thelia\\Model\\Product', RelationMap::MANY_TO_ONE, array('product_id' => 'id', ), 'CASCADE', 'RESTRICT'); $this->addRelation('Content', '\\Thelia\\Model\\Content', RelationMap::MANY_TO_ONE, array('content_id' => 'id', ), 'CASCADE', 'RESTRICT'); } // buildRelations() @@ -243,7 +236,7 @@ class ContentAssocTableMap extends TableMap */ public static function getOMClass($withPrefix = true) { - return $withPrefix ? ContentAssocTableMap::CLASS_DEFAULT : ContentAssocTableMap::OM_CLASS; + return $withPrefix ? CategoryAssociatedContentTableMap::CLASS_DEFAULT : CategoryAssociatedContentTableMap::OM_CLASS; } /** @@ -257,21 +250,21 @@ class ContentAssocTableMap extends TableMap * * @throws PropelException Any exceptions caught during processing will be * rethrown wrapped into a PropelException. - * @return array (ContentAssoc object, last column rank) + * @return array (CategoryAssociatedContent object, last column rank) */ public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) { - $key = ContentAssocTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); - if (null !== ($obj = ContentAssocTableMap::getInstanceFromPool($key))) { + $key = CategoryAssociatedContentTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = CategoryAssociatedContentTableMap::getInstanceFromPool($key))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj->hydrate($row, $offset, true); // rehydrate - $col = $offset + ContentAssocTableMap::NUM_HYDRATE_COLUMNS; + $col = $offset + CategoryAssociatedContentTableMap::NUM_HYDRATE_COLUMNS; } else { - $cls = ContentAssocTableMap::OM_CLASS; + $cls = CategoryAssociatedContentTableMap::OM_CLASS; $obj = new $cls(); $col = $obj->hydrate($row, $offset, false, $indexType); - ContentAssocTableMap::addInstanceToPool($obj, $key); + CategoryAssociatedContentTableMap::addInstanceToPool($obj, $key); } return array($obj, $col); @@ -294,8 +287,8 @@ class ContentAssocTableMap extends TableMap $cls = static::getOMClass(false); // populate the object(s) while ($row = $dataFetcher->fetch()) { - $key = ContentAssocTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); - if (null !== ($obj = ContentAssocTableMap::getInstanceFromPool($key))) { + $key = CategoryAssociatedContentTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = CategoryAssociatedContentTableMap::getInstanceFromPool($key))) { // We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj->hydrate($row, 0, true); // rehydrate @@ -304,7 +297,7 @@ class ContentAssocTableMap extends TableMap $obj = new $cls(); $obj->hydrate($row); $results[] = $obj; - ContentAssocTableMap::addInstanceToPool($obj, $key); + CategoryAssociatedContentTableMap::addInstanceToPool($obj, $key); } // if key exists } @@ -325,17 +318,15 @@ class ContentAssocTableMap extends TableMap public static function addSelectColumns(Criteria $criteria, $alias = null) { if (null === $alias) { - $criteria->addSelectColumn(ContentAssocTableMap::ID); - $criteria->addSelectColumn(ContentAssocTableMap::CATEGORY_ID); - $criteria->addSelectColumn(ContentAssocTableMap::PRODUCT_ID); - $criteria->addSelectColumn(ContentAssocTableMap::CONTENT_ID); - $criteria->addSelectColumn(ContentAssocTableMap::POSITION); - $criteria->addSelectColumn(ContentAssocTableMap::CREATED_AT); - $criteria->addSelectColumn(ContentAssocTableMap::UPDATED_AT); + $criteria->addSelectColumn(CategoryAssociatedContentTableMap::ID); + $criteria->addSelectColumn(CategoryAssociatedContentTableMap::CATEGORY_ID); + $criteria->addSelectColumn(CategoryAssociatedContentTableMap::CONTENT_ID); + $criteria->addSelectColumn(CategoryAssociatedContentTableMap::POSITION); + $criteria->addSelectColumn(CategoryAssociatedContentTableMap::CREATED_AT); + $criteria->addSelectColumn(CategoryAssociatedContentTableMap::UPDATED_AT); } else { $criteria->addSelectColumn($alias . '.ID'); $criteria->addSelectColumn($alias . '.CATEGORY_ID'); - $criteria->addSelectColumn($alias . '.PRODUCT_ID'); $criteria->addSelectColumn($alias . '.CONTENT_ID'); $criteria->addSelectColumn($alias . '.POSITION'); $criteria->addSelectColumn($alias . '.CREATED_AT'); @@ -352,7 +343,7 @@ class ContentAssocTableMap extends TableMap */ public static function getTableMap() { - return Propel::getServiceContainer()->getDatabaseMap(ContentAssocTableMap::DATABASE_NAME)->getTable(ContentAssocTableMap::TABLE_NAME); + return Propel::getServiceContainer()->getDatabaseMap(CategoryAssociatedContentTableMap::DATABASE_NAME)->getTable(CategoryAssociatedContentTableMap::TABLE_NAME); } /** @@ -360,16 +351,16 @@ class ContentAssocTableMap extends TableMap */ public static function buildTableMap() { - $dbMap = Propel::getServiceContainer()->getDatabaseMap(ContentAssocTableMap::DATABASE_NAME); - if (!$dbMap->hasTable(ContentAssocTableMap::TABLE_NAME)) { - $dbMap->addTableObject(new ContentAssocTableMap()); + $dbMap = Propel::getServiceContainer()->getDatabaseMap(CategoryAssociatedContentTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(CategoryAssociatedContentTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new CategoryAssociatedContentTableMap()); } } /** - * Performs a DELETE on the database, given a ContentAssoc or Criteria object OR a primary key value. + * Performs a DELETE on the database, given a CategoryAssociatedContent or Criteria object OR a primary key value. * - * @param mixed $values Criteria or ContentAssoc object or primary key or array of primary keys + * @param mixed $values Criteria or CategoryAssociatedContent object or primary key or array of primary keys * which is used to create the DELETE statement * @param ConnectionInterface $con the connection to use * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows @@ -380,25 +371,25 @@ class ContentAssocTableMap extends TableMap public static function doDelete($values, ConnectionInterface $con = null) { if (null === $con) { - $con = Propel::getServiceContainer()->getWriteConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getWriteConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } if ($values instanceof Criteria) { // rename for clarity $criteria = $values; - } elseif ($values instanceof \Thelia\Model\ContentAssoc) { // it's a model object + } elseif ($values instanceof \Thelia\Model\CategoryAssociatedContent) { // it's a model object // create criteria based on pk values $criteria = $values->buildPkeyCriteria(); } else { // it's a primary key, or an array of pks - $criteria = new Criteria(ContentAssocTableMap::DATABASE_NAME); - $criteria->add(ContentAssocTableMap::ID, (array) $values, Criteria::IN); + $criteria = new Criteria(CategoryAssociatedContentTableMap::DATABASE_NAME); + $criteria->add(CategoryAssociatedContentTableMap::ID, (array) $values, Criteria::IN); } - $query = ContentAssocQuery::create()->mergeWith($criteria); + $query = CategoryAssociatedContentQuery::create()->mergeWith($criteria); - if ($values instanceof Criteria) { ContentAssocTableMap::clearInstancePool(); + if ($values instanceof Criteria) { CategoryAssociatedContentTableMap::clearInstancePool(); } elseif (!is_object($values)) { // it's a primary key, or an array of pks - foreach ((array) $values as $singleval) { ContentAssocTableMap::removeInstanceFromPool($singleval); + foreach ((array) $values as $singleval) { CategoryAssociatedContentTableMap::removeInstanceFromPool($singleval); } } @@ -406,20 +397,20 @@ class ContentAssocTableMap extends TableMap } /** - * Deletes all rows from the content_assoc table. + * Deletes all rows from the category_associated_content table. * * @param ConnectionInterface $con the connection to use * @return int The number of affected rows (if supported by underlying database driver). */ public static function doDeleteAll(ConnectionInterface $con = null) { - return ContentAssocQuery::create()->doDeleteAll($con); + return CategoryAssociatedContentQuery::create()->doDeleteAll($con); } /** - * Performs an INSERT on the database, given a ContentAssoc or Criteria object. + * Performs an INSERT on the database, given a CategoryAssociatedContent or Criteria object. * - * @param mixed $criteria Criteria or ContentAssoc object containing data that is used to create the INSERT statement. + * @param mixed $criteria Criteria or CategoryAssociatedContent object containing data that is used to create the INSERT statement. * @param ConnectionInterface $con the ConnectionInterface connection to use * @return mixed The new primary key. * @throws PropelException Any exceptions caught during processing will be @@ -428,22 +419,22 @@ class ContentAssocTableMap extends TableMap public static function doInsert($criteria, ConnectionInterface $con = null) { if (null === $con) { - $con = Propel::getServiceContainer()->getWriteConnection(ContentAssocTableMap::DATABASE_NAME); + $con = Propel::getServiceContainer()->getWriteConnection(CategoryAssociatedContentTableMap::DATABASE_NAME); } if ($criteria instanceof Criteria) { $criteria = clone $criteria; // rename for clarity } else { - $criteria = $criteria->buildCriteria(); // build Criteria from ContentAssoc object + $criteria = $criteria->buildCriteria(); // build Criteria from CategoryAssociatedContent object } - if ($criteria->containsKey(ContentAssocTableMap::ID) && $criteria->keyContainsValue(ContentAssocTableMap::ID) ) { - throw new PropelException('Cannot insert a value for auto-increment primary key ('.ContentAssocTableMap::ID.')'); + if ($criteria->containsKey(CategoryAssociatedContentTableMap::ID) && $criteria->keyContainsValue(CategoryAssociatedContentTableMap::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.CategoryAssociatedContentTableMap::ID.')'); } // Set the correct dbName - $query = ContentAssocQuery::create()->mergeWith($criteria); + $query = CategoryAssociatedContentQuery::create()->mergeWith($criteria); try { // use transaction because $criteria could contain info @@ -459,7 +450,7 @@ class ContentAssocTableMap extends TableMap return $pk; } -} // ContentAssocTableMap +} // CategoryAssociatedContentTableMap // This is the static code needed to register the TableMap for this table with the main Propel class. // -ContentAssocTableMap::buildTableMap(); +CategoryAssociatedContentTableMap::buildTableMap(); diff --git a/core/lib/Thelia/Model/Map/CategoryDocumentI18nTableMap.php b/core/lib/Thelia/Model/Map/CategoryDocumentI18nTableMap.php old mode 100644 new mode 100755 index 956afae4a..1ad7dfe2f --- a/core/lib/Thelia/Model/Map/CategoryDocumentI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryDocumentI18nTableMap.php @@ -151,7 +151,7 @@ class CategoryDocumentI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'category_document', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/CategoryDocumentTableMap.php b/core/lib/Thelia/Model/Map/CategoryDocumentTableMap.php old mode 100644 new mode 100755 index 8b307ea1e..83e748a1e --- a/core/lib/Thelia/Model/Map/CategoryDocumentTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryDocumentTableMap.php @@ -111,7 +111,7 @@ class CategoryDocumentTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/CategoryI18nTableMap.php b/core/lib/Thelia/Model/Map/CategoryI18nTableMap.php old mode 100644 new mode 100755 index 8c52aa7b2..1611b2ebf --- a/core/lib/Thelia/Model/Map/CategoryI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryI18nTableMap.php @@ -151,7 +151,7 @@ class CategoryI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'category', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/CategoryImageI18nTableMap.php b/core/lib/Thelia/Model/Map/CategoryImageI18nTableMap.php old mode 100644 new mode 100755 index 1d27e16ad..1c59c9db2 --- a/core/lib/Thelia/Model/Map/CategoryImageI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryImageI18nTableMap.php @@ -151,7 +151,7 @@ class CategoryImageI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'category_image', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/CategoryImageTableMap.php b/core/lib/Thelia/Model/Map/CategoryImageTableMap.php old mode 100644 new mode 100755 index 1c7694d05..9eafe2ade --- a/core/lib/Thelia/Model/Map/CategoryImageTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryImageTableMap.php @@ -111,7 +111,7 @@ class CategoryImageTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/CategoryTableMap.php b/core/lib/Thelia/Model/Map/CategoryTableMap.php old mode 100644 new mode 100755 index 5e02d04c5..f94b14e5f --- a/core/lib/Thelia/Model/Map/CategoryTableMap.php +++ b/core/lib/Thelia/Model/Map/CategoryTableMap.php @@ -126,7 +126,7 @@ class CategoryTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames @@ -193,10 +193,10 @@ class CategoryTableMap extends TableMap $this->addRelation('ProductCategory', '\\Thelia\\Model\\ProductCategory', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'ProductCategories'); $this->addRelation('FeatureCategory', '\\Thelia\\Model\\FeatureCategory', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'FeatureCategories'); $this->addRelation('AttributeCategory', '\\Thelia\\Model\\AttributeCategory', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'AttributeCategories'); - $this->addRelation('ContentAssoc', '\\Thelia\\Model\\ContentAssoc', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'ContentAssocs'); $this->addRelation('Rewriting', '\\Thelia\\Model\\Rewriting', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'Rewritings'); $this->addRelation('CategoryImage', '\\Thelia\\Model\\CategoryImage', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'CategoryImages'); $this->addRelation('CategoryDocument', '\\Thelia\\Model\\CategoryDocument', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'CategoryDocuments'); + $this->addRelation('CategoryAssociatedContent', '\\Thelia\\Model\\CategoryAssociatedContent', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), 'CASCADE', 'RESTRICT', 'CategoryAssociatedContents'); $this->addRelation('CategoryI18n', '\\Thelia\\Model\\CategoryI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'CategoryI18ns'); $this->addRelation('CategoryVersion', '\\Thelia\\Model\\CategoryVersion', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'CategoryVersions'); $this->addRelation('Product', '\\Thelia\\Model\\Product', RelationMap::MANY_TO_MANY, array(), 'CASCADE', 'RESTRICT', 'Products'); @@ -228,10 +228,10 @@ class CategoryTableMap extends TableMap ProductCategoryTableMap::clearInstancePool(); FeatureCategoryTableMap::clearInstancePool(); AttributeCategoryTableMap::clearInstancePool(); - ContentAssocTableMap::clearInstancePool(); RewritingTableMap::clearInstancePool(); CategoryImageTableMap::clearInstancePool(); CategoryDocumentTableMap::clearInstancePool(); + CategoryAssociatedContentTableMap::clearInstancePool(); CategoryI18nTableMap::clearInstancePool(); CategoryVersionTableMap::clearInstancePool(); } 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/ConfigI18nTableMap.php b/core/lib/Thelia/Model/Map/ConfigI18nTableMap.php old mode 100644 new mode 100755 index b953b0ac9..a83f87b76 --- a/core/lib/Thelia/Model/Map/ConfigI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ConfigI18nTableMap.php @@ -151,7 +151,7 @@ class ConfigI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'config', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ConfigTableMap.php b/core/lib/Thelia/Model/Map/ConfigTableMap.php old mode 100644 new mode 100755 index ebd5d6edf..8bd68a964 --- a/core/lib/Thelia/Model/Map/ConfigTableMap.php +++ b/core/lib/Thelia/Model/Map/ConfigTableMap.php @@ -116,7 +116,7 @@ class ConfigTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/ContentDocumentI18nTableMap.php b/core/lib/Thelia/Model/Map/ContentDocumentI18nTableMap.php old mode 100644 new mode 100755 index 7ebde93e6..a6ff890d7 --- a/core/lib/Thelia/Model/Map/ContentDocumentI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ContentDocumentI18nTableMap.php @@ -151,7 +151,7 @@ class ContentDocumentI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'content_document', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ContentDocumentTableMap.php b/core/lib/Thelia/Model/Map/ContentDocumentTableMap.php old mode 100644 new mode 100755 index 3d876a570..4344b70ae --- a/core/lib/Thelia/Model/Map/ContentDocumentTableMap.php +++ b/core/lib/Thelia/Model/Map/ContentDocumentTableMap.php @@ -111,7 +111,7 @@ class ContentDocumentTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index f718623b0..ee9122a6c --- a/core/lib/Thelia/Model/Map/ContentI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ContentI18nTableMap.php @@ -151,7 +151,7 @@ class ContentI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'content', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ContentImageI18nTableMap.php b/core/lib/Thelia/Model/Map/ContentImageI18nTableMap.php old mode 100644 new mode 100755 index 759349d27..6ff343d16 --- a/core/lib/Thelia/Model/Map/ContentImageI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ContentImageI18nTableMap.php @@ -151,7 +151,7 @@ class ContentImageI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'content_image', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ContentImageTableMap.php b/core/lib/Thelia/Model/Map/ContentImageTableMap.php old mode 100644 new mode 100755 index f731c51a8..c95761ab2 --- a/core/lib/Thelia/Model/Map/ContentImageTableMap.php +++ b/core/lib/Thelia/Model/Map/ContentImageTableMap.php @@ -111,7 +111,7 @@ class ContentImageTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/ContentTableMap.php b/core/lib/Thelia/Model/Map/ContentTableMap.php old mode 100644 new mode 100755 index 4a489cedb..5b6787a28 --- a/core/lib/Thelia/Model/Map/ContentTableMap.php +++ b/core/lib/Thelia/Model/Map/ContentTableMap.php @@ -121,7 +121,7 @@ class ContentTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames @@ -184,11 +184,12 @@ class ContentTableMap extends TableMap */ public function buildRelations() { - $this->addRelation('ContentAssoc', '\\Thelia\\Model\\ContentAssoc', RelationMap::ONE_TO_MANY, array('id' => 'content_id', ), 'CASCADE', 'RESTRICT', 'ContentAssocs'); $this->addRelation('Rewriting', '\\Thelia\\Model\\Rewriting', RelationMap::ONE_TO_MANY, array('id' => 'content_id', ), 'CASCADE', 'RESTRICT', 'Rewritings'); $this->addRelation('ContentFolder', '\\Thelia\\Model\\ContentFolder', RelationMap::ONE_TO_MANY, array('id' => 'content_id', ), 'CASCADE', 'RESTRICT', 'ContentFolders'); $this->addRelation('ContentImage', '\\Thelia\\Model\\ContentImage', RelationMap::ONE_TO_MANY, array('id' => 'content_id', ), 'CASCADE', 'RESTRICT', 'ContentImages'); $this->addRelation('ContentDocument', '\\Thelia\\Model\\ContentDocument', RelationMap::ONE_TO_MANY, array('id' => 'content_id', ), 'CASCADE', 'RESTRICT', 'ContentDocuments'); + $this->addRelation('ProductAssociatedContent', '\\Thelia\\Model\\ProductAssociatedContent', RelationMap::ONE_TO_MANY, array('id' => 'content_id', ), 'CASCADE', 'RESTRICT', 'ProductAssociatedContents'); + $this->addRelation('CategoryAssociatedContent', '\\Thelia\\Model\\CategoryAssociatedContent', RelationMap::ONE_TO_MANY, array('id' => 'content_id', ), 'CASCADE', 'RESTRICT', 'CategoryAssociatedContents'); $this->addRelation('ContentI18n', '\\Thelia\\Model\\ContentI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'ContentI18ns'); $this->addRelation('ContentVersion', '\\Thelia\\Model\\ContentVersion', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'ContentVersions'); $this->addRelation('Folder', '\\Thelia\\Model\\Folder', RelationMap::MANY_TO_MANY, array(), 'CASCADE', 'RESTRICT', 'Folders'); @@ -215,11 +216,12 @@ class ContentTableMap extends TableMap { // Invalidate objects in ".$this->getClassNameFromBuilder($joinedTableTableMapBuilder)." instance pool, // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - ContentAssocTableMap::clearInstancePool(); RewritingTableMap::clearInstancePool(); ContentFolderTableMap::clearInstancePool(); ContentImageTableMap::clearInstancePool(); ContentDocumentTableMap::clearInstancePool(); + ProductAssociatedContentTableMap::clearInstancePool(); + CategoryAssociatedContentTableMap::clearInstancePool(); ContentI18nTableMap::clearInstancePool(); ContentVersionTableMap::clearInstancePool(); } 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 index 272231464..cc60b09d2 --- a/core/lib/Thelia/Model/Map/CountryI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/CountryI18nTableMap.php @@ -151,7 +151,7 @@ class CountryI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'country', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/CountryTableMap.php b/core/lib/Thelia/Model/Map/CountryTableMap.php old mode 100644 new mode 100755 index e7c356f08..2e4931e37 --- a/core/lib/Thelia/Model/Map/CountryTableMap.php +++ b/core/lib/Thelia/Model/Map/CountryTableMap.php @@ -116,7 +116,7 @@ class CountryTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/CouponI18nTableMap.php b/core/lib/Thelia/Model/Map/CouponI18nTableMap.php new file mode 100644 index 000000000..99d49216c --- /dev/null +++ b/core/lib/Thelia/Model/Map/CouponI18nTableMap.php @@ -0,0 +1,465 @@ + array('Id', 'Locale', ), + self::TYPE_STUDLYPHPNAME => array('id', 'locale', ), + self::TYPE_COLNAME => array(CouponI18nTableMap::ID, CouponI18nTableMap::LOCALE, ), + self::TYPE_RAW_COLNAME => array('ID', 'LOCALE', ), + self::TYPE_FIELDNAME => array('id', 'locale', ), + self::TYPE_NUM => array(0, 1, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + self::TYPE_PHPNAME => array('Id' => 0, 'Locale' => 1, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'locale' => 1, ), + self::TYPE_COLNAME => array(CouponI18nTableMap::ID => 0, CouponI18nTableMap::LOCALE => 1, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'LOCALE' => 1, ), + self::TYPE_FIELDNAME => array('id' => 0, 'locale' => 1, ), + self::TYPE_NUM => array(0, 1, ) + ); + + /** + * Initialize the table attributes and columns + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('coupon_i18n'); + $this->setPhpName('CouponI18n'); + $this->setClassName('\\Thelia\\Model\\CouponI18n'); + $this->setPackage('Thelia.Model'); + $this->setUseIdGenerator(false); + // columns + $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'coupon', 'ID', true, null, null); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('Coupon', '\\Thelia\\Model\\Coupon', RelationMap::MANY_TO_ONE, array('id' => 'id', ), 'CASCADE', null); + } // buildRelations() + + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by find*() + * and findPk*() calls. + * + * @param \Thelia\Model\CouponI18n $obj A \Thelia\Model\CouponI18n object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if (null === $key) { + $key = serialize(array((string) $obj->getId(), (string) $obj->getLocale())); + } // if key === null + self::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A \Thelia\Model\CouponI18n object or a primary key value. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && null !== $value) { + if (is_object($value) && $value instanceof \Thelia\Model\CouponI18n) { + $key = serialize(array((string) $value->getId(), (string) $value->getLocale())); + + } elseif (is_array($value) && count($value) === 2) { + // assume we've been passed a primary key"; + $key = serialize(array((string) $value[0], (string) $value[1])); + } elseif ($value instanceof Criteria) { + self::$instances = []; + + return; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or \Thelia\Model\CouponI18n object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value, true))); + throw $e; + } + + unset(self::$instances[$key]); + } + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + */ + 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 ? 1 + $offset : static::translateFieldName('Locale', 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 ? 1 + $offset : static::translateFieldName('Locale', TableMap::TYPE_PHPNAME, $indexType)])); + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + * + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + + return $pks; + } + + /** + * The class that the tableMap will make instances of. + * + * If $withPrefix is true, the returned path + * uses a dot-path notation which is translated into a path + * relative to a location on the PHP include_path. + * (e.g. path.to.MyClass -> 'path/to/MyClass.php') + * + * @param boolean $withPrefix Whether or not to return the path with the class name + * @return string path.to.ClassName + */ + public static function getOMClass($withPrefix = true) + { + return $withPrefix ? CouponI18nTableMap::CLASS_DEFAULT : CouponI18nTableMap::OM_CLASS; + } + + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row row returned by DataFetcher->fetch(). + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CouponI18n object, last column rank) + */ + public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + $key = CouponI18nTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = CouponI18nTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $offset, true); // rehydrate + $col = $offset + CouponI18nTableMap::NUM_HYDRATE_COLUMNS; + } else { + $cls = CouponI18nTableMap::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $offset, false, $indexType); + CouponI18nTableMap::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @param DataFetcherInterface $dataFetcher + * @return array + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(DataFetcherInterface $dataFetcher) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = static::getOMClass(false); + // populate the object(s) + while ($row = $dataFetcher->fetch()) { + $key = CouponI18nTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = CouponI18nTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CouponI18nTableMap::addInstanceToPool($obj, $key); + } // if key exists + } + + return $results; + } + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CouponI18nTableMap::ID); + $criteria->addSelectColumn(CouponI18nTableMap::LOCALE); + } else { + $criteria->addSelectColumn($alias . '.ID'); + $criteria->addSelectColumn($alias . '.LOCALE'); + } + } + + /** + * Returns the TableMap related to this object. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getServiceContainer()->getDatabaseMap(CouponI18nTableMap::DATABASE_NAME)->getTable(CouponI18nTableMap::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this tableMap class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getServiceContainer()->getDatabaseMap(CouponI18nTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(CouponI18nTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new CouponI18nTableMap()); + } + } + + /** + * Performs a DELETE on the database, given a CouponI18n or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CouponI18n object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponI18nTableMap::DATABASE_NAME); + } + + if ($values instanceof Criteria) { + // rename for clarity + $criteria = $values; + } elseif ($values instanceof \Thelia\Model\CouponI18n) { // it's a model object + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CouponI18nTableMap::DATABASE_NAME); + // primary key is composite; we therefore, expect + // the primary key passed to be an array of pkey values + if (count($values) == count($values, COUNT_RECURSIVE)) { + // array is not multi-dimensional + $values = array($values); + } + foreach ($values as $value) { + $criterion = $criteria->getNewCriterion(CouponI18nTableMap::ID, $value[0]); + $criterion->addAnd($criteria->getNewCriterion(CouponI18nTableMap::LOCALE, $value[1])); + $criteria->addOr($criterion); + } + } + + $query = CouponI18nQuery::create()->mergeWith($criteria); + + if ($values instanceof Criteria) { CouponI18nTableMap::clearInstancePool(); + } elseif (!is_object($values)) { // it's a primary key, or an array of pks + foreach ((array) $values as $singleval) { CouponI18nTableMap::removeInstanceFromPool($singleval); + } + } + + return $query->delete($con); + } + + /** + * Deletes all rows from the coupon_i18n table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public static function doDeleteAll(ConnectionInterface $con = null) + { + return CouponI18nQuery::create()->doDeleteAll($con); + } + + /** + * Performs an INSERT on the database, given a CouponI18n or Criteria object. + * + * @param mixed $criteria Criteria or CouponI18n object containing data that is used to create the INSERT statement. + * @param ConnectionInterface $con the ConnectionInterface connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($criteria, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponI18nTableMap::DATABASE_NAME); + } + + if ($criteria instanceof Criteria) { + $criteria = clone $criteria; // rename for clarity + } else { + $criteria = $criteria->buildCriteria(); // build Criteria from CouponI18n object + } + + + // Set the correct dbName + $query = CouponI18nQuery::create()->mergeWith($criteria); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = $query->doInsert($con); + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + +} // CouponI18nTableMap +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +CouponI18nTableMap::buildTableMap(); diff --git a/core/lib/Thelia/Model/Map/CouponOrderTableMap.php b/core/lib/Thelia/Model/Map/CouponOrderTableMap.php old mode 100644 new mode 100755 index 9d91ef068..1826bcb70 --- a/core/lib/Thelia/Model/Map/CouponOrderTableMap.php +++ b/core/lib/Thelia/Model/Map/CouponOrderTableMap.php @@ -152,7 +152,7 @@ class CouponOrderTableMap extends TableMap // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); $this->addForeignKey('ORDER_ID', 'OrderId', 'INTEGER', 'order', 'ID', true, null, null); - $this->addColumn('CODE', 'Code', 'VARCHAR', true, 45, null); + $this->addForeignKey('CODE', 'Code', 'VARCHAR', 'coupon', 'CODE', true, 45, null); $this->addColumn('VALUE', 'Value', 'FLOAT', true, null, null); $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null); $this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null); @@ -164,6 +164,7 @@ class CouponOrderTableMap extends TableMap public function buildRelations() { $this->addRelation('Order', '\\Thelia\\Model\\Order', RelationMap::MANY_TO_ONE, array('order_id' => 'id', ), 'CASCADE', 'RESTRICT'); + $this->addRelation('Coupon', '\\Thelia\\Model\\Coupon', RelationMap::MANY_TO_ONE, array('code' => 'code', ), null, null); } // buildRelations() /** 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 index d1ff79ac0..7e576a585 --- a/core/lib/Thelia/Model/Map/CouponTableMap.php +++ b/core/lib/Thelia/Model/Map/CouponTableMap.php @@ -57,7 +57,7 @@ class CouponTableMap extends TableMap /** * The total number of columns */ - const NUM_COLUMNS = 10; + const NUM_COLUMNS = 14; /** * The number of lazy-loaded columns @@ -67,7 +67,7 @@ class CouponTableMap extends TableMap /** * The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */ - const NUM_HYDRATE_COLUMNS = 10; + const NUM_HYDRATE_COLUMNS = 14; /** * the column name for the ID field @@ -80,9 +80,24 @@ class CouponTableMap extends TableMap const CODE = 'coupon.CODE'; /** - * the column name for the ACTION field + * the column name for the TYPE field */ - const ACTION = 'coupon.ACTION'; + const TYPE = 'coupon.TYPE'; + + /** + * the column name for the TITLE field + */ + const TITLE = 'coupon.TITLE'; + + /** + * the column name for the SHORT_DESCRIPTION field + */ + const SHORT_DESCRIPTION = 'coupon.SHORT_DESCRIPTION'; + + /** + * the column name for the DESCRIPTION field + */ + const DESCRIPTION = 'coupon.DESCRIPTION'; /** * the column name for the VALUE field @@ -90,24 +105,24 @@ class CouponTableMap extends TableMap const VALUE = 'coupon.VALUE'; /** - * the column name for the USED field + * the column name for the IS_USED field */ - const USED = 'coupon.USED'; + const IS_USED = 'coupon.IS_USED'; /** - * the column name for the AVAILABLE_SINCE field + * the column name for the IS_ENABLED field */ - const AVAILABLE_SINCE = 'coupon.AVAILABLE_SINCE'; + const IS_ENABLED = 'coupon.IS_ENABLED'; /** - * the column name for the DATE_LIMIT field + * the column name for the EXPIRATION_DATE field */ - const DATE_LIMIT = 'coupon.DATE_LIMIT'; + const EXPIRATION_DATE = 'coupon.EXPIRATION_DATE'; /** - * the column name for the ACTIVATE field + * the column name for the SERIALIZED_RULES field */ - const ACTIVATE = 'coupon.ACTIVATE'; + const SERIALIZED_RULES = 'coupon.SERIALIZED_RULES'; /** * the column name for the CREATED_AT field @@ -119,11 +134,25 @@ class CouponTableMap extends TableMap */ const UPDATED_AT = 'coupon.UPDATED_AT'; + /** + * the column name for the VERSION field + */ + const VERSION = 'coupon.VERSION'; + /** * The default string format for model objects of the related table */ const DEFAULT_STRING_FORMAT = 'YAML'; + // i18n behavior + + /** + * The default locale to use for translations. + * + * @var string + */ + const DEFAULT_LOCALE = 'en_EN'; + /** * holds an array of fieldnames * @@ -131,12 +160,12 @@ class CouponTableMap extends TableMap * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' */ protected static $fieldNames = array ( - self::TYPE_PHPNAME => array('Id', 'Code', 'Action', 'Value', 'Used', 'AvailableSince', 'DateLimit', 'Activate', 'CreatedAt', 'UpdatedAt', ), - self::TYPE_STUDLYPHPNAME => array('id', 'code', 'action', 'value', 'used', 'availableSince', 'dateLimit', 'activate', 'createdAt', 'updatedAt', ), - self::TYPE_COLNAME => array(CouponTableMap::ID, CouponTableMap::CODE, CouponTableMap::ACTION, CouponTableMap::VALUE, CouponTableMap::USED, CouponTableMap::AVAILABLE_SINCE, CouponTableMap::DATE_LIMIT, CouponTableMap::ACTIVATE, CouponTableMap::CREATED_AT, CouponTableMap::UPDATED_AT, ), - self::TYPE_RAW_COLNAME => array('ID', 'CODE', 'ACTION', 'VALUE', 'USED', 'AVAILABLE_SINCE', 'DATE_LIMIT', 'ACTIVATE', 'CREATED_AT', 'UPDATED_AT', ), - self::TYPE_FIELDNAME => array('id', 'code', 'action', 'value', 'used', 'available_since', 'date_limit', 'activate', 'created_at', 'updated_at', ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + self::TYPE_PHPNAME => array('Id', 'Code', 'Type', 'Title', 'ShortDescription', 'Description', 'Value', 'IsUsed', 'IsEnabled', 'ExpirationDate', 'SerializedRules', 'CreatedAt', 'UpdatedAt', 'Version', ), + self::TYPE_STUDLYPHPNAME => array('id', 'code', 'type', 'title', 'shortDescription', 'description', 'value', 'isUsed', 'isEnabled', 'expirationDate', 'serializedRules', 'createdAt', 'updatedAt', 'version', ), + self::TYPE_COLNAME => array(CouponTableMap::ID, CouponTableMap::CODE, CouponTableMap::TYPE, CouponTableMap::TITLE, CouponTableMap::SHORT_DESCRIPTION, CouponTableMap::DESCRIPTION, CouponTableMap::VALUE, CouponTableMap::IS_USED, CouponTableMap::IS_ENABLED, CouponTableMap::EXPIRATION_DATE, CouponTableMap::SERIALIZED_RULES, CouponTableMap::CREATED_AT, CouponTableMap::UPDATED_AT, CouponTableMap::VERSION, ), + self::TYPE_RAW_COLNAME => array('ID', 'CODE', 'TYPE', 'TITLE', 'SHORT_DESCRIPTION', 'DESCRIPTION', 'VALUE', 'IS_USED', 'IS_ENABLED', 'EXPIRATION_DATE', 'SERIALIZED_RULES', 'CREATED_AT', 'UPDATED_AT', 'VERSION', ), + self::TYPE_FIELDNAME => array('id', 'code', 'type', 'title', 'short_description', 'description', 'value', 'is_used', 'is_enabled', 'expiration_date', 'serialized_rules', 'created_at', 'updated_at', 'version', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ) ); /** @@ -146,12 +175,12 @@ class CouponTableMap extends TableMap * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 */ protected static $fieldKeys = array ( - self::TYPE_PHPNAME => array('Id' => 0, 'Code' => 1, 'Action' => 2, 'Value' => 3, 'Used' => 4, 'AvailableSince' => 5, 'DateLimit' => 6, 'Activate' => 7, 'CreatedAt' => 8, 'UpdatedAt' => 9, ), - self::TYPE_STUDLYPHPNAME => array('id' => 0, 'code' => 1, 'action' => 2, 'value' => 3, 'used' => 4, 'availableSince' => 5, 'dateLimit' => 6, 'activate' => 7, 'createdAt' => 8, 'updatedAt' => 9, ), - self::TYPE_COLNAME => array(CouponTableMap::ID => 0, CouponTableMap::CODE => 1, CouponTableMap::ACTION => 2, CouponTableMap::VALUE => 3, CouponTableMap::USED => 4, CouponTableMap::AVAILABLE_SINCE => 5, CouponTableMap::DATE_LIMIT => 6, CouponTableMap::ACTIVATE => 7, CouponTableMap::CREATED_AT => 8, CouponTableMap::UPDATED_AT => 9, ), - self::TYPE_RAW_COLNAME => array('ID' => 0, 'CODE' => 1, 'ACTION' => 2, 'VALUE' => 3, 'USED' => 4, 'AVAILABLE_SINCE' => 5, 'DATE_LIMIT' => 6, 'ACTIVATE' => 7, 'CREATED_AT' => 8, 'UPDATED_AT' => 9, ), - self::TYPE_FIELDNAME => array('id' => 0, 'code' => 1, 'action' => 2, 'value' => 3, 'used' => 4, 'available_since' => 5, 'date_limit' => 6, 'activate' => 7, 'created_at' => 8, 'updated_at' => 9, ), - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ) + self::TYPE_PHPNAME => array('Id' => 0, 'Code' => 1, 'Type' => 2, 'Title' => 3, 'ShortDescription' => 4, 'Description' => 5, 'Value' => 6, 'IsUsed' => 7, 'IsEnabled' => 8, 'ExpirationDate' => 9, 'SerializedRules' => 10, 'CreatedAt' => 11, 'UpdatedAt' => 12, 'Version' => 13, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'code' => 1, 'type' => 2, 'title' => 3, 'shortDescription' => 4, 'description' => 5, 'value' => 6, 'isUsed' => 7, 'isEnabled' => 8, 'expirationDate' => 9, 'serializedRules' => 10, 'createdAt' => 11, 'updatedAt' => 12, 'version' => 13, ), + self::TYPE_COLNAME => array(CouponTableMap::ID => 0, CouponTableMap::CODE => 1, CouponTableMap::TYPE => 2, CouponTableMap::TITLE => 3, CouponTableMap::SHORT_DESCRIPTION => 4, CouponTableMap::DESCRIPTION => 5, CouponTableMap::VALUE => 6, CouponTableMap::IS_USED => 7, CouponTableMap::IS_ENABLED => 8, CouponTableMap::EXPIRATION_DATE => 9, CouponTableMap::SERIALIZED_RULES => 10, CouponTableMap::CREATED_AT => 11, CouponTableMap::UPDATED_AT => 12, CouponTableMap::VERSION => 13, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'CODE' => 1, 'TYPE' => 2, 'TITLE' => 3, 'SHORT_DESCRIPTION' => 4, 'DESCRIPTION' => 5, 'VALUE' => 6, 'IS_USED' => 7, 'IS_ENABLED' => 8, 'EXPIRATION_DATE' => 9, 'SERIALIZED_RULES' => 10, 'CREATED_AT' => 11, 'UPDATED_AT' => 12, 'VERSION' => 13, ), + self::TYPE_FIELDNAME => array('id' => 0, 'code' => 1, 'type' => 2, 'title' => 3, 'short_description' => 4, 'description' => 5, 'value' => 6, 'is_used' => 7, 'is_enabled' => 8, 'expiration_date' => 9, 'serialized_rules' => 10, 'created_at' => 11, 'updated_at' => 12, 'version' => 13, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ) ); /** @@ -172,14 +201,18 @@ class CouponTableMap extends TableMap // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); $this->addColumn('CODE', 'Code', 'VARCHAR', true, 45, null); - $this->addColumn('ACTION', 'Action', 'VARCHAR', true, 255, null); + $this->addColumn('TYPE', 'Type', 'VARCHAR', true, 255, null); + $this->addColumn('TITLE', 'Title', 'VARCHAR', true, 255, null); + $this->addColumn('SHORT_DESCRIPTION', 'ShortDescription', 'LONGVARCHAR', true, null, null); + $this->addColumn('DESCRIPTION', 'Description', 'CLOB', true, null, null); $this->addColumn('VALUE', 'Value', 'FLOAT', true, null, null); - $this->addColumn('USED', 'Used', 'TINYINT', false, null, null); - $this->addColumn('AVAILABLE_SINCE', 'AvailableSince', 'TIMESTAMP', false, null, null); - $this->addColumn('DATE_LIMIT', 'DateLimit', 'TIMESTAMP', false, null, null); - $this->addColumn('ACTIVATE', 'Activate', 'TINYINT', false, null, null); + $this->addColumn('IS_USED', 'IsUsed', 'TINYINT', true, null, null); + $this->addColumn('IS_ENABLED', 'IsEnabled', 'TINYINT', true, null, null); + $this->addColumn('EXPIRATION_DATE', 'ExpirationDate', 'TIMESTAMP', true, null, null); + $this->addColumn('SERIALIZED_RULES', 'SerializedRules', 'LONGVARCHAR', true, null, null); $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null); $this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null); + $this->addColumn('VERSION', 'Version', 'INTEGER', false, null, 0); } // initialize() /** @@ -187,7 +220,9 @@ class CouponTableMap extends TableMap */ public function buildRelations() { - $this->addRelation('CouponRule', '\\Thelia\\Model\\CouponRule', RelationMap::ONE_TO_MANY, array('id' => 'coupon_id', ), 'CASCADE', 'RESTRICT', 'CouponRules'); + $this->addRelation('CouponOrder', '\\Thelia\\Model\\CouponOrder', RelationMap::ONE_TO_MANY, array('code' => 'code', ), null, null, 'CouponOrders'); + $this->addRelation('CouponI18n', '\\Thelia\\Model\\CouponI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'CouponI18ns'); + $this->addRelation('CouponVersion', '\\Thelia\\Model\\CouponVersion', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'CouponVersions'); } // buildRelations() /** @@ -200,6 +235,8 @@ class CouponTableMap extends TableMap { return array( 'timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', ), + 'i18n' => array('i18n_table' => '%TABLE%_i18n', 'i18n_phpname' => '%PHPNAME%I18n', 'i18n_columns' => '', 'locale_column' => 'locale', 'locale_length' => '5', 'default_locale' => '', 'locale_alias' => '', ), + 'versionable' => array('version_column' => 'version', 'version_table' => '', 'log_created_at' => 'false', 'log_created_by' => 'false', 'log_comment' => 'false', 'version_created_at_column' => 'version_created_at', 'version_created_by_column' => 'version_created_by', 'version_comment_column' => 'version_comment', ), ); } // getBehaviors() /** @@ -209,7 +246,8 @@ class CouponTableMap extends TableMap { // Invalidate objects in ".$this->getClassNameFromBuilder($joinedTableTableMapBuilder)." instance pool, // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule. - CouponRuleTableMap::clearInstancePool(); + CouponI18nTableMap::clearInstancePool(); + CouponVersionTableMap::clearInstancePool(); } /** @@ -352,25 +390,33 @@ class CouponTableMap extends TableMap if (null === $alias) { $criteria->addSelectColumn(CouponTableMap::ID); $criteria->addSelectColumn(CouponTableMap::CODE); - $criteria->addSelectColumn(CouponTableMap::ACTION); + $criteria->addSelectColumn(CouponTableMap::TYPE); + $criteria->addSelectColumn(CouponTableMap::TITLE); + $criteria->addSelectColumn(CouponTableMap::SHORT_DESCRIPTION); + $criteria->addSelectColumn(CouponTableMap::DESCRIPTION); $criteria->addSelectColumn(CouponTableMap::VALUE); - $criteria->addSelectColumn(CouponTableMap::USED); - $criteria->addSelectColumn(CouponTableMap::AVAILABLE_SINCE); - $criteria->addSelectColumn(CouponTableMap::DATE_LIMIT); - $criteria->addSelectColumn(CouponTableMap::ACTIVATE); + $criteria->addSelectColumn(CouponTableMap::IS_USED); + $criteria->addSelectColumn(CouponTableMap::IS_ENABLED); + $criteria->addSelectColumn(CouponTableMap::EXPIRATION_DATE); + $criteria->addSelectColumn(CouponTableMap::SERIALIZED_RULES); $criteria->addSelectColumn(CouponTableMap::CREATED_AT); $criteria->addSelectColumn(CouponTableMap::UPDATED_AT); + $criteria->addSelectColumn(CouponTableMap::VERSION); } else { $criteria->addSelectColumn($alias . '.ID'); $criteria->addSelectColumn($alias . '.CODE'); - $criteria->addSelectColumn($alias . '.ACTION'); + $criteria->addSelectColumn($alias . '.TYPE'); + $criteria->addSelectColumn($alias . '.TITLE'); + $criteria->addSelectColumn($alias . '.SHORT_DESCRIPTION'); + $criteria->addSelectColumn($alias . '.DESCRIPTION'); $criteria->addSelectColumn($alias . '.VALUE'); - $criteria->addSelectColumn($alias . '.USED'); - $criteria->addSelectColumn($alias . '.AVAILABLE_SINCE'); - $criteria->addSelectColumn($alias . '.DATE_LIMIT'); - $criteria->addSelectColumn($alias . '.ACTIVATE'); + $criteria->addSelectColumn($alias . '.IS_USED'); + $criteria->addSelectColumn($alias . '.IS_ENABLED'); + $criteria->addSelectColumn($alias . '.EXPIRATION_DATE'); + $criteria->addSelectColumn($alias . '.SERIALIZED_RULES'); $criteria->addSelectColumn($alias . '.CREATED_AT'); $criteria->addSelectColumn($alias . '.UPDATED_AT'); + $criteria->addSelectColumn($alias . '.VERSION'); } } diff --git a/core/lib/Thelia/Model/Map/CouponVersionTableMap.php b/core/lib/Thelia/Model/Map/CouponVersionTableMap.php new file mode 100644 index 000000000..6ce67d3f1 --- /dev/null +++ b/core/lib/Thelia/Model/Map/CouponVersionTableMap.php @@ -0,0 +1,561 @@ + array('Id', 'Code', 'Type', 'Title', 'ShortDescription', 'Description', 'Value', 'IsUsed', 'IsEnabled', 'ExpirationDate', 'SerializedRules', 'CreatedAt', 'UpdatedAt', 'Version', ), + self::TYPE_STUDLYPHPNAME => array('id', 'code', 'type', 'title', 'shortDescription', 'description', 'value', 'isUsed', 'isEnabled', 'expirationDate', 'serializedRules', 'createdAt', 'updatedAt', 'version', ), + self::TYPE_COLNAME => array(CouponVersionTableMap::ID, CouponVersionTableMap::CODE, CouponVersionTableMap::TYPE, CouponVersionTableMap::TITLE, CouponVersionTableMap::SHORT_DESCRIPTION, CouponVersionTableMap::DESCRIPTION, CouponVersionTableMap::VALUE, CouponVersionTableMap::IS_USED, CouponVersionTableMap::IS_ENABLED, CouponVersionTableMap::EXPIRATION_DATE, CouponVersionTableMap::SERIALIZED_RULES, CouponVersionTableMap::CREATED_AT, CouponVersionTableMap::UPDATED_AT, CouponVersionTableMap::VERSION, ), + self::TYPE_RAW_COLNAME => array('ID', 'CODE', 'TYPE', 'TITLE', 'SHORT_DESCRIPTION', 'DESCRIPTION', 'VALUE', 'IS_USED', 'IS_ENABLED', 'EXPIRATION_DATE', 'SERIALIZED_RULES', 'CREATED_AT', 'UPDATED_AT', 'VERSION', ), + self::TYPE_FIELDNAME => array('id', 'code', 'type', 'title', 'short_description', 'description', 'value', 'is_used', 'is_enabled', 'expiration_date', 'serialized_rules', 'created_at', 'updated_at', 'version', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + self::TYPE_PHPNAME => array('Id' => 0, 'Code' => 1, 'Type' => 2, 'Title' => 3, 'ShortDescription' => 4, 'Description' => 5, 'Value' => 6, 'IsUsed' => 7, 'IsEnabled' => 8, 'ExpirationDate' => 9, 'SerializedRules' => 10, 'CreatedAt' => 11, 'UpdatedAt' => 12, 'Version' => 13, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'code' => 1, 'type' => 2, 'title' => 3, 'shortDescription' => 4, 'description' => 5, 'value' => 6, 'isUsed' => 7, 'isEnabled' => 8, 'expirationDate' => 9, 'serializedRules' => 10, 'createdAt' => 11, 'updatedAt' => 12, 'version' => 13, ), + self::TYPE_COLNAME => array(CouponVersionTableMap::ID => 0, CouponVersionTableMap::CODE => 1, CouponVersionTableMap::TYPE => 2, CouponVersionTableMap::TITLE => 3, CouponVersionTableMap::SHORT_DESCRIPTION => 4, CouponVersionTableMap::DESCRIPTION => 5, CouponVersionTableMap::VALUE => 6, CouponVersionTableMap::IS_USED => 7, CouponVersionTableMap::IS_ENABLED => 8, CouponVersionTableMap::EXPIRATION_DATE => 9, CouponVersionTableMap::SERIALIZED_RULES => 10, CouponVersionTableMap::CREATED_AT => 11, CouponVersionTableMap::UPDATED_AT => 12, CouponVersionTableMap::VERSION => 13, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'CODE' => 1, 'TYPE' => 2, 'TITLE' => 3, 'SHORT_DESCRIPTION' => 4, 'DESCRIPTION' => 5, 'VALUE' => 6, 'IS_USED' => 7, 'IS_ENABLED' => 8, 'EXPIRATION_DATE' => 9, 'SERIALIZED_RULES' => 10, 'CREATED_AT' => 11, 'UPDATED_AT' => 12, 'VERSION' => 13, ), + self::TYPE_FIELDNAME => array('id' => 0, 'code' => 1, 'type' => 2, 'title' => 3, 'short_description' => 4, 'description' => 5, 'value' => 6, 'is_used' => 7, 'is_enabled' => 8, 'expiration_date' => 9, 'serialized_rules' => 10, 'created_at' => 11, 'updated_at' => 12, 'version' => 13, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ) + ); + + /** + * Initialize the table attributes and columns + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('coupon_version'); + $this->setPhpName('CouponVersion'); + $this->setClassName('\\Thelia\\Model\\CouponVersion'); + $this->setPackage('Thelia.Model'); + $this->setUseIdGenerator(false); + // columns + $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'coupon', 'ID', true, null, null); + $this->addColumn('CODE', 'Code', 'VARCHAR', true, 45, null); + $this->addColumn('TYPE', 'Type', 'VARCHAR', true, 255, null); + $this->addColumn('TITLE', 'Title', 'VARCHAR', true, 255, null); + $this->addColumn('SHORT_DESCRIPTION', 'ShortDescription', 'LONGVARCHAR', true, null, null); + $this->addColumn('DESCRIPTION', 'Description', 'CLOB', true, null, null); + $this->addColumn('VALUE', 'Value', 'FLOAT', true, null, null); + $this->addColumn('IS_USED', 'IsUsed', 'TINYINT', true, null, null); + $this->addColumn('IS_ENABLED', 'IsEnabled', 'TINYINT', true, null, null); + $this->addColumn('EXPIRATION_DATE', 'ExpirationDate', 'TIMESTAMP', true, null, null); + $this->addColumn('SERIALIZED_RULES', 'SerializedRules', 'LONGVARCHAR', true, null, null); + $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null); + $this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null); + $this->addPrimaryKey('VERSION', 'Version', 'INTEGER', true, null, 0); + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('Coupon', '\\Thelia\\Model\\Coupon', RelationMap::MANY_TO_ONE, array('id' => 'id', ), 'CASCADE', null); + } // buildRelations() + + /** + * Adds an object to the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases you may need to explicitly add objects + * to the cache in order to ensure that the same objects are always returned by find*() + * and findPk*() calls. + * + * @param \Thelia\Model\CouponVersion $obj A \Thelia\Model\CouponVersion object. + * @param string $key (optional) key to use for instance map (for performance boost if key was already calculated externally). + */ + public static function addInstanceToPool($obj, $key = null) + { + if (Propel::isInstancePoolingEnabled()) { + if (null === $key) { + $key = serialize(array((string) $obj->getId(), (string) $obj->getVersion())); + } // if key === null + self::$instances[$key] = $obj; + } + } + + /** + * Removes an object from the instance pool. + * + * Propel keeps cached copies of objects in an instance pool when they are retrieved + * from the database. In some cases -- especially when you override doDelete + * methods in your stub classes -- you may need to explicitly remove objects + * from the cache in order to prevent returning objects that no longer exist. + * + * @param mixed $value A \Thelia\Model\CouponVersion object or a primary key value. + */ + public static function removeInstanceFromPool($value) + { + if (Propel::isInstancePoolingEnabled() && null !== $value) { + if (is_object($value) && $value instanceof \Thelia\Model\CouponVersion) { + $key = serialize(array((string) $value->getId(), (string) $value->getVersion())); + + } elseif (is_array($value) && count($value) === 2) { + // assume we've been passed a primary key"; + $key = serialize(array((string) $value[0], (string) $value[1])); + } elseif ($value instanceof Criteria) { + self::$instances = []; + + return; + } else { + $e = new PropelException("Invalid value passed to removeInstanceFromPool(). Expected primary key or \Thelia\Model\CouponVersion object; got " . (is_object($value) ? get_class($value) . ' object.' : var_export($value, true))); + throw $e; + } + + unset(self::$instances[$key]); + } + } + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + */ + 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 ? 13 + $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 ? 13 + $offset : static::translateFieldName('Version', TableMap::TYPE_PHPNAME, $indexType)])); + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + * + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + + return $pks; + } + + /** + * The class that the tableMap will make instances of. + * + * If $withPrefix is true, the returned path + * uses a dot-path notation which is translated into a path + * relative to a location on the PHP include_path. + * (e.g. path.to.MyClass -> 'path/to/MyClass.php') + * + * @param boolean $withPrefix Whether or not to return the path with the class name + * @return string path.to.ClassName + */ + public static function getOMClass($withPrefix = true) + { + return $withPrefix ? CouponVersionTableMap::CLASS_DEFAULT : CouponVersionTableMap::OM_CLASS; + } + + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row row returned by DataFetcher->fetch(). + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (CouponVersion object, last column rank) + */ + public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + $key = CouponVersionTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = CouponVersionTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $offset, true); // rehydrate + $col = $offset + CouponVersionTableMap::NUM_HYDRATE_COLUMNS; + } else { + $cls = CouponVersionTableMap::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $offset, false, $indexType); + CouponVersionTableMap::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @param DataFetcherInterface $dataFetcher + * @return array + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(DataFetcherInterface $dataFetcher) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = static::getOMClass(false); + // populate the object(s) + while ($row = $dataFetcher->fetch()) { + $key = CouponVersionTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = CouponVersionTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + CouponVersionTableMap::addInstanceToPool($obj, $key); + } // if key exists + } + + return $results; + } + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(CouponVersionTableMap::ID); + $criteria->addSelectColumn(CouponVersionTableMap::CODE); + $criteria->addSelectColumn(CouponVersionTableMap::TYPE); + $criteria->addSelectColumn(CouponVersionTableMap::TITLE); + $criteria->addSelectColumn(CouponVersionTableMap::SHORT_DESCRIPTION); + $criteria->addSelectColumn(CouponVersionTableMap::DESCRIPTION); + $criteria->addSelectColumn(CouponVersionTableMap::VALUE); + $criteria->addSelectColumn(CouponVersionTableMap::IS_USED); + $criteria->addSelectColumn(CouponVersionTableMap::IS_ENABLED); + $criteria->addSelectColumn(CouponVersionTableMap::EXPIRATION_DATE); + $criteria->addSelectColumn(CouponVersionTableMap::SERIALIZED_RULES); + $criteria->addSelectColumn(CouponVersionTableMap::CREATED_AT); + $criteria->addSelectColumn(CouponVersionTableMap::UPDATED_AT); + $criteria->addSelectColumn(CouponVersionTableMap::VERSION); + } else { + $criteria->addSelectColumn($alias . '.ID'); + $criteria->addSelectColumn($alias . '.CODE'); + $criteria->addSelectColumn($alias . '.TYPE'); + $criteria->addSelectColumn($alias . '.TITLE'); + $criteria->addSelectColumn($alias . '.SHORT_DESCRIPTION'); + $criteria->addSelectColumn($alias . '.DESCRIPTION'); + $criteria->addSelectColumn($alias . '.VALUE'); + $criteria->addSelectColumn($alias . '.IS_USED'); + $criteria->addSelectColumn($alias . '.IS_ENABLED'); + $criteria->addSelectColumn($alias . '.EXPIRATION_DATE'); + $criteria->addSelectColumn($alias . '.SERIALIZED_RULES'); + $criteria->addSelectColumn($alias . '.CREATED_AT'); + $criteria->addSelectColumn($alias . '.UPDATED_AT'); + $criteria->addSelectColumn($alias . '.VERSION'); + } + } + + /** + * Returns the TableMap related to this object. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getServiceContainer()->getDatabaseMap(CouponVersionTableMap::DATABASE_NAME)->getTable(CouponVersionTableMap::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this tableMap class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getServiceContainer()->getDatabaseMap(CouponVersionTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(CouponVersionTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new CouponVersionTableMap()); + } + } + + /** + * Performs a DELETE on the database, given a CouponVersion or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or CouponVersion object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponVersionTableMap::DATABASE_NAME); + } + + if ($values instanceof Criteria) { + // rename for clarity + $criteria = $values; + } elseif ($values instanceof \Thelia\Model\CouponVersion) { // it's a model object + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(CouponVersionTableMap::DATABASE_NAME); + // primary key is composite; we therefore, expect + // the primary key passed to be an array of pkey values + if (count($values) == count($values, COUNT_RECURSIVE)) { + // array is not multi-dimensional + $values = array($values); + } + foreach ($values as $value) { + $criterion = $criteria->getNewCriterion(CouponVersionTableMap::ID, $value[0]); + $criterion->addAnd($criteria->getNewCriterion(CouponVersionTableMap::VERSION, $value[1])); + $criteria->addOr($criterion); + } + } + + $query = CouponVersionQuery::create()->mergeWith($criteria); + + if ($values instanceof Criteria) { CouponVersionTableMap::clearInstancePool(); + } elseif (!is_object($values)) { // it's a primary key, or an array of pks + foreach ((array) $values as $singleval) { CouponVersionTableMap::removeInstanceFromPool($singleval); + } + } + + return $query->delete($con); + } + + /** + * Deletes all rows from the coupon_version table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public static function doDeleteAll(ConnectionInterface $con = null) + { + return CouponVersionQuery::create()->doDeleteAll($con); + } + + /** + * Performs an INSERT on the database, given a CouponVersion or Criteria object. + * + * @param mixed $criteria Criteria or CouponVersion object containing data that is used to create the INSERT statement. + * @param ConnectionInterface $con the ConnectionInterface connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($criteria, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(CouponVersionTableMap::DATABASE_NAME); + } + + if ($criteria instanceof Criteria) { + $criteria = clone $criteria; // rename for clarity + } else { + $criteria = $criteria->buildCriteria(); // build Criteria from CouponVersion object + } + + + // Set the correct dbName + $query = CouponVersionQuery::create()->mergeWith($criteria); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = $query->doInsert($con); + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + +} // CouponVersionTableMap +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +CouponVersionTableMap::buildTableMap(); diff --git a/core/lib/Thelia/Model/Map/CurrencyI18nTableMap.php b/core/lib/Thelia/Model/Map/CurrencyI18nTableMap.php old mode 100644 new mode 100755 index c7e4725c1..d280f8601 --- a/core/lib/Thelia/Model/Map/CurrencyI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/CurrencyI18nTableMap.php @@ -136,7 +136,7 @@ class CurrencyI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'currency', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('NAME', 'Name', 'VARCHAR', false, 45, null); } // initialize() diff --git a/core/lib/Thelia/Model/Map/CurrencyTableMap.php b/core/lib/Thelia/Model/Map/CurrencyTableMap.php old mode 100644 new mode 100755 index b37a6b30a..08ecf6966 --- a/core/lib/Thelia/Model/Map/CurrencyTableMap.php +++ b/core/lib/Thelia/Model/Map/CurrencyTableMap.php @@ -121,7 +121,7 @@ class CurrencyTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index 5344099c5..d403756fa --- a/core/lib/Thelia/Model/Map/CustomerTitleI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/CustomerTitleI18nTableMap.php @@ -141,7 +141,7 @@ class CustomerTitleI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'customer_title', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('SHORT', 'Short', 'VARCHAR', false, 10, null); $this->addColumn('LONG', 'Long', 'VARCHAR', false, 45, null); } // initialize() diff --git a/core/lib/Thelia/Model/Map/CustomerTitleTableMap.php b/core/lib/Thelia/Model/Map/CustomerTitleTableMap.php old mode 100644 new mode 100755 index c10ce2500..2769f365e --- a/core/lib/Thelia/Model/Map/CustomerTitleTableMap.php +++ b/core/lib/Thelia/Model/Map/CustomerTitleTableMap.php @@ -106,7 +106,7 @@ class CustomerTitleTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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/FeatureAvI18nTableMap.php b/core/lib/Thelia/Model/Map/FeatureAvI18nTableMap.php old mode 100644 new mode 100755 index ba592b4b0..b3114e7ba --- a/core/lib/Thelia/Model/Map/FeatureAvI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/FeatureAvI18nTableMap.php @@ -151,7 +151,7 @@ class FeatureAvI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'feature_av', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/FeatureAvTableMap.php b/core/lib/Thelia/Model/Map/FeatureAvTableMap.php old mode 100644 new mode 100755 index 4dd944bb7..0559f7ce6 --- a/core/lib/Thelia/Model/Map/FeatureAvTableMap.php +++ b/core/lib/Thelia/Model/Map/FeatureAvTableMap.php @@ -106,7 +106,7 @@ class FeatureAvTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index dba05fb67..af0dfc263 --- a/core/lib/Thelia/Model/Map/FeatureI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/FeatureI18nTableMap.php @@ -151,7 +151,7 @@ class FeatureI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'feature', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/FeatureProductTableMap.php b/core/lib/Thelia/Model/Map/FeatureProductTableMap.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 index 76c2fe724..7d0af0d45 --- a/core/lib/Thelia/Model/Map/FeatureTableMap.php +++ b/core/lib/Thelia/Model/Map/FeatureTableMap.php @@ -106,7 +106,7 @@ class FeatureTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/FolderDocumentI18nTableMap.php b/core/lib/Thelia/Model/Map/FolderDocumentI18nTableMap.php old mode 100644 new mode 100755 index 28dab9d8f..5875031fb --- a/core/lib/Thelia/Model/Map/FolderDocumentI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/FolderDocumentI18nTableMap.php @@ -151,7 +151,7 @@ class FolderDocumentI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'folder_document', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/FolderDocumentTableMap.php b/core/lib/Thelia/Model/Map/FolderDocumentTableMap.php old mode 100644 new mode 100755 index 1d0e3b74a..467b7a65b --- a/core/lib/Thelia/Model/Map/FolderDocumentTableMap.php +++ b/core/lib/Thelia/Model/Map/FolderDocumentTableMap.php @@ -111,7 +111,7 @@ class FolderDocumentTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/FolderI18nTableMap.php b/core/lib/Thelia/Model/Map/FolderI18nTableMap.php old mode 100644 new mode 100755 index d10344811..fc85b17ec --- a/core/lib/Thelia/Model/Map/FolderI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/FolderI18nTableMap.php @@ -151,7 +151,7 @@ class FolderI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'folder', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/FolderImageI18nTableMap.php b/core/lib/Thelia/Model/Map/FolderImageI18nTableMap.php old mode 100644 new mode 100755 index f0f87fd85..1c89165a4 --- a/core/lib/Thelia/Model/Map/FolderImageI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/FolderImageI18nTableMap.php @@ -151,7 +151,7 @@ class FolderImageI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'folder_image', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/FolderImageTableMap.php b/core/lib/Thelia/Model/Map/FolderImageTableMap.php old mode 100644 new mode 100755 index 6dc186658..c559f9437 --- a/core/lib/Thelia/Model/Map/FolderImageTableMap.php +++ b/core/lib/Thelia/Model/Map/FolderImageTableMap.php @@ -111,7 +111,7 @@ class FolderImageTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/FolderTableMap.php b/core/lib/Thelia/Model/Map/FolderTableMap.php old mode 100644 new mode 100755 index 1bfe2cd6e..08871715b --- a/core/lib/Thelia/Model/Map/FolderTableMap.php +++ b/core/lib/Thelia/Model/Map/FolderTableMap.php @@ -126,7 +126,7 @@ class FolderTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index 57788593a..585127821 --- a/core/lib/Thelia/Model/Map/GroupI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/GroupI18nTableMap.php @@ -151,7 +151,7 @@ class GroupI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'group', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); 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 index 881a2fa84..a8c830005 --- a/core/lib/Thelia/Model/Map/GroupTableMap.php +++ b/core/lib/Thelia/Model/Map/GroupTableMap.php @@ -101,7 +101,7 @@ class GroupTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index bb9bfdd2e..f084515c0 --- a/core/lib/Thelia/Model/Map/MessageI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/MessageI18nTableMap.php @@ -146,7 +146,7 @@ class MessageI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'message', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'LONGVARCHAR', false, null, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('DESCRIPTION_HTML', 'DescriptionHtml', 'CLOB', false, null, null); diff --git a/core/lib/Thelia/Model/Map/MessageTableMap.php b/core/lib/Thelia/Model/Map/MessageTableMap.php old mode 100644 new mode 100755 index 392dac824..de2a205f9 --- a/core/lib/Thelia/Model/Map/MessageTableMap.php +++ b/core/lib/Thelia/Model/Map/MessageTableMap.php @@ -126,7 +126,7 @@ class MessageTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index a8e680f1c..67b7a34ef --- a/core/lib/Thelia/Model/Map/ModuleI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ModuleI18nTableMap.php @@ -151,7 +151,7 @@ class ModuleI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'module', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ModuleTableMap.php b/core/lib/Thelia/Model/Map/ModuleTableMap.php old mode 100644 new mode 100755 index cccaa890a..5370c1da1 --- a/core/lib/Thelia/Model/Map/ModuleTableMap.php +++ b/core/lib/Thelia/Model/Map/ModuleTableMap.php @@ -116,7 +116,7 @@ class ModuleTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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 index 1b2052c2e..5d78c474c --- a/core/lib/Thelia/Model/Map/OrderStatusI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/OrderStatusI18nTableMap.php @@ -151,7 +151,7 @@ class OrderStatusI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'order_status', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/OrderStatusTableMap.php b/core/lib/Thelia/Model/Map/OrderStatusTableMap.php old mode 100644 new mode 100755 index 18406d9aa..eecfe5a03 --- a/core/lib/Thelia/Model/Map/OrderStatusTableMap.php +++ b/core/lib/Thelia/Model/Map/OrderStatusTableMap.php @@ -101,7 +101,7 @@ class OrderStatusTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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/ProductAssociatedContentTableMap.php b/core/lib/Thelia/Model/Map/ProductAssociatedContentTableMap.php new file mode 100644 index 000000000..d4d1dadb8 --- /dev/null +++ b/core/lib/Thelia/Model/Map/ProductAssociatedContentTableMap.php @@ -0,0 +1,456 @@ + array('Id', 'ProductId', 'ContentId', 'Position', 'CreatedAt', 'UpdatedAt', ), + self::TYPE_STUDLYPHPNAME => array('id', 'productId', 'contentId', 'position', 'createdAt', 'updatedAt', ), + self::TYPE_COLNAME => array(ProductAssociatedContentTableMap::ID, ProductAssociatedContentTableMap::PRODUCT_ID, ProductAssociatedContentTableMap::CONTENT_ID, ProductAssociatedContentTableMap::POSITION, ProductAssociatedContentTableMap::CREATED_AT, ProductAssociatedContentTableMap::UPDATED_AT, ), + self::TYPE_RAW_COLNAME => array('ID', 'PRODUCT_ID', 'CONTENT_ID', 'POSITION', 'CREATED_AT', 'UPDATED_AT', ), + self::TYPE_FIELDNAME => array('id', 'product_id', 'content_id', 'position', 'created_at', 'updated_at', ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, ) + ); + + /** + * holds an array of keys for quick access to the fieldnames array + * + * first dimension keys are the type constants + * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 + */ + protected static $fieldKeys = array ( + self::TYPE_PHPNAME => array('Id' => 0, 'ProductId' => 1, 'ContentId' => 2, 'Position' => 3, 'CreatedAt' => 4, 'UpdatedAt' => 5, ), + self::TYPE_STUDLYPHPNAME => array('id' => 0, 'productId' => 1, 'contentId' => 2, 'position' => 3, 'createdAt' => 4, 'updatedAt' => 5, ), + self::TYPE_COLNAME => array(ProductAssociatedContentTableMap::ID => 0, ProductAssociatedContentTableMap::PRODUCT_ID => 1, ProductAssociatedContentTableMap::CONTENT_ID => 2, ProductAssociatedContentTableMap::POSITION => 3, ProductAssociatedContentTableMap::CREATED_AT => 4, ProductAssociatedContentTableMap::UPDATED_AT => 5, ), + self::TYPE_RAW_COLNAME => array('ID' => 0, 'PRODUCT_ID' => 1, 'CONTENT_ID' => 2, 'POSITION' => 3, 'CREATED_AT' => 4, 'UPDATED_AT' => 5, ), + self::TYPE_FIELDNAME => array('id' => 0, 'product_id' => 1, 'content_id' => 2, 'position' => 3, 'created_at' => 4, 'updated_at' => 5, ), + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, ) + ); + + /** + * Initialize the table attributes and columns + * Relations are not initialized by this method since they are lazy loaded + * + * @return void + * @throws PropelException + */ + public function initialize() + { + // attributes + $this->setName('product_associated_content'); + $this->setPhpName('ProductAssociatedContent'); + $this->setClassName('\\Thelia\\Model\\ProductAssociatedContent'); + $this->setPackage('Thelia.Model'); + $this->setUseIdGenerator(true); + // columns + $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); + $this->addForeignKey('PRODUCT_ID', 'ProductId', 'INTEGER', 'product', 'ID', true, null, null); + $this->addForeignKey('CONTENT_ID', 'ContentId', 'INTEGER', 'content', 'ID', true, null, null); + $this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null); + $this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null); + $this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null); + } // initialize() + + /** + * Build the RelationMap objects for this table relationships + */ + public function buildRelations() + { + $this->addRelation('Product', '\\Thelia\\Model\\Product', RelationMap::MANY_TO_ONE, array('product_id' => 'id', ), 'CASCADE', 'RESTRICT'); + $this->addRelation('Content', '\\Thelia\\Model\\Content', RelationMap::MANY_TO_ONE, array('content_id' => 'id', ), 'CASCADE', 'RESTRICT'); + } // buildRelations() + + /** + * + * Gets the list of behaviors registered for this table + * + * @return array Associative array (name => parameters) of behaviors + */ + public function getBehaviors() + { + return array( + 'timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', ), + ); + } // getBehaviors() + + /** + * Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table. + * + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, a serialize()d version of the primary key will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + */ + 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) { + return null; + } + + return (string) $row[TableMap::TYPE_NUM == $indexType ? 0 + $offset : static::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; + } + + /** + * Retrieves the primary key from the DB resultset row + * For tables with a single-column primary key, that simple pkey value will be returned. For tables with + * a multi-column primary key, an array of the primary key columns will be returned. + * + * @param array $row resultset row. + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM + * + * @return mixed The primary key of the row + */ + public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + + return (int) $row[ + $indexType == TableMap::TYPE_NUM + ? 0 + $offset + : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType) + ]; + } + + /** + * The class that the tableMap will make instances of. + * + * If $withPrefix is true, the returned path + * uses a dot-path notation which is translated into a path + * relative to a location on the PHP include_path. + * (e.g. path.to.MyClass -> 'path/to/MyClass.php') + * + * @param boolean $withPrefix Whether or not to return the path with the class name + * @return string path.to.ClassName + */ + public static function getOMClass($withPrefix = true) + { + return $withPrefix ? ProductAssociatedContentTableMap::CLASS_DEFAULT : ProductAssociatedContentTableMap::OM_CLASS; + } + + /** + * Populates an object of the default type or an object that inherit from the default. + * + * @param array $row row returned by DataFetcher->fetch(). + * @param int $offset The 0-based offset for reading from the resultset row. + * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType(). + One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME + * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. + * + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + * @return array (ProductAssociatedContent object, last column rank) + */ + public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) + { + $key = ProductAssociatedContentTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); + if (null !== ($obj = ProductAssociatedContentTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, $offset, true); // rehydrate + $col = $offset + ProductAssociatedContentTableMap::NUM_HYDRATE_COLUMNS; + } else { + $cls = ProductAssociatedContentTableMap::OM_CLASS; + $obj = new $cls(); + $col = $obj->hydrate($row, $offset, false, $indexType); + ProductAssociatedContentTableMap::addInstanceToPool($obj, $key); + } + + return array($obj, $col); + } + + /** + * The returned array will contain objects of the default type or + * objects that inherit from the default. + * + * @param DataFetcherInterface $dataFetcher + * @return array + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function populateObjects(DataFetcherInterface $dataFetcher) + { + $results = array(); + + // set the class once to avoid overhead in the loop + $cls = static::getOMClass(false); + // populate the object(s) + while ($row = $dataFetcher->fetch()) { + $key = ProductAssociatedContentTableMap::getPrimaryKeyHashFromRow($row, 0, $dataFetcher->getIndexType()); + if (null !== ($obj = ProductAssociatedContentTableMap::getInstanceFromPool($key))) { + // We no longer rehydrate the object, since this can cause data loss. + // See http://www.propelorm.org/ticket/509 + // $obj->hydrate($row, 0, true); // rehydrate + $results[] = $obj; + } else { + $obj = new $cls(); + $obj->hydrate($row); + $results[] = $obj; + ProductAssociatedContentTableMap::addInstanceToPool($obj, $key); + } // if key exists + } + + return $results; + } + /** + * Add all the columns needed to create a new object. + * + * Note: any columns that were marked with lazyLoad="true" in the + * XML schema will not be added to the select list and only loaded + * on demand. + * + * @param Criteria $criteria object containing the columns to add. + * @param string $alias optional table alias + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function addSelectColumns(Criteria $criteria, $alias = null) + { + if (null === $alias) { + $criteria->addSelectColumn(ProductAssociatedContentTableMap::ID); + $criteria->addSelectColumn(ProductAssociatedContentTableMap::PRODUCT_ID); + $criteria->addSelectColumn(ProductAssociatedContentTableMap::CONTENT_ID); + $criteria->addSelectColumn(ProductAssociatedContentTableMap::POSITION); + $criteria->addSelectColumn(ProductAssociatedContentTableMap::CREATED_AT); + $criteria->addSelectColumn(ProductAssociatedContentTableMap::UPDATED_AT); + } else { + $criteria->addSelectColumn($alias . '.ID'); + $criteria->addSelectColumn($alias . '.PRODUCT_ID'); + $criteria->addSelectColumn($alias . '.CONTENT_ID'); + $criteria->addSelectColumn($alias . '.POSITION'); + $criteria->addSelectColumn($alias . '.CREATED_AT'); + $criteria->addSelectColumn($alias . '.UPDATED_AT'); + } + } + + /** + * Returns the TableMap related to this object. + * This method is not needed for general use but a specific application could have a need. + * @return TableMap + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function getTableMap() + { + return Propel::getServiceContainer()->getDatabaseMap(ProductAssociatedContentTableMap::DATABASE_NAME)->getTable(ProductAssociatedContentTableMap::TABLE_NAME); + } + + /** + * Add a TableMap instance to the database for this tableMap class. + */ + public static function buildTableMap() + { + $dbMap = Propel::getServiceContainer()->getDatabaseMap(ProductAssociatedContentTableMap::DATABASE_NAME); + if (!$dbMap->hasTable(ProductAssociatedContentTableMap::TABLE_NAME)) { + $dbMap->addTableObject(new ProductAssociatedContentTableMap()); + } + } + + /** + * Performs a DELETE on the database, given a ProductAssociatedContent or Criteria object OR a primary key value. + * + * @param mixed $values Criteria or ProductAssociatedContent object or primary key or array of primary keys + * which is used to create the DELETE statement + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows + * if supported by native driver or if emulated using Propel. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doDelete($values, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + + if ($values instanceof Criteria) { + // rename for clarity + $criteria = $values; + } elseif ($values instanceof \Thelia\Model\ProductAssociatedContent) { // it's a model object + // create criteria based on pk values + $criteria = $values->buildPkeyCriteria(); + } else { // it's a primary key, or an array of pks + $criteria = new Criteria(ProductAssociatedContentTableMap::DATABASE_NAME); + $criteria->add(ProductAssociatedContentTableMap::ID, (array) $values, Criteria::IN); + } + + $query = ProductAssociatedContentQuery::create()->mergeWith($criteria); + + if ($values instanceof Criteria) { ProductAssociatedContentTableMap::clearInstancePool(); + } elseif (!is_object($values)) { // it's a primary key, or an array of pks + foreach ((array) $values as $singleval) { ProductAssociatedContentTableMap::removeInstanceFromPool($singleval); + } + } + + return $query->delete($con); + } + + /** + * Deletes all rows from the product_associated_content table. + * + * @param ConnectionInterface $con the connection to use + * @return int The number of affected rows (if supported by underlying database driver). + */ + public static function doDeleteAll(ConnectionInterface $con = null) + { + return ProductAssociatedContentQuery::create()->doDeleteAll($con); + } + + /** + * Performs an INSERT on the database, given a ProductAssociatedContent or Criteria object. + * + * @param mixed $criteria Criteria or ProductAssociatedContent object containing data that is used to create the INSERT statement. + * @param ConnectionInterface $con the ConnectionInterface connection to use + * @return mixed The new primary key. + * @throws PropelException Any exceptions caught during processing will be + * rethrown wrapped into a PropelException. + */ + public static function doInsert($criteria, ConnectionInterface $con = null) + { + if (null === $con) { + $con = Propel::getServiceContainer()->getWriteConnection(ProductAssociatedContentTableMap::DATABASE_NAME); + } + + if ($criteria instanceof Criteria) { + $criteria = clone $criteria; // rename for clarity + } else { + $criteria = $criteria->buildCriteria(); // build Criteria from ProductAssociatedContent object + } + + if ($criteria->containsKey(ProductAssociatedContentTableMap::ID) && $criteria->keyContainsValue(ProductAssociatedContentTableMap::ID) ) { + throw new PropelException('Cannot insert a value for auto-increment primary key ('.ProductAssociatedContentTableMap::ID.')'); + } + + + // Set the correct dbName + $query = ProductAssociatedContentQuery::create()->mergeWith($criteria); + + try { + // use transaction because $criteria could contain info + // for more than one table (I guess, conceivably) + $con->beginTransaction(); + $pk = $query->doInsert($con); + $con->commit(); + } catch (PropelException $e) { + $con->rollBack(); + throw $e; + } + + return $pk; + } + +} // ProductAssociatedContentTableMap +// This is the static code needed to register the TableMap for this table with the main Propel class. +// +ProductAssociatedContentTableMap::buildTableMap(); 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/ProductDocumentI18nTableMap.php b/core/lib/Thelia/Model/Map/ProductDocumentI18nTableMap.php old mode 100644 new mode 100755 index 09e1dc0e4..103914ee6 --- a/core/lib/Thelia/Model/Map/ProductDocumentI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ProductDocumentI18nTableMap.php @@ -151,7 +151,7 @@ class ProductDocumentI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'product_document', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ProductDocumentTableMap.php b/core/lib/Thelia/Model/Map/ProductDocumentTableMap.php old mode 100644 new mode 100755 index ff50bad77..f1420cc43 --- a/core/lib/Thelia/Model/Map/ProductDocumentTableMap.php +++ b/core/lib/Thelia/Model/Map/ProductDocumentTableMap.php @@ -111,7 +111,7 @@ class ProductDocumentTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/ProductI18nTableMap.php b/core/lib/Thelia/Model/Map/ProductI18nTableMap.php old mode 100644 new mode 100755 index 79a01514a..8da33f15d --- a/core/lib/Thelia/Model/Map/ProductI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ProductI18nTableMap.php @@ -151,7 +151,7 @@ class ProductI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'product', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ProductImageI18nTableMap.php b/core/lib/Thelia/Model/Map/ProductImageI18nTableMap.php old mode 100644 new mode 100755 index 39ad567f9..de3455c07 --- a/core/lib/Thelia/Model/Map/ProductImageI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ProductImageI18nTableMap.php @@ -151,7 +151,7 @@ class ProductImageI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'product_image', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ProductImageTableMap.php b/core/lib/Thelia/Model/Map/ProductImageTableMap.php old mode 100644 new mode 100755 index 36aabed3e..945799020 --- a/core/lib/Thelia/Model/Map/ProductImageTableMap.php +++ b/core/lib/Thelia/Model/Map/ProductImageTableMap.php @@ -111,7 +111,7 @@ class ProductImageTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/ProductPriceTableMap.php b/core/lib/Thelia/Model/Map/ProductPriceTableMap.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Model/Map/ProductSaleElementsTableMap.php b/core/lib/Thelia/Model/Map/ProductSaleElementsTableMap.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 index 75bf5e4e6..81badfba0 --- a/core/lib/Thelia/Model/Map/ProductTableMap.php +++ b/core/lib/Thelia/Model/Map/ProductTableMap.php @@ -131,7 +131,7 @@ class ProductTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames @@ -200,13 +200,13 @@ class ProductTableMap extends TableMap $this->addRelation('ProductCategory', '\\Thelia\\Model\\ProductCategory', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'ProductCategories'); $this->addRelation('FeatureProduct', '\\Thelia\\Model\\FeatureProduct', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'FeatureProducts'); $this->addRelation('ProductSaleElements', '\\Thelia\\Model\\ProductSaleElements', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'ProductSaleElementss'); - $this->addRelation('ContentAssoc', '\\Thelia\\Model\\ContentAssoc', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'ContentAssocs'); $this->addRelation('ProductImage', '\\Thelia\\Model\\ProductImage', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'ProductImages'); $this->addRelation('ProductDocument', '\\Thelia\\Model\\ProductDocument', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'ProductDocuments'); $this->addRelation('AccessoryRelatedByProductId', '\\Thelia\\Model\\Accessory', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'AccessoriesRelatedByProductId'); $this->addRelation('AccessoryRelatedByAccessory', '\\Thelia\\Model\\Accessory', RelationMap::ONE_TO_MANY, array('id' => 'accessory', ), 'CASCADE', 'RESTRICT', 'AccessoriesRelatedByAccessory'); $this->addRelation('Rewriting', '\\Thelia\\Model\\Rewriting', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'Rewritings'); $this->addRelation('CartItem', '\\Thelia\\Model\\CartItem', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), null, null, 'CartItems'); + $this->addRelation('ProductAssociatedContent', '\\Thelia\\Model\\ProductAssociatedContent', RelationMap::ONE_TO_MANY, array('id' => 'product_id', ), 'CASCADE', 'RESTRICT', 'ProductAssociatedContents'); $this->addRelation('ProductI18n', '\\Thelia\\Model\\ProductI18n', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'ProductI18ns'); $this->addRelation('ProductVersion', '\\Thelia\\Model\\ProductVersion', RelationMap::ONE_TO_MANY, array('id' => 'id', ), 'CASCADE', null, 'ProductVersions'); $this->addRelation('Category', '\\Thelia\\Model\\Category', RelationMap::MANY_TO_MANY, array(), 'CASCADE', 'RESTRICT', 'Categories'); @@ -238,11 +238,11 @@ class ProductTableMap extends TableMap ProductCategoryTableMap::clearInstancePool(); FeatureProductTableMap::clearInstancePool(); ProductSaleElementsTableMap::clearInstancePool(); - ContentAssocTableMap::clearInstancePool(); ProductImageTableMap::clearInstancePool(); ProductDocumentTableMap::clearInstancePool(); AccessoryTableMap::clearInstancePool(); RewritingTableMap::clearInstancePool(); + ProductAssociatedContentTableMap::clearInstancePool(); ProductI18nTableMap::clearInstancePool(); ProductVersionTableMap::clearInstancePool(); } 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 index ec22e2fd3..8a8ce501a --- a/core/lib/Thelia/Model/Map/ResourceI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/ResourceI18nTableMap.php @@ -151,7 +151,7 @@ class ResourceI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'resource', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'CLOB', false, null, null); $this->addColumn('CHAPO', 'Chapo', 'LONGVARCHAR', false, null, null); diff --git a/core/lib/Thelia/Model/Map/ResourceTableMap.php b/core/lib/Thelia/Model/Map/ResourceTableMap.php old mode 100644 new mode 100755 index 8d7708ddd..e56960892 --- a/core/lib/Thelia/Model/Map/ResourceTableMap.php +++ b/core/lib/Thelia/Model/Map/ResourceTableMap.php @@ -101,7 +101,7 @@ class ResourceTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames 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/TaxI18nTableMap.php b/core/lib/Thelia/Model/Map/TaxI18nTableMap.php old mode 100644 new mode 100755 index a06230c37..2c4c92f4f --- a/core/lib/Thelia/Model/Map/TaxI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/TaxI18nTableMap.php @@ -141,7 +141,7 @@ class TaxI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'tax', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); $this->addColumn('TITLE', 'Title', 'VARCHAR', false, 255, null); $this->addColumn('DESCRIPTION', 'Description', 'LONGVARCHAR', false, null, null); } // initialize() 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 index 1f0ed1e96..689f30728 --- a/core/lib/Thelia/Model/Map/TaxRuleI18nTableMap.php +++ b/core/lib/Thelia/Model/Map/TaxRuleI18nTableMap.php @@ -131,7 +131,7 @@ class TaxRuleI18nTableMap extends TableMap $this->setUseIdGenerator(false); // columns $this->addForeignPrimaryKey('ID', 'Id', 'INTEGER' , 'tax_rule', 'ID', true, null, null); - $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_US'); + $this->addPrimaryKey('LOCALE', 'Locale', 'VARCHAR', true, 5, 'en_EN'); } // initialize() /** diff --git a/core/lib/Thelia/Model/Map/TaxRuleTableMap.php b/core/lib/Thelia/Model/Map/TaxRuleTableMap.php old mode 100644 new mode 100755 index cc5f628b9..9b862de99 --- a/core/lib/Thelia/Model/Map/TaxRuleTableMap.php +++ b/core/lib/Thelia/Model/Map/TaxRuleTableMap.php @@ -111,7 +111,7 @@ class TaxRuleTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/Map/TaxTableMap.php b/core/lib/Thelia/Model/Map/TaxTableMap.php old mode 100644 new mode 100755 index 6d43f20e9..b941e7b52 --- a/core/lib/Thelia/Model/Map/TaxTableMap.php +++ b/core/lib/Thelia/Model/Map/TaxTableMap.php @@ -101,7 +101,7 @@ class TaxTableMap extends TableMap * * @var string */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'en_EN'; /** * holds an array of fieldnames diff --git a/core/lib/Thelia/Model/ProductAssociatedContent.php b/core/lib/Thelia/Model/ProductAssociatedContent.php new file mode 100644 index 000000000..9b007baf1 --- /dev/null +++ b/core/lib/Thelia/Model/ProductAssociatedContent.php @@ -0,0 +1,9 @@ + + */ +class ModelCriteriaTools +{ + /** + * @param ModelCriteria $search + * @param $defaultLangWithoutTranslation + * @param $askedLocale + * @param array $columns + * @param null $foreignTable + * @param string $foreignKey + */ + public static function getI18n(ModelCriteria &$search, $defaultLangWithoutTranslation, $askedLocale, $columns = array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'), $foreignTable = null, $foreignKey = 'ID') + { + if($foreignTable === null) { + $foreignTable = $search->getTableMap()->getName(); + $aliasPrefix = ''; + } else { + $aliasPrefix = $foreignTable . '_'; + } + + $askedLocaleI18nAlias = 'asked_locale_i18n'; + $defaultLocaleI18nAlias = 'default_locale_i18n'; + + if($defaultLangWithoutTranslation == 0) { + $askedLocaleJoin = new Join(); + $askedLocaleJoin->addExplicitCondition($search->getTableMap()->getName(), $foreignKey, null, $foreignTable . '_i18n', 'ID', $askedLocaleI18nAlias); + $askedLocaleJoin->setJoinType(Criteria::INNER_JOIN); + + $search->addJoinObject($askedLocaleJoin, $askedLocaleI18nAlias) + ->addJoinCondition($askedLocaleI18nAlias ,'`' . $askedLocaleI18nAlias . '`.LOCALE = ?', $askedLocale, null, \PDO::PARAM_STR); + + foreach($columns as $column) { + $search->withColumn('`' . $askedLocaleI18nAlias . '`.`' . $column . '`', $aliasPrefix . 'i18n_' . $column); + } + } else { + $defaultLocale = LangQuery::create()->findOneById($defaultLangWithoutTranslation)->getLocale(); + + $defaultLocaleJoin = new Join(); + $defaultLocaleJoin->addExplicitCondition($search->getTableMap()->getName(), $foreignKey, null, $foreignTable . '_i18n', 'ID', $defaultLocaleI18nAlias); + $defaultLocaleJoin->setJoinType(Criteria::LEFT_JOIN); + + $search->addJoinObject($defaultLocaleJoin, $defaultLocaleI18nAlias) + ->addJoinCondition($defaultLocaleI18nAlias ,'`' . $defaultLocaleI18nAlias . '`.LOCALE = ?', $defaultLocale, null, \PDO::PARAM_STR); + + $askedLocaleJoin = new Join(); + $askedLocaleJoin->addExplicitCondition($search->getTableMap()->getName(), $foreignKey, null, $foreignTable . '_i18n', 'ID', $askedLocaleI18nAlias); + $askedLocaleJoin->setJoinType(Criteria::LEFT_JOIN); + + $search->addJoinObject($askedLocaleJoin, $askedLocaleI18nAlias) + ->addJoinCondition($askedLocaleI18nAlias ,'`' . $askedLocaleI18nAlias . '`.LOCALE = ?', $askedLocale, null, \PDO::PARAM_STR); + + $search->where('NOT ISNULL(`' . $askedLocaleI18nAlias . '`.ID)')->_or()->where('NOT ISNULL(`' . $defaultLocaleI18nAlias . '`.ID)'); + + foreach($columns as $column) { + $search->withColumn('CASE WHEN NOT ISNULL(`' . $askedLocaleI18nAlias . '`.ID) THEN `' . $askedLocaleI18nAlias . '`.`' . $column . '` ELSE `' . $defaultLocaleI18nAlias . '`.`' . $column . '` END', $aliasPrefix . 'i18n_' . $column); + } + } + } +} diff --git a/core/lib/Thelia/Module/BaseModule.php b/core/lib/Thelia/Module/BaseModule.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/ImageTest.php b/core/lib/Thelia/Tests/Action/ImageTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-1.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-1.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-2.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-2.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-3.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-3.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-4.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-4.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-5.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-5.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-6.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-6.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-7.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-7.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-8.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-8.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-9.png b/core/lib/Thelia/Tests/Action/assets/images/sources/test-image-9.png old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Cart/CartTraitTest.php b/core/lib/Thelia/Tests/Cart/CartTraitTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Command/BaseCommandTest.php b/core/lib/Thelia/Tests/Command/BaseCommandTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Command/ModuleGenerateCommandTest.php b/core/lib/Thelia/Tests/Command/ModuleGenerateCommandTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Core/HttpFoundation/RequestTest.php b/core/lib/Thelia/Tests/Core/HttpFoundation/RequestTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Core/HttpFoundation/Session/SessionTest.php b/core/lib/Thelia/Tests/Core/HttpFoundation/Session/SessionTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/AssociatedContentTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/AssociatedContentTest.php new file mode 100755 index 000000000..0a12ad076 --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/AssociatedContentTest.php @@ -0,0 +1,51 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Tests\Core\Template\Element\BaseLoopTestor; + +use Thelia\Core\Template\Loop\AssociatedContent; + +/** + * + * @author Etienne Roudeix + * + */ +class AssociatedContentTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\AssociatedContent'; + } + + public function getTestedInstance() + { + return new AssociatedContent($this->request, $this->dispatcher, $this->securityContext); + } + + public function getMandatoryArguments() + { + return array('product' => 1); + } +} diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/AttributeAvailabilityTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/AttributeAvailabilityTest.php new file mode 100755 index 000000000..c870f32ef --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/AttributeAvailabilityTest.php @@ -0,0 +1,51 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Tests\Core\Template\Element\BaseLoopTestor; + +use Thelia\Core\Template\Loop\AttributeAvailability; + +/** + * + * @author Etienne Roudeix + * + */ +class AttributeAvailabilityTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\AttributeAvailability'; + } + + public function getTestedInstance() + { + return new AttributeAvailability($this->request, $this->dispatcher, $this->securityContext); + } + + public function getMandatoryArguments() + { + return array(); + } +} diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/AttributeCombinationTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/AttributeCombinationTest.php new file mode 100755 index 000000000..98d0575eb --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/AttributeCombinationTest.php @@ -0,0 +1,51 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Tests\Core\Template\Element\BaseLoopTestor; + +use Thelia\Core\Template\Loop\AttributeCombination; + +/** + * + * @author Etienne Roudeix + * + */ +class AttributeCombinationTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\AttributeCombination'; + } + + public function getTestedInstance() + { + return new AttributeCombination($this->request, $this->dispatcher, $this->securityContext); + } + + public function getMandatoryArguments() + { + return array('product_sale_elements' => 1); + } +} diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/FeatureAvailableTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/AttributeTest.php similarity index 89% rename from core/lib/Thelia/Tests/Core/Template/Loop/FeatureAvailableTest.php rename to core/lib/Thelia/Tests/Core/Template/Loop/AttributeTest.php index e93b05a69..653de34e9 100755 --- a/core/lib/Thelia/Tests/Core/Template/Loop/FeatureAvailableTest.php +++ b/core/lib/Thelia/Tests/Core/Template/Loop/AttributeTest.php @@ -25,23 +25,23 @@ namespace Thelia\Tests\Core\Template\Loop; use Thelia\Tests\Core\Template\Element\BaseLoopTestor; -use Thelia\Core\Template\Loop\FeatureAvailable; +use Thelia\Core\Template\Loop\Attribute; /** * * @author Etienne Roudeix * */ -class FeatureAvailableTest extends BaseLoopTestor +class AttributeTest extends BaseLoopTestor { public function getTestedClassName() { - return 'Thelia\Core\Template\Loop\FeatureAvailable'; + return 'Thelia\Core\Template\Loop\Attribute'; } public function getTestedInstance() { - return new FeatureAvailable($this->request, $this->dispatcher, $this->securityContext); + return new Attribute($this->request, $this->dispatcher, $this->securityContext); } public function getMandatoryArguments() diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/CurrencyTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/CurrencyTest.php new file mode 100755 index 000000000..95dd5a5c6 --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/CurrencyTest.php @@ -0,0 +1,51 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Tests\Core\Template\Element\BaseLoopTestor; + +use Thelia\Core\Template\Loop\Currency; + +/** + * + * @author Etienne Roudeix + * + */ +class CurrencyTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\Currency'; + } + + public function getTestedInstance() + { + return new Currency($this->request, $this->dispatcher, $this->securityContext); + } + + public function getMandatoryArguments() + { + return array(); + } +} diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/FeatureAvailabilityTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/FeatureAvailabilityTest.php new file mode 100755 index 000000000..d3a045f33 --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/FeatureAvailabilityTest.php @@ -0,0 +1,51 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Tests\Core\Template\Element\BaseLoopTestor; + +use Thelia\Core\Template\Loop\FeatureAvailability; + +/** + * + * @author Etienne Roudeix + * + */ +class FeatureAvailabilityTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\FeatureAvailability'; + } + + public function getTestedInstance() + { + return new FeatureAvailability($this->request, $this->dispatcher, $this->securityContext); + } + + public function getMandatoryArguments() + { + return array(); + } +} diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/ProductSaleElementTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/ProductSaleElementTest.php new file mode 100755 index 000000000..612519e04 --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/ProductSaleElementTest.php @@ -0,0 +1,51 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Tests\Core\Template\Element\BaseLoopTestor; + +use Thelia\Core\Template\Loop\ProductSaleElements; + +/** + * + * @author Etienne Roudeix + * + */ +class ProductSaleElementsTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\ProductSaleElements'; + } + + public function getTestedInstance() + { + return new ProductSaleElements($this->request, $this->dispatcher, $this->securityContext); + } + + public function getMandatoryArguments() + { + return array('product' => 1); + } +} diff --git a/core/lib/Thelia/Tests/Form/CartAddTest.php b/core/lib/Thelia/Tests/Form/CartAddTest.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Tools/URL.php b/core/lib/Thelia/Tools/URL.php old mode 100644 new mode 100755 diff --git a/core/lib/Thelia/Type/BooleanOrBothType.php b/core/lib/Thelia/Type/BooleanOrBothType.php old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.BaseAction.html b/documentation/api/classes/Thelia.Action.BaseAction.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.Cart.html b/documentation/api/classes/Thelia.Action.Cart.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.Category.html b/documentation/api/classes/Thelia.Action.Category.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.Customer.html b/documentation/api/classes/Thelia.Action.Customer.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.Exception.ActionException.html b/documentation/api/classes/Thelia.Action.Exception.ActionException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.Exception.FormValidationException.html b/documentation/api/classes/Thelia.Action.Exception.FormValidationException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.Exception.ProductNotFoundException.html b/documentation/api/classes/Thelia.Action.Exception.ProductNotFoundException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Action.Exception.StockNotFoundException.html b/documentation/api/classes/Thelia.Action.Exception.StockNotFoundException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Admin.Controller.AdminController.html b/documentation/api/classes/Thelia.Admin.Controller.AdminController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Admin.Controller.BaseAdminController.html b/documentation/api/classes/Thelia.Admin.Controller.BaseAdminController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Admin.Controller.CategoryController.html b/documentation/api/classes/Thelia.Admin.Controller.CategoryController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Admin.Controller.SessionController.html b/documentation/api/classes/Thelia.Admin.Controller.SessionController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Cart.CartTrait.html b/documentation/api/classes/Thelia.Cart.CartTrait.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.BaseModuleGenerate.html b/documentation/api/classes/Thelia.Command.BaseModuleGenerate.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.CacheClear.html b/documentation/api/classes/Thelia.Command.CacheClear.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.ContainerAwareCommand.html b/documentation/api/classes/Thelia.Command.ContainerAwareCommand.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.Install.html b/documentation/api/classes/Thelia.Command.Install.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.ModuleGenerateCommand.html b/documentation/api/classes/Thelia.Command.ModuleGenerateCommand.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.ModuleGenerateModelCommand.html b/documentation/api/classes/Thelia.Command.ModuleGenerateModelCommand.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.ModuleGenerateSqlCommand.html b/documentation/api/classes/Thelia.Command.ModuleGenerateSqlCommand.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Command.Output.TheliaConsoleOutput.html b/documentation/api/classes/Thelia.Command.Output.TheliaConsoleOutput.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Config.DatabaseConfiguration.html b/documentation/api/classes/Thelia.Config.DatabaseConfiguration.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Config.DefinePropel.html b/documentation/api/classes/Thelia.Config.DefinePropel.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Admin.AdminController.html b/documentation/api/classes/Thelia.Controller.Admin.AdminController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Admin.BaseAdminController.html b/documentation/api/classes/Thelia.Controller.Admin.BaseAdminController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Admin.CategoryController.html b/documentation/api/classes/Thelia.Controller.Admin.CategoryController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Admin.SessionController.html b/documentation/api/classes/Thelia.Controller.Admin.SessionController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.BaseController.html b/documentation/api/classes/Thelia.Controller.BaseController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.DefaultController.html b/documentation/api/classes/Thelia.Controller.DefaultController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Front.BaseFrontController.html b/documentation/api/classes/Thelia.Controller.Front.BaseFrontController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Front.CartController.html b/documentation/api/classes/Thelia.Controller.Front.CartController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Front.CustomerController.html b/documentation/api/classes/Thelia.Controller.Front.CustomerController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.Front.DefaultController.html b/documentation/api/classes/Thelia.Controller.Front.DefaultController.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Controller.NullControllerInterface.html b/documentation/api/classes/Thelia.Controller.NullControllerInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Application.html b/documentation/api/classes/Thelia.Core.Application.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Bundle.TheliaBundle.html b/documentation/api/classes/Thelia.Core.Bundle.TheliaBundle.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Context.html b/documentation/api/classes/Thelia.Core.Context.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Controller.ControllerResolver.html b/documentation/api/classes/Thelia.Core.Controller.ControllerResolver.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.DependencyInjection.Compiler.RegisterListenersPass.html b/documentation/api/classes/Thelia.Core.DependencyInjection.Compiler.RegisterListenersPass.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.DependencyInjection.Compiler.RegisterParserPluginPass.html b/documentation/api/classes/Thelia.Core.DependencyInjection.Compiler.RegisterParserPluginPass.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.DependencyInjection.Compiler.RegisterRouterPass.html b/documentation/api/classes/Thelia.Core.DependencyInjection.Compiler.RegisterRouterPass.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.DependencyInjection.Loader.XmlFileLoader.html b/documentation/api/classes/Thelia.Core.DependencyInjection.Loader.XmlFileLoader.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.ActionEvent.html b/documentation/api/classes/Thelia.Core.Event.ActionEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.CartEvent.html b/documentation/api/classes/Thelia.Core.Event.CartEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.CartItemEvent.html b/documentation/api/classes/Thelia.Core.Event.CartItemEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.CategoryEvent.html b/documentation/api/classes/Thelia.Core.Event.CategoryEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.CustomRefEvent.html b/documentation/api/classes/Thelia.Core.Event.CustomRefEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.CustomerEvent.html b/documentation/api/classes/Thelia.Core.Event.CustomerEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.DefaultActionEvent.html b/documentation/api/classes/Thelia.Core.Event.DefaultActionEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.Internal.CartEvent.html b/documentation/api/classes/Thelia.Core.Event.Internal.CartEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.Internal.CustomerEvent.html b/documentation/api/classes/Thelia.Core.Event.Internal.CustomerEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.Internal.InternalEvent.html b/documentation/api/classes/Thelia.Core.Event.Internal.InternalEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.InternalEvent.html b/documentation/api/classes/Thelia.Core.Event.InternalEvent.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Event.TheliaEvents.html b/documentation/api/classes/Thelia.Core.Event.TheliaEvents.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.EventListener.ControllerListener.html b/documentation/api/classes/Thelia.Core.EventListener.ControllerListener.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.EventListener.ViewListener.html b/documentation/api/classes/Thelia.Core.EventListener.ViewListener.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Factory.ActionEventFactory.html b/documentation/api/classes/Thelia.Core.Factory.ActionEventFactory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.HttpFoundation.Request.html b/documentation/api/classes/Thelia.Core.HttpFoundation.Request.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.HttpFoundation.Session.Session.html b/documentation/api/classes/Thelia.Core.HttpFoundation.Session.Session.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Authentication.AdminUsernamePasswordFormAuthenticator.html b/documentation/api/classes/Thelia.Core.Security.Authentication.AdminUsernamePasswordFormAuthenticator.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Authentication.AuthenticatorInterface.html b/documentation/api/classes/Thelia.Core.Security.Authentication.AuthenticatorInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Authentication.CustomerUsernamePasswordFormAuthenticator.html b/documentation/api/classes/Thelia.Core.Security.Authentication.CustomerUsernamePasswordFormAuthenticator.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Authentication.UsernamePasswordFormAuthenticator.html b/documentation/api/classes/Thelia.Core.Security.Authentication.UsernamePasswordFormAuthenticator.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Exception.AuthenticationException.html b/documentation/api/classes/Thelia.Core.Security.Exception.AuthenticationException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Exception.AuthorizationException.html b/documentation/api/classes/Thelia.Core.Security.Exception.AuthorizationException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Exception.UsernameNotFoundException.html b/documentation/api/classes/Thelia.Core.Security.Exception.UsernameNotFoundException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Exception.WrongPasswordException.html b/documentation/api/classes/Thelia.Core.Security.Exception.WrongPasswordException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Role.Role.html b/documentation/api/classes/Thelia.Core.Security.Role.Role.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.Role.RoleInterface.html b/documentation/api/classes/Thelia.Core.Security.Role.RoleInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.SecurityContext.html b/documentation/api/classes/Thelia.Core.Security.SecurityContext.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.User.UserInterface.html b/documentation/api/classes/Thelia.Core.Security.User.UserInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.UserProvider.AdminUserProvider.html b/documentation/api/classes/Thelia.Core.Security.UserProvider.AdminUserProvider.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.UserProvider.CustomerUserProvider.html b/documentation/api/classes/Thelia.Core.Security.UserProvider.CustomerUserProvider.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Security.UserProvider.UserProviderInterface.html b/documentation/api/classes/Thelia.Core.Security.UserProvider.UserProviderInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Assets.AsseticHelper.html b/documentation/api/classes/Thelia.Core.Template.Assets.AsseticHelper.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Element.BaseLoop.html b/documentation/api/classes/Thelia.Core.Template.Element.BaseLoop.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Element.Exception.ElementNotFoundException.html b/documentation/api/classes/Thelia.Core.Template.Element.Exception.ElementNotFoundException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Element.Exception.InvalidElementException.html b/documentation/api/classes/Thelia.Core.Template.Element.Exception.InvalidElementException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Element.LoopResult.html b/documentation/api/classes/Thelia.Core.Template.Element.LoopResult.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Element.LoopResultRow.html b/documentation/api/classes/Thelia.Core.Template.Element.LoopResultRow.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Exception.ResourceNotFoundException.html b/documentation/api/classes/Thelia.Core.Template.Exception.ResourceNotFoundException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Accessory.html b/documentation/api/classes/Thelia.Core.Template.Loop.Accessory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Address.html b/documentation/api/classes/Thelia.Core.Template.Loop.Address.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Argument.Argument.html b/documentation/api/classes/Thelia.Core.Template.Loop.Argument.Argument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Argument.ArgumentCollection.html b/documentation/api/classes/Thelia.Core.Template.Loop.Argument.ArgumentCollection.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Auth.html b/documentation/api/classes/Thelia.Core.Template.Loop.Auth.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Cart.html b/documentation/api/classes/Thelia.Core.Template.Loop.Cart.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Category.html b/documentation/api/classes/Thelia.Core.Template.Loop.Category.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.CategoryPath.html b/documentation/api/classes/Thelia.Core.Template.Loop.CategoryPath.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.CategoryTree.html b/documentation/api/classes/Thelia.Core.Template.Loop.CategoryTree.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Content.html b/documentation/api/classes/Thelia.Core.Template.Loop.Content.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Country.html b/documentation/api/classes/Thelia.Core.Template.Loop.Country.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Customer.html b/documentation/api/classes/Thelia.Core.Template.Loop.Customer.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Feature.html b/documentation/api/classes/Thelia.Core.Template.Loop.Feature.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.FeatureAvailable.html b/documentation/api/classes/Thelia.Core.Template.Loop.FeatureAvailable.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.FeatureValue.html b/documentation/api/classes/Thelia.Core.Template.Loop.FeatureValue.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Feed.html b/documentation/api/classes/Thelia.Core.Template.Loop.Feed.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Folder.html b/documentation/api/classes/Thelia.Core.Template.Loop.Folder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Lang.html b/documentation/api/classes/Thelia.Core.Template.Loop.Lang.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Order.html b/documentation/api/classes/Thelia.Core.Template.Loop.Order.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.OrderStatus.html b/documentation/api/classes/Thelia.Core.Template.Loop.OrderStatus.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Product.html b/documentation/api/classes/Thelia.Core.Template.Loop.Product.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Loop.Title.html b/documentation/api/classes/Thelia.Core.Template.Loop.Title.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.ParserContext.html b/documentation/api/classes/Thelia.Core.Template.ParserContext.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.ParserInterface.html b/documentation/api/classes/Thelia.Core.Template.ParserInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.AbstractSmartyPlugin.html b/documentation/api/classes/Thelia.Core.Template.Smarty.AbstractSmartyPlugin.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Assets.SmartyAssetsManager.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Assets.SmartyAssetsManager.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Assetic.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Assetic.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.DataAccessFunctions.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.DataAccessFunctions.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Form.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Form.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Module.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Module.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Security.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Security.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.TheliaLoop.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.TheliaLoop.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.TheliaSyntax.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.TheliaSyntax.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Translation.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.Translation.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.UrlGenerator.html b/documentation/api/classes/Thelia.Core.Template.Smarty.Plugins.UrlGenerator.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.SmartyParser.html b/documentation/api/classes/Thelia.Core.Template.Smarty.SmartyParser.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Template.Smarty.SmartyPluginDescriptor.html b/documentation/api/classes/Thelia.Core.Template.Smarty.SmartyPluginDescriptor.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Thelia.html b/documentation/api/classes/Thelia.Core.Thelia.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.TheliaContainerBuilder.html b/documentation/api/classes/Thelia.Core.TheliaContainerBuilder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.TheliaHttpKernel.html b/documentation/api/classes/Thelia.Core.TheliaHttpKernel.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Core.Translation.Translator.html b/documentation/api/classes/Thelia.Core.Translation.Translator.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Exception.InvalidCartException.html b/documentation/api/classes/Thelia.Exception.InvalidCartException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Exception.MemberAccessException.html b/documentation/api/classes/Thelia.Exception.MemberAccessException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.AdminLogin.html b/documentation/api/classes/Thelia.Form.AdminLogin.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.BaseForm.html b/documentation/api/classes/Thelia.Form.BaseForm.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.CartAdd.html b/documentation/api/classes/Thelia.Form.CartAdd.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.CategoryCreationForm.html b/documentation/api/classes/Thelia.Form.CategoryCreationForm.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.CategoryDeletionForm.html b/documentation/api/classes/Thelia.Form.CategoryDeletionForm.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.CustomerCreation.html b/documentation/api/classes/Thelia.Form.CustomerCreation.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.CustomerLogin.html b/documentation/api/classes/Thelia.Form.CustomerLogin.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.CustomerModification.html b/documentation/api/classes/Thelia.Form.CustomerModification.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.Exception.FormValidationException.html b/documentation/api/classes/Thelia.Form.Exception.FormValidationException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.Exception.ProductNotFoundException.html b/documentation/api/classes/Thelia.Form.Exception.ProductNotFoundException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Form.Exception.StockNotFoundException.html b/documentation/api/classes/Thelia.Form.Exception.StockNotFoundException.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.AbstractTlogDestination.html b/documentation/api/classes/Thelia.Log.AbstractTlogDestination.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.Destination.TlogDestinationFile.html b/documentation/api/classes/Thelia.Log.Destination.TlogDestinationFile.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.Destination.TlogDestinationHtml.html b/documentation/api/classes/Thelia.Log.Destination.TlogDestinationHtml.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.Destination.TlogDestinationNull.html b/documentation/api/classes/Thelia.Log.Destination.TlogDestinationNull.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.Destination.TlogDestinationText.html b/documentation/api/classes/Thelia.Log.Destination.TlogDestinationText.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.Tlog.html b/documentation/api/classes/Thelia.Log.Tlog.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.TlogDestinationConfig.html b/documentation/api/classes/Thelia.Log.TlogDestinationConfig.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Log.TlogInterface.html b/documentation/api/classes/Thelia.Log.TlogInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Accessory.html b/documentation/api/classes/Thelia.Model.Accessory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AccessoryQuery.html b/documentation/api/classes/Thelia.Model.AccessoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Address.html b/documentation/api/classes/Thelia.Model.Address.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AddressQuery.html b/documentation/api/classes/Thelia.Model.AddressQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Admin.html b/documentation/api/classes/Thelia.Model.Admin.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AdminGroup.html b/documentation/api/classes/Thelia.Model.AdminGroup.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AdminGroupQuery.html b/documentation/api/classes/Thelia.Model.AdminGroupQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AdminLog.html b/documentation/api/classes/Thelia.Model.AdminLog.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AdminLogQuery.html b/documentation/api/classes/Thelia.Model.AdminLogQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AdminQuery.html b/documentation/api/classes/Thelia.Model.AdminQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Area.html b/documentation/api/classes/Thelia.Model.Area.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AreaQuery.html b/documentation/api/classes/Thelia.Model.AreaQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Attribute.html b/documentation/api/classes/Thelia.Model.Attribute.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeAv.html b/documentation/api/classes/Thelia.Model.AttributeAv.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeAvI18n.html b/documentation/api/classes/Thelia.Model.AttributeAvI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeAvI18nQuery.html b/documentation/api/classes/Thelia.Model.AttributeAvI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeAvQuery.html b/documentation/api/classes/Thelia.Model.AttributeAvQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeCategory.html b/documentation/api/classes/Thelia.Model.AttributeCategory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeCategoryQuery.html b/documentation/api/classes/Thelia.Model.AttributeCategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeCombination.html b/documentation/api/classes/Thelia.Model.AttributeCombination.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeCombinationQuery.html b/documentation/api/classes/Thelia.Model.AttributeCombinationQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeI18n.html b/documentation/api/classes/Thelia.Model.AttributeI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeI18nQuery.html b/documentation/api/classes/Thelia.Model.AttributeI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.AttributeQuery.html b/documentation/api/classes/Thelia.Model.AttributeQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Accessory.html b/documentation/api/classes/Thelia.Model.Base.Accessory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AccessoryQuery.html b/documentation/api/classes/Thelia.Model.Base.AccessoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Address.html b/documentation/api/classes/Thelia.Model.Base.Address.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AddressQuery.html b/documentation/api/classes/Thelia.Model.Base.AddressQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Admin.html b/documentation/api/classes/Thelia.Model.Base.Admin.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AdminGroup.html b/documentation/api/classes/Thelia.Model.Base.AdminGroup.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AdminGroupQuery.html b/documentation/api/classes/Thelia.Model.Base.AdminGroupQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AdminLog.html b/documentation/api/classes/Thelia.Model.Base.AdminLog.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AdminLogQuery.html b/documentation/api/classes/Thelia.Model.Base.AdminLogQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AdminQuery.html b/documentation/api/classes/Thelia.Model.Base.AdminQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Area.html b/documentation/api/classes/Thelia.Model.Base.Area.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AreaQuery.html b/documentation/api/classes/Thelia.Model.Base.AreaQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Attribute.html b/documentation/api/classes/Thelia.Model.Base.Attribute.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeAv.html b/documentation/api/classes/Thelia.Model.Base.AttributeAv.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeAvI18n.html b/documentation/api/classes/Thelia.Model.Base.AttributeAvI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeAvI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.AttributeAvI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeAvQuery.html b/documentation/api/classes/Thelia.Model.Base.AttributeAvQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeCategory.html b/documentation/api/classes/Thelia.Model.Base.AttributeCategory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeCategoryQuery.html b/documentation/api/classes/Thelia.Model.Base.AttributeCategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeCombination.html b/documentation/api/classes/Thelia.Model.Base.AttributeCombination.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeCombinationQuery.html b/documentation/api/classes/Thelia.Model.Base.AttributeCombinationQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeI18n.html b/documentation/api/classes/Thelia.Model.Base.AttributeI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.AttributeI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.AttributeQuery.html b/documentation/api/classes/Thelia.Model.Base.AttributeQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Cart.html b/documentation/api/classes/Thelia.Model.Base.Cart.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CartItem.html b/documentation/api/classes/Thelia.Model.Base.CartItem.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CartItemQuery.html b/documentation/api/classes/Thelia.Model.Base.CartItemQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CartQuery.html b/documentation/api/classes/Thelia.Model.Base.CartQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Category.html b/documentation/api/classes/Thelia.Model.Base.Category.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryDocument.html b/documentation/api/classes/Thelia.Model.Base.CategoryDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryDocumentI18n.html b/documentation/api/classes/Thelia.Model.Base.CategoryDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.CategoryDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryDocumentQuery.html b/documentation/api/classes/Thelia.Model.Base.CategoryDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryI18n.html b/documentation/api/classes/Thelia.Model.Base.CategoryI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.CategoryI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryImage.html b/documentation/api/classes/Thelia.Model.Base.CategoryImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryImageI18n.html b/documentation/api/classes/Thelia.Model.Base.CategoryImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryImageI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.CategoryImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryImageQuery.html b/documentation/api/classes/Thelia.Model.Base.CategoryImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryQuery.html b/documentation/api/classes/Thelia.Model.Base.CategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryVersion.html b/documentation/api/classes/Thelia.Model.Base.CategoryVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CategoryVersionQuery.html b/documentation/api/classes/Thelia.Model.Base.CategoryVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Config.html b/documentation/api/classes/Thelia.Model.Base.Config.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ConfigI18n.html b/documentation/api/classes/Thelia.Model.Base.ConfigI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ConfigI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ConfigI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ConfigQuery.html b/documentation/api/classes/Thelia.Model.Base.ConfigQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Content.html b/documentation/api/classes/Thelia.Model.Base.Content.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentAssoc.html b/documentation/api/classes/Thelia.Model.Base.ContentAssoc.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentAssocQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentAssocQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentDocument.html b/documentation/api/classes/Thelia.Model.Base.ContentDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentDocumentI18n.html b/documentation/api/classes/Thelia.Model.Base.ContentDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentDocumentQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentFolder.html b/documentation/api/classes/Thelia.Model.Base.ContentFolder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentFolderQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentFolderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentI18n.html b/documentation/api/classes/Thelia.Model.Base.ContentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentImage.html b/documentation/api/classes/Thelia.Model.Base.ContentImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentImageI18n.html b/documentation/api/classes/Thelia.Model.Base.ContentImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentImageI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentImageQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentVersion.html b/documentation/api/classes/Thelia.Model.Base.ContentVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ContentVersionQuery.html b/documentation/api/classes/Thelia.Model.Base.ContentVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Country.html b/documentation/api/classes/Thelia.Model.Base.Country.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CountryI18n.html b/documentation/api/classes/Thelia.Model.Base.CountryI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CountryI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.CountryI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CountryQuery.html b/documentation/api/classes/Thelia.Model.Base.CountryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Coupon.html b/documentation/api/classes/Thelia.Model.Base.Coupon.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CouponOrder.html b/documentation/api/classes/Thelia.Model.Base.CouponOrder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CouponOrderQuery.html b/documentation/api/classes/Thelia.Model.Base.CouponOrderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CouponQuery.html b/documentation/api/classes/Thelia.Model.Base.CouponQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CouponRule.html b/documentation/api/classes/Thelia.Model.Base.CouponRule.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CouponRuleQuery.html b/documentation/api/classes/Thelia.Model.Base.CouponRuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Currency.html b/documentation/api/classes/Thelia.Model.Base.Currency.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CurrencyI18n.html b/documentation/api/classes/Thelia.Model.Base.CurrencyI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CurrencyI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.CurrencyI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CurrencyQuery.html b/documentation/api/classes/Thelia.Model.Base.CurrencyQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Customer.html b/documentation/api/classes/Thelia.Model.Base.Customer.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CustomerQuery.html b/documentation/api/classes/Thelia.Model.Base.CustomerQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CustomerTitle.html b/documentation/api/classes/Thelia.Model.Base.CustomerTitle.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CustomerTitleI18n.html b/documentation/api/classes/Thelia.Model.Base.CustomerTitleI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CustomerTitleI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.CustomerTitleI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.CustomerTitleQuery.html b/documentation/api/classes/Thelia.Model.Base.CustomerTitleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Delivzone.html b/documentation/api/classes/Thelia.Model.Base.Delivzone.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.DelivzoneQuery.html b/documentation/api/classes/Thelia.Model.Base.DelivzoneQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Document.html b/documentation/api/classes/Thelia.Model.Base.Document.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.DocumentI18n.html b/documentation/api/classes/Thelia.Model.Base.DocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.DocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.DocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.DocumentQuery.html b/documentation/api/classes/Thelia.Model.Base.DocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Feature.html b/documentation/api/classes/Thelia.Model.Base.Feature.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureAv.html b/documentation/api/classes/Thelia.Model.Base.FeatureAv.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureAvI18n.html b/documentation/api/classes/Thelia.Model.Base.FeatureAvI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureAvI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.FeatureAvI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureAvQuery.html b/documentation/api/classes/Thelia.Model.Base.FeatureAvQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureCategory.html b/documentation/api/classes/Thelia.Model.Base.FeatureCategory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureCategoryQuery.html b/documentation/api/classes/Thelia.Model.Base.FeatureCategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureI18n.html b/documentation/api/classes/Thelia.Model.Base.FeatureI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.FeatureI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureProduct.html b/documentation/api/classes/Thelia.Model.Base.FeatureProduct.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureProductQuery.html b/documentation/api/classes/Thelia.Model.Base.FeatureProductQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FeatureQuery.html b/documentation/api/classes/Thelia.Model.Base.FeatureQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Folder.html b/documentation/api/classes/Thelia.Model.Base.Folder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderDocument.html b/documentation/api/classes/Thelia.Model.Base.FolderDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderDocumentI18n.html b/documentation/api/classes/Thelia.Model.Base.FolderDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.FolderDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderDocumentQuery.html b/documentation/api/classes/Thelia.Model.Base.FolderDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderI18n.html b/documentation/api/classes/Thelia.Model.Base.FolderI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.FolderI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderImage.html b/documentation/api/classes/Thelia.Model.Base.FolderImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderImageI18n.html b/documentation/api/classes/Thelia.Model.Base.FolderImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderImageI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.FolderImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderImageQuery.html b/documentation/api/classes/Thelia.Model.Base.FolderImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderQuery.html b/documentation/api/classes/Thelia.Model.Base.FolderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderVersion.html b/documentation/api/classes/Thelia.Model.Base.FolderVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.FolderVersionQuery.html b/documentation/api/classes/Thelia.Model.Base.FolderVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Group.html b/documentation/api/classes/Thelia.Model.Base.Group.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.GroupI18n.html b/documentation/api/classes/Thelia.Model.Base.GroupI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.GroupI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.GroupI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.GroupModule.html b/documentation/api/classes/Thelia.Model.Base.GroupModule.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.GroupModuleQuery.html b/documentation/api/classes/Thelia.Model.Base.GroupModuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.GroupQuery.html b/documentation/api/classes/Thelia.Model.Base.GroupQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.GroupResource.html b/documentation/api/classes/Thelia.Model.Base.GroupResource.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.GroupResourceQuery.html b/documentation/api/classes/Thelia.Model.Base.GroupResourceQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Image.html b/documentation/api/classes/Thelia.Model.Base.Image.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ImageI18n.html b/documentation/api/classes/Thelia.Model.Base.ImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ImageI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ImageQuery.html b/documentation/api/classes/Thelia.Model.Base.ImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Lang.html b/documentation/api/classes/Thelia.Model.Base.Lang.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.LangQuery.html b/documentation/api/classes/Thelia.Model.Base.LangQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Message.html b/documentation/api/classes/Thelia.Model.Base.Message.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.MessageI18n.html b/documentation/api/classes/Thelia.Model.Base.MessageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.MessageI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.MessageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.MessageQuery.html b/documentation/api/classes/Thelia.Model.Base.MessageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.MessageVersion.html b/documentation/api/classes/Thelia.Model.Base.MessageVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.MessageVersionQuery.html b/documentation/api/classes/Thelia.Model.Base.MessageVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Module.html b/documentation/api/classes/Thelia.Model.Base.Module.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ModuleI18n.html b/documentation/api/classes/Thelia.Model.Base.ModuleI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ModuleI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ModuleI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ModuleQuery.html b/documentation/api/classes/Thelia.Model.Base.ModuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Order.html b/documentation/api/classes/Thelia.Model.Base.Order.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderAddress.html b/documentation/api/classes/Thelia.Model.Base.OrderAddress.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderAddressQuery.html b/documentation/api/classes/Thelia.Model.Base.OrderAddressQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderFeature.html b/documentation/api/classes/Thelia.Model.Base.OrderFeature.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderFeatureQuery.html b/documentation/api/classes/Thelia.Model.Base.OrderFeatureQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderProduct.html b/documentation/api/classes/Thelia.Model.Base.OrderProduct.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderProductQuery.html b/documentation/api/classes/Thelia.Model.Base.OrderProductQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderQuery.html b/documentation/api/classes/Thelia.Model.Base.OrderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderStatus.html b/documentation/api/classes/Thelia.Model.Base.OrderStatus.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderStatusI18n.html b/documentation/api/classes/Thelia.Model.Base.OrderStatusI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderStatusI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.OrderStatusI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.OrderStatusQuery.html b/documentation/api/classes/Thelia.Model.Base.OrderStatusQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Product.html b/documentation/api/classes/Thelia.Model.Base.Product.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductCategory.html b/documentation/api/classes/Thelia.Model.Base.ProductCategory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductCategoryQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductCategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductDocument.html b/documentation/api/classes/Thelia.Model.Base.ProductDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductDocumentI18n.html b/documentation/api/classes/Thelia.Model.Base.ProductDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductDocumentQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductI18n.html b/documentation/api/classes/Thelia.Model.Base.ProductI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductPrice.html b/documentation/api/classes/Thelia.Model.Base.ProductPrice.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductPriceQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductPriceQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductSaleElements.html b/documentation/api/classes/Thelia.Model.Base.ProductSaleElements.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductSaleElementsQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductSaleElementsQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductVersion.html b/documentation/api/classes/Thelia.Model.Base.ProductVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProductVersionQuery.html b/documentation/api/classes/Thelia.Model.Base.ProductVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProdutImage.html b/documentation/api/classes/Thelia.Model.Base.ProdutImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProdutImageI18n.html b/documentation/api/classes/Thelia.Model.Base.ProdutImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProdutImageI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ProdutImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ProdutImageQuery.html b/documentation/api/classes/Thelia.Model.Base.ProdutImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Resource.html b/documentation/api/classes/Thelia.Model.Base.Resource.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ResourceI18n.html b/documentation/api/classes/Thelia.Model.Base.ResourceI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ResourceI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.ResourceI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.ResourceQuery.html b/documentation/api/classes/Thelia.Model.Base.ResourceQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Rewriting.html b/documentation/api/classes/Thelia.Model.Base.Rewriting.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.RewritingQuery.html b/documentation/api/classes/Thelia.Model.Base.RewritingQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.Tax.html b/documentation/api/classes/Thelia.Model.Base.Tax.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxI18n.html b/documentation/api/classes/Thelia.Model.Base.TaxI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.TaxI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxQuery.html b/documentation/api/classes/Thelia.Model.Base.TaxQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxRule.html b/documentation/api/classes/Thelia.Model.Base.TaxRule.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxRuleCountry.html b/documentation/api/classes/Thelia.Model.Base.TaxRuleCountry.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxRuleCountryQuery.html b/documentation/api/classes/Thelia.Model.Base.TaxRuleCountryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxRuleI18n.html b/documentation/api/classes/Thelia.Model.Base.TaxRuleI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxRuleI18nQuery.html b/documentation/api/classes/Thelia.Model.Base.TaxRuleI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Base.TaxRuleQuery.html b/documentation/api/classes/Thelia.Model.Base.TaxRuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Cart.html b/documentation/api/classes/Thelia.Model.Cart.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CartItem.html b/documentation/api/classes/Thelia.Model.CartItem.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CartItemQuery.html b/documentation/api/classes/Thelia.Model.CartItemQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CartQuery.html b/documentation/api/classes/Thelia.Model.CartQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Category.html b/documentation/api/classes/Thelia.Model.Category.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryDocument.html b/documentation/api/classes/Thelia.Model.CategoryDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryDocumentI18n.html b/documentation/api/classes/Thelia.Model.CategoryDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.CategoryDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryDocumentQuery.html b/documentation/api/classes/Thelia.Model.CategoryDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryI18n.html b/documentation/api/classes/Thelia.Model.CategoryI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryI18nQuery.html b/documentation/api/classes/Thelia.Model.CategoryI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryImage.html b/documentation/api/classes/Thelia.Model.CategoryImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryImageI18n.html b/documentation/api/classes/Thelia.Model.CategoryImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryImageI18nQuery.html b/documentation/api/classes/Thelia.Model.CategoryImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryImageQuery.html b/documentation/api/classes/Thelia.Model.CategoryImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryQuery.html b/documentation/api/classes/Thelia.Model.CategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryVersion.html b/documentation/api/classes/Thelia.Model.CategoryVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CategoryVersionQuery.html b/documentation/api/classes/Thelia.Model.CategoryVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Config.html b/documentation/api/classes/Thelia.Model.Config.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ConfigI18n.html b/documentation/api/classes/Thelia.Model.ConfigI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ConfigI18nQuery.html b/documentation/api/classes/Thelia.Model.ConfigI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ConfigQuery.html b/documentation/api/classes/Thelia.Model.ConfigQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Content.html b/documentation/api/classes/Thelia.Model.Content.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentAssoc.html b/documentation/api/classes/Thelia.Model.ContentAssoc.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentAssocQuery.html b/documentation/api/classes/Thelia.Model.ContentAssocQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentDocument.html b/documentation/api/classes/Thelia.Model.ContentDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentDocumentI18n.html b/documentation/api/classes/Thelia.Model.ContentDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.ContentDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentDocumentQuery.html b/documentation/api/classes/Thelia.Model.ContentDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentFolder.html b/documentation/api/classes/Thelia.Model.ContentFolder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentFolderQuery.html b/documentation/api/classes/Thelia.Model.ContentFolderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentI18n.html b/documentation/api/classes/Thelia.Model.ContentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentI18nQuery.html b/documentation/api/classes/Thelia.Model.ContentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentImage.html b/documentation/api/classes/Thelia.Model.ContentImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentImageI18n.html b/documentation/api/classes/Thelia.Model.ContentImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentImageI18nQuery.html b/documentation/api/classes/Thelia.Model.ContentImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentImageQuery.html b/documentation/api/classes/Thelia.Model.ContentImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentQuery.html b/documentation/api/classes/Thelia.Model.ContentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentVersion.html b/documentation/api/classes/Thelia.Model.ContentVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ContentVersionQuery.html b/documentation/api/classes/Thelia.Model.ContentVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Country.html b/documentation/api/classes/Thelia.Model.Country.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CountryI18n.html b/documentation/api/classes/Thelia.Model.CountryI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CountryI18nQuery.html b/documentation/api/classes/Thelia.Model.CountryI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CountryQuery.html b/documentation/api/classes/Thelia.Model.CountryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Coupon.html b/documentation/api/classes/Thelia.Model.Coupon.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CouponOrder.html b/documentation/api/classes/Thelia.Model.CouponOrder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CouponOrderQuery.html b/documentation/api/classes/Thelia.Model.CouponOrderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CouponQuery.html b/documentation/api/classes/Thelia.Model.CouponQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CouponRule.html b/documentation/api/classes/Thelia.Model.CouponRule.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CouponRuleQuery.html b/documentation/api/classes/Thelia.Model.CouponRuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Currency.html b/documentation/api/classes/Thelia.Model.Currency.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CurrencyI18n.html b/documentation/api/classes/Thelia.Model.CurrencyI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CurrencyI18nQuery.html b/documentation/api/classes/Thelia.Model.CurrencyI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CurrencyQuery.html b/documentation/api/classes/Thelia.Model.CurrencyQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Customer.html b/documentation/api/classes/Thelia.Model.Customer.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CustomerQuery.html b/documentation/api/classes/Thelia.Model.CustomerQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CustomerTitle.html b/documentation/api/classes/Thelia.Model.CustomerTitle.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CustomerTitleI18n.html b/documentation/api/classes/Thelia.Model.CustomerTitleI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CustomerTitleI18nQuery.html b/documentation/api/classes/Thelia.Model.CustomerTitleI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.CustomerTitleQuery.html b/documentation/api/classes/Thelia.Model.CustomerTitleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Delivzone.html b/documentation/api/classes/Thelia.Model.Delivzone.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.DelivzoneQuery.html b/documentation/api/classes/Thelia.Model.DelivzoneQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Document.html b/documentation/api/classes/Thelia.Model.Document.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.DocumentI18n.html b/documentation/api/classes/Thelia.Model.DocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.DocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.DocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.DocumentQuery.html b/documentation/api/classes/Thelia.Model.DocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Feature.html b/documentation/api/classes/Thelia.Model.Feature.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureAv.html b/documentation/api/classes/Thelia.Model.FeatureAv.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureAvI18n.html b/documentation/api/classes/Thelia.Model.FeatureAvI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureAvI18nQuery.html b/documentation/api/classes/Thelia.Model.FeatureAvI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureAvQuery.html b/documentation/api/classes/Thelia.Model.FeatureAvQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureCategory.html b/documentation/api/classes/Thelia.Model.FeatureCategory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureCategoryQuery.html b/documentation/api/classes/Thelia.Model.FeatureCategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureI18n.html b/documentation/api/classes/Thelia.Model.FeatureI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureI18nQuery.html b/documentation/api/classes/Thelia.Model.FeatureI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureProduct.html b/documentation/api/classes/Thelia.Model.FeatureProduct.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureProductQuery.html b/documentation/api/classes/Thelia.Model.FeatureProductQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FeatureQuery.html b/documentation/api/classes/Thelia.Model.FeatureQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Folder.html b/documentation/api/classes/Thelia.Model.Folder.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderDocument.html b/documentation/api/classes/Thelia.Model.FolderDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderDocumentI18n.html b/documentation/api/classes/Thelia.Model.FolderDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.FolderDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderDocumentQuery.html b/documentation/api/classes/Thelia.Model.FolderDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderI18n.html b/documentation/api/classes/Thelia.Model.FolderI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderI18nQuery.html b/documentation/api/classes/Thelia.Model.FolderI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderImage.html b/documentation/api/classes/Thelia.Model.FolderImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderImageI18n.html b/documentation/api/classes/Thelia.Model.FolderImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderImageI18nQuery.html b/documentation/api/classes/Thelia.Model.FolderImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderImageQuery.html b/documentation/api/classes/Thelia.Model.FolderImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderQuery.html b/documentation/api/classes/Thelia.Model.FolderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderVersion.html b/documentation/api/classes/Thelia.Model.FolderVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.FolderVersionQuery.html b/documentation/api/classes/Thelia.Model.FolderVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Group.html b/documentation/api/classes/Thelia.Model.Group.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.GroupI18n.html b/documentation/api/classes/Thelia.Model.GroupI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.GroupI18nQuery.html b/documentation/api/classes/Thelia.Model.GroupI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.GroupModule.html b/documentation/api/classes/Thelia.Model.GroupModule.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.GroupModuleQuery.html b/documentation/api/classes/Thelia.Model.GroupModuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.GroupQuery.html b/documentation/api/classes/Thelia.Model.GroupQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.GroupResource.html b/documentation/api/classes/Thelia.Model.GroupResource.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.GroupResourceQuery.html b/documentation/api/classes/Thelia.Model.GroupResourceQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Image.html b/documentation/api/classes/Thelia.Model.Image.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ImageI18n.html b/documentation/api/classes/Thelia.Model.ImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ImageI18nQuery.html b/documentation/api/classes/Thelia.Model.ImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ImageQuery.html b/documentation/api/classes/Thelia.Model.ImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Lang.html b/documentation/api/classes/Thelia.Model.Lang.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.LangQuery.html b/documentation/api/classes/Thelia.Model.LangQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AccessoryTableMap.html b/documentation/api/classes/Thelia.Model.Map.AccessoryTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AddressTableMap.html b/documentation/api/classes/Thelia.Model.Map.AddressTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AdminGroupTableMap.html b/documentation/api/classes/Thelia.Model.Map.AdminGroupTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AdminLogTableMap.html b/documentation/api/classes/Thelia.Model.Map.AdminLogTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AdminTableMap.html b/documentation/api/classes/Thelia.Model.Map.AdminTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AreaTableMap.html b/documentation/api/classes/Thelia.Model.Map.AreaTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AttributeAvI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.AttributeAvI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AttributeAvTableMap.html b/documentation/api/classes/Thelia.Model.Map.AttributeAvTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AttributeCategoryTableMap.html b/documentation/api/classes/Thelia.Model.Map.AttributeCategoryTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AttributeCombinationTableMap.html b/documentation/api/classes/Thelia.Model.Map.AttributeCombinationTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AttributeI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.AttributeI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.AttributeTableMap.html b/documentation/api/classes/Thelia.Model.Map.AttributeTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CartItemTableMap.html b/documentation/api/classes/Thelia.Model.Map.CartItemTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CartTableMap.html b/documentation/api/classes/Thelia.Model.Map.CartTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CategoryDocumentI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.CategoryDocumentI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CategoryDocumentTableMap.html b/documentation/api/classes/Thelia.Model.Map.CategoryDocumentTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CategoryI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.CategoryI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CategoryImageI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.CategoryImageI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CategoryImageTableMap.html b/documentation/api/classes/Thelia.Model.Map.CategoryImageTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CategoryTableMap.html b/documentation/api/classes/Thelia.Model.Map.CategoryTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CategoryVersionTableMap.html b/documentation/api/classes/Thelia.Model.Map.CategoryVersionTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ConfigI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ConfigI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ConfigTableMap.html b/documentation/api/classes/Thelia.Model.Map.ConfigTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentAssocTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentAssocTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentDocumentI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentDocumentI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentDocumentTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentDocumentTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentFolderTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentFolderTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentImageI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentImageI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentImageTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentImageTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ContentVersionTableMap.html b/documentation/api/classes/Thelia.Model.Map.ContentVersionTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CountryI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.CountryI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CountryTableMap.html b/documentation/api/classes/Thelia.Model.Map.CountryTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CouponOrderTableMap.html b/documentation/api/classes/Thelia.Model.Map.CouponOrderTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CouponRuleTableMap.html b/documentation/api/classes/Thelia.Model.Map.CouponRuleTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CouponTableMap.html b/documentation/api/classes/Thelia.Model.Map.CouponTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CurrencyI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.CurrencyI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CurrencyTableMap.html b/documentation/api/classes/Thelia.Model.Map.CurrencyTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CustomerTableMap.html b/documentation/api/classes/Thelia.Model.Map.CustomerTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CustomerTitleI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.CustomerTitleI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.CustomerTitleTableMap.html b/documentation/api/classes/Thelia.Model.Map.CustomerTitleTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.DelivzoneTableMap.html b/documentation/api/classes/Thelia.Model.Map.DelivzoneTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.DocumentI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.DocumentI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.DocumentTableMap.html b/documentation/api/classes/Thelia.Model.Map.DocumentTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FeatureAvI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.FeatureAvI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FeatureAvTableMap.html b/documentation/api/classes/Thelia.Model.Map.FeatureAvTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FeatureCategoryTableMap.html b/documentation/api/classes/Thelia.Model.Map.FeatureCategoryTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FeatureI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.FeatureI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FeatureProductTableMap.html b/documentation/api/classes/Thelia.Model.Map.FeatureProductTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FeatureTableMap.html b/documentation/api/classes/Thelia.Model.Map.FeatureTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FolderDocumentI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.FolderDocumentI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FolderDocumentTableMap.html b/documentation/api/classes/Thelia.Model.Map.FolderDocumentTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FolderI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.FolderI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FolderImageI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.FolderImageI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FolderImageTableMap.html b/documentation/api/classes/Thelia.Model.Map.FolderImageTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FolderTableMap.html b/documentation/api/classes/Thelia.Model.Map.FolderTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.FolderVersionTableMap.html b/documentation/api/classes/Thelia.Model.Map.FolderVersionTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.GroupI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.GroupI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.GroupModuleTableMap.html b/documentation/api/classes/Thelia.Model.Map.GroupModuleTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.GroupResourceTableMap.html b/documentation/api/classes/Thelia.Model.Map.GroupResourceTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.GroupTableMap.html b/documentation/api/classes/Thelia.Model.Map.GroupTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ImageI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ImageI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ImageTableMap.html b/documentation/api/classes/Thelia.Model.Map.ImageTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.LangTableMap.html b/documentation/api/classes/Thelia.Model.Map.LangTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.MessageI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.MessageI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.MessageTableMap.html b/documentation/api/classes/Thelia.Model.Map.MessageTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.MessageVersionTableMap.html b/documentation/api/classes/Thelia.Model.Map.MessageVersionTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ModuleI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ModuleI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ModuleTableMap.html b/documentation/api/classes/Thelia.Model.Map.ModuleTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.OrderAddressTableMap.html b/documentation/api/classes/Thelia.Model.Map.OrderAddressTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.OrderFeatureTableMap.html b/documentation/api/classes/Thelia.Model.Map.OrderFeatureTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.OrderProductTableMap.html b/documentation/api/classes/Thelia.Model.Map.OrderProductTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.OrderStatusI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.OrderStatusI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.OrderStatusTableMap.html b/documentation/api/classes/Thelia.Model.Map.OrderStatusTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.OrderTableMap.html b/documentation/api/classes/Thelia.Model.Map.OrderTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductCategoryTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductCategoryTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductDocumentI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductDocumentI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductDocumentTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductDocumentTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductPriceTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductPriceTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductSaleElementsTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductSaleElementsTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProductVersionTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProductVersionTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProdutImageI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProdutImageI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ProdutImageTableMap.html b/documentation/api/classes/Thelia.Model.Map.ProdutImageTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ResourceI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.ResourceI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.ResourceTableMap.html b/documentation/api/classes/Thelia.Model.Map.ResourceTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.RewritingTableMap.html b/documentation/api/classes/Thelia.Model.Map.RewritingTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.TaxI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.TaxI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.TaxRuleCountryTableMap.html b/documentation/api/classes/Thelia.Model.Map.TaxRuleCountryTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.TaxRuleI18nTableMap.html b/documentation/api/classes/Thelia.Model.Map.TaxRuleI18nTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.TaxRuleTableMap.html b/documentation/api/classes/Thelia.Model.Map.TaxRuleTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Map.TaxTableMap.html b/documentation/api/classes/Thelia.Model.Map.TaxTableMap.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Message.html b/documentation/api/classes/Thelia.Model.Message.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.MessageI18n.html b/documentation/api/classes/Thelia.Model.MessageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.MessageI18nQuery.html b/documentation/api/classes/Thelia.Model.MessageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.MessageQuery.html b/documentation/api/classes/Thelia.Model.MessageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.MessageVersion.html b/documentation/api/classes/Thelia.Model.MessageVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.MessageVersionQuery.html b/documentation/api/classes/Thelia.Model.MessageVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Module.html b/documentation/api/classes/Thelia.Model.Module.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ModuleI18n.html b/documentation/api/classes/Thelia.Model.ModuleI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ModuleI18nQuery.html b/documentation/api/classes/Thelia.Model.ModuleI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ModuleQuery.html b/documentation/api/classes/Thelia.Model.ModuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Order.html b/documentation/api/classes/Thelia.Model.Order.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderAddress.html b/documentation/api/classes/Thelia.Model.OrderAddress.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderAddressQuery.html b/documentation/api/classes/Thelia.Model.OrderAddressQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderFeature.html b/documentation/api/classes/Thelia.Model.OrderFeature.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderFeatureQuery.html b/documentation/api/classes/Thelia.Model.OrderFeatureQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderProduct.html b/documentation/api/classes/Thelia.Model.OrderProduct.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderProductQuery.html b/documentation/api/classes/Thelia.Model.OrderProductQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderQuery.html b/documentation/api/classes/Thelia.Model.OrderQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderStatus.html b/documentation/api/classes/Thelia.Model.OrderStatus.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderStatusI18n.html b/documentation/api/classes/Thelia.Model.OrderStatusI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderStatusI18nQuery.html b/documentation/api/classes/Thelia.Model.OrderStatusI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.OrderStatusQuery.html b/documentation/api/classes/Thelia.Model.OrderStatusQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Product.html b/documentation/api/classes/Thelia.Model.Product.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductCategory.html b/documentation/api/classes/Thelia.Model.ProductCategory.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductCategoryQuery.html b/documentation/api/classes/Thelia.Model.ProductCategoryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductDocument.html b/documentation/api/classes/Thelia.Model.ProductDocument.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductDocumentI18n.html b/documentation/api/classes/Thelia.Model.ProductDocumentI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductDocumentI18nQuery.html b/documentation/api/classes/Thelia.Model.ProductDocumentI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductDocumentQuery.html b/documentation/api/classes/Thelia.Model.ProductDocumentQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductI18n.html b/documentation/api/classes/Thelia.Model.ProductI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductI18nQuery.html b/documentation/api/classes/Thelia.Model.ProductI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductPrice.html b/documentation/api/classes/Thelia.Model.ProductPrice.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductPriceQuery.html b/documentation/api/classes/Thelia.Model.ProductPriceQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductQuery.html b/documentation/api/classes/Thelia.Model.ProductQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductSaleElements.html b/documentation/api/classes/Thelia.Model.ProductSaleElements.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductSaleElementsQuery.html b/documentation/api/classes/Thelia.Model.ProductSaleElementsQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductVersion.html b/documentation/api/classes/Thelia.Model.ProductVersion.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProductVersionQuery.html b/documentation/api/classes/Thelia.Model.ProductVersionQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProdutImage.html b/documentation/api/classes/Thelia.Model.ProdutImage.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProdutImageI18n.html b/documentation/api/classes/Thelia.Model.ProdutImageI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProdutImageI18nQuery.html b/documentation/api/classes/Thelia.Model.ProdutImageI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ProdutImageQuery.html b/documentation/api/classes/Thelia.Model.ProdutImageQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Resource.html b/documentation/api/classes/Thelia.Model.Resource.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ResourceI18n.html b/documentation/api/classes/Thelia.Model.ResourceI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ResourceI18nQuery.html b/documentation/api/classes/Thelia.Model.ResourceI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.ResourceQuery.html b/documentation/api/classes/Thelia.Model.ResourceQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Rewriting.html b/documentation/api/classes/Thelia.Model.Rewriting.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.RewritingQuery.html b/documentation/api/classes/Thelia.Model.RewritingQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.Tax.html b/documentation/api/classes/Thelia.Model.Tax.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxI18n.html b/documentation/api/classes/Thelia.Model.TaxI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxI18nQuery.html b/documentation/api/classes/Thelia.Model.TaxI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxQuery.html b/documentation/api/classes/Thelia.Model.TaxQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxRule.html b/documentation/api/classes/Thelia.Model.TaxRule.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxRuleCountry.html b/documentation/api/classes/Thelia.Model.TaxRuleCountry.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxRuleCountryQuery.html b/documentation/api/classes/Thelia.Model.TaxRuleCountryQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxRuleI18n.html b/documentation/api/classes/Thelia.Model.TaxRuleI18n.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxRuleI18nQuery.html b/documentation/api/classes/Thelia.Model.TaxRuleI18nQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Model.TaxRuleQuery.html b/documentation/api/classes/Thelia.Model.TaxRuleQuery.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Module.BaseModule.html b/documentation/api/classes/Thelia.Module.BaseModule.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Routing.Matcher.DefaultMatcher.html b/documentation/api/classes/Thelia.Routing.Matcher.DefaultMatcher.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Routing.NullUrlGenerator.html b/documentation/api/classes/Thelia.Routing.NullUrlGenerator.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Routing.TheliaMatcherCollection.html b/documentation/api/classes/Thelia.Routing.TheliaMatcherCollection.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Action.CartTest.html b/documentation/api/classes/Thelia.Tests.Action.CartTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Command.BaseCommandTest.html b/documentation/api/classes/Thelia.Tests.Command.BaseCommandTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Command.CacheClearTest.html b/documentation/api/classes/Thelia.Tests.Command.CacheClearTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Command.ModuleGenerateCommandTest.html b/documentation/api/classes/Thelia.Tests.Command.ModuleGenerateCommandTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Controller.DefaultControllerTest.html b/documentation/api/classes/Thelia.Tests.Controller.DefaultControllerTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.HttpFoundation.RequestTest.html b/documentation/api/classes/Thelia.Tests.Core.HttpFoundation.RequestTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.HttpFoundation.Session.SessionTest.html b/documentation/api/classes/Thelia.Tests.Core.HttpFoundation.Session.SessionTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Element.BaseLoopTestor.html b/documentation/api/classes/Thelia.Tests.Core.Template.Element.BaseLoopTestor.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.AccessoryTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.AccessoryTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.AddressTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.AddressTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.Argument.ArgumentTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.Argument.ArgumentTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.CategoryTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.CategoryTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.ContentTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.ContentTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.CountryTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.CountryTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.CustomerTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.CustomerTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FeatureAvailableTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FeatureAvailableTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FeatureTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FeatureTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FeatureValueTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FeatureValueTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FolderTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.FolderTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Core.Template.Loop.TitleTest.html b/documentation/api/classes/Thelia.Tests.Core.Template.Loop.TitleTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Form.CartAddTest.html b/documentation/api/classes/Thelia.Tests.Form.CartAddTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Log.TlogTest.html b/documentation/api/classes/Thelia.Tests.Log.TlogTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.AlphaNumStringListTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.AlphaNumStringListTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.AlphaNumStringTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.AlphaNumStringTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.AnyTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.AnyTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.BooleanTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.BooleanTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.EnumListTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.EnumListTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.EnumTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.EnumTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.FloatTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.FloatTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.IntListTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.IntListTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.IntToCombinedIntsListTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.IntToCombinedIntsListTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.IntToCombinedStringsListTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.IntToCombinedStringsListTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.IntTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.IntTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.JsonTypeTest.html b/documentation/api/classes/Thelia.Tests.Type.JsonTypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tests.Type.TypeTest.html b/documentation/api/classes/Thelia.Tests.Type.TypeTest.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tools.DIGenerator.html b/documentation/api/classes/Thelia.Tools.DIGenerator.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tools.Redirect.html b/documentation/api/classes/Thelia.Tools.Redirect.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Tools.URL.html b/documentation/api/classes/Thelia.Tools.URL.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.AlphaNumStringListType.html b/documentation/api/classes/Thelia.Type.AlphaNumStringListType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.AlphaNumStringType.html b/documentation/api/classes/Thelia.Type.AlphaNumStringType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.AnyType.html b/documentation/api/classes/Thelia.Type.AnyType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.BooleanOrBothType.html b/documentation/api/classes/Thelia.Type.BooleanOrBothType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.BooleanType.html b/documentation/api/classes/Thelia.Type.BooleanType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.EnumListType.html b/documentation/api/classes/Thelia.Type.EnumListType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.EnumType.html b/documentation/api/classes/Thelia.Type.EnumType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.FloatType.html b/documentation/api/classes/Thelia.Type.FloatType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.IntListType.html b/documentation/api/classes/Thelia.Type.IntListType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.IntToCombinedIntsListType.html b/documentation/api/classes/Thelia.Type.IntToCombinedIntsListType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.IntToCombinedStringsListType.html b/documentation/api/classes/Thelia.Type.IntToCombinedStringsListType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.IntType.html b/documentation/api/classes/Thelia.Type.IntType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.JsonType.html b/documentation/api/classes/Thelia.Type.JsonType.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.TypeCollection.html b/documentation/api/classes/Thelia.Type.TypeCollection.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/Thelia.Type.TypeInterface.html b/documentation/api/classes/Thelia.Type.TypeInterface.html old mode 100644 new mode 100755 diff --git a/documentation/api/classes/TpexConfig.html b/documentation/api/classes/TpexConfig.html old mode 100644 new mode 100755 diff --git a/documentation/api/css/jquery.iviewer.css b/documentation/api/css/jquery.iviewer.css old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/Read Me.txt b/documentation/api/css/phpdocumentor-clean-icons/Read Me.txt old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.dev.svg b/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.dev.svg old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.eot b/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.eot old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.svg b/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.svg old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.ttf b/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.ttf old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.woff b/documentation/api/css/phpdocumentor-clean-icons/fonts/phpdocumentor-clean-icons.woff old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/lte-ie7.js b/documentation/api/css/phpdocumentor-clean-icons/lte-ie7.js old mode 100644 new mode 100755 diff --git a/documentation/api/css/phpdocumentor-clean-icons/style.css b/documentation/api/css/phpdocumentor-clean-icons/style.css old mode 100644 new mode 100755 diff --git a/documentation/api/css/prism.css b/documentation/api/css/prism.css old mode 100644 new mode 100755 diff --git a/documentation/api/css/template.css b/documentation/api/css/template.css old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.BaseAction.php.html b/documentation/api/files/Action.BaseAction.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.Cart.php.html b/documentation/api/files/Action.Cart.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.Category.php.html b/documentation/api/files/Action.Category.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.Customer.php.html b/documentation/api/files/Action.Customer.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.Exception.ActionException.php.html b/documentation/api/files/Action.Exception.ActionException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.Exception.FormValidationException.php.html b/documentation/api/files/Action.Exception.FormValidationException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.Exception.ProductNotFoundException.php.html b/documentation/api/files/Action.Exception.ProductNotFoundException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action.Exception.StockNotFoundException.php.html b/documentation/api/files/Action.Exception.StockNotFoundException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/BaseAction.php.txt b/documentation/api/files/Action/BaseAction.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/Cart.php.txt b/documentation/api/files/Action/Cart.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/Category.php.txt b/documentation/api/files/Action/Category.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/Customer.php.txt b/documentation/api/files/Action/Customer.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/Exception/ActionException.php.txt b/documentation/api/files/Action/Exception/ActionException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/Exception/FormValidationException.php.txt b/documentation/api/files/Action/Exception/FormValidationException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/Exception/ProductNotFoundException.php.txt b/documentation/api/files/Action/Exception/ProductNotFoundException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Action/Exception/StockNotFoundException.php.txt b/documentation/api/files/Action/Exception/StockNotFoundException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin.Controller.AdminController.php.html b/documentation/api/files/Admin.Controller.AdminController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin.Controller.BaseAdminController.php.html b/documentation/api/files/Admin.Controller.BaseAdminController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin.Controller.CategoryController.php.html b/documentation/api/files/Admin.Controller.CategoryController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin.Controller.SessionController.php.html b/documentation/api/files/Admin.Controller.SessionController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin/Controller/AdminController.php.txt b/documentation/api/files/Admin/Controller/AdminController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin/Controller/BaseAdminController.php.txt b/documentation/api/files/Admin/Controller/BaseAdminController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin/Controller/CategoryController.php.txt b/documentation/api/files/Admin/Controller/CategoryController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Admin/Controller/SessionController.php.txt b/documentation/api/files/Admin/Controller/SessionController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Cart.CartTrait.php.html b/documentation/api/files/Cart.CartTrait.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Cart/CartTrait.php.txt b/documentation/api/files/Cart/CartTrait.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.BaseModuleGenerate.php.html b/documentation/api/files/Command.BaseModuleGenerate.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.CacheClear.php.html b/documentation/api/files/Command.CacheClear.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.ContainerAwareCommand.php.html b/documentation/api/files/Command.ContainerAwareCommand.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.Install.php.html b/documentation/api/files/Command.Install.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.ModuleGenerateCommand.php.html b/documentation/api/files/Command.ModuleGenerateCommand.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.ModuleGenerateModelCommand.php.html b/documentation/api/files/Command.ModuleGenerateModelCommand.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.ModuleGenerateSqlCommand.php.html b/documentation/api/files/Command.ModuleGenerateSqlCommand.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.Output.TheliaConsoleOutput.php.html b/documentation/api/files/Command.Output.TheliaConsoleOutput.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command.Skeleton.Module.Class.php.html b/documentation/api/files/Command.Skeleton.Module.Class.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/BaseModuleGenerate.php.txt b/documentation/api/files/Command/BaseModuleGenerate.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/CacheClear.php.txt b/documentation/api/files/Command/CacheClear.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/ContainerAwareCommand.php.txt b/documentation/api/files/Command/ContainerAwareCommand.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/Install.php.txt b/documentation/api/files/Command/Install.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/ModuleGenerateCommand.php.txt b/documentation/api/files/Command/ModuleGenerateCommand.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/ModuleGenerateModelCommand.php.txt b/documentation/api/files/Command/ModuleGenerateModelCommand.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/ModuleGenerateSqlCommand.php.txt b/documentation/api/files/Command/ModuleGenerateSqlCommand.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/Output/TheliaConsoleOutput.php.txt b/documentation/api/files/Command/Output/TheliaConsoleOutput.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Command/Skeleton/Module/Class.php.txt b/documentation/api/files/Command/Skeleton/Module/Class.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Config.DatabaseConfiguration.php.html b/documentation/api/files/Config.DatabaseConfiguration.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Config.DefinePropel.php.html b/documentation/api/files/Config.DefinePropel.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Config/DatabaseConfiguration.php.txt b/documentation/api/files/Config/DatabaseConfiguration.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Config/DefinePropel.php.txt b/documentation/api/files/Config/DefinePropel.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Admin.AdminController.php.html b/documentation/api/files/Controller.Admin.AdminController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Admin.BaseAdminController.php.html b/documentation/api/files/Controller.Admin.BaseAdminController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Admin.CategoryController.php.html b/documentation/api/files/Controller.Admin.CategoryController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Admin.SessionController.php.html b/documentation/api/files/Controller.Admin.SessionController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.BaseController.php.html b/documentation/api/files/Controller.BaseController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.DefaultController.php.html b/documentation/api/files/Controller.DefaultController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Front.BaseFrontController.php.html b/documentation/api/files/Controller.Front.BaseFrontController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Front.CartController.php.html b/documentation/api/files/Controller.Front.CartController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Front.CustomerController.php.html b/documentation/api/files/Controller.Front.CustomerController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.Front.DefaultController.php.html b/documentation/api/files/Controller.Front.DefaultController.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller.NullControllerInterface.php.html b/documentation/api/files/Controller.NullControllerInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Admin/AdminController.php.txt b/documentation/api/files/Controller/Admin/AdminController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Admin/BaseAdminController.php.txt b/documentation/api/files/Controller/Admin/BaseAdminController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Admin/CategoryController.php.txt b/documentation/api/files/Controller/Admin/CategoryController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Admin/SessionController.php.txt b/documentation/api/files/Controller/Admin/SessionController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/BaseController.php.txt b/documentation/api/files/Controller/BaseController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/DefaultController.php.txt b/documentation/api/files/Controller/DefaultController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Front/BaseFrontController.php.txt b/documentation/api/files/Controller/Front/BaseFrontController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Front/CartController.php.txt b/documentation/api/files/Controller/Front/CartController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Front/CustomerController.php.txt b/documentation/api/files/Controller/Front/CustomerController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/Front/DefaultController.php.txt b/documentation/api/files/Controller/Front/DefaultController.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Controller/NullControllerInterface.php.txt b/documentation/api/files/Controller/NullControllerInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Application.php.html b/documentation/api/files/Core.Application.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Bundle.TheliaBundle.php.html b/documentation/api/files/Core.Bundle.TheliaBundle.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Context.php.html b/documentation/api/files/Core.Context.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Controller.ControllerResolver.php.html b/documentation/api/files/Core.Controller.ControllerResolver.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.DependencyInjection.Compiler.RegisterListenersPass.php.html b/documentation/api/files/Core.DependencyInjection.Compiler.RegisterListenersPass.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.DependencyInjection.Compiler.RegisterParserPluginPass.php.html b/documentation/api/files/Core.DependencyInjection.Compiler.RegisterParserPluginPass.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.DependencyInjection.Compiler.RegisterRouterPass.php.html b/documentation/api/files/Core.DependencyInjection.Compiler.RegisterRouterPass.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.DependencyInjection.Loader.XmlFileLoader.php.html b/documentation/api/files/Core.DependencyInjection.Loader.XmlFileLoader.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.ActionEvent.php.html b/documentation/api/files/Core.Event.ActionEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.CartEvent.php.html b/documentation/api/files/Core.Event.CartEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.CartItemEvent.php.html b/documentation/api/files/Core.Event.CartItemEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.CategoryEvent.php.html b/documentation/api/files/Core.Event.CategoryEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.CustomRefEvent.php.html b/documentation/api/files/Core.Event.CustomRefEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.CustomerEvent.php.html b/documentation/api/files/Core.Event.CustomerEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.DefaultActionEvent.php.html b/documentation/api/files/Core.Event.DefaultActionEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.Internal.CartEvent.php.html b/documentation/api/files/Core.Event.Internal.CartEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.Internal.CustomerEvent.php.html b/documentation/api/files/Core.Event.Internal.CustomerEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.Internal.InternalEvent.php.html b/documentation/api/files/Core.Event.Internal.InternalEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.InternalEvent.php.html b/documentation/api/files/Core.Event.InternalEvent.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Event.TheliaEvents.php.html b/documentation/api/files/Core.Event.TheliaEvents.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.EventListener.ControllerListener.php.html b/documentation/api/files/Core.EventListener.ControllerListener.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.EventListener.ViewListener.php.html b/documentation/api/files/Core.EventListener.ViewListener.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Factory.ActionEventFactory.php.html b/documentation/api/files/Core.Factory.ActionEventFactory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.HttpFoundation.Request.php.html b/documentation/api/files/Core.HttpFoundation.Request.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.HttpFoundation.Session.Session.php.html b/documentation/api/files/Core.HttpFoundation.Session.Session.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Authentication.AdminUsernamePasswordFormAuthenticator.php.html b/documentation/api/files/Core.Security.Authentication.AdminUsernamePasswordFormAuthenticator.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Authentication.AuthenticatorInterface.php.html b/documentation/api/files/Core.Security.Authentication.AuthenticatorInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Authentication.CustomerUsernamePasswordFormAuthenticator.php.html b/documentation/api/files/Core.Security.Authentication.CustomerUsernamePasswordFormAuthenticator.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Authentication.UsernamePasswordFormAuthenticator.php.html b/documentation/api/files/Core.Security.Authentication.UsernamePasswordFormAuthenticator.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Exception.AuthenticationException.php.html b/documentation/api/files/Core.Security.Exception.AuthenticationException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Exception.AuthorizationException.php.html b/documentation/api/files/Core.Security.Exception.AuthorizationException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Exception.UsernameNotFoundException.php.html b/documentation/api/files/Core.Security.Exception.UsernameNotFoundException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Exception.WrongPasswordException.php.html b/documentation/api/files/Core.Security.Exception.WrongPasswordException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Role.Role.php.html b/documentation/api/files/Core.Security.Role.Role.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.Role.RoleInterface.php.html b/documentation/api/files/Core.Security.Role.RoleInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.SecurityContext.php.html b/documentation/api/files/Core.Security.SecurityContext.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.User.UserInterface.php.html b/documentation/api/files/Core.Security.User.UserInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.UserProvider.AdminUserProvider.php.html b/documentation/api/files/Core.Security.UserProvider.AdminUserProvider.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.UserProvider.CustomerUserProvider.php.html b/documentation/api/files/Core.Security.UserProvider.CustomerUserProvider.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Security.UserProvider.UserProviderInterface.php.html b/documentation/api/files/Core.Security.UserProvider.UserProviderInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Assets.AsseticHelper.php.html b/documentation/api/files/Core.Template.Assets.AsseticHelper.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Element.BaseLoop.php.html b/documentation/api/files/Core.Template.Element.BaseLoop.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Element.Exception.ElementNotFoundException.php.html b/documentation/api/files/Core.Template.Element.Exception.ElementNotFoundException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Element.Exception.InvalidElementException.php.html b/documentation/api/files/Core.Template.Element.Exception.InvalidElementException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Element.LoopResult.php.html b/documentation/api/files/Core.Template.Element.LoopResult.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Element.LoopResultRow.php.html b/documentation/api/files/Core.Template.Element.LoopResultRow.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Exception.ResourceNotFoundException.php.html b/documentation/api/files/Core.Template.Exception.ResourceNotFoundException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Accessory.php.html b/documentation/api/files/Core.Template.Loop.Accessory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Address.php.html b/documentation/api/files/Core.Template.Loop.Address.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Argument.Argument.php.html b/documentation/api/files/Core.Template.Loop.Argument.Argument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Argument.ArgumentCollection.php.html b/documentation/api/files/Core.Template.Loop.Argument.ArgumentCollection.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Auth.php.html b/documentation/api/files/Core.Template.Loop.Auth.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Cart.php.html b/documentation/api/files/Core.Template.Loop.Cart.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Category.php.html b/documentation/api/files/Core.Template.Loop.Category.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.CategoryPath.php.html b/documentation/api/files/Core.Template.Loop.CategoryPath.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.CategoryTree.php.html b/documentation/api/files/Core.Template.Loop.CategoryTree.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Content.php.html b/documentation/api/files/Core.Template.Loop.Content.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Country.php.html b/documentation/api/files/Core.Template.Loop.Country.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Customer.php.html b/documentation/api/files/Core.Template.Loop.Customer.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Feature.php.html b/documentation/api/files/Core.Template.Loop.Feature.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.FeatureAvailable.php.html b/documentation/api/files/Core.Template.Loop.FeatureAvailable.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.FeatureValue.php.html b/documentation/api/files/Core.Template.Loop.FeatureValue.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Feed.php.html b/documentation/api/files/Core.Template.Loop.Feed.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Folder.php.html b/documentation/api/files/Core.Template.Loop.Folder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Lang.php.html b/documentation/api/files/Core.Template.Loop.Lang.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Order.php.html b/documentation/api/files/Core.Template.Loop.Order.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.OrderStatus.php.html b/documentation/api/files/Core.Template.Loop.OrderStatus.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Product.php.html b/documentation/api/files/Core.Template.Loop.Product.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Loop.Title.php.html b/documentation/api/files/Core.Template.Loop.Title.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.ParserContext.php.html b/documentation/api/files/Core.Template.ParserContext.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.ParserInterface.php.html b/documentation/api/files/Core.Template.ParserInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.AbstractSmartyPlugin.php.html b/documentation/api/files/Core.Template.Smarty.AbstractSmartyPlugin.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Assets.SmartyAssetsManager.php.html b/documentation/api/files/Core.Template.Smarty.Assets.SmartyAssetsManager.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.Assetic.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.Assetic.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.DataAccessFunctions.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.DataAccessFunctions.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.Form.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.Form.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.Module.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.Module.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.Security.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.Security.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.TheliaLoop.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.TheliaLoop.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.TheliaSyntax.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.TheliaSyntax.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.Translation.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.Translation.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.Plugins.UrlGenerator.php.html b/documentation/api/files/Core.Template.Smarty.Plugins.UrlGenerator.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.SmartyParser.php.html b/documentation/api/files/Core.Template.Smarty.SmartyParser.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Template.Smarty.SmartyPluginDescriptor.php.html b/documentation/api/files/Core.Template.Smarty.SmartyPluginDescriptor.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Thelia.php.html b/documentation/api/files/Core.Thelia.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.TheliaContainerBuilder.php.html b/documentation/api/files/Core.TheliaContainerBuilder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.TheliaHttpKernel.php.html b/documentation/api/files/Core.TheliaHttpKernel.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core.Translation.Translator.php.html b/documentation/api/files/Core.Translation.Translator.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Application.php.txt b/documentation/api/files/Core/Application.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Bundle/TheliaBundle.php.txt b/documentation/api/files/Core/Bundle/TheliaBundle.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Context.php.txt b/documentation/api/files/Core/Context.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Controller/ControllerResolver.php.txt b/documentation/api/files/Core/Controller/ControllerResolver.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/DependencyInjection/Compiler/RegisterListenersPass.php.txt b/documentation/api/files/Core/DependencyInjection/Compiler/RegisterListenersPass.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/DependencyInjection/Compiler/RegisterParserPluginPass.php.txt b/documentation/api/files/Core/DependencyInjection/Compiler/RegisterParserPluginPass.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/DependencyInjection/Compiler/RegisterRouterPass.php.txt b/documentation/api/files/Core/DependencyInjection/Compiler/RegisterRouterPass.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/DependencyInjection/Loader/XmlFileLoader.php.txt b/documentation/api/files/Core/DependencyInjection/Loader/XmlFileLoader.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/ActionEvent.php.txt b/documentation/api/files/Core/Event/ActionEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/CartEvent.php.txt b/documentation/api/files/Core/Event/CartEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/CartItemEvent.php.txt b/documentation/api/files/Core/Event/CartItemEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/CategoryEvent.php.txt b/documentation/api/files/Core/Event/CategoryEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/CustomRefEvent.php.txt b/documentation/api/files/Core/Event/CustomRefEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/CustomerEvent.php.txt b/documentation/api/files/Core/Event/CustomerEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/DefaultActionEvent.php.txt b/documentation/api/files/Core/Event/DefaultActionEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/Internal/CartEvent.php.txt b/documentation/api/files/Core/Event/Internal/CartEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/Internal/CustomerEvent.php.txt b/documentation/api/files/Core/Event/Internal/CustomerEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/Internal/InternalEvent.php.txt b/documentation/api/files/Core/Event/Internal/InternalEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/InternalEvent.php.txt b/documentation/api/files/Core/Event/InternalEvent.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Event/TheliaEvents.php.txt b/documentation/api/files/Core/Event/TheliaEvents.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/EventListener/ControllerListener.php.txt b/documentation/api/files/Core/EventListener/ControllerListener.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/EventListener/ViewListener.php.txt b/documentation/api/files/Core/EventListener/ViewListener.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Factory/ActionEventFactory.php.txt b/documentation/api/files/Core/Factory/ActionEventFactory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/HttpFoundation/Request.php.txt b/documentation/api/files/Core/HttpFoundation/Request.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/HttpFoundation/Session/Session.php.txt b/documentation/api/files/Core/HttpFoundation/Session/Session.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Authentication/AdminUsernamePasswordFormAuthenticator.php.txt b/documentation/api/files/Core/Security/Authentication/AdminUsernamePasswordFormAuthenticator.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Authentication/AuthenticatorInterface.php.txt b/documentation/api/files/Core/Security/Authentication/AuthenticatorInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Authentication/CustomerUsernamePasswordFormAuthenticator.php.txt b/documentation/api/files/Core/Security/Authentication/CustomerUsernamePasswordFormAuthenticator.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Authentication/UsernamePasswordFormAuthenticator.php.txt b/documentation/api/files/Core/Security/Authentication/UsernamePasswordFormAuthenticator.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Exception/AuthenticationException.php.txt b/documentation/api/files/Core/Security/Exception/AuthenticationException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Exception/AuthorizationException.php.txt b/documentation/api/files/Core/Security/Exception/AuthorizationException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Exception/UsernameNotFoundException.php.txt b/documentation/api/files/Core/Security/Exception/UsernameNotFoundException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Exception/WrongPasswordException.php.txt b/documentation/api/files/Core/Security/Exception/WrongPasswordException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Role/Role.php.txt b/documentation/api/files/Core/Security/Role/Role.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/Role/RoleInterface.php.txt b/documentation/api/files/Core/Security/Role/RoleInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/SecurityContext.php.txt b/documentation/api/files/Core/Security/SecurityContext.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/User/UserInterface.php.txt b/documentation/api/files/Core/Security/User/UserInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/UserProvider/AdminUserProvider.php.txt b/documentation/api/files/Core/Security/UserProvider/AdminUserProvider.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/UserProvider/CustomerUserProvider.php.txt b/documentation/api/files/Core/Security/UserProvider/CustomerUserProvider.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Security/UserProvider/UserProviderInterface.php.txt b/documentation/api/files/Core/Security/UserProvider/UserProviderInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Assets/AsseticHelper.php.txt b/documentation/api/files/Core/Template/Assets/AsseticHelper.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Element/BaseLoop.php.txt b/documentation/api/files/Core/Template/Element/BaseLoop.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Element/Exception/ElementNotFoundException.php.txt b/documentation/api/files/Core/Template/Element/Exception/ElementNotFoundException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Element/Exception/InvalidElementException.php.txt b/documentation/api/files/Core/Template/Element/Exception/InvalidElementException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Element/LoopResult.php.txt b/documentation/api/files/Core/Template/Element/LoopResult.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Element/LoopResultRow.php.txt b/documentation/api/files/Core/Template/Element/LoopResultRow.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Exception/ResourceNotFoundException.php.txt b/documentation/api/files/Core/Template/Exception/ResourceNotFoundException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Accessory.php.txt b/documentation/api/files/Core/Template/Loop/Accessory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Address.php.txt b/documentation/api/files/Core/Template/Loop/Address.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Argument/Argument.php.txt b/documentation/api/files/Core/Template/Loop/Argument/Argument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Argument/ArgumentCollection.php.txt b/documentation/api/files/Core/Template/Loop/Argument/ArgumentCollection.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Auth.php.txt b/documentation/api/files/Core/Template/Loop/Auth.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Cart.php.txt b/documentation/api/files/Core/Template/Loop/Cart.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Category.php.txt b/documentation/api/files/Core/Template/Loop/Category.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/CategoryPath.php.txt b/documentation/api/files/Core/Template/Loop/CategoryPath.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/CategoryTree.php.txt b/documentation/api/files/Core/Template/Loop/CategoryTree.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Content.php.txt b/documentation/api/files/Core/Template/Loop/Content.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Country.php.txt b/documentation/api/files/Core/Template/Loop/Country.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Customer.php.txt b/documentation/api/files/Core/Template/Loop/Customer.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Feature.php.txt b/documentation/api/files/Core/Template/Loop/Feature.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/FeatureAvailable.php.txt b/documentation/api/files/Core/Template/Loop/FeatureAvailable.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/FeatureValue.php.txt b/documentation/api/files/Core/Template/Loop/FeatureValue.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Feed.php.txt b/documentation/api/files/Core/Template/Loop/Feed.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Folder.php.txt b/documentation/api/files/Core/Template/Loop/Folder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Lang.php.txt b/documentation/api/files/Core/Template/Loop/Lang.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Order.php.txt b/documentation/api/files/Core/Template/Loop/Order.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/OrderStatus.php.txt b/documentation/api/files/Core/Template/Loop/OrderStatus.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Product.php.txt b/documentation/api/files/Core/Template/Loop/Product.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Loop/Title.php.txt b/documentation/api/files/Core/Template/Loop/Title.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/ParserContext.php.txt b/documentation/api/files/Core/Template/ParserContext.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/ParserInterface.php.txt b/documentation/api/files/Core/Template/ParserInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/AbstractSmartyPlugin.php.txt b/documentation/api/files/Core/Template/Smarty/AbstractSmartyPlugin.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Assets/SmartyAssetsManager.php.txt b/documentation/api/files/Core/Template/Smarty/Assets/SmartyAssetsManager.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/Assetic.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/Assetic.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/DataAccessFunctions.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/DataAccessFunctions.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/Form.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/Form.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/Module.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/Module.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/Security.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/Security.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/TheliaLoop.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/TheliaLoop.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/TheliaSyntax.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/TheliaSyntax.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/Translation.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/Translation.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/Plugins/UrlGenerator.php.txt b/documentation/api/files/Core/Template/Smarty/Plugins/UrlGenerator.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/SmartyParser.php.txt b/documentation/api/files/Core/Template/Smarty/SmartyParser.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Template/Smarty/SmartyPluginDescriptor.php.txt b/documentation/api/files/Core/Template/Smarty/SmartyPluginDescriptor.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Thelia.php.txt b/documentation/api/files/Core/Thelia.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/TheliaContainerBuilder.php.txt b/documentation/api/files/Core/TheliaContainerBuilder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/TheliaHttpKernel.php.txt b/documentation/api/files/Core/TheliaHttpKernel.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Core/Translation/Translator.php.txt b/documentation/api/files/Core/Translation/Translator.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Exception.InvalidCartException.php.html b/documentation/api/files/Exception.InvalidCartException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Exception.MemberAccessException.php.html b/documentation/api/files/Exception.MemberAccessException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Exception/InvalidCartException.php.txt b/documentation/api/files/Exception/InvalidCartException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Exception/MemberAccessException.php.txt b/documentation/api/files/Exception/MemberAccessException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.AdminLogin.php.html b/documentation/api/files/Form.AdminLogin.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.BaseForm.php.html b/documentation/api/files/Form.BaseForm.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.CartAdd.php.html b/documentation/api/files/Form.CartAdd.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.CategoryCreationForm.php.html b/documentation/api/files/Form.CategoryCreationForm.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.CategoryDeletionForm.php.html b/documentation/api/files/Form.CategoryDeletionForm.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.CustomerCreation.php.html b/documentation/api/files/Form.CustomerCreation.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.CustomerLogin.php.html b/documentation/api/files/Form.CustomerLogin.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.CustomerModification.php.html b/documentation/api/files/Form.CustomerModification.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.Exception.FormValidationException.php.html b/documentation/api/files/Form.Exception.FormValidationException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.Exception.ProductNotFoundException.php.html b/documentation/api/files/Form.Exception.ProductNotFoundException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form.Exception.StockNotFoundException.php.html b/documentation/api/files/Form.Exception.StockNotFoundException.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/AdminLogin.php.txt b/documentation/api/files/Form/AdminLogin.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/BaseForm.php.txt b/documentation/api/files/Form/BaseForm.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/CartAdd.php.txt b/documentation/api/files/Form/CartAdd.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/CategoryCreationForm.php.txt b/documentation/api/files/Form/CategoryCreationForm.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/CategoryDeletionForm.php.txt b/documentation/api/files/Form/CategoryDeletionForm.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/CustomerCreation.php.txt b/documentation/api/files/Form/CustomerCreation.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/CustomerLogin.php.txt b/documentation/api/files/Form/CustomerLogin.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/CustomerModification.php.txt b/documentation/api/files/Form/CustomerModification.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/Exception/FormValidationException.php.txt b/documentation/api/files/Form/Exception/FormValidationException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/Exception/ProductNotFoundException.php.txt b/documentation/api/files/Form/Exception/ProductNotFoundException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Form/Exception/StockNotFoundException.php.txt b/documentation/api/files/Form/Exception/StockNotFoundException.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.AbstractTlogDestination.php.html b/documentation/api/files/Log.AbstractTlogDestination.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.Destination.TlogDestinationFile.php.html b/documentation/api/files/Log.Destination.TlogDestinationFile.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.Destination.TlogDestinationHtml.php.html b/documentation/api/files/Log.Destination.TlogDestinationHtml.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.Destination.TlogDestinationNull.php.html b/documentation/api/files/Log.Destination.TlogDestinationNull.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.Destination.TlogDestinationText.php.html b/documentation/api/files/Log.Destination.TlogDestinationText.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.Tlog.php.html b/documentation/api/files/Log.Tlog.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.TlogDestinationConfig.php.html b/documentation/api/files/Log.TlogDestinationConfig.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log.TlogInterface.php.html b/documentation/api/files/Log.TlogInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/AbstractTlogDestination.php.txt b/documentation/api/files/Log/AbstractTlogDestination.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/Destination/TlogDestinationFile.php.txt b/documentation/api/files/Log/Destination/TlogDestinationFile.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/Destination/TlogDestinationHtml.php.txt b/documentation/api/files/Log/Destination/TlogDestinationHtml.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/Destination/TlogDestinationNull.php.txt b/documentation/api/files/Log/Destination/TlogDestinationNull.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/Destination/TlogDestinationText.php.txt b/documentation/api/files/Log/Destination/TlogDestinationText.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/Tlog.php.txt b/documentation/api/files/Log/Tlog.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/TlogDestinationConfig.php.txt b/documentation/api/files/Log/TlogDestinationConfig.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Log/TlogInterface.php.txt b/documentation/api/files/Log/TlogInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Accessory.php.html b/documentation/api/files/Model.Accessory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AccessoryQuery.php.html b/documentation/api/files/Model.AccessoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Address.php.html b/documentation/api/files/Model.Address.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AddressQuery.php.html b/documentation/api/files/Model.AddressQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Admin.php.html b/documentation/api/files/Model.Admin.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AdminGroup.php.html b/documentation/api/files/Model.AdminGroup.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AdminGroupQuery.php.html b/documentation/api/files/Model.AdminGroupQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AdminLog.php.html b/documentation/api/files/Model.AdminLog.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AdminLogQuery.php.html b/documentation/api/files/Model.AdminLogQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AdminQuery.php.html b/documentation/api/files/Model.AdminQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Area.php.html b/documentation/api/files/Model.Area.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AreaQuery.php.html b/documentation/api/files/Model.AreaQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Attribute.php.html b/documentation/api/files/Model.Attribute.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeAv.php.html b/documentation/api/files/Model.AttributeAv.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeAvI18n.php.html b/documentation/api/files/Model.AttributeAvI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeAvI18nQuery.php.html b/documentation/api/files/Model.AttributeAvI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeAvQuery.php.html b/documentation/api/files/Model.AttributeAvQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeCategory.php.html b/documentation/api/files/Model.AttributeCategory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeCategoryQuery.php.html b/documentation/api/files/Model.AttributeCategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeCombination.php.html b/documentation/api/files/Model.AttributeCombination.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeCombinationQuery.php.html b/documentation/api/files/Model.AttributeCombinationQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeI18n.php.html b/documentation/api/files/Model.AttributeI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeI18nQuery.php.html b/documentation/api/files/Model.AttributeI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.AttributeQuery.php.html b/documentation/api/files/Model.AttributeQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Accessory.php.html b/documentation/api/files/Model.Base.Accessory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AccessoryQuery.php.html b/documentation/api/files/Model.Base.AccessoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Address.php.html b/documentation/api/files/Model.Base.Address.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AddressQuery.php.html b/documentation/api/files/Model.Base.AddressQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Admin.php.html b/documentation/api/files/Model.Base.Admin.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AdminGroup.php.html b/documentation/api/files/Model.Base.AdminGroup.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AdminGroupQuery.php.html b/documentation/api/files/Model.Base.AdminGroupQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AdminLog.php.html b/documentation/api/files/Model.Base.AdminLog.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AdminLogQuery.php.html b/documentation/api/files/Model.Base.AdminLogQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AdminQuery.php.html b/documentation/api/files/Model.Base.AdminQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Area.php.html b/documentation/api/files/Model.Base.Area.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AreaQuery.php.html b/documentation/api/files/Model.Base.AreaQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Attribute.php.html b/documentation/api/files/Model.Base.Attribute.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeAv.php.html b/documentation/api/files/Model.Base.AttributeAv.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeAvI18n.php.html b/documentation/api/files/Model.Base.AttributeAvI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeAvI18nQuery.php.html b/documentation/api/files/Model.Base.AttributeAvI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeAvQuery.php.html b/documentation/api/files/Model.Base.AttributeAvQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeCategory.php.html b/documentation/api/files/Model.Base.AttributeCategory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeCategoryQuery.php.html b/documentation/api/files/Model.Base.AttributeCategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeCombination.php.html b/documentation/api/files/Model.Base.AttributeCombination.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeCombinationQuery.php.html b/documentation/api/files/Model.Base.AttributeCombinationQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeI18n.php.html b/documentation/api/files/Model.Base.AttributeI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeI18nQuery.php.html b/documentation/api/files/Model.Base.AttributeI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.AttributeQuery.php.html b/documentation/api/files/Model.Base.AttributeQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Cart.php.html b/documentation/api/files/Model.Base.Cart.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CartItem.php.html b/documentation/api/files/Model.Base.CartItem.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CartItemQuery.php.html b/documentation/api/files/Model.Base.CartItemQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CartQuery.php.html b/documentation/api/files/Model.Base.CartQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Category.php.html b/documentation/api/files/Model.Base.Category.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryDocument.php.html b/documentation/api/files/Model.Base.CategoryDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryDocumentI18n.php.html b/documentation/api/files/Model.Base.CategoryDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryDocumentI18nQuery.php.html b/documentation/api/files/Model.Base.CategoryDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryDocumentQuery.php.html b/documentation/api/files/Model.Base.CategoryDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryI18n.php.html b/documentation/api/files/Model.Base.CategoryI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryI18nQuery.php.html b/documentation/api/files/Model.Base.CategoryI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryImage.php.html b/documentation/api/files/Model.Base.CategoryImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryImageI18n.php.html b/documentation/api/files/Model.Base.CategoryImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryImageI18nQuery.php.html b/documentation/api/files/Model.Base.CategoryImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryImageQuery.php.html b/documentation/api/files/Model.Base.CategoryImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryQuery.php.html b/documentation/api/files/Model.Base.CategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryVersion.php.html b/documentation/api/files/Model.Base.CategoryVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CategoryVersionQuery.php.html b/documentation/api/files/Model.Base.CategoryVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Config.php.html b/documentation/api/files/Model.Base.Config.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ConfigI18n.php.html b/documentation/api/files/Model.Base.ConfigI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ConfigI18nQuery.php.html b/documentation/api/files/Model.Base.ConfigI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ConfigQuery.php.html b/documentation/api/files/Model.Base.ConfigQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Content.php.html b/documentation/api/files/Model.Base.Content.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentAssoc.php.html b/documentation/api/files/Model.Base.ContentAssoc.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentAssocQuery.php.html b/documentation/api/files/Model.Base.ContentAssocQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentDocument.php.html b/documentation/api/files/Model.Base.ContentDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentDocumentI18n.php.html b/documentation/api/files/Model.Base.ContentDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentDocumentI18nQuery.php.html b/documentation/api/files/Model.Base.ContentDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentDocumentQuery.php.html b/documentation/api/files/Model.Base.ContentDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentFolder.php.html b/documentation/api/files/Model.Base.ContentFolder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentFolderQuery.php.html b/documentation/api/files/Model.Base.ContentFolderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentI18n.php.html b/documentation/api/files/Model.Base.ContentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentI18nQuery.php.html b/documentation/api/files/Model.Base.ContentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentImage.php.html b/documentation/api/files/Model.Base.ContentImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentImageI18n.php.html b/documentation/api/files/Model.Base.ContentImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentImageI18nQuery.php.html b/documentation/api/files/Model.Base.ContentImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentImageQuery.php.html b/documentation/api/files/Model.Base.ContentImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentQuery.php.html b/documentation/api/files/Model.Base.ContentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentVersion.php.html b/documentation/api/files/Model.Base.ContentVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ContentVersionQuery.php.html b/documentation/api/files/Model.Base.ContentVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Country.php.html b/documentation/api/files/Model.Base.Country.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CountryI18n.php.html b/documentation/api/files/Model.Base.CountryI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CountryI18nQuery.php.html b/documentation/api/files/Model.Base.CountryI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CountryQuery.php.html b/documentation/api/files/Model.Base.CountryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Coupon.php.html b/documentation/api/files/Model.Base.Coupon.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CouponOrder.php.html b/documentation/api/files/Model.Base.CouponOrder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CouponOrderQuery.php.html b/documentation/api/files/Model.Base.CouponOrderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CouponQuery.php.html b/documentation/api/files/Model.Base.CouponQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CouponRule.php.html b/documentation/api/files/Model.Base.CouponRule.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CouponRuleQuery.php.html b/documentation/api/files/Model.Base.CouponRuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Currency.php.html b/documentation/api/files/Model.Base.Currency.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CurrencyI18n.php.html b/documentation/api/files/Model.Base.CurrencyI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CurrencyI18nQuery.php.html b/documentation/api/files/Model.Base.CurrencyI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CurrencyQuery.php.html b/documentation/api/files/Model.Base.CurrencyQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Customer.php.html b/documentation/api/files/Model.Base.Customer.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CustomerQuery.php.html b/documentation/api/files/Model.Base.CustomerQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CustomerTitle.php.html b/documentation/api/files/Model.Base.CustomerTitle.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CustomerTitleI18n.php.html b/documentation/api/files/Model.Base.CustomerTitleI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CustomerTitleI18nQuery.php.html b/documentation/api/files/Model.Base.CustomerTitleI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.CustomerTitleQuery.php.html b/documentation/api/files/Model.Base.CustomerTitleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Delivzone.php.html b/documentation/api/files/Model.Base.Delivzone.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.DelivzoneQuery.php.html b/documentation/api/files/Model.Base.DelivzoneQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Document.php.html b/documentation/api/files/Model.Base.Document.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.DocumentI18n.php.html b/documentation/api/files/Model.Base.DocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.DocumentI18nQuery.php.html b/documentation/api/files/Model.Base.DocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.DocumentQuery.php.html b/documentation/api/files/Model.Base.DocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Feature.php.html b/documentation/api/files/Model.Base.Feature.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureAv.php.html b/documentation/api/files/Model.Base.FeatureAv.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureAvI18n.php.html b/documentation/api/files/Model.Base.FeatureAvI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureAvI18nQuery.php.html b/documentation/api/files/Model.Base.FeatureAvI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureAvQuery.php.html b/documentation/api/files/Model.Base.FeatureAvQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureCategory.php.html b/documentation/api/files/Model.Base.FeatureCategory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureCategoryQuery.php.html b/documentation/api/files/Model.Base.FeatureCategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureI18n.php.html b/documentation/api/files/Model.Base.FeatureI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureI18nQuery.php.html b/documentation/api/files/Model.Base.FeatureI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureProduct.php.html b/documentation/api/files/Model.Base.FeatureProduct.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureProductQuery.php.html b/documentation/api/files/Model.Base.FeatureProductQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FeatureQuery.php.html b/documentation/api/files/Model.Base.FeatureQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Folder.php.html b/documentation/api/files/Model.Base.Folder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderDocument.php.html b/documentation/api/files/Model.Base.FolderDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderDocumentI18n.php.html b/documentation/api/files/Model.Base.FolderDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderDocumentI18nQuery.php.html b/documentation/api/files/Model.Base.FolderDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderDocumentQuery.php.html b/documentation/api/files/Model.Base.FolderDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderI18n.php.html b/documentation/api/files/Model.Base.FolderI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderI18nQuery.php.html b/documentation/api/files/Model.Base.FolderI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderImage.php.html b/documentation/api/files/Model.Base.FolderImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderImageI18n.php.html b/documentation/api/files/Model.Base.FolderImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderImageI18nQuery.php.html b/documentation/api/files/Model.Base.FolderImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderImageQuery.php.html b/documentation/api/files/Model.Base.FolderImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderQuery.php.html b/documentation/api/files/Model.Base.FolderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderVersion.php.html b/documentation/api/files/Model.Base.FolderVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.FolderVersionQuery.php.html b/documentation/api/files/Model.Base.FolderVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Group.php.html b/documentation/api/files/Model.Base.Group.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.GroupI18n.php.html b/documentation/api/files/Model.Base.GroupI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.GroupI18nQuery.php.html b/documentation/api/files/Model.Base.GroupI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.GroupModule.php.html b/documentation/api/files/Model.Base.GroupModule.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.GroupModuleQuery.php.html b/documentation/api/files/Model.Base.GroupModuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.GroupQuery.php.html b/documentation/api/files/Model.Base.GroupQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.GroupResource.php.html b/documentation/api/files/Model.Base.GroupResource.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.GroupResourceQuery.php.html b/documentation/api/files/Model.Base.GroupResourceQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Image.php.html b/documentation/api/files/Model.Base.Image.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ImageI18n.php.html b/documentation/api/files/Model.Base.ImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ImageI18nQuery.php.html b/documentation/api/files/Model.Base.ImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ImageQuery.php.html b/documentation/api/files/Model.Base.ImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Lang.php.html b/documentation/api/files/Model.Base.Lang.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.LangQuery.php.html b/documentation/api/files/Model.Base.LangQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Message.php.html b/documentation/api/files/Model.Base.Message.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.MessageI18n.php.html b/documentation/api/files/Model.Base.MessageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.MessageI18nQuery.php.html b/documentation/api/files/Model.Base.MessageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.MessageQuery.php.html b/documentation/api/files/Model.Base.MessageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.MessageVersion.php.html b/documentation/api/files/Model.Base.MessageVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.MessageVersionQuery.php.html b/documentation/api/files/Model.Base.MessageVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Module.php.html b/documentation/api/files/Model.Base.Module.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ModuleI18n.php.html b/documentation/api/files/Model.Base.ModuleI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ModuleI18nQuery.php.html b/documentation/api/files/Model.Base.ModuleI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ModuleQuery.php.html b/documentation/api/files/Model.Base.ModuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Order.php.html b/documentation/api/files/Model.Base.Order.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderAddress.php.html b/documentation/api/files/Model.Base.OrderAddress.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderAddressQuery.php.html b/documentation/api/files/Model.Base.OrderAddressQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderFeature.php.html b/documentation/api/files/Model.Base.OrderFeature.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderFeatureQuery.php.html b/documentation/api/files/Model.Base.OrderFeatureQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderProduct.php.html b/documentation/api/files/Model.Base.OrderProduct.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderProductQuery.php.html b/documentation/api/files/Model.Base.OrderProductQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderQuery.php.html b/documentation/api/files/Model.Base.OrderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderStatus.php.html b/documentation/api/files/Model.Base.OrderStatus.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderStatusI18n.php.html b/documentation/api/files/Model.Base.OrderStatusI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderStatusI18nQuery.php.html b/documentation/api/files/Model.Base.OrderStatusI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.OrderStatusQuery.php.html b/documentation/api/files/Model.Base.OrderStatusQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Product.php.html b/documentation/api/files/Model.Base.Product.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductCategory.php.html b/documentation/api/files/Model.Base.ProductCategory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductCategoryQuery.php.html b/documentation/api/files/Model.Base.ProductCategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductDocument.php.html b/documentation/api/files/Model.Base.ProductDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductDocumentI18n.php.html b/documentation/api/files/Model.Base.ProductDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductDocumentI18nQuery.php.html b/documentation/api/files/Model.Base.ProductDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductDocumentQuery.php.html b/documentation/api/files/Model.Base.ProductDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductI18n.php.html b/documentation/api/files/Model.Base.ProductI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductI18nQuery.php.html b/documentation/api/files/Model.Base.ProductI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductPrice.php.html b/documentation/api/files/Model.Base.ProductPrice.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductPriceQuery.php.html b/documentation/api/files/Model.Base.ProductPriceQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductQuery.php.html b/documentation/api/files/Model.Base.ProductQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductSaleElements.php.html b/documentation/api/files/Model.Base.ProductSaleElements.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductSaleElementsQuery.php.html b/documentation/api/files/Model.Base.ProductSaleElementsQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductVersion.php.html b/documentation/api/files/Model.Base.ProductVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProductVersionQuery.php.html b/documentation/api/files/Model.Base.ProductVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProdutImage.php.html b/documentation/api/files/Model.Base.ProdutImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProdutImageI18n.php.html b/documentation/api/files/Model.Base.ProdutImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProdutImageI18nQuery.php.html b/documentation/api/files/Model.Base.ProdutImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ProdutImageQuery.php.html b/documentation/api/files/Model.Base.ProdutImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Resource.php.html b/documentation/api/files/Model.Base.Resource.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ResourceI18n.php.html b/documentation/api/files/Model.Base.ResourceI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ResourceI18nQuery.php.html b/documentation/api/files/Model.Base.ResourceI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.ResourceQuery.php.html b/documentation/api/files/Model.Base.ResourceQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Rewriting.php.html b/documentation/api/files/Model.Base.Rewriting.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.RewritingQuery.php.html b/documentation/api/files/Model.Base.RewritingQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.Tax.php.html b/documentation/api/files/Model.Base.Tax.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxI18n.php.html b/documentation/api/files/Model.Base.TaxI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxI18nQuery.php.html b/documentation/api/files/Model.Base.TaxI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxQuery.php.html b/documentation/api/files/Model.Base.TaxQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxRule.php.html b/documentation/api/files/Model.Base.TaxRule.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxRuleCountry.php.html b/documentation/api/files/Model.Base.TaxRuleCountry.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxRuleCountryQuery.php.html b/documentation/api/files/Model.Base.TaxRuleCountryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxRuleI18n.php.html b/documentation/api/files/Model.Base.TaxRuleI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxRuleI18nQuery.php.html b/documentation/api/files/Model.Base.TaxRuleI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Base.TaxRuleQuery.php.html b/documentation/api/files/Model.Base.TaxRuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Cart.php.html b/documentation/api/files/Model.Cart.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CartItem.php.html b/documentation/api/files/Model.CartItem.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CartItemQuery.php.html b/documentation/api/files/Model.CartItemQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CartQuery.php.html b/documentation/api/files/Model.CartQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Category.php.html b/documentation/api/files/Model.Category.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryDocument.php.html b/documentation/api/files/Model.CategoryDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryDocumentI18n.php.html b/documentation/api/files/Model.CategoryDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryDocumentI18nQuery.php.html b/documentation/api/files/Model.CategoryDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryDocumentQuery.php.html b/documentation/api/files/Model.CategoryDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryI18n.php.html b/documentation/api/files/Model.CategoryI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryI18nQuery.php.html b/documentation/api/files/Model.CategoryI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryImage.php.html b/documentation/api/files/Model.CategoryImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryImageI18n.php.html b/documentation/api/files/Model.CategoryImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryImageI18nQuery.php.html b/documentation/api/files/Model.CategoryImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryImageQuery.php.html b/documentation/api/files/Model.CategoryImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryQuery.php.html b/documentation/api/files/Model.CategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryVersion.php.html b/documentation/api/files/Model.CategoryVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CategoryVersionQuery.php.html b/documentation/api/files/Model.CategoryVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Config.php.html b/documentation/api/files/Model.Config.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ConfigI18n.php.html b/documentation/api/files/Model.ConfigI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ConfigI18nQuery.php.html b/documentation/api/files/Model.ConfigI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ConfigQuery.php.html b/documentation/api/files/Model.ConfigQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Content.php.html b/documentation/api/files/Model.Content.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentAssoc.php.html b/documentation/api/files/Model.ContentAssoc.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentAssocQuery.php.html b/documentation/api/files/Model.ContentAssocQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentDocument.php.html b/documentation/api/files/Model.ContentDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentDocumentI18n.php.html b/documentation/api/files/Model.ContentDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentDocumentI18nQuery.php.html b/documentation/api/files/Model.ContentDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentDocumentQuery.php.html b/documentation/api/files/Model.ContentDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentFolder.php.html b/documentation/api/files/Model.ContentFolder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentFolderQuery.php.html b/documentation/api/files/Model.ContentFolderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentI18n.php.html b/documentation/api/files/Model.ContentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentI18nQuery.php.html b/documentation/api/files/Model.ContentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentImage.php.html b/documentation/api/files/Model.ContentImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentImageI18n.php.html b/documentation/api/files/Model.ContentImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentImageI18nQuery.php.html b/documentation/api/files/Model.ContentImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentImageQuery.php.html b/documentation/api/files/Model.ContentImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentQuery.php.html b/documentation/api/files/Model.ContentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentVersion.php.html b/documentation/api/files/Model.ContentVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ContentVersionQuery.php.html b/documentation/api/files/Model.ContentVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Country.php.html b/documentation/api/files/Model.Country.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CountryI18n.php.html b/documentation/api/files/Model.CountryI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CountryI18nQuery.php.html b/documentation/api/files/Model.CountryI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CountryQuery.php.html b/documentation/api/files/Model.CountryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Coupon.php.html b/documentation/api/files/Model.Coupon.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CouponOrder.php.html b/documentation/api/files/Model.CouponOrder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CouponOrderQuery.php.html b/documentation/api/files/Model.CouponOrderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CouponQuery.php.html b/documentation/api/files/Model.CouponQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CouponRule.php.html b/documentation/api/files/Model.CouponRule.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CouponRuleQuery.php.html b/documentation/api/files/Model.CouponRuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Currency.php.html b/documentation/api/files/Model.Currency.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CurrencyI18n.php.html b/documentation/api/files/Model.CurrencyI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CurrencyI18nQuery.php.html b/documentation/api/files/Model.CurrencyI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CurrencyQuery.php.html b/documentation/api/files/Model.CurrencyQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Customer.php.html b/documentation/api/files/Model.Customer.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CustomerQuery.php.html b/documentation/api/files/Model.CustomerQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CustomerTitle.php.html b/documentation/api/files/Model.CustomerTitle.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CustomerTitleI18n.php.html b/documentation/api/files/Model.CustomerTitleI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CustomerTitleI18nQuery.php.html b/documentation/api/files/Model.CustomerTitleI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.CustomerTitleQuery.php.html b/documentation/api/files/Model.CustomerTitleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Delivzone.php.html b/documentation/api/files/Model.Delivzone.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.DelivzoneQuery.php.html b/documentation/api/files/Model.DelivzoneQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Document.php.html b/documentation/api/files/Model.Document.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.DocumentI18n.php.html b/documentation/api/files/Model.DocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.DocumentI18nQuery.php.html b/documentation/api/files/Model.DocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.DocumentQuery.php.html b/documentation/api/files/Model.DocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Feature.php.html b/documentation/api/files/Model.Feature.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureAv.php.html b/documentation/api/files/Model.FeatureAv.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureAvI18n.php.html b/documentation/api/files/Model.FeatureAvI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureAvI18nQuery.php.html b/documentation/api/files/Model.FeatureAvI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureAvQuery.php.html b/documentation/api/files/Model.FeatureAvQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureCategory.php.html b/documentation/api/files/Model.FeatureCategory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureCategoryQuery.php.html b/documentation/api/files/Model.FeatureCategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureI18n.php.html b/documentation/api/files/Model.FeatureI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureI18nQuery.php.html b/documentation/api/files/Model.FeatureI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureProduct.php.html b/documentation/api/files/Model.FeatureProduct.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureProductQuery.php.html b/documentation/api/files/Model.FeatureProductQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FeatureQuery.php.html b/documentation/api/files/Model.FeatureQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Folder.php.html b/documentation/api/files/Model.Folder.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderDocument.php.html b/documentation/api/files/Model.FolderDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderDocumentI18n.php.html b/documentation/api/files/Model.FolderDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderDocumentI18nQuery.php.html b/documentation/api/files/Model.FolderDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderDocumentQuery.php.html b/documentation/api/files/Model.FolderDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderI18n.php.html b/documentation/api/files/Model.FolderI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderI18nQuery.php.html b/documentation/api/files/Model.FolderI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderImage.php.html b/documentation/api/files/Model.FolderImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderImageI18n.php.html b/documentation/api/files/Model.FolderImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderImageI18nQuery.php.html b/documentation/api/files/Model.FolderImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderImageQuery.php.html b/documentation/api/files/Model.FolderImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderQuery.php.html b/documentation/api/files/Model.FolderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderVersion.php.html b/documentation/api/files/Model.FolderVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.FolderVersionQuery.php.html b/documentation/api/files/Model.FolderVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Group.php.html b/documentation/api/files/Model.Group.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.GroupI18n.php.html b/documentation/api/files/Model.GroupI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.GroupI18nQuery.php.html b/documentation/api/files/Model.GroupI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.GroupModule.php.html b/documentation/api/files/Model.GroupModule.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.GroupModuleQuery.php.html b/documentation/api/files/Model.GroupModuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.GroupQuery.php.html b/documentation/api/files/Model.GroupQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.GroupResource.php.html b/documentation/api/files/Model.GroupResource.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.GroupResourceQuery.php.html b/documentation/api/files/Model.GroupResourceQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Image.php.html b/documentation/api/files/Model.Image.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ImageI18n.php.html b/documentation/api/files/Model.ImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ImageI18nQuery.php.html b/documentation/api/files/Model.ImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ImageQuery.php.html b/documentation/api/files/Model.ImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Lang.php.html b/documentation/api/files/Model.Lang.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.LangQuery.php.html b/documentation/api/files/Model.LangQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AccessoryTableMap.php.html b/documentation/api/files/Model.Map.AccessoryTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AddressTableMap.php.html b/documentation/api/files/Model.Map.AddressTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AdminGroupTableMap.php.html b/documentation/api/files/Model.Map.AdminGroupTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AdminLogTableMap.php.html b/documentation/api/files/Model.Map.AdminLogTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AdminTableMap.php.html b/documentation/api/files/Model.Map.AdminTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AreaTableMap.php.html b/documentation/api/files/Model.Map.AreaTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AttributeAvI18nTableMap.php.html b/documentation/api/files/Model.Map.AttributeAvI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AttributeAvTableMap.php.html b/documentation/api/files/Model.Map.AttributeAvTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AttributeCategoryTableMap.php.html b/documentation/api/files/Model.Map.AttributeCategoryTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AttributeCombinationTableMap.php.html b/documentation/api/files/Model.Map.AttributeCombinationTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AttributeI18nTableMap.php.html b/documentation/api/files/Model.Map.AttributeI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.AttributeTableMap.php.html b/documentation/api/files/Model.Map.AttributeTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CartItemTableMap.php.html b/documentation/api/files/Model.Map.CartItemTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CartTableMap.php.html b/documentation/api/files/Model.Map.CartTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CategoryDocumentI18nTableMap.php.html b/documentation/api/files/Model.Map.CategoryDocumentI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CategoryDocumentTableMap.php.html b/documentation/api/files/Model.Map.CategoryDocumentTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CategoryI18nTableMap.php.html b/documentation/api/files/Model.Map.CategoryI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CategoryImageI18nTableMap.php.html b/documentation/api/files/Model.Map.CategoryImageI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CategoryImageTableMap.php.html b/documentation/api/files/Model.Map.CategoryImageTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CategoryTableMap.php.html b/documentation/api/files/Model.Map.CategoryTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CategoryVersionTableMap.php.html b/documentation/api/files/Model.Map.CategoryVersionTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ConfigI18nTableMap.php.html b/documentation/api/files/Model.Map.ConfigI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ConfigTableMap.php.html b/documentation/api/files/Model.Map.ConfigTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentAssocTableMap.php.html b/documentation/api/files/Model.Map.ContentAssocTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentDocumentI18nTableMap.php.html b/documentation/api/files/Model.Map.ContentDocumentI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentDocumentTableMap.php.html b/documentation/api/files/Model.Map.ContentDocumentTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentFolderTableMap.php.html b/documentation/api/files/Model.Map.ContentFolderTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentI18nTableMap.php.html b/documentation/api/files/Model.Map.ContentI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentImageI18nTableMap.php.html b/documentation/api/files/Model.Map.ContentImageI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentImageTableMap.php.html b/documentation/api/files/Model.Map.ContentImageTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentTableMap.php.html b/documentation/api/files/Model.Map.ContentTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ContentVersionTableMap.php.html b/documentation/api/files/Model.Map.ContentVersionTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CountryI18nTableMap.php.html b/documentation/api/files/Model.Map.CountryI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CountryTableMap.php.html b/documentation/api/files/Model.Map.CountryTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CouponOrderTableMap.php.html b/documentation/api/files/Model.Map.CouponOrderTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CouponRuleTableMap.php.html b/documentation/api/files/Model.Map.CouponRuleTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CouponTableMap.php.html b/documentation/api/files/Model.Map.CouponTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CurrencyI18nTableMap.php.html b/documentation/api/files/Model.Map.CurrencyI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CurrencyTableMap.php.html b/documentation/api/files/Model.Map.CurrencyTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CustomerTableMap.php.html b/documentation/api/files/Model.Map.CustomerTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CustomerTitleI18nTableMap.php.html b/documentation/api/files/Model.Map.CustomerTitleI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.CustomerTitleTableMap.php.html b/documentation/api/files/Model.Map.CustomerTitleTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.DelivzoneTableMap.php.html b/documentation/api/files/Model.Map.DelivzoneTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.DocumentI18nTableMap.php.html b/documentation/api/files/Model.Map.DocumentI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.DocumentTableMap.php.html b/documentation/api/files/Model.Map.DocumentTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FeatureAvI18nTableMap.php.html b/documentation/api/files/Model.Map.FeatureAvI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FeatureAvTableMap.php.html b/documentation/api/files/Model.Map.FeatureAvTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FeatureCategoryTableMap.php.html b/documentation/api/files/Model.Map.FeatureCategoryTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FeatureI18nTableMap.php.html b/documentation/api/files/Model.Map.FeatureI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FeatureProductTableMap.php.html b/documentation/api/files/Model.Map.FeatureProductTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FeatureTableMap.php.html b/documentation/api/files/Model.Map.FeatureTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FolderDocumentI18nTableMap.php.html b/documentation/api/files/Model.Map.FolderDocumentI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FolderDocumentTableMap.php.html b/documentation/api/files/Model.Map.FolderDocumentTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FolderI18nTableMap.php.html b/documentation/api/files/Model.Map.FolderI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FolderImageI18nTableMap.php.html b/documentation/api/files/Model.Map.FolderImageI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FolderImageTableMap.php.html b/documentation/api/files/Model.Map.FolderImageTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FolderTableMap.php.html b/documentation/api/files/Model.Map.FolderTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.FolderVersionTableMap.php.html b/documentation/api/files/Model.Map.FolderVersionTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.GroupI18nTableMap.php.html b/documentation/api/files/Model.Map.GroupI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.GroupModuleTableMap.php.html b/documentation/api/files/Model.Map.GroupModuleTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.GroupResourceTableMap.php.html b/documentation/api/files/Model.Map.GroupResourceTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.GroupTableMap.php.html b/documentation/api/files/Model.Map.GroupTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ImageI18nTableMap.php.html b/documentation/api/files/Model.Map.ImageI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ImageTableMap.php.html b/documentation/api/files/Model.Map.ImageTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.LangTableMap.php.html b/documentation/api/files/Model.Map.LangTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.MessageI18nTableMap.php.html b/documentation/api/files/Model.Map.MessageI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.MessageTableMap.php.html b/documentation/api/files/Model.Map.MessageTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.MessageVersionTableMap.php.html b/documentation/api/files/Model.Map.MessageVersionTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ModuleI18nTableMap.php.html b/documentation/api/files/Model.Map.ModuleI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ModuleTableMap.php.html b/documentation/api/files/Model.Map.ModuleTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.OrderAddressTableMap.php.html b/documentation/api/files/Model.Map.OrderAddressTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.OrderFeatureTableMap.php.html b/documentation/api/files/Model.Map.OrderFeatureTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.OrderProductTableMap.php.html b/documentation/api/files/Model.Map.OrderProductTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.OrderStatusI18nTableMap.php.html b/documentation/api/files/Model.Map.OrderStatusI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.OrderStatusTableMap.php.html b/documentation/api/files/Model.Map.OrderStatusTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.OrderTableMap.php.html b/documentation/api/files/Model.Map.OrderTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductCategoryTableMap.php.html b/documentation/api/files/Model.Map.ProductCategoryTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductDocumentI18nTableMap.php.html b/documentation/api/files/Model.Map.ProductDocumentI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductDocumentTableMap.php.html b/documentation/api/files/Model.Map.ProductDocumentTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductI18nTableMap.php.html b/documentation/api/files/Model.Map.ProductI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductPriceTableMap.php.html b/documentation/api/files/Model.Map.ProductPriceTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductSaleElementsTableMap.php.html b/documentation/api/files/Model.Map.ProductSaleElementsTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductTableMap.php.html b/documentation/api/files/Model.Map.ProductTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProductVersionTableMap.php.html b/documentation/api/files/Model.Map.ProductVersionTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProdutImageI18nTableMap.php.html b/documentation/api/files/Model.Map.ProdutImageI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ProdutImageTableMap.php.html b/documentation/api/files/Model.Map.ProdutImageTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ResourceI18nTableMap.php.html b/documentation/api/files/Model.Map.ResourceI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.ResourceTableMap.php.html b/documentation/api/files/Model.Map.ResourceTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.RewritingTableMap.php.html b/documentation/api/files/Model.Map.RewritingTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.TaxI18nTableMap.php.html b/documentation/api/files/Model.Map.TaxI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.TaxRuleCountryTableMap.php.html b/documentation/api/files/Model.Map.TaxRuleCountryTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.TaxRuleI18nTableMap.php.html b/documentation/api/files/Model.Map.TaxRuleI18nTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.TaxRuleTableMap.php.html b/documentation/api/files/Model.Map.TaxRuleTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Map.TaxTableMap.php.html b/documentation/api/files/Model.Map.TaxTableMap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Message.php.html b/documentation/api/files/Model.Message.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.MessageI18n.php.html b/documentation/api/files/Model.MessageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.MessageI18nQuery.php.html b/documentation/api/files/Model.MessageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.MessageQuery.php.html b/documentation/api/files/Model.MessageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.MessageVersion.php.html b/documentation/api/files/Model.MessageVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.MessageVersionQuery.php.html b/documentation/api/files/Model.MessageVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Module.php.html b/documentation/api/files/Model.Module.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ModuleI18n.php.html b/documentation/api/files/Model.ModuleI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ModuleI18nQuery.php.html b/documentation/api/files/Model.ModuleI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ModuleQuery.php.html b/documentation/api/files/Model.ModuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Order.php.html b/documentation/api/files/Model.Order.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderAddress.php.html b/documentation/api/files/Model.OrderAddress.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderAddressQuery.php.html b/documentation/api/files/Model.OrderAddressQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderFeature.php.html b/documentation/api/files/Model.OrderFeature.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderFeatureQuery.php.html b/documentation/api/files/Model.OrderFeatureQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderProduct.php.html b/documentation/api/files/Model.OrderProduct.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderProductQuery.php.html b/documentation/api/files/Model.OrderProductQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderQuery.php.html b/documentation/api/files/Model.OrderQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderStatus.php.html b/documentation/api/files/Model.OrderStatus.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderStatusI18n.php.html b/documentation/api/files/Model.OrderStatusI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderStatusI18nQuery.php.html b/documentation/api/files/Model.OrderStatusI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.OrderStatusQuery.php.html b/documentation/api/files/Model.OrderStatusQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Product.php.html b/documentation/api/files/Model.Product.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductCategory.php.html b/documentation/api/files/Model.ProductCategory.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductCategoryQuery.php.html b/documentation/api/files/Model.ProductCategoryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductDocument.php.html b/documentation/api/files/Model.ProductDocument.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductDocumentI18n.php.html b/documentation/api/files/Model.ProductDocumentI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductDocumentI18nQuery.php.html b/documentation/api/files/Model.ProductDocumentI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductDocumentQuery.php.html b/documentation/api/files/Model.ProductDocumentQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductI18n.php.html b/documentation/api/files/Model.ProductI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductI18nQuery.php.html b/documentation/api/files/Model.ProductI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductPrice.php.html b/documentation/api/files/Model.ProductPrice.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductPriceQuery.php.html b/documentation/api/files/Model.ProductPriceQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductQuery.php.html b/documentation/api/files/Model.ProductQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductSaleElements.php.html b/documentation/api/files/Model.ProductSaleElements.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductSaleElementsQuery.php.html b/documentation/api/files/Model.ProductSaleElementsQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductVersion.php.html b/documentation/api/files/Model.ProductVersion.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProductVersionQuery.php.html b/documentation/api/files/Model.ProductVersionQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProdutImage.php.html b/documentation/api/files/Model.ProdutImage.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProdutImageI18n.php.html b/documentation/api/files/Model.ProdutImageI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProdutImageI18nQuery.php.html b/documentation/api/files/Model.ProdutImageI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ProdutImageQuery.php.html b/documentation/api/files/Model.ProdutImageQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Resource.php.html b/documentation/api/files/Model.Resource.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ResourceI18n.php.html b/documentation/api/files/Model.ResourceI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ResourceI18nQuery.php.html b/documentation/api/files/Model.ResourceI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.ResourceQuery.php.html b/documentation/api/files/Model.ResourceQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Rewriting.php.html b/documentation/api/files/Model.Rewriting.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.RewritingQuery.php.html b/documentation/api/files/Model.RewritingQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.Tax.php.html b/documentation/api/files/Model.Tax.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxI18n.php.html b/documentation/api/files/Model.TaxI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxI18nQuery.php.html b/documentation/api/files/Model.TaxI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxQuery.php.html b/documentation/api/files/Model.TaxQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxRule.php.html b/documentation/api/files/Model.TaxRule.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxRuleCountry.php.html b/documentation/api/files/Model.TaxRuleCountry.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxRuleCountryQuery.php.html b/documentation/api/files/Model.TaxRuleCountryQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxRuleI18n.php.html b/documentation/api/files/Model.TaxRuleI18n.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxRuleI18nQuery.php.html b/documentation/api/files/Model.TaxRuleI18nQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model.TaxRuleQuery.php.html b/documentation/api/files/Model.TaxRuleQuery.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Accessory.php.txt b/documentation/api/files/Model/Accessory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AccessoryQuery.php.txt b/documentation/api/files/Model/AccessoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Address.php.txt b/documentation/api/files/Model/Address.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AddressQuery.php.txt b/documentation/api/files/Model/AddressQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Admin.php.txt b/documentation/api/files/Model/Admin.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AdminGroup.php.txt b/documentation/api/files/Model/AdminGroup.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AdminGroupQuery.php.txt b/documentation/api/files/Model/AdminGroupQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AdminLog.php.txt b/documentation/api/files/Model/AdminLog.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AdminLogQuery.php.txt b/documentation/api/files/Model/AdminLogQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AdminQuery.php.txt b/documentation/api/files/Model/AdminQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Area.php.txt b/documentation/api/files/Model/Area.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AreaQuery.php.txt b/documentation/api/files/Model/AreaQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Attribute.php.txt b/documentation/api/files/Model/Attribute.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeAv.php.txt b/documentation/api/files/Model/AttributeAv.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeAvI18n.php.txt b/documentation/api/files/Model/AttributeAvI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeAvI18nQuery.php.txt b/documentation/api/files/Model/AttributeAvI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeAvQuery.php.txt b/documentation/api/files/Model/AttributeAvQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeCategory.php.txt b/documentation/api/files/Model/AttributeCategory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeCategoryQuery.php.txt b/documentation/api/files/Model/AttributeCategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeCombination.php.txt b/documentation/api/files/Model/AttributeCombination.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeCombinationQuery.php.txt b/documentation/api/files/Model/AttributeCombinationQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeI18n.php.txt b/documentation/api/files/Model/AttributeI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeI18nQuery.php.txt b/documentation/api/files/Model/AttributeI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/AttributeQuery.php.txt b/documentation/api/files/Model/AttributeQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Accessory.php.txt b/documentation/api/files/Model/Base/Accessory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AccessoryQuery.php.txt b/documentation/api/files/Model/Base/AccessoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Address.php.txt b/documentation/api/files/Model/Base/Address.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AddressQuery.php.txt b/documentation/api/files/Model/Base/AddressQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Admin.php.txt b/documentation/api/files/Model/Base/Admin.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AdminGroup.php.txt b/documentation/api/files/Model/Base/AdminGroup.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AdminGroupQuery.php.txt b/documentation/api/files/Model/Base/AdminGroupQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AdminLog.php.txt b/documentation/api/files/Model/Base/AdminLog.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AdminLogQuery.php.txt b/documentation/api/files/Model/Base/AdminLogQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AdminQuery.php.txt b/documentation/api/files/Model/Base/AdminQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Area.php.txt b/documentation/api/files/Model/Base/Area.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AreaQuery.php.txt b/documentation/api/files/Model/Base/AreaQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Attribute.php.txt b/documentation/api/files/Model/Base/Attribute.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeAv.php.txt b/documentation/api/files/Model/Base/AttributeAv.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeAvI18n.php.txt b/documentation/api/files/Model/Base/AttributeAvI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeAvI18nQuery.php.txt b/documentation/api/files/Model/Base/AttributeAvI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeAvQuery.php.txt b/documentation/api/files/Model/Base/AttributeAvQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeCategory.php.txt b/documentation/api/files/Model/Base/AttributeCategory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeCategoryQuery.php.txt b/documentation/api/files/Model/Base/AttributeCategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeCombination.php.txt b/documentation/api/files/Model/Base/AttributeCombination.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeCombinationQuery.php.txt b/documentation/api/files/Model/Base/AttributeCombinationQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeI18n.php.txt b/documentation/api/files/Model/Base/AttributeI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeI18nQuery.php.txt b/documentation/api/files/Model/Base/AttributeI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/AttributeQuery.php.txt b/documentation/api/files/Model/Base/AttributeQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Cart.php.txt b/documentation/api/files/Model/Base/Cart.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CartItem.php.txt b/documentation/api/files/Model/Base/CartItem.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CartItemQuery.php.txt b/documentation/api/files/Model/Base/CartItemQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CartQuery.php.txt b/documentation/api/files/Model/Base/CartQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Category.php.txt b/documentation/api/files/Model/Base/Category.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryDocument.php.txt b/documentation/api/files/Model/Base/CategoryDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryDocumentI18n.php.txt b/documentation/api/files/Model/Base/CategoryDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryDocumentI18nQuery.php.txt b/documentation/api/files/Model/Base/CategoryDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryDocumentQuery.php.txt b/documentation/api/files/Model/Base/CategoryDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryI18n.php.txt b/documentation/api/files/Model/Base/CategoryI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryI18nQuery.php.txt b/documentation/api/files/Model/Base/CategoryI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryImage.php.txt b/documentation/api/files/Model/Base/CategoryImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryImageI18n.php.txt b/documentation/api/files/Model/Base/CategoryImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryImageI18nQuery.php.txt b/documentation/api/files/Model/Base/CategoryImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryImageQuery.php.txt b/documentation/api/files/Model/Base/CategoryImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryQuery.php.txt b/documentation/api/files/Model/Base/CategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryVersion.php.txt b/documentation/api/files/Model/Base/CategoryVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CategoryVersionQuery.php.txt b/documentation/api/files/Model/Base/CategoryVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Config.php.txt b/documentation/api/files/Model/Base/Config.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ConfigI18n.php.txt b/documentation/api/files/Model/Base/ConfigI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ConfigI18nQuery.php.txt b/documentation/api/files/Model/Base/ConfigI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ConfigQuery.php.txt b/documentation/api/files/Model/Base/ConfigQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Content.php.txt b/documentation/api/files/Model/Base/Content.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentAssoc.php.txt b/documentation/api/files/Model/Base/ContentAssoc.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentAssocQuery.php.txt b/documentation/api/files/Model/Base/ContentAssocQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentDocument.php.txt b/documentation/api/files/Model/Base/ContentDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentDocumentI18n.php.txt b/documentation/api/files/Model/Base/ContentDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentDocumentI18nQuery.php.txt b/documentation/api/files/Model/Base/ContentDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentDocumentQuery.php.txt b/documentation/api/files/Model/Base/ContentDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentFolder.php.txt b/documentation/api/files/Model/Base/ContentFolder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentFolderQuery.php.txt b/documentation/api/files/Model/Base/ContentFolderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentI18n.php.txt b/documentation/api/files/Model/Base/ContentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentI18nQuery.php.txt b/documentation/api/files/Model/Base/ContentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentImage.php.txt b/documentation/api/files/Model/Base/ContentImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentImageI18n.php.txt b/documentation/api/files/Model/Base/ContentImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentImageI18nQuery.php.txt b/documentation/api/files/Model/Base/ContentImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentImageQuery.php.txt b/documentation/api/files/Model/Base/ContentImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentQuery.php.txt b/documentation/api/files/Model/Base/ContentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentVersion.php.txt b/documentation/api/files/Model/Base/ContentVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ContentVersionQuery.php.txt b/documentation/api/files/Model/Base/ContentVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Country.php.txt b/documentation/api/files/Model/Base/Country.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CountryI18n.php.txt b/documentation/api/files/Model/Base/CountryI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CountryI18nQuery.php.txt b/documentation/api/files/Model/Base/CountryI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CountryQuery.php.txt b/documentation/api/files/Model/Base/CountryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Coupon.php.txt b/documentation/api/files/Model/Base/Coupon.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CouponOrder.php.txt b/documentation/api/files/Model/Base/CouponOrder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CouponOrderQuery.php.txt b/documentation/api/files/Model/Base/CouponOrderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CouponQuery.php.txt b/documentation/api/files/Model/Base/CouponQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CouponRule.php.txt b/documentation/api/files/Model/Base/CouponRule.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CouponRuleQuery.php.txt b/documentation/api/files/Model/Base/CouponRuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Currency.php.txt b/documentation/api/files/Model/Base/Currency.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CurrencyI18n.php.txt b/documentation/api/files/Model/Base/CurrencyI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CurrencyI18nQuery.php.txt b/documentation/api/files/Model/Base/CurrencyI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CurrencyQuery.php.txt b/documentation/api/files/Model/Base/CurrencyQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Customer.php.txt b/documentation/api/files/Model/Base/Customer.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CustomerQuery.php.txt b/documentation/api/files/Model/Base/CustomerQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CustomerTitle.php.txt b/documentation/api/files/Model/Base/CustomerTitle.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CustomerTitleI18n.php.txt b/documentation/api/files/Model/Base/CustomerTitleI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CustomerTitleI18nQuery.php.txt b/documentation/api/files/Model/Base/CustomerTitleI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/CustomerTitleQuery.php.txt b/documentation/api/files/Model/Base/CustomerTitleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Delivzone.php.txt b/documentation/api/files/Model/Base/Delivzone.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/DelivzoneQuery.php.txt b/documentation/api/files/Model/Base/DelivzoneQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Document.php.txt b/documentation/api/files/Model/Base/Document.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/DocumentI18n.php.txt b/documentation/api/files/Model/Base/DocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/DocumentI18nQuery.php.txt b/documentation/api/files/Model/Base/DocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/DocumentQuery.php.txt b/documentation/api/files/Model/Base/DocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Feature.php.txt b/documentation/api/files/Model/Base/Feature.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureAv.php.txt b/documentation/api/files/Model/Base/FeatureAv.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureAvI18n.php.txt b/documentation/api/files/Model/Base/FeatureAvI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureAvI18nQuery.php.txt b/documentation/api/files/Model/Base/FeatureAvI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureAvQuery.php.txt b/documentation/api/files/Model/Base/FeatureAvQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureCategory.php.txt b/documentation/api/files/Model/Base/FeatureCategory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureCategoryQuery.php.txt b/documentation/api/files/Model/Base/FeatureCategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureI18n.php.txt b/documentation/api/files/Model/Base/FeatureI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureI18nQuery.php.txt b/documentation/api/files/Model/Base/FeatureI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureProduct.php.txt b/documentation/api/files/Model/Base/FeatureProduct.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureProductQuery.php.txt b/documentation/api/files/Model/Base/FeatureProductQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FeatureQuery.php.txt b/documentation/api/files/Model/Base/FeatureQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Folder.php.txt b/documentation/api/files/Model/Base/Folder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderDocument.php.txt b/documentation/api/files/Model/Base/FolderDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderDocumentI18n.php.txt b/documentation/api/files/Model/Base/FolderDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderDocumentI18nQuery.php.txt b/documentation/api/files/Model/Base/FolderDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderDocumentQuery.php.txt b/documentation/api/files/Model/Base/FolderDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderI18n.php.txt b/documentation/api/files/Model/Base/FolderI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderI18nQuery.php.txt b/documentation/api/files/Model/Base/FolderI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderImage.php.txt b/documentation/api/files/Model/Base/FolderImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderImageI18n.php.txt b/documentation/api/files/Model/Base/FolderImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderImageI18nQuery.php.txt b/documentation/api/files/Model/Base/FolderImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderImageQuery.php.txt b/documentation/api/files/Model/Base/FolderImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderQuery.php.txt b/documentation/api/files/Model/Base/FolderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderVersion.php.txt b/documentation/api/files/Model/Base/FolderVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/FolderVersionQuery.php.txt b/documentation/api/files/Model/Base/FolderVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Group.php.txt b/documentation/api/files/Model/Base/Group.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/GroupI18n.php.txt b/documentation/api/files/Model/Base/GroupI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/GroupI18nQuery.php.txt b/documentation/api/files/Model/Base/GroupI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/GroupModule.php.txt b/documentation/api/files/Model/Base/GroupModule.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/GroupModuleQuery.php.txt b/documentation/api/files/Model/Base/GroupModuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/GroupQuery.php.txt b/documentation/api/files/Model/Base/GroupQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/GroupResource.php.txt b/documentation/api/files/Model/Base/GroupResource.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/GroupResourceQuery.php.txt b/documentation/api/files/Model/Base/GroupResourceQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Image.php.txt b/documentation/api/files/Model/Base/Image.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ImageI18n.php.txt b/documentation/api/files/Model/Base/ImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ImageI18nQuery.php.txt b/documentation/api/files/Model/Base/ImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ImageQuery.php.txt b/documentation/api/files/Model/Base/ImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Lang.php.txt b/documentation/api/files/Model/Base/Lang.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/LangQuery.php.txt b/documentation/api/files/Model/Base/LangQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Message.php.txt b/documentation/api/files/Model/Base/Message.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/MessageI18n.php.txt b/documentation/api/files/Model/Base/MessageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/MessageI18nQuery.php.txt b/documentation/api/files/Model/Base/MessageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/MessageQuery.php.txt b/documentation/api/files/Model/Base/MessageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/MessageVersion.php.txt b/documentation/api/files/Model/Base/MessageVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/MessageVersionQuery.php.txt b/documentation/api/files/Model/Base/MessageVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Module.php.txt b/documentation/api/files/Model/Base/Module.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ModuleI18n.php.txt b/documentation/api/files/Model/Base/ModuleI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ModuleI18nQuery.php.txt b/documentation/api/files/Model/Base/ModuleI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ModuleQuery.php.txt b/documentation/api/files/Model/Base/ModuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Order.php.txt b/documentation/api/files/Model/Base/Order.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderAddress.php.txt b/documentation/api/files/Model/Base/OrderAddress.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderAddressQuery.php.txt b/documentation/api/files/Model/Base/OrderAddressQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderFeature.php.txt b/documentation/api/files/Model/Base/OrderFeature.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderFeatureQuery.php.txt b/documentation/api/files/Model/Base/OrderFeatureQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderProduct.php.txt b/documentation/api/files/Model/Base/OrderProduct.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderProductQuery.php.txt b/documentation/api/files/Model/Base/OrderProductQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderQuery.php.txt b/documentation/api/files/Model/Base/OrderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderStatus.php.txt b/documentation/api/files/Model/Base/OrderStatus.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderStatusI18n.php.txt b/documentation/api/files/Model/Base/OrderStatusI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderStatusI18nQuery.php.txt b/documentation/api/files/Model/Base/OrderStatusI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/OrderStatusQuery.php.txt b/documentation/api/files/Model/Base/OrderStatusQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Product.php.txt b/documentation/api/files/Model/Base/Product.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductCategory.php.txt b/documentation/api/files/Model/Base/ProductCategory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductCategoryQuery.php.txt b/documentation/api/files/Model/Base/ProductCategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductDocument.php.txt b/documentation/api/files/Model/Base/ProductDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductDocumentI18n.php.txt b/documentation/api/files/Model/Base/ProductDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductDocumentI18nQuery.php.txt b/documentation/api/files/Model/Base/ProductDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductDocumentQuery.php.txt b/documentation/api/files/Model/Base/ProductDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductI18n.php.txt b/documentation/api/files/Model/Base/ProductI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductI18nQuery.php.txt b/documentation/api/files/Model/Base/ProductI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductPrice.php.txt b/documentation/api/files/Model/Base/ProductPrice.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductPriceQuery.php.txt b/documentation/api/files/Model/Base/ProductPriceQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductQuery.php.txt b/documentation/api/files/Model/Base/ProductQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductSaleElements.php.txt b/documentation/api/files/Model/Base/ProductSaleElements.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductSaleElementsQuery.php.txt b/documentation/api/files/Model/Base/ProductSaleElementsQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductVersion.php.txt b/documentation/api/files/Model/Base/ProductVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProductVersionQuery.php.txt b/documentation/api/files/Model/Base/ProductVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProdutImage.php.txt b/documentation/api/files/Model/Base/ProdutImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProdutImageI18n.php.txt b/documentation/api/files/Model/Base/ProdutImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProdutImageI18nQuery.php.txt b/documentation/api/files/Model/Base/ProdutImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ProdutImageQuery.php.txt b/documentation/api/files/Model/Base/ProdutImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Resource.php.txt b/documentation/api/files/Model/Base/Resource.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ResourceI18n.php.txt b/documentation/api/files/Model/Base/ResourceI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ResourceI18nQuery.php.txt b/documentation/api/files/Model/Base/ResourceI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/ResourceQuery.php.txt b/documentation/api/files/Model/Base/ResourceQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Rewriting.php.txt b/documentation/api/files/Model/Base/Rewriting.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/RewritingQuery.php.txt b/documentation/api/files/Model/Base/RewritingQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/Tax.php.txt b/documentation/api/files/Model/Base/Tax.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxI18n.php.txt b/documentation/api/files/Model/Base/TaxI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxI18nQuery.php.txt b/documentation/api/files/Model/Base/TaxI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxQuery.php.txt b/documentation/api/files/Model/Base/TaxQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxRule.php.txt b/documentation/api/files/Model/Base/TaxRule.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxRuleCountry.php.txt b/documentation/api/files/Model/Base/TaxRuleCountry.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxRuleCountryQuery.php.txt b/documentation/api/files/Model/Base/TaxRuleCountryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxRuleI18n.php.txt b/documentation/api/files/Model/Base/TaxRuleI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxRuleI18nQuery.php.txt b/documentation/api/files/Model/Base/TaxRuleI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Base/TaxRuleQuery.php.txt b/documentation/api/files/Model/Base/TaxRuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Cart.php.txt b/documentation/api/files/Model/Cart.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CartItem.php.txt b/documentation/api/files/Model/CartItem.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CartItemQuery.php.txt b/documentation/api/files/Model/CartItemQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CartQuery.php.txt b/documentation/api/files/Model/CartQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Category.php.txt b/documentation/api/files/Model/Category.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryDocument.php.txt b/documentation/api/files/Model/CategoryDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryDocumentI18n.php.txt b/documentation/api/files/Model/CategoryDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryDocumentI18nQuery.php.txt b/documentation/api/files/Model/CategoryDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryDocumentQuery.php.txt b/documentation/api/files/Model/CategoryDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryI18n.php.txt b/documentation/api/files/Model/CategoryI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryI18nQuery.php.txt b/documentation/api/files/Model/CategoryI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryImage.php.txt b/documentation/api/files/Model/CategoryImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryImageI18n.php.txt b/documentation/api/files/Model/CategoryImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryImageI18nQuery.php.txt b/documentation/api/files/Model/CategoryImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryImageQuery.php.txt b/documentation/api/files/Model/CategoryImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryQuery.php.txt b/documentation/api/files/Model/CategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryVersion.php.txt b/documentation/api/files/Model/CategoryVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CategoryVersionQuery.php.txt b/documentation/api/files/Model/CategoryVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Config.php.txt b/documentation/api/files/Model/Config.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ConfigI18n.php.txt b/documentation/api/files/Model/ConfigI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ConfigI18nQuery.php.txt b/documentation/api/files/Model/ConfigI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ConfigQuery.php.txt b/documentation/api/files/Model/ConfigQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Content.php.txt b/documentation/api/files/Model/Content.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentAssoc.php.txt b/documentation/api/files/Model/ContentAssoc.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentAssocQuery.php.txt b/documentation/api/files/Model/ContentAssocQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentDocument.php.txt b/documentation/api/files/Model/ContentDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentDocumentI18n.php.txt b/documentation/api/files/Model/ContentDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentDocumentI18nQuery.php.txt b/documentation/api/files/Model/ContentDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentDocumentQuery.php.txt b/documentation/api/files/Model/ContentDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentFolder.php.txt b/documentation/api/files/Model/ContentFolder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentFolderQuery.php.txt b/documentation/api/files/Model/ContentFolderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentI18n.php.txt b/documentation/api/files/Model/ContentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentI18nQuery.php.txt b/documentation/api/files/Model/ContentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentImage.php.txt b/documentation/api/files/Model/ContentImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentImageI18n.php.txt b/documentation/api/files/Model/ContentImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentImageI18nQuery.php.txt b/documentation/api/files/Model/ContentImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentImageQuery.php.txt b/documentation/api/files/Model/ContentImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentQuery.php.txt b/documentation/api/files/Model/ContentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentVersion.php.txt b/documentation/api/files/Model/ContentVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ContentVersionQuery.php.txt b/documentation/api/files/Model/ContentVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Country.php.txt b/documentation/api/files/Model/Country.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CountryI18n.php.txt b/documentation/api/files/Model/CountryI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CountryI18nQuery.php.txt b/documentation/api/files/Model/CountryI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CountryQuery.php.txt b/documentation/api/files/Model/CountryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Coupon.php.txt b/documentation/api/files/Model/Coupon.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CouponOrder.php.txt b/documentation/api/files/Model/CouponOrder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CouponOrderQuery.php.txt b/documentation/api/files/Model/CouponOrderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CouponQuery.php.txt b/documentation/api/files/Model/CouponQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CouponRule.php.txt b/documentation/api/files/Model/CouponRule.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CouponRuleQuery.php.txt b/documentation/api/files/Model/CouponRuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Currency.php.txt b/documentation/api/files/Model/Currency.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CurrencyI18n.php.txt b/documentation/api/files/Model/CurrencyI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CurrencyI18nQuery.php.txt b/documentation/api/files/Model/CurrencyI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CurrencyQuery.php.txt b/documentation/api/files/Model/CurrencyQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Customer.php.txt b/documentation/api/files/Model/Customer.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CustomerQuery.php.txt b/documentation/api/files/Model/CustomerQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CustomerTitle.php.txt b/documentation/api/files/Model/CustomerTitle.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CustomerTitleI18n.php.txt b/documentation/api/files/Model/CustomerTitleI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CustomerTitleI18nQuery.php.txt b/documentation/api/files/Model/CustomerTitleI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/CustomerTitleQuery.php.txt b/documentation/api/files/Model/CustomerTitleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Delivzone.php.txt b/documentation/api/files/Model/Delivzone.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/DelivzoneQuery.php.txt b/documentation/api/files/Model/DelivzoneQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Document.php.txt b/documentation/api/files/Model/Document.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/DocumentI18n.php.txt b/documentation/api/files/Model/DocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/DocumentI18nQuery.php.txt b/documentation/api/files/Model/DocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/DocumentQuery.php.txt b/documentation/api/files/Model/DocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Feature.php.txt b/documentation/api/files/Model/Feature.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureAv.php.txt b/documentation/api/files/Model/FeatureAv.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureAvI18n.php.txt b/documentation/api/files/Model/FeatureAvI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureAvI18nQuery.php.txt b/documentation/api/files/Model/FeatureAvI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureAvQuery.php.txt b/documentation/api/files/Model/FeatureAvQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureCategory.php.txt b/documentation/api/files/Model/FeatureCategory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureCategoryQuery.php.txt b/documentation/api/files/Model/FeatureCategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureI18n.php.txt b/documentation/api/files/Model/FeatureI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureI18nQuery.php.txt b/documentation/api/files/Model/FeatureI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureProduct.php.txt b/documentation/api/files/Model/FeatureProduct.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureProductQuery.php.txt b/documentation/api/files/Model/FeatureProductQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FeatureQuery.php.txt b/documentation/api/files/Model/FeatureQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Folder.php.txt b/documentation/api/files/Model/Folder.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderDocument.php.txt b/documentation/api/files/Model/FolderDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderDocumentI18n.php.txt b/documentation/api/files/Model/FolderDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderDocumentI18nQuery.php.txt b/documentation/api/files/Model/FolderDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderDocumentQuery.php.txt b/documentation/api/files/Model/FolderDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderI18n.php.txt b/documentation/api/files/Model/FolderI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderI18nQuery.php.txt b/documentation/api/files/Model/FolderI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderImage.php.txt b/documentation/api/files/Model/FolderImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderImageI18n.php.txt b/documentation/api/files/Model/FolderImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderImageI18nQuery.php.txt b/documentation/api/files/Model/FolderImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderImageQuery.php.txt b/documentation/api/files/Model/FolderImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderQuery.php.txt b/documentation/api/files/Model/FolderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderVersion.php.txt b/documentation/api/files/Model/FolderVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/FolderVersionQuery.php.txt b/documentation/api/files/Model/FolderVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Group.php.txt b/documentation/api/files/Model/Group.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/GroupI18n.php.txt b/documentation/api/files/Model/GroupI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/GroupI18nQuery.php.txt b/documentation/api/files/Model/GroupI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/GroupModule.php.txt b/documentation/api/files/Model/GroupModule.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/GroupModuleQuery.php.txt b/documentation/api/files/Model/GroupModuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/GroupQuery.php.txt b/documentation/api/files/Model/GroupQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/GroupResource.php.txt b/documentation/api/files/Model/GroupResource.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/GroupResourceQuery.php.txt b/documentation/api/files/Model/GroupResourceQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Image.php.txt b/documentation/api/files/Model/Image.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ImageI18n.php.txt b/documentation/api/files/Model/ImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ImageI18nQuery.php.txt b/documentation/api/files/Model/ImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ImageQuery.php.txt b/documentation/api/files/Model/ImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Lang.php.txt b/documentation/api/files/Model/Lang.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/LangQuery.php.txt b/documentation/api/files/Model/LangQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AccessoryTableMap.php.txt b/documentation/api/files/Model/Map/AccessoryTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AddressTableMap.php.txt b/documentation/api/files/Model/Map/AddressTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AdminGroupTableMap.php.txt b/documentation/api/files/Model/Map/AdminGroupTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AdminLogTableMap.php.txt b/documentation/api/files/Model/Map/AdminLogTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AdminTableMap.php.txt b/documentation/api/files/Model/Map/AdminTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AreaTableMap.php.txt b/documentation/api/files/Model/Map/AreaTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AttributeAvI18nTableMap.php.txt b/documentation/api/files/Model/Map/AttributeAvI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AttributeAvTableMap.php.txt b/documentation/api/files/Model/Map/AttributeAvTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AttributeCategoryTableMap.php.txt b/documentation/api/files/Model/Map/AttributeCategoryTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AttributeCombinationTableMap.php.txt b/documentation/api/files/Model/Map/AttributeCombinationTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AttributeI18nTableMap.php.txt b/documentation/api/files/Model/Map/AttributeI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/AttributeTableMap.php.txt b/documentation/api/files/Model/Map/AttributeTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CartItemTableMap.php.txt b/documentation/api/files/Model/Map/CartItemTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CartTableMap.php.txt b/documentation/api/files/Model/Map/CartTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CategoryDocumentI18nTableMap.php.txt b/documentation/api/files/Model/Map/CategoryDocumentI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CategoryDocumentTableMap.php.txt b/documentation/api/files/Model/Map/CategoryDocumentTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CategoryI18nTableMap.php.txt b/documentation/api/files/Model/Map/CategoryI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CategoryImageI18nTableMap.php.txt b/documentation/api/files/Model/Map/CategoryImageI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CategoryImageTableMap.php.txt b/documentation/api/files/Model/Map/CategoryImageTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CategoryTableMap.php.txt b/documentation/api/files/Model/Map/CategoryTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CategoryVersionTableMap.php.txt b/documentation/api/files/Model/Map/CategoryVersionTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ConfigI18nTableMap.php.txt b/documentation/api/files/Model/Map/ConfigI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ConfigTableMap.php.txt b/documentation/api/files/Model/Map/ConfigTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentAssocTableMap.php.txt b/documentation/api/files/Model/Map/ContentAssocTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentDocumentI18nTableMap.php.txt b/documentation/api/files/Model/Map/ContentDocumentI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentDocumentTableMap.php.txt b/documentation/api/files/Model/Map/ContentDocumentTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentFolderTableMap.php.txt b/documentation/api/files/Model/Map/ContentFolderTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentI18nTableMap.php.txt b/documentation/api/files/Model/Map/ContentI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentImageI18nTableMap.php.txt b/documentation/api/files/Model/Map/ContentImageI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentImageTableMap.php.txt b/documentation/api/files/Model/Map/ContentImageTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentTableMap.php.txt b/documentation/api/files/Model/Map/ContentTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ContentVersionTableMap.php.txt b/documentation/api/files/Model/Map/ContentVersionTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CountryI18nTableMap.php.txt b/documentation/api/files/Model/Map/CountryI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CountryTableMap.php.txt b/documentation/api/files/Model/Map/CountryTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CouponOrderTableMap.php.txt b/documentation/api/files/Model/Map/CouponOrderTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CouponRuleTableMap.php.txt b/documentation/api/files/Model/Map/CouponRuleTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CouponTableMap.php.txt b/documentation/api/files/Model/Map/CouponTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CurrencyI18nTableMap.php.txt b/documentation/api/files/Model/Map/CurrencyI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CurrencyTableMap.php.txt b/documentation/api/files/Model/Map/CurrencyTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CustomerTableMap.php.txt b/documentation/api/files/Model/Map/CustomerTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CustomerTitleI18nTableMap.php.txt b/documentation/api/files/Model/Map/CustomerTitleI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/CustomerTitleTableMap.php.txt b/documentation/api/files/Model/Map/CustomerTitleTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/DelivzoneTableMap.php.txt b/documentation/api/files/Model/Map/DelivzoneTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/DocumentI18nTableMap.php.txt b/documentation/api/files/Model/Map/DocumentI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/DocumentTableMap.php.txt b/documentation/api/files/Model/Map/DocumentTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FeatureAvI18nTableMap.php.txt b/documentation/api/files/Model/Map/FeatureAvI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FeatureAvTableMap.php.txt b/documentation/api/files/Model/Map/FeatureAvTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FeatureCategoryTableMap.php.txt b/documentation/api/files/Model/Map/FeatureCategoryTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FeatureI18nTableMap.php.txt b/documentation/api/files/Model/Map/FeatureI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FeatureProductTableMap.php.txt b/documentation/api/files/Model/Map/FeatureProductTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FeatureTableMap.php.txt b/documentation/api/files/Model/Map/FeatureTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FolderDocumentI18nTableMap.php.txt b/documentation/api/files/Model/Map/FolderDocumentI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FolderDocumentTableMap.php.txt b/documentation/api/files/Model/Map/FolderDocumentTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FolderI18nTableMap.php.txt b/documentation/api/files/Model/Map/FolderI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FolderImageI18nTableMap.php.txt b/documentation/api/files/Model/Map/FolderImageI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FolderImageTableMap.php.txt b/documentation/api/files/Model/Map/FolderImageTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FolderTableMap.php.txt b/documentation/api/files/Model/Map/FolderTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/FolderVersionTableMap.php.txt b/documentation/api/files/Model/Map/FolderVersionTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/GroupI18nTableMap.php.txt b/documentation/api/files/Model/Map/GroupI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/GroupModuleTableMap.php.txt b/documentation/api/files/Model/Map/GroupModuleTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/GroupResourceTableMap.php.txt b/documentation/api/files/Model/Map/GroupResourceTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/GroupTableMap.php.txt b/documentation/api/files/Model/Map/GroupTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ImageI18nTableMap.php.txt b/documentation/api/files/Model/Map/ImageI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ImageTableMap.php.txt b/documentation/api/files/Model/Map/ImageTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/LangTableMap.php.txt b/documentation/api/files/Model/Map/LangTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/MessageI18nTableMap.php.txt b/documentation/api/files/Model/Map/MessageI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/MessageTableMap.php.txt b/documentation/api/files/Model/Map/MessageTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/MessageVersionTableMap.php.txt b/documentation/api/files/Model/Map/MessageVersionTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ModuleI18nTableMap.php.txt b/documentation/api/files/Model/Map/ModuleI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ModuleTableMap.php.txt b/documentation/api/files/Model/Map/ModuleTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/OrderAddressTableMap.php.txt b/documentation/api/files/Model/Map/OrderAddressTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/OrderFeatureTableMap.php.txt b/documentation/api/files/Model/Map/OrderFeatureTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/OrderProductTableMap.php.txt b/documentation/api/files/Model/Map/OrderProductTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/OrderStatusI18nTableMap.php.txt b/documentation/api/files/Model/Map/OrderStatusI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/OrderStatusTableMap.php.txt b/documentation/api/files/Model/Map/OrderStatusTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/OrderTableMap.php.txt b/documentation/api/files/Model/Map/OrderTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductCategoryTableMap.php.txt b/documentation/api/files/Model/Map/ProductCategoryTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductDocumentI18nTableMap.php.txt b/documentation/api/files/Model/Map/ProductDocumentI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductDocumentTableMap.php.txt b/documentation/api/files/Model/Map/ProductDocumentTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductI18nTableMap.php.txt b/documentation/api/files/Model/Map/ProductI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductPriceTableMap.php.txt b/documentation/api/files/Model/Map/ProductPriceTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductSaleElementsTableMap.php.txt b/documentation/api/files/Model/Map/ProductSaleElementsTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductTableMap.php.txt b/documentation/api/files/Model/Map/ProductTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProductVersionTableMap.php.txt b/documentation/api/files/Model/Map/ProductVersionTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProdutImageI18nTableMap.php.txt b/documentation/api/files/Model/Map/ProdutImageI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ProdutImageTableMap.php.txt b/documentation/api/files/Model/Map/ProdutImageTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ResourceI18nTableMap.php.txt b/documentation/api/files/Model/Map/ResourceI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/ResourceTableMap.php.txt b/documentation/api/files/Model/Map/ResourceTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/RewritingTableMap.php.txt b/documentation/api/files/Model/Map/RewritingTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/TaxI18nTableMap.php.txt b/documentation/api/files/Model/Map/TaxI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/TaxRuleCountryTableMap.php.txt b/documentation/api/files/Model/Map/TaxRuleCountryTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/TaxRuleI18nTableMap.php.txt b/documentation/api/files/Model/Map/TaxRuleI18nTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/TaxRuleTableMap.php.txt b/documentation/api/files/Model/Map/TaxRuleTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Map/TaxTableMap.php.txt b/documentation/api/files/Model/Map/TaxTableMap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Message.php.txt b/documentation/api/files/Model/Message.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/MessageI18n.php.txt b/documentation/api/files/Model/MessageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/MessageI18nQuery.php.txt b/documentation/api/files/Model/MessageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/MessageQuery.php.txt b/documentation/api/files/Model/MessageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/MessageVersion.php.txt b/documentation/api/files/Model/MessageVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/MessageVersionQuery.php.txt b/documentation/api/files/Model/MessageVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Module.php.txt b/documentation/api/files/Model/Module.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ModuleI18n.php.txt b/documentation/api/files/Model/ModuleI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ModuleI18nQuery.php.txt b/documentation/api/files/Model/ModuleI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ModuleQuery.php.txt b/documentation/api/files/Model/ModuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Order.php.txt b/documentation/api/files/Model/Order.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderAddress.php.txt b/documentation/api/files/Model/OrderAddress.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderAddressQuery.php.txt b/documentation/api/files/Model/OrderAddressQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderFeature.php.txt b/documentation/api/files/Model/OrderFeature.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderFeatureQuery.php.txt b/documentation/api/files/Model/OrderFeatureQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderProduct.php.txt b/documentation/api/files/Model/OrderProduct.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderProductQuery.php.txt b/documentation/api/files/Model/OrderProductQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderQuery.php.txt b/documentation/api/files/Model/OrderQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderStatus.php.txt b/documentation/api/files/Model/OrderStatus.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderStatusI18n.php.txt b/documentation/api/files/Model/OrderStatusI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderStatusI18nQuery.php.txt b/documentation/api/files/Model/OrderStatusI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/OrderStatusQuery.php.txt b/documentation/api/files/Model/OrderStatusQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Product.php.txt b/documentation/api/files/Model/Product.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductCategory.php.txt b/documentation/api/files/Model/ProductCategory.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductCategoryQuery.php.txt b/documentation/api/files/Model/ProductCategoryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductDocument.php.txt b/documentation/api/files/Model/ProductDocument.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductDocumentI18n.php.txt b/documentation/api/files/Model/ProductDocumentI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductDocumentI18nQuery.php.txt b/documentation/api/files/Model/ProductDocumentI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductDocumentQuery.php.txt b/documentation/api/files/Model/ProductDocumentQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductI18n.php.txt b/documentation/api/files/Model/ProductI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductI18nQuery.php.txt b/documentation/api/files/Model/ProductI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductPrice.php.txt b/documentation/api/files/Model/ProductPrice.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductPriceQuery.php.txt b/documentation/api/files/Model/ProductPriceQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductQuery.php.txt b/documentation/api/files/Model/ProductQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductSaleElements.php.txt b/documentation/api/files/Model/ProductSaleElements.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductSaleElementsQuery.php.txt b/documentation/api/files/Model/ProductSaleElementsQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductVersion.php.txt b/documentation/api/files/Model/ProductVersion.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProductVersionQuery.php.txt b/documentation/api/files/Model/ProductVersionQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProdutImage.php.txt b/documentation/api/files/Model/ProdutImage.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProdutImageI18n.php.txt b/documentation/api/files/Model/ProdutImageI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProdutImageI18nQuery.php.txt b/documentation/api/files/Model/ProdutImageI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ProdutImageQuery.php.txt b/documentation/api/files/Model/ProdutImageQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Resource.php.txt b/documentation/api/files/Model/Resource.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ResourceI18n.php.txt b/documentation/api/files/Model/ResourceI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ResourceI18nQuery.php.txt b/documentation/api/files/Model/ResourceI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/ResourceQuery.php.txt b/documentation/api/files/Model/ResourceQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Rewriting.php.txt b/documentation/api/files/Model/Rewriting.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/RewritingQuery.php.txt b/documentation/api/files/Model/RewritingQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/Tax.php.txt b/documentation/api/files/Model/Tax.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxI18n.php.txt b/documentation/api/files/Model/TaxI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxI18nQuery.php.txt b/documentation/api/files/Model/TaxI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxQuery.php.txt b/documentation/api/files/Model/TaxQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxRule.php.txt b/documentation/api/files/Model/TaxRule.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxRuleCountry.php.txt b/documentation/api/files/Model/TaxRuleCountry.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxRuleCountryQuery.php.txt b/documentation/api/files/Model/TaxRuleCountryQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxRuleI18n.php.txt b/documentation/api/files/Model/TaxRuleI18n.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxRuleI18nQuery.php.txt b/documentation/api/files/Model/TaxRuleI18nQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Model/TaxRuleQuery.php.txt b/documentation/api/files/Model/TaxRuleQuery.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Module.BaseModule.php.html b/documentation/api/files/Module.BaseModule.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Module/BaseModule.php.txt b/documentation/api/files/Module/BaseModule.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Routing.Matcher.DefaultMatcher.php.html b/documentation/api/files/Routing.Matcher.DefaultMatcher.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Routing.NullUrlGenerator.php.html b/documentation/api/files/Routing.NullUrlGenerator.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Routing.TheliaMatcherCollection.php.html b/documentation/api/files/Routing.TheliaMatcherCollection.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Routing/Matcher/DefaultMatcher.php.txt b/documentation/api/files/Routing/Matcher/DefaultMatcher.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Routing/NullUrlGenerator.php.txt b/documentation/api/files/Routing/NullUrlGenerator.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Routing/TheliaMatcherCollection.php.txt b/documentation/api/files/Routing/TheliaMatcherCollection.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Action.CartTest.php.html b/documentation/api/files/Tests.Action.CartTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Command.BaseCommandTest.php.html b/documentation/api/files/Tests.Command.BaseCommandTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Command.CacheClearTest.php.html b/documentation/api/files/Tests.Command.CacheClearTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Command.ModuleGenerateCommandTest.php.html b/documentation/api/files/Tests.Command.ModuleGenerateCommandTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Controller.DefaultControllerTest.php.html b/documentation/api/files/Tests.Controller.DefaultControllerTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.HttpFoundation.RequestTest.php.html b/documentation/api/files/Tests.Core.HttpFoundation.RequestTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.HttpFoundation.Session.SessionTest.php.html b/documentation/api/files/Tests.Core.HttpFoundation.Session.SessionTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Element.BaseLoopTestor.php.html b/documentation/api/files/Tests.Core.Template.Element.BaseLoopTestor.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.AccessoryTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.AccessoryTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.AddressTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.AddressTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.Argument.ArgumentCollectionTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.Argument.ArgumentCollectionTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.CategoryTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.CategoryTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.ContentTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.ContentTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.CountryTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.CountryTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.CustomerTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.CustomerTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.FeatureAvailableTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.FeatureAvailableTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.FeatureTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.FeatureTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.FeatureValueTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.FeatureValueTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.FolderTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.FolderTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.ProductTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.ProductTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Core.Template.Loop.TitleTest.php.html b/documentation/api/files/Tests.Core.Template.Loop.TitleTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Fixtures.Dumper.Config.Empty.php.html b/documentation/api/files/Tests.Fixtures.Dumper.Config.Empty.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Form.CartAddTest.php.html b/documentation/api/files/Tests.Form.CartAddTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Log.TlogTest.php.html b/documentation/api/files/Tests.Log.TlogTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.AlphaNumStringListTypeTest.php.html b/documentation/api/files/Tests.Type.AlphaNumStringListTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.AlphaNumStringTypeTest.php.html b/documentation/api/files/Tests.Type.AlphaNumStringTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.AnyTypeTest.php.html b/documentation/api/files/Tests.Type.AnyTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.BooleanTypeTest.php.html b/documentation/api/files/Tests.Type.BooleanTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.EnumListTypeTest.php.html b/documentation/api/files/Tests.Type.EnumListTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.EnumTypeTest.php.html b/documentation/api/files/Tests.Type.EnumTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.FloatTypeTest.php.html b/documentation/api/files/Tests.Type.FloatTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.IntListTypeTest.php.html b/documentation/api/files/Tests.Type.IntListTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.IntToCombinedIntsListTypeTest.php.html b/documentation/api/files/Tests.Type.IntToCombinedIntsListTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.IntToCombinedStringsListTypeTest.php.html b/documentation/api/files/Tests.Type.IntToCombinedStringsListTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.IntTypeTest.php.html b/documentation/api/files/Tests.Type.IntTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.JsonTypeTest.php.html b/documentation/api/files/Tests.Type.JsonTypeTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.Type.TypeCollectionTest.php.html b/documentation/api/files/Tests.Type.TypeCollectionTest.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests.bootstrap.php.html b/documentation/api/files/Tests.bootstrap.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Action/CartTest.php.txt b/documentation/api/files/Tests/Action/CartTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Command/BaseCommandTest.php.txt b/documentation/api/files/Tests/Command/BaseCommandTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Command/CacheClearTest.php.txt b/documentation/api/files/Tests/Command/CacheClearTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Command/ModuleGenerateCommandTest.php.txt b/documentation/api/files/Tests/Command/ModuleGenerateCommandTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Controller/DefaultControllerTest.php.txt b/documentation/api/files/Tests/Controller/DefaultControllerTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/HttpFoundation/RequestTest.php.txt b/documentation/api/files/Tests/Core/HttpFoundation/RequestTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/HttpFoundation/Session/SessionTest.php.txt b/documentation/api/files/Tests/Core/HttpFoundation/Session/SessionTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Element/BaseLoopTestor.php.txt b/documentation/api/files/Tests/Core/Template/Element/BaseLoopTestor.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/AccessoryTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/AccessoryTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/AddressTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/AddressTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/Argument/ArgumentCollectionTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/Argument/ArgumentCollectionTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/CategoryTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/CategoryTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/ContentTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/ContentTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/CountryTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/CountryTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/CustomerTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/CustomerTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/FeatureAvailableTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/FeatureAvailableTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/FeatureTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/FeatureTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/FeatureValueTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/FeatureValueTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/FolderTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/FolderTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/ProductTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/ProductTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Core/Template/Loop/TitleTest.php.txt b/documentation/api/files/Tests/Core/Template/Loop/TitleTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Fixtures/Dumper/Config/Empty.php.txt b/documentation/api/files/Tests/Fixtures/Dumper/Config/Empty.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Form/CartAddTest.php.txt b/documentation/api/files/Tests/Form/CartAddTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Log/TlogTest.php.txt b/documentation/api/files/Tests/Log/TlogTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/AlphaNumStringListTypeTest.php.txt b/documentation/api/files/Tests/Type/AlphaNumStringListTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/AlphaNumStringTypeTest.php.txt b/documentation/api/files/Tests/Type/AlphaNumStringTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/AnyTypeTest.php.txt b/documentation/api/files/Tests/Type/AnyTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/BooleanTypeTest.php.txt b/documentation/api/files/Tests/Type/BooleanTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/EnumListTypeTest.php.txt b/documentation/api/files/Tests/Type/EnumListTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/EnumTypeTest.php.txt b/documentation/api/files/Tests/Type/EnumTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/FloatTypeTest.php.txt b/documentation/api/files/Tests/Type/FloatTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/IntListTypeTest.php.txt b/documentation/api/files/Tests/Type/IntListTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/IntToCombinedIntsListTypeTest.php.txt b/documentation/api/files/Tests/Type/IntToCombinedIntsListTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/IntToCombinedStringsListTypeTest.php.txt b/documentation/api/files/Tests/Type/IntToCombinedStringsListTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/IntTypeTest.php.txt b/documentation/api/files/Tests/Type/IntTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/JsonTypeTest.php.txt b/documentation/api/files/Tests/Type/JsonTypeTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/Type/TypeCollectionTest.php.txt b/documentation/api/files/Tests/Type/TypeCollectionTest.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tests/bootstrap.php.txt b/documentation/api/files/Tests/bootstrap.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tools.DIGenerator.php.html b/documentation/api/files/Tools.DIGenerator.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tools.Redirect.php.html b/documentation/api/files/Tools.Redirect.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tools.URL.php.html b/documentation/api/files/Tools.URL.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tools/DIGenerator.php.txt b/documentation/api/files/Tools/DIGenerator.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tools/Redirect.php.txt b/documentation/api/files/Tools/Redirect.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Tools/URL.php.txt b/documentation/api/files/Tools/URL.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.AlphaNumStringListType.php.html b/documentation/api/files/Type.AlphaNumStringListType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.AlphaNumStringType.php.html b/documentation/api/files/Type.AlphaNumStringType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.AnyType.php.html b/documentation/api/files/Type.AnyType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.BooleanOrBothType.php.html b/documentation/api/files/Type.BooleanOrBothType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.BooleanType.php.html b/documentation/api/files/Type.BooleanType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.EnumListType.php.html b/documentation/api/files/Type.EnumListType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.EnumType.php.html b/documentation/api/files/Type.EnumType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.FloatType.php.html b/documentation/api/files/Type.FloatType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.IntListType.php.html b/documentation/api/files/Type.IntListType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.IntToCombinedIntsListType.php.html b/documentation/api/files/Type.IntToCombinedIntsListType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.IntToCombinedStringsListType.php.html b/documentation/api/files/Type.IntToCombinedStringsListType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.IntType.php.html b/documentation/api/files/Type.IntType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.JsonType.php.html b/documentation/api/files/Type.JsonType.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.TypeCollection.php.html b/documentation/api/files/Type.TypeCollection.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type.TypeInterface.php.html b/documentation/api/files/Type.TypeInterface.php.html old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/AlphaNumStringListType.php.txt b/documentation/api/files/Type/AlphaNumStringListType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/AlphaNumStringType.php.txt b/documentation/api/files/Type/AlphaNumStringType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/AnyType.php.txt b/documentation/api/files/Type/AnyType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/BooleanOrBothType.php.txt b/documentation/api/files/Type/BooleanOrBothType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/BooleanType.php.txt b/documentation/api/files/Type/BooleanType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/EnumListType.php.txt b/documentation/api/files/Type/EnumListType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/EnumType.php.txt b/documentation/api/files/Type/EnumType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/FloatType.php.txt b/documentation/api/files/Type/FloatType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/IntListType.php.txt b/documentation/api/files/Type/IntListType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/IntToCombinedIntsListType.php.txt b/documentation/api/files/Type/IntToCombinedIntsListType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/IntToCombinedStringsListType.php.txt b/documentation/api/files/Type/IntToCombinedStringsListType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/IntType.php.txt b/documentation/api/files/Type/IntType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/JsonType.php.txt b/documentation/api/files/Type/JsonType.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/TypeCollection.php.txt b/documentation/api/files/Type/TypeCollection.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/files/Type/TypeInterface.php.txt b/documentation/api/files/Type/TypeInterface.php.txt old mode 100644 new mode 100755 diff --git a/documentation/api/graphs/class.html b/documentation/api/graphs/class.html old mode 100644 new mode 100755 diff --git a/documentation/api/graphs/classes.svg b/documentation/api/graphs/classes.svg old mode 100644 new mode 100755 diff --git a/documentation/api/images/custom-icons.svg b/documentation/api/images/custom-icons.svg old mode 100644 new mode 100755 diff --git a/documentation/api/images/hierarchy-item.png b/documentation/api/images/hierarchy-item.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/icon-class-13x13.png b/documentation/api/images/icon-class-13x13.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/icon-class.svg b/documentation/api/images/icon-class.svg old mode 100644 new mode 100755 diff --git a/documentation/api/images/icon-interface-13x13.png b/documentation/api/images/icon-interface-13x13.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/icon-interface.svg b/documentation/api/images/icon-interface.svg old mode 100644 new mode 100755 diff --git a/documentation/api/images/icon-trait-13x13.png b/documentation/api/images/icon-trait-13x13.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/icon-trait.svg b/documentation/api/images/icon-trait.svg old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/grab.cur b/documentation/api/images/iviewer/grab.cur old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/hand.cur b/documentation/api/images/iviewer/hand.cur old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/iviewer.rotate_left.png b/documentation/api/images/iviewer/iviewer.rotate_left.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/iviewer.rotate_right.png b/documentation/api/images/iviewer/iviewer.rotate_right.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/iviewer.zoom_fit.png b/documentation/api/images/iviewer/iviewer.zoom_fit.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/iviewer.zoom_in.png b/documentation/api/images/iviewer/iviewer.zoom_in.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/iviewer.zoom_out.png b/documentation/api/images/iviewer/iviewer.zoom_out.png old mode 100644 new mode 100755 diff --git a/documentation/api/images/iviewer/iviewer.zoom_zero.png b/documentation/api/images/iviewer/iviewer.zoom_zero.png old mode 100644 new mode 100755 diff --git a/documentation/api/index.html b/documentation/api/index.html old mode 100644 new mode 100755 diff --git a/documentation/api/js/jquery.dotdotdot-1.5.9.js b/documentation/api/js/jquery.dotdotdot-1.5.9.js old mode 100644 new mode 100755 diff --git a/documentation/api/js/jquery.dotdotdot-1.5.9.min.js b/documentation/api/js/jquery.dotdotdot-1.5.9.min.js old mode 100644 new mode 100755 diff --git a/documentation/api/js/jquery.iviewer.js b/documentation/api/js/jquery.iviewer.js old mode 100644 new mode 100755 diff --git a/documentation/api/js/jquery.iviewer.min.js b/documentation/api/js/jquery.iviewer.min.js old mode 100644 new mode 100755 diff --git a/documentation/api/js/jquery.smooth-scroll.js b/documentation/api/js/jquery.smooth-scroll.js old mode 100644 new mode 100755 diff --git a/documentation/api/js/prism.min.js b/documentation/api/js/prism.min.js old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Action.Exception.html b/documentation/api/namespaces/Thelia.Action.Exception.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Action.html b/documentation/api/namespaces/Thelia.Action.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Admin.Controller.html b/documentation/api/namespaces/Thelia.Admin.Controller.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Admin.html b/documentation/api/namespaces/Thelia.Admin.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Cart.html b/documentation/api/namespaces/Thelia.Cart.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Command.Output.html b/documentation/api/namespaces/Thelia.Command.Output.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Command.html b/documentation/api/namespaces/Thelia.Command.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Config.html b/documentation/api/namespaces/Thelia.Config.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Controller.Admin.html b/documentation/api/namespaces/Thelia.Controller.Admin.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Controller.Front.html b/documentation/api/namespaces/Thelia.Controller.Front.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Controller.html b/documentation/api/namespaces/Thelia.Controller.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Bundle.html b/documentation/api/namespaces/Thelia.Core.Bundle.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Controller.html b/documentation/api/namespaces/Thelia.Core.Controller.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.DependencyInjection.Compiler.html b/documentation/api/namespaces/Thelia.Core.DependencyInjection.Compiler.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.DependencyInjection.Loader.html b/documentation/api/namespaces/Thelia.Core.DependencyInjection.Loader.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.DependencyInjection.html b/documentation/api/namespaces/Thelia.Core.DependencyInjection.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Event.Internal.html b/documentation/api/namespaces/Thelia.Core.Event.Internal.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Event.html b/documentation/api/namespaces/Thelia.Core.Event.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.EventListener.html b/documentation/api/namespaces/Thelia.Core.EventListener.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Factory.html b/documentation/api/namespaces/Thelia.Core.Factory.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.HttpFoundation.Session.html b/documentation/api/namespaces/Thelia.Core.HttpFoundation.Session.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.HttpFoundation.html b/documentation/api/namespaces/Thelia.Core.HttpFoundation.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Security.Authentication.html b/documentation/api/namespaces/Thelia.Core.Security.Authentication.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Security.Exception.html b/documentation/api/namespaces/Thelia.Core.Security.Exception.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Security.Role.html b/documentation/api/namespaces/Thelia.Core.Security.Role.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Security.User.html b/documentation/api/namespaces/Thelia.Core.Security.User.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Security.UserProvider.html b/documentation/api/namespaces/Thelia.Core.Security.UserProvider.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Security.html b/documentation/api/namespaces/Thelia.Core.Security.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Assets.html b/documentation/api/namespaces/Thelia.Core.Template.Assets.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Element.Exception.html b/documentation/api/namespaces/Thelia.Core.Template.Element.Exception.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Element.html b/documentation/api/namespaces/Thelia.Core.Template.Element.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Exception.html b/documentation/api/namespaces/Thelia.Core.Template.Exception.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Loop.Argument.html b/documentation/api/namespaces/Thelia.Core.Template.Loop.Argument.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Loop.html b/documentation/api/namespaces/Thelia.Core.Template.Loop.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Smarty.Assets.html b/documentation/api/namespaces/Thelia.Core.Template.Smarty.Assets.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Smarty.Plugins.html b/documentation/api/namespaces/Thelia.Core.Template.Smarty.Plugins.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.Smarty.html b/documentation/api/namespaces/Thelia.Core.Template.Smarty.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Template.html b/documentation/api/namespaces/Thelia.Core.Template.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.Translation.html b/documentation/api/namespaces/Thelia.Core.Translation.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Core.html b/documentation/api/namespaces/Thelia.Core.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Exception.html b/documentation/api/namespaces/Thelia.Exception.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Form.Exception.html b/documentation/api/namespaces/Thelia.Form.Exception.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Form.html b/documentation/api/namespaces/Thelia.Form.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Log.Destination.html b/documentation/api/namespaces/Thelia.Log.Destination.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Log.html b/documentation/api/namespaces/Thelia.Log.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Model.Base.html b/documentation/api/namespaces/Thelia.Model.Base.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Model.Map.html b/documentation/api/namespaces/Thelia.Model.Map.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Model.html b/documentation/api/namespaces/Thelia.Model.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Module.html b/documentation/api/namespaces/Thelia.Module.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Routing.Matcher.html b/documentation/api/namespaces/Thelia.Routing.Matcher.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Routing.html b/documentation/api/namespaces/Thelia.Routing.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Action.html b/documentation/api/namespaces/Thelia.Tests.Action.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Command.html b/documentation/api/namespaces/Thelia.Tests.Command.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Controller.html b/documentation/api/namespaces/Thelia.Tests.Controller.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Core.HttpFoundation.Session.html b/documentation/api/namespaces/Thelia.Tests.Core.HttpFoundation.Session.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Core.HttpFoundation.html b/documentation/api/namespaces/Thelia.Tests.Core.HttpFoundation.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Core.Template.Element.html b/documentation/api/namespaces/Thelia.Tests.Core.Template.Element.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Core.Template.Loop.Argument.html b/documentation/api/namespaces/Thelia.Tests.Core.Template.Loop.Argument.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Core.Template.Loop.html b/documentation/api/namespaces/Thelia.Tests.Core.Template.Loop.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Core.Template.html b/documentation/api/namespaces/Thelia.Tests.Core.Template.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Core.html b/documentation/api/namespaces/Thelia.Tests.Core.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Form.html b/documentation/api/namespaces/Thelia.Tests.Form.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Log.html b/documentation/api/namespaces/Thelia.Tests.Log.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.Type.html b/documentation/api/namespaces/Thelia.Tests.Type.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tests.html b/documentation/api/namespaces/Thelia.Tests.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Tools.html b/documentation/api/namespaces/Thelia.Tools.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.Type.html b/documentation/api/namespaces/Thelia.Type.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/Thelia.html b/documentation/api/namespaces/Thelia.html old mode 100644 new mode 100755 diff --git a/documentation/api/namespaces/default.html b/documentation/api/namespaces/default.html old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-00/phpdoc-cache-file_007c3bb64d311faf7b3af44f513afd49.dat b/documentation/api/phpdoc-cache-00/phpdoc-cache-file_007c3bb64d311faf7b3af44f513afd49.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-02/phpdoc-cache-file_8589c108990567af521e7b3e51f77d8a.dat b/documentation/api/phpdoc-cache-02/phpdoc-cache-file_8589c108990567af521e7b3e51f77d8a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-02/phpdoc-cache-file_c2ccd8cde1815369a971dd2d774a0aa0.dat b/documentation/api/phpdoc-cache-02/phpdoc-cache-file_c2ccd8cde1815369a971dd2d774a0aa0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-02/phpdoc-cache-file_f7de1bcdc77f5b83713f7f3e93219e70.dat b/documentation/api/phpdoc-cache-02/phpdoc-cache-file_f7de1bcdc77f5b83713f7f3e93219e70.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-03/phpdoc-cache-file_edb862076d215e36dfca0891f00fc575.dat b/documentation/api/phpdoc-cache-03/phpdoc-cache-file_edb862076d215e36dfca0891f00fc575.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-04/phpdoc-cache-file_02a4cd7773a663b82b05fdb6ab9748de.dat b/documentation/api/phpdoc-cache-04/phpdoc-cache-file_02a4cd7773a663b82b05fdb6ab9748de.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-04/phpdoc-cache-file_cd2041a3024f3db333cc5dc6930bba3b.dat b/documentation/api/phpdoc-cache-04/phpdoc-cache-file_cd2041a3024f3db333cc5dc6930bba3b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-05/phpdoc-cache-file_48335b8369f8c636f866ba3a78c0f2e7.dat b/documentation/api/phpdoc-cache-05/phpdoc-cache-file_48335b8369f8c636f866ba3a78c0f2e7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-05/phpdoc-cache-file_8733bf9c10c8c5d0ce0f2986f52af691.dat b/documentation/api/phpdoc-cache-05/phpdoc-cache-file_8733bf9c10c8c5d0ce0f2986f52af691.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-06/phpdoc-cache-file_66101ffbb95ea22acece75477b7c6995.dat b/documentation/api/phpdoc-cache-06/phpdoc-cache-file_66101ffbb95ea22acece75477b7c6995.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-07/phpdoc-cache-file_840be1506d7d8c9bc54aad3836e03123.dat b/documentation/api/phpdoc-cache-07/phpdoc-cache-file_840be1506d7d8c9bc54aad3836e03123.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-07/phpdoc-cache-file_8f65df88030079ab966184cbe3b51bb6.dat b/documentation/api/phpdoc-cache-07/phpdoc-cache-file_8f65df88030079ab966184cbe3b51bb6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-07/phpdoc-cache-file_b40aa4d6b97462338a43dfa8ef7e0ee4.dat b/documentation/api/phpdoc-cache-07/phpdoc-cache-file_b40aa4d6b97462338a43dfa8ef7e0ee4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-08/phpdoc-cache-file_1087120621c80fac3eb8b1f74ac8e198.dat b/documentation/api/phpdoc-cache-08/phpdoc-cache-file_1087120621c80fac3eb8b1f74ac8e198.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-08/phpdoc-cache-file_208bd17a2e490939724ebd6ac358068d.dat b/documentation/api/phpdoc-cache-08/phpdoc-cache-file_208bd17a2e490939724ebd6ac358068d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-08/phpdoc-cache-file_4ae0fdb79fcff88cd55b8b32b242ec1f.dat b/documentation/api/phpdoc-cache-08/phpdoc-cache-file_4ae0fdb79fcff88cd55b8b32b242ec1f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-08/phpdoc-cache-file_77bb00d82f83ed03f3a8dd8cfc57f9f8.dat b/documentation/api/phpdoc-cache-08/phpdoc-cache-file_77bb00d82f83ed03f3a8dd8cfc57f9f8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-09/phpdoc-cache-file_f03f85432c229c41192cf77386c6c0fe.dat b/documentation/api/phpdoc-cache-09/phpdoc-cache-file_f03f85432c229c41192cf77386c6c0fe.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0a/phpdoc-cache-file_ec74aa3c754aab4aa58521fb2102d3b0.dat b/documentation/api/phpdoc-cache-0a/phpdoc-cache-file_ec74aa3c754aab4aa58521fb2102d3b0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0b/phpdoc-cache-file_32c9f993ba4d278f85efbdac57d30c1b.dat b/documentation/api/phpdoc-cache-0b/phpdoc-cache-file_32c9f993ba4d278f85efbdac57d30c1b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0b/phpdoc-cache-file_9c72276e4908e46c0dec9978b8b5cddb.dat b/documentation/api/phpdoc-cache-0b/phpdoc-cache-file_9c72276e4908e46c0dec9978b8b5cddb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0c/phpdoc-cache-file_4b8812e4b5893c77f56c77b4244cc938.dat b/documentation/api/phpdoc-cache-0c/phpdoc-cache-file_4b8812e4b5893c77f56c77b4244cc938.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0c/phpdoc-cache-file_e360bebb106038147f90bf36e8194297.dat b/documentation/api/phpdoc-cache-0c/phpdoc-cache-file_e360bebb106038147f90bf36e8194297.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0d/phpdoc-cache-file_0ac3d73432ee6c86992d5ce1aa0a67fe.dat b/documentation/api/phpdoc-cache-0d/phpdoc-cache-file_0ac3d73432ee6c86992d5ce1aa0a67fe.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0e/phpdoc-cache-file_1fd70654fce80b0cf821bb92f22100cf.dat b/documentation/api/phpdoc-cache-0e/phpdoc-cache-file_1fd70654fce80b0cf821bb92f22100cf.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_164c99e0c1ede045082637b4c747b436.dat b/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_164c99e0c1ede045082637b4c747b436.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_1953985a3525df93e823df8b44d4968c.dat b/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_1953985a3525df93e823df8b44d4968c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_1b08c470dd5373a284c3d48f4db96b6f.dat b/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_1b08c470dd5373a284c3d48f4db96b6f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_59f22dc3c945aad705920f7ca4f24bb1.dat b/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_59f22dc3c945aad705920f7ca4f24bb1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_73436a3bfabf5f0bd98a790f42f54aeb.dat b/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_73436a3bfabf5f0bd98a790f42f54aeb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_b726bad3b6173152da2c4adc230a6ed4.dat b/documentation/api/phpdoc-cache-0f/phpdoc-cache-file_b726bad3b6173152da2c4adc230a6ed4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-10/phpdoc-cache-file_06cf5c3cb19b3ad30571950d2d303ed9.dat b/documentation/api/phpdoc-cache-10/phpdoc-cache-file_06cf5c3cb19b3ad30571950d2d303ed9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-10/phpdoc-cache-file_1baa6542d148740a50a83f2e03494b29.dat b/documentation/api/phpdoc-cache-10/phpdoc-cache-file_1baa6542d148740a50a83f2e03494b29.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-10/phpdoc-cache-file_4c972dd78ef8615a8fe7064206c0f7da.dat b/documentation/api/phpdoc-cache-10/phpdoc-cache-file_4c972dd78ef8615a8fe7064206c0f7da.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-12/phpdoc-cache-file_423bcb863236e25b6968be0f947839b1.dat b/documentation/api/phpdoc-cache-12/phpdoc-cache-file_423bcb863236e25b6968be0f947839b1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-12/phpdoc-cache-file_67da6e2c41cb6983c153c5bbc0a4844f.dat b/documentation/api/phpdoc-cache-12/phpdoc-cache-file_67da6e2c41cb6983c153c5bbc0a4844f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-12/phpdoc-cache-file_73cb9bcdb5fb3f022e87b077ce42cae8.dat b/documentation/api/phpdoc-cache-12/phpdoc-cache-file_73cb9bcdb5fb3f022e87b077ce42cae8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-12/phpdoc-cache-file_7ea795bdfba26bfd84728522e727320f.dat b/documentation/api/phpdoc-cache-12/phpdoc-cache-file_7ea795bdfba26bfd84728522e727320f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-12/phpdoc-cache-file_c22215188659362a17f2908e7bea8f11.dat b/documentation/api/phpdoc-cache-12/phpdoc-cache-file_c22215188659362a17f2908e7bea8f11.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-12/phpdoc-cache-file_dc149dc573e50faeb3da9859cf04a31f.dat b/documentation/api/phpdoc-cache-12/phpdoc-cache-file_dc149dc573e50faeb3da9859cf04a31f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-13/phpdoc-cache-file_7fe91ec10843f4507f7878a39358cffa.dat b/documentation/api/phpdoc-cache-13/phpdoc-cache-file_7fe91ec10843f4507f7878a39358cffa.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-13/phpdoc-cache-file_ab126bb3cedc6631c061cdc45a714a7f.dat b/documentation/api/phpdoc-cache-13/phpdoc-cache-file_ab126bb3cedc6631c061cdc45a714a7f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-13/phpdoc-cache-file_cae089a89773b716bb85d15995252fbc.dat b/documentation/api/phpdoc-cache-13/phpdoc-cache-file_cae089a89773b716bb85d15995252fbc.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-14/phpdoc-cache-file_4f877978a45801d997d90a5d3da160b6.dat b/documentation/api/phpdoc-cache-14/phpdoc-cache-file_4f877978a45801d997d90a5d3da160b6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-15/phpdoc-cache-file_2968679d28f091e8e25cc2d6629cba72.dat b/documentation/api/phpdoc-cache-15/phpdoc-cache-file_2968679d28f091e8e25cc2d6629cba72.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-15/phpdoc-cache-file_30b7c0c468e4270820a643e5e3172315.dat b/documentation/api/phpdoc-cache-15/phpdoc-cache-file_30b7c0c468e4270820a643e5e3172315.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-15/phpdoc-cache-file_fa141169cb764ede53895215c4e997c7.dat b/documentation/api/phpdoc-cache-15/phpdoc-cache-file_fa141169cb764ede53895215c4e997c7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-16/phpdoc-cache-file_531f6a305c9b5209cb92f43e46aed9cf.dat b/documentation/api/phpdoc-cache-16/phpdoc-cache-file_531f6a305c9b5209cb92f43e46aed9cf.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-17/phpdoc-cache-file_7bd387ca0421c7f530846cadcf1bea6a.dat b/documentation/api/phpdoc-cache-17/phpdoc-cache-file_7bd387ca0421c7f530846cadcf1bea6a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-17/phpdoc-cache-file_b7e7e6ae2684542e2bda3ece4b5fa5ab.dat b/documentation/api/phpdoc-cache-17/phpdoc-cache-file_b7e7e6ae2684542e2bda3ece4b5fa5ab.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-17/phpdoc-cache-file_d6a6fd7136d2e923ce15ed7e477baa38.dat b/documentation/api/phpdoc-cache-17/phpdoc-cache-file_d6a6fd7136d2e923ce15ed7e477baa38.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-17/phpdoc-cache-file_ee683e3cb66277371bc07d2ba84c1096.dat b/documentation/api/phpdoc-cache-17/phpdoc-cache-file_ee683e3cb66277371bc07d2ba84c1096.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-18/phpdoc-cache-file_507af5c21bb4729f82f85d2926ceb2e6.dat b/documentation/api/phpdoc-cache-18/phpdoc-cache-file_507af5c21bb4729f82f85d2926ceb2e6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-19/phpdoc-cache-file_80bb084a9ac24fef0aad41d552d44060.dat b/documentation/api/phpdoc-cache-19/phpdoc-cache-file_80bb084a9ac24fef0aad41d552d44060.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-19/phpdoc-cache-file_99d45f67f71899aaa011dae5dfd1566d.dat b/documentation/api/phpdoc-cache-19/phpdoc-cache-file_99d45f67f71899aaa011dae5dfd1566d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-19/phpdoc-cache-file_a1906975ed27c393f6370235e8fe70b0.dat b/documentation/api/phpdoc-cache-19/phpdoc-cache-file_a1906975ed27c393f6370235e8fe70b0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-19/phpdoc-cache-file_a34477249b33d356d065d88ccf51f23c.dat b/documentation/api/phpdoc-cache-19/phpdoc-cache-file_a34477249b33d356d065d88ccf51f23c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_36a45ae21b2286e24f024fc1c7ea0dfd.dat b/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_36a45ae21b2286e24f024fc1c7ea0dfd.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_3c60e4659d050b83d7173736fc3b5f77.dat b/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_3c60e4659d050b83d7173736fc3b5f77.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_59978404987ed54acf4cc76f2b48b7a6.dat b/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_59978404987ed54acf4cc76f2b48b7a6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_67f5bd0deefac5b00b28e543a627ea47.dat b/documentation/api/phpdoc-cache-1a/phpdoc-cache-file_67f5bd0deefac5b00b28e543a627ea47.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1b/phpdoc-cache-file_4d20bc7eb9ad54b1d733b74befe924e6.dat b/documentation/api/phpdoc-cache-1b/phpdoc-cache-file_4d20bc7eb9ad54b1d733b74befe924e6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1b/phpdoc-cache-file_e65b95377ea4c4ea92a57a2e5c717620.dat b/documentation/api/phpdoc-cache-1b/phpdoc-cache-file_e65b95377ea4c4ea92a57a2e5c717620.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_02461ab4bff7e55c78be52904bd814d8.dat b/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_02461ab4bff7e55c78be52904bd814d8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_29b974f93e66f6b73f52244b873a3e85.dat b/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_29b974f93e66f6b73f52244b873a3e85.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_773f12d16ed908ede73f44ddce19db65.dat b/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_773f12d16ed908ede73f44ddce19db65.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_a96865c39bddc33e0ab9178fe41e8e17.dat b/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_a96865c39bddc33e0ab9178fe41e8e17.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_bd0039f0dfa541ab496a516455fddb42.dat b/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_bd0039f0dfa541ab496a516455fddb42.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_df271d40fe931f2ed7754699e5113a51.dat b/documentation/api/phpdoc-cache-1c/phpdoc-cache-file_df271d40fe931f2ed7754699e5113a51.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1d/phpdoc-cache-file_4e6834ff0d6bfd276fe52f839c4e78c5.dat b/documentation/api/phpdoc-cache-1d/phpdoc-cache-file_4e6834ff0d6bfd276fe52f839c4e78c5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1e/phpdoc-cache-file_98568985671f54f738e1237e393ac22f.dat b/documentation/api/phpdoc-cache-1e/phpdoc-cache-file_98568985671f54f738e1237e393ac22f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1e/phpdoc-cache-file_d0bf2d740951391509068ba511a81ad0.dat b/documentation/api/phpdoc-cache-1e/phpdoc-cache-file_d0bf2d740951391509068ba511a81ad0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1f/phpdoc-cache-file_37ca6ce2671c4b5f0c8f195df142e378.dat b/documentation/api/phpdoc-cache-1f/phpdoc-cache-file_37ca6ce2671c4b5f0c8f195df142e378.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-1f/phpdoc-cache-file_d4f2322e4dcbaeff436119bc10697f65.dat b/documentation/api/phpdoc-cache-1f/phpdoc-cache-file_d4f2322e4dcbaeff436119bc10697f65.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-20/phpdoc-cache-file_1407349aca3f4c5d53d5befec592caa9.dat b/documentation/api/phpdoc-cache-20/phpdoc-cache-file_1407349aca3f4c5d53d5befec592caa9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-21/phpdoc-cache-file_52ce923e6b4998502161cf828bd5a39d.dat b/documentation/api/phpdoc-cache-21/phpdoc-cache-file_52ce923e6b4998502161cf828bd5a39d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-21/phpdoc-cache-file_831cdab47dac8b6418e883e3477dd810.dat b/documentation/api/phpdoc-cache-21/phpdoc-cache-file_831cdab47dac8b6418e883e3477dd810.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-21/phpdoc-cache-file_a3643b212d0a35c0dafbee9c2bbe2c11.dat b/documentation/api/phpdoc-cache-21/phpdoc-cache-file_a3643b212d0a35c0dafbee9c2bbe2c11.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-21/phpdoc-cache-file_f4dd18e43673dba0e0d930dabbfaad08.dat b/documentation/api/phpdoc-cache-21/phpdoc-cache-file_f4dd18e43673dba0e0d930dabbfaad08.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-22/phpdoc-cache-file_50455407091e0a655f60dbfd28627d3b.dat b/documentation/api/phpdoc-cache-22/phpdoc-cache-file_50455407091e0a655f60dbfd28627d3b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-23/phpdoc-cache-file_bb601b902eab32eab68ccfe659714f60.dat b/documentation/api/phpdoc-cache-23/phpdoc-cache-file_bb601b902eab32eab68ccfe659714f60.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-23/phpdoc-cache-file_c2727613ef905fe3bf2394dd4064989c.dat b/documentation/api/phpdoc-cache-23/phpdoc-cache-file_c2727613ef905fe3bf2394dd4064989c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-23/phpdoc-cache-file_dd1515b731bf5f596dea2529995c8c37.dat b/documentation/api/phpdoc-cache-23/phpdoc-cache-file_dd1515b731bf5f596dea2529995c8c37.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-24/phpdoc-cache-file_21fd455767b56da0500558fc4bec6024.dat b/documentation/api/phpdoc-cache-24/phpdoc-cache-file_21fd455767b56da0500558fc4bec6024.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-24/phpdoc-cache-file_7b7c9713299ccd370c77d697e78975ee.dat b/documentation/api/phpdoc-cache-24/phpdoc-cache-file_7b7c9713299ccd370c77d697e78975ee.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-24/phpdoc-cache-file_8945e6f19cbb53975f8dce632694d79a.dat b/documentation/api/phpdoc-cache-24/phpdoc-cache-file_8945e6f19cbb53975f8dce632694d79a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-25/phpdoc-cache-file_7b74bbbe5860b5fec52777afba38dd78.dat b/documentation/api/phpdoc-cache-25/phpdoc-cache-file_7b74bbbe5860b5fec52777afba38dd78.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-25/phpdoc-cache-file_e44cc026fcfd792097262bda1a800098.dat b/documentation/api/phpdoc-cache-25/phpdoc-cache-file_e44cc026fcfd792097262bda1a800098.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-26/phpdoc-cache-file_95085cec3ddf840cd10bf047b4c9bb9d.dat b/documentation/api/phpdoc-cache-26/phpdoc-cache-file_95085cec3ddf840cd10bf047b4c9bb9d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-26/phpdoc-cache-file_f18be6cd94bba60c70b6aea8897b0239.dat b/documentation/api/phpdoc-cache-26/phpdoc-cache-file_f18be6cd94bba60c70b6aea8897b0239.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-27/phpdoc-cache-file_1fe662cdc4d18bd6c94ab663d92e94e0.dat b/documentation/api/phpdoc-cache-27/phpdoc-cache-file_1fe662cdc4d18bd6c94ab663d92e94e0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-27/phpdoc-cache-file_621f2f1f2160bd61bf05e92f18e198c7.dat b/documentation/api/phpdoc-cache-27/phpdoc-cache-file_621f2f1f2160bd61bf05e92f18e198c7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-27/phpdoc-cache-file_c8d56734f26182bfc343d385509dbf36.dat b/documentation/api/phpdoc-cache-27/phpdoc-cache-file_c8d56734f26182bfc343d385509dbf36.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-27/phpdoc-cache-file_dd5311952ac8196e65a7154ec49202c2.dat b/documentation/api/phpdoc-cache-27/phpdoc-cache-file_dd5311952ac8196e65a7154ec49202c2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-28/phpdoc-cache-file_15fe61575f4b045fe41f59bb774a7aeb.dat b/documentation/api/phpdoc-cache-28/phpdoc-cache-file_15fe61575f4b045fe41f59bb774a7aeb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-29/phpdoc-cache-file_02dd5dae8e728c66fe37fed835d9e348.dat b/documentation/api/phpdoc-cache-29/phpdoc-cache-file_02dd5dae8e728c66fe37fed835d9e348.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-29/phpdoc-cache-file_48bacfcec9625a8580f225df6721433b.dat b/documentation/api/phpdoc-cache-29/phpdoc-cache-file_48bacfcec9625a8580f225df6721433b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-29/phpdoc-cache-file_8695f5c1695266654f954b19f299387c.dat b/documentation/api/phpdoc-cache-29/phpdoc-cache-file_8695f5c1695266654f954b19f299387c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-29/phpdoc-cache-file_8d35e6f1a7c14516f5a19304b19992b3.dat b/documentation/api/phpdoc-cache-29/phpdoc-cache-file_8d35e6f1a7c14516f5a19304b19992b3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2a/phpdoc-cache-file_bb8d810efef76d8db959dca267fbc9d9.dat b/documentation/api/phpdoc-cache-2a/phpdoc-cache-file_bb8d810efef76d8db959dca267fbc9d9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2a/phpdoc-cache-file_ca908c374d2f2ecc3236a94c8011c35d.dat b/documentation/api/phpdoc-cache-2a/phpdoc-cache-file_ca908c374d2f2ecc3236a94c8011c35d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2b/phpdoc-cache-file_2445887c23e1b3d59f9936abeb432127.dat b/documentation/api/phpdoc-cache-2b/phpdoc-cache-file_2445887c23e1b3d59f9936abeb432127.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2b/phpdoc-cache-file_60dd690c80263fe8d28dd847fd07da73.dat b/documentation/api/phpdoc-cache-2b/phpdoc-cache-file_60dd690c80263fe8d28dd847fd07da73.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_2c67dd9f089fca588c4b8b4e895e8628.dat b/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_2c67dd9f089fca588c4b8b4e895e8628.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_361e1ee3c27fba2fde7dcd156ac28fb0.dat b/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_361e1ee3c27fba2fde7dcd156ac28fb0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_3f2741113a12e7bb574b83317809ba33.dat b/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_3f2741113a12e7bb574b83317809ba33.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_51086854c847b9ec2d50a77686234b81.dat b/documentation/api/phpdoc-cache-2c/phpdoc-cache-file_51086854c847b9ec2d50a77686234b81.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2d/phpdoc-cache-file_1f93744d93b78eb6c619bfbc761344be.dat b/documentation/api/phpdoc-cache-2d/phpdoc-cache-file_1f93744d93b78eb6c619bfbc761344be.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2d/phpdoc-cache-file_6aba8510bc7f4d875891ad4819aa376b.dat b/documentation/api/phpdoc-cache-2d/phpdoc-cache-file_6aba8510bc7f4d875891ad4819aa376b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2d/phpdoc-cache-file_f816a59a2f82130c8adb740763c4e548.dat b/documentation/api/phpdoc-cache-2d/phpdoc-cache-file_f816a59a2f82130c8adb740763c4e548.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2e/phpdoc-cache-file_7aa13b7eba8dd2bd8d9ecee0a643f082.dat b/documentation/api/phpdoc-cache-2e/phpdoc-cache-file_7aa13b7eba8dd2bd8d9ecee0a643f082.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2e/phpdoc-cache-settings.dat b/documentation/api/phpdoc-cache-2e/phpdoc-cache-settings.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2f/phpdoc-cache-file_4afd599eaa00115b935ed1b044755808.dat b/documentation/api/phpdoc-cache-2f/phpdoc-cache-file_4afd599eaa00115b935ed1b044755808.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-2f/phpdoc-cache-file_f509d00b04775677b329f6729ece572a.dat b/documentation/api/phpdoc-cache-2f/phpdoc-cache-file_f509d00b04775677b329f6729ece572a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-30/phpdoc-cache-file_8c1ff7fb35b63f7cf70e0f1025a9b2ba.dat b/documentation/api/phpdoc-cache-30/phpdoc-cache-file_8c1ff7fb35b63f7cf70e0f1025a9b2ba.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-31/phpdoc-cache-file_5c03bb019f0bbd41e0bb75309b385fe3.dat b/documentation/api/phpdoc-cache-31/phpdoc-cache-file_5c03bb019f0bbd41e0bb75309b385fe3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-32/phpdoc-cache-file_08c2753b4aa20c2650c5e27642c08857.dat b/documentation/api/phpdoc-cache-32/phpdoc-cache-file_08c2753b4aa20c2650c5e27642c08857.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-32/phpdoc-cache-file_5a004db618d1bafd2af32491bd8415f3.dat b/documentation/api/phpdoc-cache-32/phpdoc-cache-file_5a004db618d1bafd2af32491bd8415f3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-34/phpdoc-cache-file_0b5365709d5df6e9b8beb295b8b26cdb.dat b/documentation/api/phpdoc-cache-34/phpdoc-cache-file_0b5365709d5df6e9b8beb295b8b26cdb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-35/phpdoc-cache-file_4b8584b86232dbe10b809043f80067d1.dat b/documentation/api/phpdoc-cache-35/phpdoc-cache-file_4b8584b86232dbe10b809043f80067d1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-35/phpdoc-cache-file_c53050672dec3c7cc6f0aa82db5e6f66.dat b/documentation/api/phpdoc-cache-35/phpdoc-cache-file_c53050672dec3c7cc6f0aa82db5e6f66.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-35/phpdoc-cache-file_e667b1d40a08f9c3aeb42a4086a7c148.dat b/documentation/api/phpdoc-cache-35/phpdoc-cache-file_e667b1d40a08f9c3aeb42a4086a7c148.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-36/phpdoc-cache-file_8e7f8af29de3c0b1f3aae137f8a4fcb8.dat b/documentation/api/phpdoc-cache-36/phpdoc-cache-file_8e7f8af29de3c0b1f3aae137f8a4fcb8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-36/phpdoc-cache-file_929deec305f7daa2ec3e98b0f2973296.dat b/documentation/api/phpdoc-cache-36/phpdoc-cache-file_929deec305f7daa2ec3e98b0f2973296.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-36/phpdoc-cache-file_db1ad7790e7ddeeb30139193fe15a738.dat b/documentation/api/phpdoc-cache-36/phpdoc-cache-file_db1ad7790e7ddeeb30139193fe15a738.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-36/phpdoc-cache-file_eeef8b34bcc831f976fb4a679edeaf4c.dat b/documentation/api/phpdoc-cache-36/phpdoc-cache-file_eeef8b34bcc831f976fb4a679edeaf4c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-37/phpdoc-cache-file_01945eb63621da198ea133cb2c31db18.dat b/documentation/api/phpdoc-cache-37/phpdoc-cache-file_01945eb63621da198ea133cb2c31db18.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-37/phpdoc-cache-file_e968649f343e6eb73d73b6b2c5fa3e9d.dat b/documentation/api/phpdoc-cache-37/phpdoc-cache-file_e968649f343e6eb73d73b6b2c5fa3e9d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-38/phpdoc-cache-file_572937fb780d222a81ec291c3a718470.dat b/documentation/api/phpdoc-cache-38/phpdoc-cache-file_572937fb780d222a81ec291c3a718470.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-38/phpdoc-cache-file_7012e16c28cc8468c8f9c97cb92a2cbc.dat b/documentation/api/phpdoc-cache-38/phpdoc-cache-file_7012e16c28cc8468c8f9c97cb92a2cbc.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-38/phpdoc-cache-file_cae3d55a8b7b920d987831809f30606c.dat b/documentation/api/phpdoc-cache-38/phpdoc-cache-file_cae3d55a8b7b920d987831809f30606c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-39/phpdoc-cache-file_0e55c82c8f24d31f29833d13ca937c95.dat b/documentation/api/phpdoc-cache-39/phpdoc-cache-file_0e55c82c8f24d31f29833d13ca937c95.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-39/phpdoc-cache-file_0fffc67309db0616d8e64f3093654dd2.dat b/documentation/api/phpdoc-cache-39/phpdoc-cache-file_0fffc67309db0616d8e64f3093654dd2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-39/phpdoc-cache-file_1759208252c5a8cddd7bf97662060c8f.dat b/documentation/api/phpdoc-cache-39/phpdoc-cache-file_1759208252c5a8cddd7bf97662060c8f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3a/phpdoc-cache-file_4f324c3b3e8c722f4a97d067498eb523.dat b/documentation/api/phpdoc-cache-3a/phpdoc-cache-file_4f324c3b3e8c722f4a97d067498eb523.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3a/phpdoc-cache-file_875b6ad60bdec7e9e3a2cac66c86ea22.dat b/documentation/api/phpdoc-cache-3a/phpdoc-cache-file_875b6ad60bdec7e9e3a2cac66c86ea22.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3b/phpdoc-cache-file_7cba0d65d2f9727acd550f4551721f19.dat b/documentation/api/phpdoc-cache-3b/phpdoc-cache-file_7cba0d65d2f9727acd550f4551721f19.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3b/phpdoc-cache-file_85428d79270bc404df8964bb529e11fa.dat b/documentation/api/phpdoc-cache-3b/phpdoc-cache-file_85428d79270bc404df8964bb529e11fa.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3c/phpdoc-cache-file_0ac46febcf0125f97386e77a8a2a91c4.dat b/documentation/api/phpdoc-cache-3c/phpdoc-cache-file_0ac46febcf0125f97386e77a8a2a91c4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3c/phpdoc-cache-file_57113206de58a1540b20e4f120b67737.dat b/documentation/api/phpdoc-cache-3c/phpdoc-cache-file_57113206de58a1540b20e4f120b67737.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3c/phpdoc-cache-file_5f3211fc39ea0c9ecadbedf10b8392cd.dat b/documentation/api/phpdoc-cache-3c/phpdoc-cache-file_5f3211fc39ea0c9ecadbedf10b8392cd.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3d/phpdoc-cache-file_939af359fed33854bd55e59313ec017c.dat b/documentation/api/phpdoc-cache-3d/phpdoc-cache-file_939af359fed33854bd55e59313ec017c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3e/phpdoc-cache-file_b30147217e7b1416de259cc9437862a9.dat b/documentation/api/phpdoc-cache-3e/phpdoc-cache-file_b30147217e7b1416de259cc9437862a9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3f/phpdoc-cache-file_8dc0c675a50d37c914d613688bb41282.dat b/documentation/api/phpdoc-cache-3f/phpdoc-cache-file_8dc0c675a50d37c914d613688bb41282.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-3f/phpdoc-cache-file_bb563eb45c4f2e24300cb3e60e3d4fb4.dat b/documentation/api/phpdoc-cache-3f/phpdoc-cache-file_bb563eb45c4f2e24300cb3e60e3d4fb4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-40/phpdoc-cache-file_42ca860447ce9823266e46fe4f6124f1.dat b/documentation/api/phpdoc-cache-40/phpdoc-cache-file_42ca860447ce9823266e46fe4f6124f1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-40/phpdoc-cache-file_b7eeb3998815b9201a47695717a4a454.dat b/documentation/api/phpdoc-cache-40/phpdoc-cache-file_b7eeb3998815b9201a47695717a4a454.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-42/phpdoc-cache-file_123d8b223840af8148919d4c69a8b2a6.dat b/documentation/api/phpdoc-cache-42/phpdoc-cache-file_123d8b223840af8148919d4c69a8b2a6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-42/phpdoc-cache-file_95f0e5ccb39f3c662f429a034c82640e.dat b/documentation/api/phpdoc-cache-42/phpdoc-cache-file_95f0e5ccb39f3c662f429a034c82640e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-42/phpdoc-cache-file_a79a84c870cabe60a63adde7441011a3.dat b/documentation/api/phpdoc-cache-42/phpdoc-cache-file_a79a84c870cabe60a63adde7441011a3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-44/phpdoc-cache-file_01cbbc7c4eb44503b3da74307b73bc8d.dat b/documentation/api/phpdoc-cache-44/phpdoc-cache-file_01cbbc7c4eb44503b3da74307b73bc8d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-44/phpdoc-cache-file_9e4148f5fc7be5d87063372f34be5e8e.dat b/documentation/api/phpdoc-cache-44/phpdoc-cache-file_9e4148f5fc7be5d87063372f34be5e8e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-45/phpdoc-cache-file_66bc4cc40350ed3e372991dfbbae096d.dat b/documentation/api/phpdoc-cache-45/phpdoc-cache-file_66bc4cc40350ed3e372991dfbbae096d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-45/phpdoc-cache-file_ed8bc8f20100dfd4c1ce0b781d0d8329.dat b/documentation/api/phpdoc-cache-45/phpdoc-cache-file_ed8bc8f20100dfd4c1ce0b781d0d8329.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-46/phpdoc-cache-file_1aaa9749adc01012afc191807d0ad561.dat b/documentation/api/phpdoc-cache-46/phpdoc-cache-file_1aaa9749adc01012afc191807d0ad561.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-46/phpdoc-cache-file_38d2ac7e37e0095f630f80655817b59a.dat b/documentation/api/phpdoc-cache-46/phpdoc-cache-file_38d2ac7e37e0095f630f80655817b59a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-46/phpdoc-cache-file_441c6bf1033ddfea0fb2aead09b63404.dat b/documentation/api/phpdoc-cache-46/phpdoc-cache-file_441c6bf1033ddfea0fb2aead09b63404.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-46/phpdoc-cache-file_75598a10e7016adc5d21021a339e4b6f.dat b/documentation/api/phpdoc-cache-46/phpdoc-cache-file_75598a10e7016adc5d21021a339e4b6f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-46/phpdoc-cache-file_a19693104f5855c15d4739566baff9f1.dat b/documentation/api/phpdoc-cache-46/phpdoc-cache-file_a19693104f5855c15d4739566baff9f1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-47/phpdoc-cache-file_2235039af65e432259b672ffc380fa80.dat b/documentation/api/phpdoc-cache-47/phpdoc-cache-file_2235039af65e432259b672ffc380fa80.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-47/phpdoc-cache-file_26d96be15b5a73f07de633544b86376d.dat b/documentation/api/phpdoc-cache-47/phpdoc-cache-file_26d96be15b5a73f07de633544b86376d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-47/phpdoc-cache-file_859c20039edf434936c9b76319b0460c.dat b/documentation/api/phpdoc-cache-47/phpdoc-cache-file_859c20039edf434936c9b76319b0460c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-48/phpdoc-cache-file_8f9c815a7332d4be118b9f4097a6ddb6.dat b/documentation/api/phpdoc-cache-48/phpdoc-cache-file_8f9c815a7332d4be118b9f4097a6ddb6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-48/phpdoc-cache-file_9429081dfbf82a946a54913429d323b5.dat b/documentation/api/phpdoc-cache-48/phpdoc-cache-file_9429081dfbf82a946a54913429d323b5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-48/phpdoc-cache-file_d09f1d5ffe955119bab29517969925c2.dat b/documentation/api/phpdoc-cache-48/phpdoc-cache-file_d09f1d5ffe955119bab29517969925c2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-48/phpdoc-cache-file_eebf2420e7cf34fd64a6507d7f196ff5.dat b/documentation/api/phpdoc-cache-48/phpdoc-cache-file_eebf2420e7cf34fd64a6507d7f196ff5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_0cadb9d20d28153a565e22f7c36fa96b.dat b/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_0cadb9d20d28153a565e22f7c36fa96b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_0d5418e3f1eed6f768220bb7743a94c4.dat b/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_0d5418e3f1eed6f768220bb7743a94c4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_505df7811a76cb06c0cb657c6198489e.dat b/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_505df7811a76cb06c0cb657c6198489e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_edb58f71697e487d5546e042206c9ece.dat b/documentation/api/phpdoc-cache-4a/phpdoc-cache-file_edb58f71697e487d5546e042206c9ece.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4b/phpdoc-cache-file_d52c3c75e3afa4ef3d398ccf1ab5c3b0.dat b/documentation/api/phpdoc-cache-4b/phpdoc-cache-file_d52c3c75e3afa4ef3d398ccf1ab5c3b0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4b/phpdoc-cache-file_f23750a6c724b476d1bdec98204665e7.dat b/documentation/api/phpdoc-cache-4b/phpdoc-cache-file_f23750a6c724b476d1bdec98204665e7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4c/phpdoc-cache-file_4c33517c4c8e46306fef4902293ecb25.dat b/documentation/api/phpdoc-cache-4c/phpdoc-cache-file_4c33517c4c8e46306fef4902293ecb25.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4c/phpdoc-cache-file_8486517b83c57b540c7714b1cb44d4f2.dat b/documentation/api/phpdoc-cache-4c/phpdoc-cache-file_8486517b83c57b540c7714b1cb44d4f2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4c/phpdoc-cache-file_e6834001eecd2e5b161783efb6d3491b.dat b/documentation/api/phpdoc-cache-4c/phpdoc-cache-file_e6834001eecd2e5b161783efb6d3491b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4d/phpdoc-cache-file_1fec36a976c3fa1ba384fb4b45930c1c.dat b/documentation/api/phpdoc-cache-4d/phpdoc-cache-file_1fec36a976c3fa1ba384fb4b45930c1c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4d/phpdoc-cache-file_85b63a47d3809a454e3e4c98c0a15437.dat b/documentation/api/phpdoc-cache-4d/phpdoc-cache-file_85b63a47d3809a454e3e4c98c0a15437.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4d/phpdoc-cache-file_9c16d7c73a5bbc17deb8b9b6e68cf648.dat b/documentation/api/phpdoc-cache-4d/phpdoc-cache-file_9c16d7c73a5bbc17deb8b9b6e68cf648.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_94ccf1d6684f73c94414e65b98169089.dat b/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_94ccf1d6684f73c94414e65b98169089.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_97b6e404c941066d5cf5faac3983f193.dat b/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_97b6e404c941066d5cf5faac3983f193.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_a1694f428590444860d4064d525ef639.dat b/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_a1694f428590444860d4064d525ef639.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_cf2ab36c6499c4ae6b0058951fe0d25a.dat b/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_cf2ab36c6499c4ae6b0058951fe0d25a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_ea4e13b8f387d12c5be8c250d28ea526.dat b/documentation/api/phpdoc-cache-4e/phpdoc-cache-file_ea4e13b8f387d12c5be8c250d28ea526.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4f/phpdoc-cache-file_4aa0043a6f6e59ba22ef64682ed7f564.dat b/documentation/api/phpdoc-cache-4f/phpdoc-cache-file_4aa0043a6f6e59ba22ef64682ed7f564.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-4f/phpdoc-cache-file_9a7a82cf9ac9ef872792b9630522e251.dat b/documentation/api/phpdoc-cache-4f/phpdoc-cache-file_9a7a82cf9ac9ef872792b9630522e251.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-50/phpdoc-cache-file_2127e4b2d7f182d9522a39862d2e807c.dat b/documentation/api/phpdoc-cache-50/phpdoc-cache-file_2127e4b2d7f182d9522a39862d2e807c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-50/phpdoc-cache-file_6fbe88ca313a70d065623e06ae529e76.dat b/documentation/api/phpdoc-cache-50/phpdoc-cache-file_6fbe88ca313a70d065623e06ae529e76.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-50/phpdoc-cache-file_9d58d2afe946e413c0eed006640a6866.dat b/documentation/api/phpdoc-cache-50/phpdoc-cache-file_9d58d2afe946e413c0eed006640a6866.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-50/phpdoc-cache-file_f315560c2b62e911bf9e0ea82129b62a.dat b/documentation/api/phpdoc-cache-50/phpdoc-cache-file_f315560c2b62e911bf9e0ea82129b62a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-51/phpdoc-cache-file_78a6fd35d72c4ce07a97b1e5f94efa4b.dat b/documentation/api/phpdoc-cache-51/phpdoc-cache-file_78a6fd35d72c4ce07a97b1e5f94efa4b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-51/phpdoc-cache-file_bc8a98d8b2e3998c8bdf760d087c5953.dat b/documentation/api/phpdoc-cache-51/phpdoc-cache-file_bc8a98d8b2e3998c8bdf760d087c5953.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-51/phpdoc-cache-file_bdf6c73265835d449f7e4af5b5584aff.dat b/documentation/api/phpdoc-cache-51/phpdoc-cache-file_bdf6c73265835d449f7e4af5b5584aff.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-51/phpdoc-cache-file_d9deda0854d4adede9546d5aa70f0eaf.dat b/documentation/api/phpdoc-cache-51/phpdoc-cache-file_d9deda0854d4adede9546d5aa70f0eaf.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-52/phpdoc-cache-file_530335ec2fe520add9953af88fa884f2.dat b/documentation/api/phpdoc-cache-52/phpdoc-cache-file_530335ec2fe520add9953af88fa884f2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-53/phpdoc-cache-file_22865500b18bb0a124dc6c4de4c940e0.dat b/documentation/api/phpdoc-cache-53/phpdoc-cache-file_22865500b18bb0a124dc6c4de4c940e0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-53/phpdoc-cache-file_3119dd633d014a6204cc390dee6fa0ff.dat b/documentation/api/phpdoc-cache-53/phpdoc-cache-file_3119dd633d014a6204cc390dee6fa0ff.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-53/phpdoc-cache-file_398da34afa0bda625b553d75fcfeba7e.dat b/documentation/api/phpdoc-cache-53/phpdoc-cache-file_398da34afa0bda625b553d75fcfeba7e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-54/phpdoc-cache-file_00bcb7fd610784652ab72aa8ce064b61.dat b/documentation/api/phpdoc-cache-54/phpdoc-cache-file_00bcb7fd610784652ab72aa8ce064b61.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-55/phpdoc-cache-file_7c678c104792ef7f012831d4fb13de2c.dat b/documentation/api/phpdoc-cache-55/phpdoc-cache-file_7c678c104792ef7f012831d4fb13de2c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-55/phpdoc-cache-file_9225ebe9bb9ef999ccb899f5364f4212.dat b/documentation/api/phpdoc-cache-55/phpdoc-cache-file_9225ebe9bb9ef999ccb899f5364f4212.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-55/phpdoc-cache-file_b603d24463c38765c8522c6beefaaaac.dat b/documentation/api/phpdoc-cache-55/phpdoc-cache-file_b603d24463c38765c8522c6beefaaaac.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-56/phpdoc-cache-file_28365dbe1bcb390ca3a02ba984c7fc31.dat b/documentation/api/phpdoc-cache-56/phpdoc-cache-file_28365dbe1bcb390ca3a02ba984c7fc31.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-56/phpdoc-cache-file_6292586be9cf0e0bc04f26a91fe489c1.dat b/documentation/api/phpdoc-cache-56/phpdoc-cache-file_6292586be9cf0e0bc04f26a91fe489c1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-56/phpdoc-cache-file_eaed19941419976e58ee573158f507f4.dat b/documentation/api/phpdoc-cache-56/phpdoc-cache-file_eaed19941419976e58ee573158f507f4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-57/phpdoc-cache-file_1c33b6a68f33d75274d716e68fd174ce.dat b/documentation/api/phpdoc-cache-57/phpdoc-cache-file_1c33b6a68f33d75274d716e68fd174ce.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-58/phpdoc-cache-file_31019a58ad48296cf4f703bec4e99d82.dat b/documentation/api/phpdoc-cache-58/phpdoc-cache-file_31019a58ad48296cf4f703bec4e99d82.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-58/phpdoc-cache-file_e16ec0554937329680c5f06889868866.dat b/documentation/api/phpdoc-cache-58/phpdoc-cache-file_e16ec0554937329680c5f06889868866.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-58/phpdoc-cache-file_f6925b5850f62ffec5cbdd630fcf5898.dat b/documentation/api/phpdoc-cache-58/phpdoc-cache-file_f6925b5850f62ffec5cbdd630fcf5898.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-59/phpdoc-cache-file_a7aecce5140d618367b61aee094902e4.dat b/documentation/api/phpdoc-cache-59/phpdoc-cache-file_a7aecce5140d618367b61aee094902e4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-59/phpdoc-cache-file_cde944c6714ba3b5ae790780cf5237cf.dat b/documentation/api/phpdoc-cache-59/phpdoc-cache-file_cde944c6714ba3b5ae790780cf5237cf.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5a/phpdoc-cache-file_3346cebf7a1b1b3a3b069a25a1f926ae.dat b/documentation/api/phpdoc-cache-5a/phpdoc-cache-file_3346cebf7a1b1b3a3b069a25a1f926ae.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5a/phpdoc-cache-file_7e158744c9ccbcaf8dc9c14485fee811.dat b/documentation/api/phpdoc-cache-5a/phpdoc-cache-file_7e158744c9ccbcaf8dc9c14485fee811.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5b/phpdoc-cache-file_2f210e244ba149b71efc1a7c3152a890.dat b/documentation/api/phpdoc-cache-5b/phpdoc-cache-file_2f210e244ba149b71efc1a7c3152a890.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5b/phpdoc-cache-file_661c4b5746a49da8b034c59431a7dcd3.dat b/documentation/api/phpdoc-cache-5b/phpdoc-cache-file_661c4b5746a49da8b034c59431a7dcd3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5b/phpdoc-cache-file_c5627f7b20af3024f4425626fd7c75d5.dat b/documentation/api/phpdoc-cache-5b/phpdoc-cache-file_c5627f7b20af3024f4425626fd7c75d5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5c/phpdoc-cache-file_087703a029a89f30517c6c8359e13c8f.dat b/documentation/api/phpdoc-cache-5c/phpdoc-cache-file_087703a029a89f30517c6c8359e13c8f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5c/phpdoc-cache-file_344662206cd074a669ac843db53e3305.dat b/documentation/api/phpdoc-cache-5c/phpdoc-cache-file_344662206cd074a669ac843db53e3305.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5c/phpdoc-cache-file_b03b092aa2499d60b6cc7f4fd5b34118.dat b/documentation/api/phpdoc-cache-5c/phpdoc-cache-file_b03b092aa2499d60b6cc7f4fd5b34118.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5d/phpdoc-cache-file_6d556bfc5a045eda9bf22868754d5d76.dat b/documentation/api/phpdoc-cache-5d/phpdoc-cache-file_6d556bfc5a045eda9bf22868754d5d76.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5e/phpdoc-cache-file_9381588142738446e7428e19e0035788.dat b/documentation/api/phpdoc-cache-5e/phpdoc-cache-file_9381588142738446e7428e19e0035788.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5e/phpdoc-cache-file_d3bd63268c3656de487f901d28ad0271.dat b/documentation/api/phpdoc-cache-5e/phpdoc-cache-file_d3bd63268c3656de487f901d28ad0271.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5f/phpdoc-cache-file_0888919cfbc55694096d25115dc378a1.dat b/documentation/api/phpdoc-cache-5f/phpdoc-cache-file_0888919cfbc55694096d25115dc378a1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-5f/phpdoc-cache-file_82cdb4ec4e3b86fbd679f51cf0cdda49.dat b/documentation/api/phpdoc-cache-5f/phpdoc-cache-file_82cdb4ec4e3b86fbd679f51cf0cdda49.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-60/phpdoc-cache-file_23a457d8c1cd54c87497834ec4a78f7c.dat b/documentation/api/phpdoc-cache-60/phpdoc-cache-file_23a457d8c1cd54c87497834ec4a78f7c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-60/phpdoc-cache-file_37429137210373dd7acec17435894afe.dat b/documentation/api/phpdoc-cache-60/phpdoc-cache-file_37429137210373dd7acec17435894afe.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-60/phpdoc-cache-file_9ecf7bd21e4e1dfd0d7a86fbdbe1f43c.dat b/documentation/api/phpdoc-cache-60/phpdoc-cache-file_9ecf7bd21e4e1dfd0d7a86fbdbe1f43c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-60/phpdoc-cache-file_ae58586253dd8be2734458d8acdeeae2.dat b/documentation/api/phpdoc-cache-60/phpdoc-cache-file_ae58586253dd8be2734458d8acdeeae2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-61/phpdoc-cache-file_044478db75199f0d2332b999c4151f05.dat b/documentation/api/phpdoc-cache-61/phpdoc-cache-file_044478db75199f0d2332b999c4151f05.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-61/phpdoc-cache-file_4fb89e040ddf781c74362641247a4ade.dat b/documentation/api/phpdoc-cache-61/phpdoc-cache-file_4fb89e040ddf781c74362641247a4ade.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-62/phpdoc-cache-file_646677072a50251de7913a057e178f15.dat b/documentation/api/phpdoc-cache-62/phpdoc-cache-file_646677072a50251de7913a057e178f15.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-62/phpdoc-cache-file_783c42ffc0edd491158a6e77c9d23f1a.dat b/documentation/api/phpdoc-cache-62/phpdoc-cache-file_783c42ffc0edd491158a6e77c9d23f1a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-62/phpdoc-cache-file_cebacf89638be29edd1733d96a588749.dat b/documentation/api/phpdoc-cache-62/phpdoc-cache-file_cebacf89638be29edd1733d96a588749.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-63/phpdoc-cache-file_5cae61c42aac8a8fa3c6442f92b90466.dat b/documentation/api/phpdoc-cache-63/phpdoc-cache-file_5cae61c42aac8a8fa3c6442f92b90466.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-63/phpdoc-cache-file_6a28f48216bb12b9a54edb3909ead3c2.dat b/documentation/api/phpdoc-cache-63/phpdoc-cache-file_6a28f48216bb12b9a54edb3909ead3c2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-63/phpdoc-cache-file_ae07255c8219c83bc1163e7d99eaf436.dat b/documentation/api/phpdoc-cache-63/phpdoc-cache-file_ae07255c8219c83bc1163e7d99eaf436.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-63/phpdoc-cache-file_b03c480021e01ca902d9629a362ed93c.dat b/documentation/api/phpdoc-cache-63/phpdoc-cache-file_b03c480021e01ca902d9629a362ed93c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-64/phpdoc-cache-file_4b9b1f444116d364f7cc4d7567dbf4f0.dat b/documentation/api/phpdoc-cache-64/phpdoc-cache-file_4b9b1f444116d364f7cc4d7567dbf4f0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-64/phpdoc-cache-file_e9aa7453b8b155b579a19d6f4dcd6b3e.dat b/documentation/api/phpdoc-cache-64/phpdoc-cache-file_e9aa7453b8b155b579a19d6f4dcd6b3e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-64/phpdoc-cache-file_fae02e3620f0cbe41bd3324034c3eb5a.dat b/documentation/api/phpdoc-cache-64/phpdoc-cache-file_fae02e3620f0cbe41bd3324034c3eb5a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-65/phpdoc-cache-file_f0d004e5f62bfe6b0e85d410ffa79782.dat b/documentation/api/phpdoc-cache-65/phpdoc-cache-file_f0d004e5f62bfe6b0e85d410ffa79782.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-66/phpdoc-cache-file_23b20e60b800655d879c738b083944e5.dat b/documentation/api/phpdoc-cache-66/phpdoc-cache-file_23b20e60b800655d879c738b083944e5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-66/phpdoc-cache-file_72f284a31b43d885136ef84ccb0c9c4c.dat b/documentation/api/phpdoc-cache-66/phpdoc-cache-file_72f284a31b43d885136ef84ccb0c9c4c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-66/phpdoc-cache-file_b76b9256e2ca4f244a6d146c31549c59.dat b/documentation/api/phpdoc-cache-66/phpdoc-cache-file_b76b9256e2ca4f244a6d146c31549c59.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-66/phpdoc-cache-file_e4a71e35e291d2132b9e3e3494791fd9.dat b/documentation/api/phpdoc-cache-66/phpdoc-cache-file_e4a71e35e291d2132b9e3e3494791fd9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-67/phpdoc-cache-file_9994497e5cf1abcc35eb72fd690f6ed2.dat b/documentation/api/phpdoc-cache-67/phpdoc-cache-file_9994497e5cf1abcc35eb72fd690f6ed2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-67/phpdoc-cache-file_99dd1d75967c3702fac42102eb53b893.dat b/documentation/api/phpdoc-cache-67/phpdoc-cache-file_99dd1d75967c3702fac42102eb53b893.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-68/phpdoc-cache-file_6fade2c14a490d5d22971946e73922fe.dat b/documentation/api/phpdoc-cache-68/phpdoc-cache-file_6fade2c14a490d5d22971946e73922fe.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-69/phpdoc-cache-file_bd069686b3e1dc852fe8fe97cffa7aa1.dat b/documentation/api/phpdoc-cache-69/phpdoc-cache-file_bd069686b3e1dc852fe8fe97cffa7aa1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6a/phpdoc-cache-file_3ebaabe9f8be9e7f7037046e5c69736e.dat b/documentation/api/phpdoc-cache-6a/phpdoc-cache-file_3ebaabe9f8be9e7f7037046e5c69736e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6a/phpdoc-cache-file_d1d24b943d014d1b9ae959476c1d2227.dat b/documentation/api/phpdoc-cache-6a/phpdoc-cache-file_d1d24b943d014d1b9ae959476c1d2227.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6a/phpdoc-cache-file_f788cf3250df7ea6e762ce80f395fec9.dat b/documentation/api/phpdoc-cache-6a/phpdoc-cache-file_f788cf3250df7ea6e762ce80f395fec9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_1add7d876a7bb154185a23d9ae572ab1.dat b/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_1add7d876a7bb154185a23d9ae572ab1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_25b3e15b804b0a606039d9b1a0386014.dat b/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_25b3e15b804b0a606039d9b1a0386014.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_c2f3dc55c3496f01d50c9867d0f40dae.dat b/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_c2f3dc55c3496f01d50c9867d0f40dae.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_d769682eb1b116beca4bc4c5f63aac81.dat b/documentation/api/phpdoc-cache-6b/phpdoc-cache-file_d769682eb1b116beca4bc4c5f63aac81.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_301cb46a68a7a10aa4fb6c7906dac332.dat b/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_301cb46a68a7a10aa4fb6c7906dac332.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_61bd8ab8f5299f0d0d55db05ac1f10a4.dat b/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_61bd8ab8f5299f0d0d55db05ac1f10a4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_cf5ad683cf6869e9f7d8b61a19b70408.dat b/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_cf5ad683cf6869e9f7d8b61a19b70408.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_eb590228c72b69bc77a64ff8e1d82c54.dat b/documentation/api/phpdoc-cache-6c/phpdoc-cache-file_eb590228c72b69bc77a64ff8e1d82c54.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6d/phpdoc-cache-file_aaa2e5fe9dc377a45fc124d0683872e9.dat b/documentation/api/phpdoc-cache-6d/phpdoc-cache-file_aaa2e5fe9dc377a45fc124d0683872e9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6e/phpdoc-cache-file_260462198241213910b0a28734d305f9.dat b/documentation/api/phpdoc-cache-6e/phpdoc-cache-file_260462198241213910b0a28734d305f9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6e/phpdoc-cache-file_7d3a656edef4aace1cb70f9ff2c8e208.dat b/documentation/api/phpdoc-cache-6e/phpdoc-cache-file_7d3a656edef4aace1cb70f9ff2c8e208.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6e/phpdoc-cache-file_8efb6f8ae1e2bcbe92f4b960c07fb4c7.dat b/documentation/api/phpdoc-cache-6e/phpdoc-cache-file_8efb6f8ae1e2bcbe92f4b960c07fb4c7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6f/phpdoc-cache-file_53fb184cd1848a3f6dcc7661a3010a60.dat b/documentation/api/phpdoc-cache-6f/phpdoc-cache-file_53fb184cd1848a3f6dcc7661a3010a60.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-6f/phpdoc-cache-file_98c8ecc72c431ee96c3a17d64832621f.dat b/documentation/api/phpdoc-cache-6f/phpdoc-cache-file_98c8ecc72c431ee96c3a17d64832621f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-70/phpdoc-cache-file_4e363163bf12ff5b6b6d4caff8484be0.dat b/documentation/api/phpdoc-cache-70/phpdoc-cache-file_4e363163bf12ff5b6b6d4caff8484be0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-70/phpdoc-cache-file_c9d30b03429f742e8b46acd238c2c497.dat b/documentation/api/phpdoc-cache-70/phpdoc-cache-file_c9d30b03429f742e8b46acd238c2c497.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-71/phpdoc-cache-file_004f4fa87c8d81e762867c976e6fdfdd.dat b/documentation/api/phpdoc-cache-71/phpdoc-cache-file_004f4fa87c8d81e762867c976e6fdfdd.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-71/phpdoc-cache-file_1118c4e1130a70976b079a02f476e79d.dat b/documentation/api/phpdoc-cache-71/phpdoc-cache-file_1118c4e1130a70976b079a02f476e79d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-71/phpdoc-cache-file_a3b0ef1a0d4db44bd8c731404cdfb707.dat b/documentation/api/phpdoc-cache-71/phpdoc-cache-file_a3b0ef1a0d4db44bd8c731404cdfb707.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-71/phpdoc-cache-file_c4c6f83dce92ea81f660855ae883fc07.dat b/documentation/api/phpdoc-cache-71/phpdoc-cache-file_c4c6f83dce92ea81f660855ae883fc07.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-71/phpdoc-cache-file_fc8ab4e15deac93a9b136c054e5fe409.dat b/documentation/api/phpdoc-cache-71/phpdoc-cache-file_fc8ab4e15deac93a9b136c054e5fe409.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-72/phpdoc-cache-file_2aa2e8c285118b9ea0d30ca95a81578e.dat b/documentation/api/phpdoc-cache-72/phpdoc-cache-file_2aa2e8c285118b9ea0d30ca95a81578e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-73/phpdoc-cache-file_14bd9fbf5a6b280744de18d9604b5622.dat b/documentation/api/phpdoc-cache-73/phpdoc-cache-file_14bd9fbf5a6b280744de18d9604b5622.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-73/phpdoc-cache-file_36357f2e33182e0f363167a65b0adea0.dat b/documentation/api/phpdoc-cache-73/phpdoc-cache-file_36357f2e33182e0f363167a65b0adea0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-74/phpdoc-cache-file_99fdc8f69b07fa2b0f7883f9ace9ef66.dat b/documentation/api/phpdoc-cache-74/phpdoc-cache-file_99fdc8f69b07fa2b0f7883f9ace9ef66.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-74/phpdoc-cache-file_bcf202d8d69003802e96d29b3fb564e6.dat b/documentation/api/phpdoc-cache-74/phpdoc-cache-file_bcf202d8d69003802e96d29b3fb564e6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-75/phpdoc-cache-file_08bb8adf6352eb443e89dde64895e717.dat b/documentation/api/phpdoc-cache-75/phpdoc-cache-file_08bb8adf6352eb443e89dde64895e717.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-75/phpdoc-cache-file_e91d2a71312a05c5e812ed442269d149.dat b/documentation/api/phpdoc-cache-75/phpdoc-cache-file_e91d2a71312a05c5e812ed442269d149.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-75/phpdoc-cache-file_ebe1a62b12e3f770a703579aa9415d56.dat b/documentation/api/phpdoc-cache-75/phpdoc-cache-file_ebe1a62b12e3f770a703579aa9415d56.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-76/phpdoc-cache-file_d4326f35901f3874de2b52c3e80eb7bb.dat b/documentation/api/phpdoc-cache-76/phpdoc-cache-file_d4326f35901f3874de2b52c3e80eb7bb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-77/phpdoc-cache-file_a7d701149da8f224661e826e4c706423.dat b/documentation/api/phpdoc-cache-77/phpdoc-cache-file_a7d701149da8f224661e826e4c706423.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-77/phpdoc-cache-file_f5f8ad4050ebaf8413ef0fabf12f4215.dat b/documentation/api/phpdoc-cache-77/phpdoc-cache-file_f5f8ad4050ebaf8413ef0fabf12f4215.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-78/phpdoc-cache-file_97f299a2de3f8de55b69a8204b7fb756.dat b/documentation/api/phpdoc-cache-78/phpdoc-cache-file_97f299a2de3f8de55b69a8204b7fb756.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-78/phpdoc-cache-file_9c4853c806e3058b5aad7d384ac29dd7.dat b/documentation/api/phpdoc-cache-78/phpdoc-cache-file_9c4853c806e3058b5aad7d384ac29dd7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-78/phpdoc-cache-file_bd860e2530ba9df97e3d49eb3e113969.dat b/documentation/api/phpdoc-cache-78/phpdoc-cache-file_bd860e2530ba9df97e3d49eb3e113969.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-78/phpdoc-cache-file_cb3124c1f19c1b99b179b693f5f3dcd2.dat b/documentation/api/phpdoc-cache-78/phpdoc-cache-file_cb3124c1f19c1b99b179b693f5f3dcd2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-78/phpdoc-cache-file_eb8ff64c84538167041e698bd8d71185.dat b/documentation/api/phpdoc-cache-78/phpdoc-cache-file_eb8ff64c84538167041e698bd8d71185.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-79/phpdoc-cache-file_2d9cd54a5b15bc02e0ebca041c42057b.dat b/documentation/api/phpdoc-cache-79/phpdoc-cache-file_2d9cd54a5b15bc02e0ebca041c42057b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-79/phpdoc-cache-file_494a049f0a43abf5c7465e0a105b8288.dat b/documentation/api/phpdoc-cache-79/phpdoc-cache-file_494a049f0a43abf5c7465e0a105b8288.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7a/phpdoc-cache-file_561adfbc7f8d3175641257527b53993a.dat b/documentation/api/phpdoc-cache-7a/phpdoc-cache-file_561adfbc7f8d3175641257527b53993a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_2c33317ca3618a1dd8a8265364d23eca.dat b/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_2c33317ca3618a1dd8a8265364d23eca.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_3602c51d51eb359d8e2c2e73c01b6011.dat b/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_3602c51d51eb359d8e2c2e73c01b6011.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_45fd3555aacc6ea2fefb54c61223e346.dat b/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_45fd3555aacc6ea2fefb54c61223e346.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_8c07b0b33d3a27c1f0ecdf1885442122.dat b/documentation/api/phpdoc-cache-7b/phpdoc-cache-file_8c07b0b33d3a27c1f0ecdf1885442122.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_0b32f1478065256cbc0b4d2517b6af1f.dat b/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_0b32f1478065256cbc0b4d2517b6af1f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_691214fea2ed5a115190cc190b833066.dat b/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_691214fea2ed5a115190cc190b833066.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_b4ed467f04665b58b167fe629789ea14.dat b/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_b4ed467f04665b58b167fe629789ea14.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_c3e268101c0a6dd2ebb5d15104d97e1e.dat b/documentation/api/phpdoc-cache-7c/phpdoc-cache-file_c3e268101c0a6dd2ebb5d15104d97e1e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7d/phpdoc-cache-file_1016da6075d9754157994455a8ef102f.dat b/documentation/api/phpdoc-cache-7d/phpdoc-cache-file_1016da6075d9754157994455a8ef102f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7d/phpdoc-cache-file_38b8a2c3192b86246c7d68aaeac18cab.dat b/documentation/api/phpdoc-cache-7d/phpdoc-cache-file_38b8a2c3192b86246c7d68aaeac18cab.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7e/phpdoc-cache-file_67d9d118e24b201342b545f20384e0ab.dat b/documentation/api/phpdoc-cache-7e/phpdoc-cache-file_67d9d118e24b201342b545f20384e0ab.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7e/phpdoc-cache-file_73af8ff0d42d640f85a8c9e71fde84e5.dat b/documentation/api/phpdoc-cache-7e/phpdoc-cache-file_73af8ff0d42d640f85a8c9e71fde84e5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-7e/phpdoc-cache-file_ed020e517755fb973592d5ecf22b8ec6.dat b/documentation/api/phpdoc-cache-7e/phpdoc-cache-file_ed020e517755fb973592d5ecf22b8ec6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-80/phpdoc-cache-file_644f2a41fda7fd06100f0786402443b9.dat b/documentation/api/phpdoc-cache-80/phpdoc-cache-file_644f2a41fda7fd06100f0786402443b9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-80/phpdoc-cache-file_b3f39c9ccb11eedbb95716dad7c2e61f.dat b/documentation/api/phpdoc-cache-80/phpdoc-cache-file_b3f39c9ccb11eedbb95716dad7c2e61f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-81/phpdoc-cache-file_351c715541b3768b735616537edf3218.dat b/documentation/api/phpdoc-cache-81/phpdoc-cache-file_351c715541b3768b735616537edf3218.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-81/phpdoc-cache-file_a17b4d574787f1b578300b7667fc8524.dat b/documentation/api/phpdoc-cache-81/phpdoc-cache-file_a17b4d574787f1b578300b7667fc8524.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-81/phpdoc-cache-file_c4cda16260d7e3982ac111b5dcf32a3f.dat b/documentation/api/phpdoc-cache-81/phpdoc-cache-file_c4cda16260d7e3982ac111b5dcf32a3f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-82/phpdoc-cache-file_b463becbd7206e4f6ca7d5efc43a2a11.dat b/documentation/api/phpdoc-cache-82/phpdoc-cache-file_b463becbd7206e4f6ca7d5efc43a2a11.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-82/phpdoc-cache-file_b88f3d73101831f9d33205506f3a0a3b.dat b/documentation/api/phpdoc-cache-82/phpdoc-cache-file_b88f3d73101831f9d33205506f3a0a3b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-82/phpdoc-cache-file_e66020f7c2728bce96a786b7f43edff3.dat b/documentation/api/phpdoc-cache-82/phpdoc-cache-file_e66020f7c2728bce96a786b7f43edff3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-84/phpdoc-cache-file_547c8bb992ee4b27195900020bfdedd4.dat b/documentation/api/phpdoc-cache-84/phpdoc-cache-file_547c8bb992ee4b27195900020bfdedd4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-84/phpdoc-cache-file_ab90f294515a45f918687f68ab2907d4.dat b/documentation/api/phpdoc-cache-84/phpdoc-cache-file_ab90f294515a45f918687f68ab2907d4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-85/phpdoc-cache-file_3df0325d5d4498a501c1f8e74e7909bb.dat b/documentation/api/phpdoc-cache-85/phpdoc-cache-file_3df0325d5d4498a501c1f8e74e7909bb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-86/phpdoc-cache-file_4cc77a252ab61ede384be796a48c2cce.dat b/documentation/api/phpdoc-cache-86/phpdoc-cache-file_4cc77a252ab61ede384be796a48c2cce.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-86/phpdoc-cache-file_872b4c31e5de68247ca0689d04ffaf05.dat b/documentation/api/phpdoc-cache-86/phpdoc-cache-file_872b4c31e5de68247ca0689d04ffaf05.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-86/phpdoc-cache-file_c1ba15c322108f97e17c243af859ed08.dat b/documentation/api/phpdoc-cache-86/phpdoc-cache-file_c1ba15c322108f97e17c243af859ed08.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-87/phpdoc-cache-file_f61dacd1f4d1f89ee2fd262a17029b63.dat b/documentation/api/phpdoc-cache-87/phpdoc-cache-file_f61dacd1f4d1f89ee2fd262a17029b63.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-88/phpdoc-cache-file_122f27b817da714dc090e17e4f442932.dat b/documentation/api/phpdoc-cache-88/phpdoc-cache-file_122f27b817da714dc090e17e4f442932.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-88/phpdoc-cache-file_7e12a834d07230be85b2a31ef012a2d6.dat b/documentation/api/phpdoc-cache-88/phpdoc-cache-file_7e12a834d07230be85b2a31ef012a2d6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-89/phpdoc-cache-file_47d46dbd2df33a0c02ec6fff72f1d039.dat b/documentation/api/phpdoc-cache-89/phpdoc-cache-file_47d46dbd2df33a0c02ec6fff72f1d039.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-89/phpdoc-cache-file_4d831b567f897d0ad5c9a32d78f968e1.dat b/documentation/api/phpdoc-cache-89/phpdoc-cache-file_4d831b567f897d0ad5c9a32d78f968e1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-89/phpdoc-cache-file_9a7d2d99c354d3e16c0dab490693f402.dat b/documentation/api/phpdoc-cache-89/phpdoc-cache-file_9a7d2d99c354d3e16c0dab490693f402.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-89/phpdoc-cache-file_e80707747a9ea5f4e427edf62dc4f6db.dat b/documentation/api/phpdoc-cache-89/phpdoc-cache-file_e80707747a9ea5f4e427edf62dc4f6db.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-89/phpdoc-cache-file_efbce0d62301af0fc67b759974a1193d.dat b/documentation/api/phpdoc-cache-89/phpdoc-cache-file_efbce0d62301af0fc67b759974a1193d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8a/phpdoc-cache-file_6446c143d7122b1700e91b7554d2133c.dat b/documentation/api/phpdoc-cache-8a/phpdoc-cache-file_6446c143d7122b1700e91b7554d2133c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8a/phpdoc-cache-file_939ec9607a0458b5558b43a0eae631e0.dat b/documentation/api/phpdoc-cache-8a/phpdoc-cache-file_939ec9607a0458b5558b43a0eae631e0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8b/phpdoc-cache-file_4a3236ec830ef7b75e13e2d3629cd5f0.dat b/documentation/api/phpdoc-cache-8b/phpdoc-cache-file_4a3236ec830ef7b75e13e2d3629cd5f0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8b/phpdoc-cache-file_db5752a552fd2f9e8540614521796777.dat b/documentation/api/phpdoc-cache-8b/phpdoc-cache-file_db5752a552fd2f9e8540614521796777.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8b/phpdoc-cache-file_e53ea012d3060144d49042cff35b0d46.dat b/documentation/api/phpdoc-cache-8b/phpdoc-cache-file_e53ea012d3060144d49042cff35b0d46.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8c/phpdoc-cache-file_5f7d2fb5167bf2c4f53aa1d91e977338.dat b/documentation/api/phpdoc-cache-8c/phpdoc-cache-file_5f7d2fb5167bf2c4f53aa1d91e977338.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8c/phpdoc-cache-file_c014a968e73374dc83c23cc621215eb8.dat b/documentation/api/phpdoc-cache-8c/phpdoc-cache-file_c014a968e73374dc83c23cc621215eb8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8d/phpdoc-cache-file_12d31b8fcb019d56c40c34a0edc1cdd9.dat b/documentation/api/phpdoc-cache-8d/phpdoc-cache-file_12d31b8fcb019d56c40c34a0edc1cdd9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8d/phpdoc-cache-file_cc11acbd9507b895891f8794bcc60272.dat b/documentation/api/phpdoc-cache-8d/phpdoc-cache-file_cc11acbd9507b895891f8794bcc60272.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8e/phpdoc-cache-file_5f4b638db5b8661079f6ec73e1a20b0b.dat b/documentation/api/phpdoc-cache-8e/phpdoc-cache-file_5f4b638db5b8661079f6ec73e1a20b0b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8f/phpdoc-cache-file_79b741d7456aff1af98c1c812de8fb19.dat b/documentation/api/phpdoc-cache-8f/phpdoc-cache-file_79b741d7456aff1af98c1c812de8fb19.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-8f/phpdoc-cache-file_e60fa6c9aa0c146c8fff550c695bcb38.dat b/documentation/api/phpdoc-cache-8f/phpdoc-cache-file_e60fa6c9aa0c146c8fff550c695bcb38.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-90/phpdoc-cache-file_6750da92c24dd584c59d6cc57430661a.dat b/documentation/api/phpdoc-cache-90/phpdoc-cache-file_6750da92c24dd584c59d6cc57430661a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-90/phpdoc-cache-file_d3cc896236c7e3366d9adccc49180c1b.dat b/documentation/api/phpdoc-cache-90/phpdoc-cache-file_d3cc896236c7e3366d9adccc49180c1b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-91/phpdoc-cache-file_5cfa84803e40206f9a22d3826a6590bf.dat b/documentation/api/phpdoc-cache-91/phpdoc-cache-file_5cfa84803e40206f9a22d3826a6590bf.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-91/phpdoc-cache-file_874c69166888dcb75790509fc9bc7638.dat b/documentation/api/phpdoc-cache-91/phpdoc-cache-file_874c69166888dcb75790509fc9bc7638.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-92/phpdoc-cache-file_34aa294d03b2eac32b22a178224e7fd4.dat b/documentation/api/phpdoc-cache-92/phpdoc-cache-file_34aa294d03b2eac32b22a178224e7fd4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-92/phpdoc-cache-file_362c9c2ef451cc6966e4787fc57b4fb0.dat b/documentation/api/phpdoc-cache-92/phpdoc-cache-file_362c9c2ef451cc6966e4787fc57b4fb0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-93/phpdoc-cache-file_25242dae30811270802138c15458789c.dat b/documentation/api/phpdoc-cache-93/phpdoc-cache-file_25242dae30811270802138c15458789c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-93/phpdoc-cache-file_7f1ae55c4a23e04cc930637b4ef0e976.dat b/documentation/api/phpdoc-cache-93/phpdoc-cache-file_7f1ae55c4a23e04cc930637b4ef0e976.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-93/phpdoc-cache-file_b3be804a4031d5e4c671fbae5354ccaf.dat b/documentation/api/phpdoc-cache-93/phpdoc-cache-file_b3be804a4031d5e4c671fbae5354ccaf.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-93/phpdoc-cache-file_e77c4fa451e32a41bd4749e7cf066c29.dat b/documentation/api/phpdoc-cache-93/phpdoc-cache-file_e77c4fa451e32a41bd4749e7cf066c29.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-93/phpdoc-cache-file_fc6803db681a3ff66fc28a06778da1f0.dat b/documentation/api/phpdoc-cache-93/phpdoc-cache-file_fc6803db681a3ff66fc28a06778da1f0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-94/phpdoc-cache-file_f4f0873eb74837aee50942f160d118c1.dat b/documentation/api/phpdoc-cache-94/phpdoc-cache-file_f4f0873eb74837aee50942f160d118c1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-95/phpdoc-cache-file_c71ed59f358f6db859c5a1252150c744.dat b/documentation/api/phpdoc-cache-95/phpdoc-cache-file_c71ed59f358f6db859c5a1252150c744.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-95/phpdoc-cache-file_f312c17e13b5538730814011faa2fe1f.dat b/documentation/api/phpdoc-cache-95/phpdoc-cache-file_f312c17e13b5538730814011faa2fe1f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-95/phpdoc-cache-file_f68a2a9664b988c325f351caa090dcde.dat b/documentation/api/phpdoc-cache-95/phpdoc-cache-file_f68a2a9664b988c325f351caa090dcde.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-97/phpdoc-cache-file_f6eb325ce960ddfd53e35a4c5ac32dbd.dat b/documentation/api/phpdoc-cache-97/phpdoc-cache-file_f6eb325ce960ddfd53e35a4c5ac32dbd.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-98/phpdoc-cache-file_026f8c1fd0bfff804f1292955c8b25bb.dat b/documentation/api/phpdoc-cache-98/phpdoc-cache-file_026f8c1fd0bfff804f1292955c8b25bb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-98/phpdoc-cache-file_6a06debfa551e5cd1a7b635d0f782f88.dat b/documentation/api/phpdoc-cache-98/phpdoc-cache-file_6a06debfa551e5cd1a7b635d0f782f88.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-98/phpdoc-cache-file_d2c66070e2086545ad3dedc98163cb5c.dat b/documentation/api/phpdoc-cache-98/phpdoc-cache-file_d2c66070e2086545ad3dedc98163cb5c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-99/phpdoc-cache-file_0504e886a473f926a0ed77cd421ec188.dat b/documentation/api/phpdoc-cache-99/phpdoc-cache-file_0504e886a473f926a0ed77cd421ec188.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-99/phpdoc-cache-file_3e0324d13c24892aabdb33bf3d382ff0.dat b/documentation/api/phpdoc-cache-99/phpdoc-cache-file_3e0324d13c24892aabdb33bf3d382ff0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-99/phpdoc-cache-file_69c09a33b1e4f8ce8af6b1ae11c6f3aa.dat b/documentation/api/phpdoc-cache-99/phpdoc-cache-file_69c09a33b1e4f8ce8af6b1ae11c6f3aa.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-99/phpdoc-cache-file_8804c512e595d19d5bd3d87ecaff0183.dat b/documentation/api/phpdoc-cache-99/phpdoc-cache-file_8804c512e595d19d5bd3d87ecaff0183.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9a/phpdoc-cache-file_1db110392b2b3b84733102d8383ca60d.dat b/documentation/api/phpdoc-cache-9a/phpdoc-cache-file_1db110392b2b3b84733102d8383ca60d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9a/phpdoc-cache-file_34a9e84700b139d712cbed5391dcec00.dat b/documentation/api/phpdoc-cache-9a/phpdoc-cache-file_34a9e84700b139d712cbed5391dcec00.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9a/phpdoc-cache-file_dfe63b10500d23ed5b8609f61f1e0998.dat b/documentation/api/phpdoc-cache-9a/phpdoc-cache-file_dfe63b10500d23ed5b8609f61f1e0998.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_019d854bd2196e014f7372f5c390801b.dat b/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_019d854bd2196e014f7372f5c390801b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_33ef8f2ce476307e815bb23e882b8bff.dat b/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_33ef8f2ce476307e815bb23e882b8bff.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_7acd95a6ef16902cc4c1f3f90a227f5d.dat b/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_7acd95a6ef16902cc4c1f3f90a227f5d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_addd9425844f027d9380f2ba6904179e.dat b/documentation/api/phpdoc-cache-9b/phpdoc-cache-file_addd9425844f027d9380f2ba6904179e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_07520ff11b58e47194f8120b897b1908.dat b/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_07520ff11b58e47194f8120b897b1908.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_90a88cccaabe6d795994b920d0314408.dat b/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_90a88cccaabe6d795994b920d0314408.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_c8db83bfd4ecb1d7ac384a88031b207b.dat b/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_c8db83bfd4ecb1d7ac384a88031b207b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_f4d3d7cd56a0c0c96ffe9ebd02ca5be4.dat b/documentation/api/phpdoc-cache-9c/phpdoc-cache-file_f4d3d7cd56a0c0c96ffe9ebd02ca5be4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9d/phpdoc-cache-file_38f2b0a6909bf1d2befd5f3668be0d17.dat b/documentation/api/phpdoc-cache-9d/phpdoc-cache-file_38f2b0a6909bf1d2befd5f3668be0d17.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-9e/phpdoc-cache-file_b2c0d1e9ca93477e262ef6f1e1e8e0b1.dat b/documentation/api/phpdoc-cache-9e/phpdoc-cache-file_b2c0d1e9ca93477e262ef6f1e1e8e0b1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a0/phpdoc-cache-file_53264ec62bf09d2d105804fb0859d3b3.dat b/documentation/api/phpdoc-cache-a0/phpdoc-cache-file_53264ec62bf09d2d105804fb0859d3b3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a0/phpdoc-cache-file_a5b048d8c267fdc12844122b70debaea.dat b/documentation/api/phpdoc-cache-a0/phpdoc-cache-file_a5b048d8c267fdc12844122b70debaea.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a0/phpdoc-cache-file_d32c6885d705c5451bdf1ac62a969573.dat b/documentation/api/phpdoc-cache-a0/phpdoc-cache-file_d32c6885d705c5451bdf1ac62a969573.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a1/phpdoc-cache-file_2468ccb167c267f02158b2a902f6ccb4.dat b/documentation/api/phpdoc-cache-a1/phpdoc-cache-file_2468ccb167c267f02158b2a902f6ccb4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a1/phpdoc-cache-file_5162277b4aa3af1e45f3c14928103878.dat b/documentation/api/phpdoc-cache-a1/phpdoc-cache-file_5162277b4aa3af1e45f3c14928103878.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a1/phpdoc-cache-file_65a7787c8c8f3cd643eb923e3acfa989.dat b/documentation/api/phpdoc-cache-a1/phpdoc-cache-file_65a7787c8c8f3cd643eb923e3acfa989.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a2/phpdoc-cache-file_cc993ca367e5ccc857f30a98ef164509.dat b/documentation/api/phpdoc-cache-a2/phpdoc-cache-file_cc993ca367e5ccc857f30a98ef164509.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a2/phpdoc-cache-file_edde9c6874dfc757a9ff1f1ff79e5764.dat b/documentation/api/phpdoc-cache-a2/phpdoc-cache-file_edde9c6874dfc757a9ff1f1ff79e5764.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_61c9795639a8bffa47e99e23a9879924.dat b/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_61c9795639a8bffa47e99e23a9879924.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_9eef90b6f7d53c21a3f427c45e21f2ea.dat b/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_9eef90b6f7d53c21a3f427c45e21f2ea.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_ac7b83f5077433f55b5ded93d0609e07.dat b/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_ac7b83f5077433f55b5ded93d0609e07.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_cb76ca16ebce0428cd214816e2bda696.dat b/documentation/api/phpdoc-cache-a3/phpdoc-cache-file_cb76ca16ebce0428cd214816e2bda696.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a4/phpdoc-cache-file_1b7efb8f78600b1ca2e7b7db192b8c98.dat b/documentation/api/phpdoc-cache-a4/phpdoc-cache-file_1b7efb8f78600b1ca2e7b7db192b8c98.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a4/phpdoc-cache-file_73dd97367adcf1ef6cc335911c512271.dat b/documentation/api/phpdoc-cache-a4/phpdoc-cache-file_73dd97367adcf1ef6cc335911c512271.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a4/phpdoc-cache-file_aadb9b4049b696ecba8a4f48049d95f0.dat b/documentation/api/phpdoc-cache-a4/phpdoc-cache-file_aadb9b4049b696ecba8a4f48049d95f0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a5/phpdoc-cache-file_4ba673d0dcf66cc0d11ecf5a717b2630.dat b/documentation/api/phpdoc-cache-a5/phpdoc-cache-file_4ba673d0dcf66cc0d11ecf5a717b2630.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a5/phpdoc-cache-file_5114c4d5fc839ac32198288738496f46.dat b/documentation/api/phpdoc-cache-a5/phpdoc-cache-file_5114c4d5fc839ac32198288738496f46.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a5/phpdoc-cache-file_6dfb1bdb5d083189fdce028029eb1ced.dat b/documentation/api/phpdoc-cache-a5/phpdoc-cache-file_6dfb1bdb5d083189fdce028029eb1ced.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a6/phpdoc-cache-file_29a316313531220faf37601cf8581d43.dat b/documentation/api/phpdoc-cache-a6/phpdoc-cache-file_29a316313531220faf37601cf8581d43.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a6/phpdoc-cache-file_6275b41d8b57afadd7878781d9c3956c.dat b/documentation/api/phpdoc-cache-a6/phpdoc-cache-file_6275b41d8b57afadd7878781d9c3956c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a6/phpdoc-cache-file_a41a4ffd061a1e5008b111313fea56c4.dat b/documentation/api/phpdoc-cache-a6/phpdoc-cache-file_a41a4ffd061a1e5008b111313fea56c4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a7/phpdoc-cache-file_28ba4448d87939aa687f6a9f4102384d.dat b/documentation/api/phpdoc-cache-a7/phpdoc-cache-file_28ba4448d87939aa687f6a9f4102384d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a8/phpdoc-cache-file_438820914076c4c0d905b34ead653b6a.dat b/documentation/api/phpdoc-cache-a8/phpdoc-cache-file_438820914076c4c0d905b34ead653b6a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a8/phpdoc-cache-file_7d4f238133800bcb16236b5f4265e94d.dat b/documentation/api/phpdoc-cache-a8/phpdoc-cache-file_7d4f238133800bcb16236b5f4265e94d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a8/phpdoc-cache-file_915f6b44ab6b84ebd0b19001ea65ad6b.dat b/documentation/api/phpdoc-cache-a8/phpdoc-cache-file_915f6b44ab6b84ebd0b19001ea65ad6b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_1636162f0c8c1b6cbd6152231e77767d.dat b/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_1636162f0c8c1b6cbd6152231e77767d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_65e7983bea8ebadab3bcfe07e4d9dbd5.dat b/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_65e7983bea8ebadab3bcfe07e4d9dbd5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_717835a9fb51922f2cba1ebf3c74b97c.dat b/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_717835a9fb51922f2cba1ebf3c74b97c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_98f902fbcb7b8d0d19d32543e7eaa664.dat b/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_98f902fbcb7b8d0d19d32543e7eaa664.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_aac1b219d6d9ff19e1f120654a395ecc.dat b/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_aac1b219d6d9ff19e1f120654a395ecc.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_fe1d81c1b711bd31752e7fc628352be2.dat b/documentation/api/phpdoc-cache-a9/phpdoc-cache-file_fe1d81c1b711bd31752e7fc628352be2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_4855b1a3e650fcf51311d4c88f9653ce.dat b/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_4855b1a3e650fcf51311d4c88f9653ce.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_69eda8fcaa667cbf6a4e0926af9fe06a.dat b/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_69eda8fcaa667cbf6a4e0926af9fe06a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_b8150f9fa81e9a38f1b92460f951d355.dat b/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_b8150f9fa81e9a38f1b92460f951d355.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_d77b7ff1d9d4027b90fc287e23580f88.dat b/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_d77b7ff1d9d4027b90fc287e23580f88.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_e740d8e7402367007274a7526d9ca1e9.dat b/documentation/api/phpdoc-cache-aa/phpdoc-cache-file_e740d8e7402367007274a7526d9ca1e9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ab/phpdoc-cache-file_d2d13fcbcfab740daf756752950bbd92.dat b/documentation/api/phpdoc-cache-ab/phpdoc-cache-file_d2d13fcbcfab740daf756752950bbd92.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ab/phpdoc-cache-file_fa63ab75dc4e55dbd4f5edc3da7bcc4d.dat b/documentation/api/phpdoc-cache-ab/phpdoc-cache-file_fa63ab75dc4e55dbd4f5edc3da7bcc4d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_2340e2a56c6a2325bb53d7abdfff2664.dat b/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_2340e2a56c6a2325bb53d7abdfff2664.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_60c5841dffa0ae6d572fb43c2548fd9f.dat b/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_60c5841dffa0ae6d572fb43c2548fd9f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_9de3cc95d300c3416ed966643e7eb6a2.dat b/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_9de3cc95d300c3416ed966643e7eb6a2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_ab1f945e3ed041c09aeba6f0fb945d5b.dat b/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_ab1f945e3ed041c09aeba6f0fb945d5b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_f45572a9aa449952289194053d35c8af.dat b/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_f45572a9aa449952289194053d35c8af.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_f5e6d0b9f91ec68955cc7cac3eade7d8.dat b/documentation/api/phpdoc-cache-ac/phpdoc-cache-file_f5e6d0b9f91ec68955cc7cac3eade7d8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ad/phpdoc-cache-file_55ea59654f67d7271d74a2ba3f25625f.dat b/documentation/api/phpdoc-cache-ad/phpdoc-cache-file_55ea59654f67d7271d74a2ba3f25625f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ad/phpdoc-cache-file_a90b46cafa45d36ccdb60463675ba54f.dat b/documentation/api/phpdoc-cache-ad/phpdoc-cache-file_a90b46cafa45d36ccdb60463675ba54f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_424d3f36fac7089dcdd02db708b0c75d.dat b/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_424d3f36fac7089dcdd02db708b0c75d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_4ff31cfa4a4d82c31b671556a9028bf3.dat b/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_4ff31cfa4a4d82c31b671556a9028bf3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_6c465119c1fb52a1fa5c495dbe1007ba.dat b/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_6c465119c1fb52a1fa5c495dbe1007ba.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_a6b450a3850e9850826c22a3f12f2c4c.dat b/documentation/api/phpdoc-cache-ae/phpdoc-cache-file_a6b450a3850e9850826c22a3f12f2c4c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-af/phpdoc-cache-file_117d64e629d38de452286601d0c0cc7a.dat b/documentation/api/phpdoc-cache-af/phpdoc-cache-file_117d64e629d38de452286601d0c0cc7a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-af/phpdoc-cache-file_15a3726fcb9105f041d92c23f734c7d4.dat b/documentation/api/phpdoc-cache-af/phpdoc-cache-file_15a3726fcb9105f041d92c23f734c7d4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-af/phpdoc-cache-file_2591c535df199fb67ee6c104c4c15283.dat b/documentation/api/phpdoc-cache-af/phpdoc-cache-file_2591c535df199fb67ee6c104c4c15283.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-af/phpdoc-cache-file_3ffc789e9ca7146a863fb25172f6fe29.dat b/documentation/api/phpdoc-cache-af/phpdoc-cache-file_3ffc789e9ca7146a863fb25172f6fe29.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-af/phpdoc-cache-file_cd61ec151f8c02cd63d7c188e7493e65.dat b/documentation/api/phpdoc-cache-af/phpdoc-cache-file_cd61ec151f8c02cd63d7c188e7493e65.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-af/phpdoc-cache-file_dbd16e2dca7234960efbc01d24705be7.dat b/documentation/api/phpdoc-cache-af/phpdoc-cache-file_dbd16e2dca7234960efbc01d24705be7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_64f32808c43bf97014f83a15f1e42432.dat b/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_64f32808c43bf97014f83a15f1e42432.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_a61946e099c66ae6e2be16b5dafa8243.dat b/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_a61946e099c66ae6e2be16b5dafa8243.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_b28f9c606ca08ac32d2b8527af720bd5.dat b/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_b28f9c606ca08ac32d2b8527af720bd5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_b93c51c82fc5f3190329c889ef7a0463.dat b/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_b93c51c82fc5f3190329c889ef7a0463.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_e6849179539d706bda2e5efdb0b8d6e6.dat b/documentation/api/phpdoc-cache-b1/phpdoc-cache-file_e6849179539d706bda2e5efdb0b8d6e6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b2/phpdoc-cache-file_ff73088382277b477a7c4989db397f2e.dat b/documentation/api/phpdoc-cache-b2/phpdoc-cache-file_ff73088382277b477a7c4989db397f2e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b3/phpdoc-cache-file_e00e0b3b9aa3184c8e9c5f21c774c757.dat b/documentation/api/phpdoc-cache-b3/phpdoc-cache-file_e00e0b3b9aa3184c8e9c5f21c774c757.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b3/phpdoc-cache-file_f714330fbcc5cda433fb3b85810a2a14.dat b/documentation/api/phpdoc-cache-b3/phpdoc-cache-file_f714330fbcc5cda433fb3b85810a2a14.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_04b3e0fe1f91b2417a8a0ff4f036e16d.dat b/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_04b3e0fe1f91b2417a8a0ff4f036e16d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_0be1ae1bb7e1d48f0f0dc6871eec8821.dat b/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_0be1ae1bb7e1d48f0f0dc6871eec8821.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_7f41025898f81078d4fcd4a66f6ce972.dat b/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_7f41025898f81078d4fcd4a66f6ce972.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_9decadcd070e3285fc727e74554d2773.dat b/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_9decadcd070e3285fc727e74554d2773.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_b1244b661ca1b6e95c680a1c2dd4fb59.dat b/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_b1244b661ca1b6e95c680a1c2dd4fb59.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_c6121287de320bb66016b1b65e250000.dat b/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_c6121287de320bb66016b1b65e250000.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_e8dec610ea95f845559b54f9c537c440.dat b/documentation/api/phpdoc-cache-b6/phpdoc-cache-file_e8dec610ea95f845559b54f9c537c440.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b7/phpdoc-cache-file_e82ffe8eca7376a847b6fe7f45b67b9e.dat b/documentation/api/phpdoc-cache-b7/phpdoc-cache-file_e82ffe8eca7376a847b6fe7f45b67b9e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-b9/phpdoc-cache-file_f7777069b123854551f9a1a3524e437b.dat b/documentation/api/phpdoc-cache-b9/phpdoc-cache-file_f7777069b123854551f9a1a3524e437b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ba/phpdoc-cache-file_5cdeff0af784bc7c6840aad33891d6d5.dat b/documentation/api/phpdoc-cache-ba/phpdoc-cache-file_5cdeff0af784bc7c6840aad33891d6d5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ba/phpdoc-cache-file_b1a988e353d23d62d115030146305186.dat b/documentation/api/phpdoc-cache-ba/phpdoc-cache-file_b1a988e353d23d62d115030146305186.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-bb/phpdoc-cache-file_7329a8bbc9c96b66485b6b62c386ed35.dat b/documentation/api/phpdoc-cache-bb/phpdoc-cache-file_7329a8bbc9c96b66485b6b62c386ed35.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-bb/phpdoc-cache-file_ef70a7d24ca89c6e0f00cc4d549a574c.dat b/documentation/api/phpdoc-cache-bb/phpdoc-cache-file_ef70a7d24ca89c6e0f00cc4d549a574c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-bc/phpdoc-cache-file_042bbb36382f5192a0512a46f92cfd1f.dat b/documentation/api/phpdoc-cache-bc/phpdoc-cache-file_042bbb36382f5192a0512a46f92cfd1f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-bd/phpdoc-cache-file_1a1ecf4a37ea221195403d8b6f2fca5c.dat b/documentation/api/phpdoc-cache-bd/phpdoc-cache-file_1a1ecf4a37ea221195403d8b6f2fca5c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-bd/phpdoc-cache-file_97a53ad0d06f3ed59a23b8abae528445.dat b/documentation/api/phpdoc-cache-bd/phpdoc-cache-file_97a53ad0d06f3ed59a23b8abae528445.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-bd/phpdoc-cache-file_9f8d89a6efb80d966ee9ddf71517d964.dat b/documentation/api/phpdoc-cache-bd/phpdoc-cache-file_9f8d89a6efb80d966ee9ddf71517d964.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-be/phpdoc-cache-file_1e2f0e235a872e708cb757f6056c7bd6.dat b/documentation/api/phpdoc-cache-be/phpdoc-cache-file_1e2f0e235a872e708cb757f6056c7bd6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-be/phpdoc-cache-file_3c05b35567eb32a5f6dfc671b96b7f3b.dat b/documentation/api/phpdoc-cache-be/phpdoc-cache-file_3c05b35567eb32a5f6dfc671b96b7f3b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-be/phpdoc-cache-file_5f9ac0ecb13c6a71bd47c70f1172b414.dat b/documentation/api/phpdoc-cache-be/phpdoc-cache-file_5f9ac0ecb13c6a71bd47c70f1172b414.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c0/phpdoc-cache-file_a0af05ff2db5b71002d0539cae2de8ff.dat b/documentation/api/phpdoc-cache-c0/phpdoc-cache-file_a0af05ff2db5b71002d0539cae2de8ff.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c0/phpdoc-cache-file_fce4558203293146b049d450189a66f8.dat b/documentation/api/phpdoc-cache-c0/phpdoc-cache-file_fce4558203293146b049d450189a66f8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c2/phpdoc-cache-file_5cc825b33cd734ae9baa1fe881a3597f.dat b/documentation/api/phpdoc-cache-c2/phpdoc-cache-file_5cc825b33cd734ae9baa1fe881a3597f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c2/phpdoc-cache-file_efac58dda3ed2a91f80002a7984d2298.dat b/documentation/api/phpdoc-cache-c2/phpdoc-cache-file_efac58dda3ed2a91f80002a7984d2298.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c3/phpdoc-cache-file_1d937744dc6da8b27dbec9f2e5e76ea2.dat b/documentation/api/phpdoc-cache-c3/phpdoc-cache-file_1d937744dc6da8b27dbec9f2e5e76ea2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c3/phpdoc-cache-file_48bf8e04da4a66373b52aba6b495c816.dat b/documentation/api/phpdoc-cache-c3/phpdoc-cache-file_48bf8e04da4a66373b52aba6b495c816.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c4/phpdoc-cache-file_edf2fdada4f4dfb909d305db0630729b.dat b/documentation/api/phpdoc-cache-c4/phpdoc-cache-file_edf2fdada4f4dfb909d305db0630729b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c5/phpdoc-cache-file_3bbb2a3bcec23af628d6e872254a7764.dat b/documentation/api/phpdoc-cache-c5/phpdoc-cache-file_3bbb2a3bcec23af628d6e872254a7764.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c5/phpdoc-cache-file_832aa9f1729d39b5cffb3843acfa3d58.dat b/documentation/api/phpdoc-cache-c5/phpdoc-cache-file_832aa9f1729d39b5cffb3843acfa3d58.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c5/phpdoc-cache-file_a5dcf62b5a0193aa42d27f9259dfc68c.dat b/documentation/api/phpdoc-cache-c5/phpdoc-cache-file_a5dcf62b5a0193aa42d27f9259dfc68c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c6/phpdoc-cache-file_aadb42696af8b1df13a4ffc5989b697e.dat b/documentation/api/phpdoc-cache-c6/phpdoc-cache-file_aadb42696af8b1df13a4ffc5989b697e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c7/phpdoc-cache-file_1a4142ccd20153e84d6c28bee8965d26.dat b/documentation/api/phpdoc-cache-c7/phpdoc-cache-file_1a4142ccd20153e84d6c28bee8965d26.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c8/phpdoc-cache-file_ff804e4fd2e1d6bf77537523174d5779.dat b/documentation/api/phpdoc-cache-c8/phpdoc-cache-file_ff804e4fd2e1d6bf77537523174d5779.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c9/phpdoc-cache-file_8cd5a6bfe9a8427cd48b46f2ad2f99af.dat b/documentation/api/phpdoc-cache-c9/phpdoc-cache-file_8cd5a6bfe9a8427cd48b46f2ad2f99af.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-c9/phpdoc-cache-file_c1891628e009e5bd16ec5d2565e1855c.dat b/documentation/api/phpdoc-cache-c9/phpdoc-cache-file_c1891628e009e5bd16ec5d2565e1855c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ca/phpdoc-cache-file_b2b1d28b44ca31bf1dab69d0606fc25a.dat b/documentation/api/phpdoc-cache-ca/phpdoc-cache-file_b2b1d28b44ca31bf1dab69d0606fc25a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-cb/phpdoc-cache-file_9b3e5e53f4d2aa3bacbfd60c31d75865.dat b/documentation/api/phpdoc-cache-cb/phpdoc-cache-file_9b3e5e53f4d2aa3bacbfd60c31d75865.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-cb/phpdoc-cache-file_9f4dd52820112031304d6609bd08a08c.dat b/documentation/api/phpdoc-cache-cb/phpdoc-cache-file_9f4dd52820112031304d6609bd08a08c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-cc/phpdoc-cache-file_9566a32e2da16aabfddf6c786c355cce.dat b/documentation/api/phpdoc-cache-cc/phpdoc-cache-file_9566a32e2da16aabfddf6c786c355cce.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ce/phpdoc-cache-file_72af63282a3ac919401c5100147984de.dat b/documentation/api/phpdoc-cache-ce/phpdoc-cache-file_72af63282a3ac919401c5100147984de.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ce/phpdoc-cache-file_dd67b59ef7e59384403b1e4195803ff1.dat b/documentation/api/phpdoc-cache-ce/phpdoc-cache-file_dd67b59ef7e59384403b1e4195803ff1.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ce/phpdoc-cache-file_e16b1540860ea3e0eabbd5974b4b56d2.dat b/documentation/api/phpdoc-cache-ce/phpdoc-cache-file_e16b1540860ea3e0eabbd5974b4b56d2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-cf/phpdoc-cache-file_265086d53d0e7fa820c9fcb9028453dc.dat b/documentation/api/phpdoc-cache-cf/phpdoc-cache-file_265086d53d0e7fa820c9fcb9028453dc.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-cf/phpdoc-cache-file_4c1e02c69f2d5a67c8e529686bb53926.dat b/documentation/api/phpdoc-cache-cf/phpdoc-cache-file_4c1e02c69f2d5a67c8e529686bb53926.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d0/phpdoc-cache-file_b2ff8730f9ae5eae260b13055b00f3e5.dat b/documentation/api/phpdoc-cache-d0/phpdoc-cache-file_b2ff8730f9ae5eae260b13055b00f3e5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d1/phpdoc-cache-file_73e7f87157e76d45d91f49a210198749.dat b/documentation/api/phpdoc-cache-d1/phpdoc-cache-file_73e7f87157e76d45d91f49a210198749.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d1/phpdoc-cache-file_b18678ec7462c071534a54084ea87403.dat b/documentation/api/phpdoc-cache-d1/phpdoc-cache-file_b18678ec7462c071534a54084ea87403.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_2efe5d7bddb38f718ec91745adda09aa.dat b/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_2efe5d7bddb38f718ec91745adda09aa.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_9f59feed7311ace98f9120dc081ff475.dat b/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_9f59feed7311ace98f9120dc081ff475.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_ae53ab598a9b7cec56cc1e627ad49544.dat b/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_ae53ab598a9b7cec56cc1e627ad49544.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_ddb603b6d696fac50baffcc963779d57.dat b/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_ddb603b6d696fac50baffcc963779d57.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_fafb32986b07c0d072d99651a2e852ac.dat b/documentation/api/phpdoc-cache-d2/phpdoc-cache-file_fafb32986b07c0d072d99651a2e852ac.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d3/phpdoc-cache-file_1370afce610bdfa8945f45a7f09196b0.dat b/documentation/api/phpdoc-cache-d3/phpdoc-cache-file_1370afce610bdfa8945f45a7f09196b0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d3/phpdoc-cache-file_f58c805c57f12408c1aa364d063af491.dat b/documentation/api/phpdoc-cache-d3/phpdoc-cache-file_f58c805c57f12408c1aa364d063af491.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d4/phpdoc-cache-file_62755501b8377a9f78c716715e5c8e94.dat b/documentation/api/phpdoc-cache-d4/phpdoc-cache-file_62755501b8377a9f78c716715e5c8e94.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d4/phpdoc-cache-file_832e9125e28d129a08dffc6674429050.dat b/documentation/api/phpdoc-cache-d4/phpdoc-cache-file_832e9125e28d129a08dffc6674429050.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d5/phpdoc-cache-file_16d007a671e764b5676156ca3f52eb8f.dat b/documentation/api/phpdoc-cache-d5/phpdoc-cache-file_16d007a671e764b5676156ca3f52eb8f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d5/phpdoc-cache-file_e4e6dd5844111392017114e871708213.dat b/documentation/api/phpdoc-cache-d5/phpdoc-cache-file_e4e6dd5844111392017114e871708213.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_22f98c558369aa070cc93c3bf68b3165.dat b/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_22f98c558369aa070cc93c3bf68b3165.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_27c4023de05a5018f9a320305f2566b7.dat b/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_27c4023de05a5018f9a320305f2566b7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_b63b0c0e7ea7539cb4f3b181cbeb10cb.dat b/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_b63b0c0e7ea7539cb4f3b181cbeb10cb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_bfbb075787c8a54b9af875b6e1dc16a5.dat b/documentation/api/phpdoc-cache-d6/phpdoc-cache-file_bfbb075787c8a54b9af875b6e1dc16a5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d7/phpdoc-cache-file_f0026af4141eff8bc7ad5bfc4e654d07.dat b/documentation/api/phpdoc-cache-d7/phpdoc-cache-file_f0026af4141eff8bc7ad5bfc4e654d07.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d8/phpdoc-cache-file_93889157046806cf3af63db71b0379df.dat b/documentation/api/phpdoc-cache-d8/phpdoc-cache-file_93889157046806cf3af63db71b0379df.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d9/phpdoc-cache-file_62018ac8099ee0ccf6d434bbf5a2978b.dat b/documentation/api/phpdoc-cache-d9/phpdoc-cache-file_62018ac8099ee0ccf6d434bbf5a2978b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d9/phpdoc-cache-file_a7835ce1694a9fbce766f15f1d304060.dat b/documentation/api/phpdoc-cache-d9/phpdoc-cache-file_a7835ce1694a9fbce766f15f1d304060.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-d9/phpdoc-cache-file_b23b33409cce84abcf325f2bd921cc45.dat b/documentation/api/phpdoc-cache-d9/phpdoc-cache-file_b23b33409cce84abcf325f2bd921cc45.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-da/phpdoc-cache-file_284af1514ce0dda6fd9d1cbf52e57b11.dat b/documentation/api/phpdoc-cache-da/phpdoc-cache-file_284af1514ce0dda6fd9d1cbf52e57b11.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-da/phpdoc-cache-file_687fcd81d4c0a2257fd10080121f2ace.dat b/documentation/api/phpdoc-cache-da/phpdoc-cache-file_687fcd81d4c0a2257fd10080121f2ace.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-db/phpdoc-cache-file_6334c9123c36a31a9deab26b9c9b581a.dat b/documentation/api/phpdoc-cache-db/phpdoc-cache-file_6334c9123c36a31a9deab26b9c9b581a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-db/phpdoc-cache-file_96951cc2711577dcc7cd62cb0f837397.dat b/documentation/api/phpdoc-cache-db/phpdoc-cache-file_96951cc2711577dcc7cd62cb0f837397.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-dc/phpdoc-cache-file_86cf5096f73e622a6fd6a2bc719f1583.dat b/documentation/api/phpdoc-cache-dc/phpdoc-cache-file_86cf5096f73e622a6fd6a2bc719f1583.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-dc/phpdoc-cache-file_daa3aa4965d826af8d95ca5cce51d143.dat b/documentation/api/phpdoc-cache-dc/phpdoc-cache-file_daa3aa4965d826af8d95ca5cce51d143.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-dd/phpdoc-cache-file_603fb1315b0c8a8fc3b07a159a6e70a4.dat b/documentation/api/phpdoc-cache-dd/phpdoc-cache-file_603fb1315b0c8a8fc3b07a159a6e70a4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-dd/phpdoc-cache-file_b071d275e1d745730a8c09b2e009be6b.dat b/documentation/api/phpdoc-cache-dd/phpdoc-cache-file_b071d275e1d745730a8c09b2e009be6b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-dd/phpdoc-cache-file_d1f090306aece7c6773aff6f022c79a5.dat b/documentation/api/phpdoc-cache-dd/phpdoc-cache-file_d1f090306aece7c6773aff6f022c79a5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-df/phpdoc-cache-file_ad20415c3a40b3c195e52328218e7561.dat b/documentation/api/phpdoc-cache-df/phpdoc-cache-file_ad20415c3a40b3c195e52328218e7561.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e0/phpdoc-cache-file_77481b88b334c7682596ea0589936064.dat b/documentation/api/phpdoc-cache-e0/phpdoc-cache-file_77481b88b334c7682596ea0589936064.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e1/phpdoc-cache-file_284fddcb5febee29bef11650ce70e92a.dat b/documentation/api/phpdoc-cache-e1/phpdoc-cache-file_284fddcb5febee29bef11650ce70e92a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e1/phpdoc-cache-file_ddd89ae9c408a1b6813d7470d9638ced.dat b/documentation/api/phpdoc-cache-e1/phpdoc-cache-file_ddd89ae9c408a1b6813d7470d9638ced.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_5840655521ac933e27e32b921a8c91cc.dat b/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_5840655521ac933e27e32b921a8c91cc.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_6717638b7e4e8a5313999799dec37b01.dat b/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_6717638b7e4e8a5313999799dec37b01.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_924da037ccea3fa086e465c5534571ca.dat b/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_924da037ccea3fa086e465c5534571ca.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_a82b588f4b68d89f4cd6976abbb63436.dat b/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_a82b588f4b68d89f4cd6976abbb63436.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_e5372ed80138e5ee60b7ba5086cf42e4.dat b/documentation/api/phpdoc-cache-e2/phpdoc-cache-file_e5372ed80138e5ee60b7ba5086cf42e4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e3/phpdoc-cache-file_d13afc753a2b434853e67f216ffb6fc4.dat b/documentation/api/phpdoc-cache-e3/phpdoc-cache-file_d13afc753a2b434853e67f216ffb6fc4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e3/phpdoc-cache-file_e4147dea1ec68dca2a40965fa6390f8b.dat b/documentation/api/phpdoc-cache-e3/phpdoc-cache-file_e4147dea1ec68dca2a40965fa6390f8b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e4/phpdoc-cache-file_3c6eaad8989ea9d20019fd201cedc794.dat b/documentation/api/phpdoc-cache-e4/phpdoc-cache-file_3c6eaad8989ea9d20019fd201cedc794.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e4/phpdoc-cache-file_8c2a33d398b05ceba55efcc98026d16c.dat b/documentation/api/phpdoc-cache-e4/phpdoc-cache-file_8c2a33d398b05ceba55efcc98026d16c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e4/phpdoc-cache-file_c5324374bf49265a1d8217baa708b86e.dat b/documentation/api/phpdoc-cache-e4/phpdoc-cache-file_c5324374bf49265a1d8217baa708b86e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_28185e1d31551706b6952858de8243ae.dat b/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_28185e1d31551706b6952858de8243ae.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_5e21bf382c3074bfc6ed877381c88c40.dat b/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_5e21bf382c3074bfc6ed877381c88c40.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_c09ec856b070697ed0e8d1734b3c6211.dat b/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_c09ec856b070697ed0e8d1734b3c6211.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_c4b2413c0ae028886f062cb5a52b64d2.dat b/documentation/api/phpdoc-cache-e5/phpdoc-cache-file_c4b2413c0ae028886f062cb5a52b64d2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e6/phpdoc-cache-file_1edd5c11037b1b59a1f8b1d80b90c01d.dat b/documentation/api/phpdoc-cache-e6/phpdoc-cache-file_1edd5c11037b1b59a1f8b1d80b90c01d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_2126d3aab3be1e777170ac30dce93720.dat b/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_2126d3aab3be1e777170ac30dce93720.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_255242a860d1848261d46fff19c7071d.dat b/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_255242a860d1848261d46fff19c7071d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_4c2910cb7372e1f32a617e0901a62d7a.dat b/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_4c2910cb7372e1f32a617e0901a62d7a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_5fe478a2a25c1f9d5ce6f3b64a312b9e.dat b/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_5fe478a2a25c1f9d5ce6f3b64a312b9e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_fbf2f6d0676ddf39aefb68003f03e976.dat b/documentation/api/phpdoc-cache-e7/phpdoc-cache-file_fbf2f6d0676ddf39aefb68003f03e976.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_0278bb2045659d3c069061a7a4f6ec68.dat b/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_0278bb2045659d3c069061a7a4f6ec68.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_0457aded8463f23a74c2f7c4cc6b5cb5.dat b/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_0457aded8463f23a74c2f7c4cc6b5cb5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_16eeb8183266d903e96a730c3735bc6b.dat b/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_16eeb8183266d903e96a730c3735bc6b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_18c0c847e36ee6622ce24875fab46481.dat b/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_18c0c847e36ee6622ce24875fab46481.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_234ab3d3a8739f930f87567b9690a7ac.dat b/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_234ab3d3a8739f930f87567b9690a7ac.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_27c674bf12652057b95b65c3cc1860ff.dat b/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_27c674bf12652057b95b65c3cc1860ff.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_fc0e801390d365e04e40fe87274eb857.dat b/documentation/api/phpdoc-cache-e8/phpdoc-cache-file_fc0e801390d365e04e40fe87274eb857.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e9/phpdoc-cache-file_31ab2d4d69364fd0104a269607649740.dat b/documentation/api/phpdoc-cache-e9/phpdoc-cache-file_31ab2d4d69364fd0104a269607649740.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e9/phpdoc-cache-file_926576bef6099e8b1558d858a9ed20d5.dat b/documentation/api/phpdoc-cache-e9/phpdoc-cache-file_926576bef6099e8b1558d858a9ed20d5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-e9/phpdoc-cache-file_bcb2e7b13d0d4e073466926d18824135.dat b/documentation/api/phpdoc-cache-e9/phpdoc-cache-file_bcb2e7b13d0d4e073466926d18824135.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ea/phpdoc-cache-file_5150879a921d1edab729a63e987b46d8.dat b/documentation/api/phpdoc-cache-ea/phpdoc-cache-file_5150879a921d1edab729a63e987b46d8.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ea/phpdoc-cache-file_9bea330c4032c51dc4089032a253ba76.dat b/documentation/api/phpdoc-cache-ea/phpdoc-cache-file_9bea330c4032c51dc4089032a253ba76.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-eb/phpdoc-cache-file_e8e0768e08fdf29bec7ef62622745c1b.dat b/documentation/api/phpdoc-cache-eb/phpdoc-cache-file_e8e0768e08fdf29bec7ef62622745c1b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-eb/phpdoc-cache-file_ebb395969fc3ec1ba56c9391fe274c4b.dat b/documentation/api/phpdoc-cache-eb/phpdoc-cache-file_ebb395969fc3ec1ba56c9391fe274c4b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_130fdbd1c55c2d2d5bbbaf499a7494b2.dat b/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_130fdbd1c55c2d2d5bbbaf499a7494b2.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_525f113107a0a12b363562577cc2dcff.dat b/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_525f113107a0a12b363562577cc2dcff.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_598cf23046f43703e6eba1983e0ce1bb.dat b/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_598cf23046f43703e6eba1983e0ce1bb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_6ff463f146aedfcfd360ce5a8fedcb5d.dat b/documentation/api/phpdoc-cache-ec/phpdoc-cache-file_6ff463f146aedfcfd360ce5a8fedcb5d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ed/phpdoc-cache-file_9e83bfcb4ad5c41852006c55a46a2f72.dat b/documentation/api/phpdoc-cache-ed/phpdoc-cache-file_9e83bfcb4ad5c41852006c55a46a2f72.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ed/phpdoc-cache-file_babd614306d3c45378af2b7e6357033d.dat b/documentation/api/phpdoc-cache-ed/phpdoc-cache-file_babd614306d3c45378af2b7e6357033d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ee/phpdoc-cache-file_96c6151468b03666a812082bf7bfacf9.dat b/documentation/api/phpdoc-cache-ee/phpdoc-cache-file_96c6151468b03666a812082bf7bfacf9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ef/phpdoc-cache-file_aafe3e3c258e4e00d8acd003d34a25d6.dat b/documentation/api/phpdoc-cache-ef/phpdoc-cache-file_aafe3e3c258e4e00d8acd003d34a25d6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ef/phpdoc-cache-file_eea623a41582565fe28ebffaa0913bd7.dat b/documentation/api/phpdoc-cache-ef/phpdoc-cache-file_eea623a41582565fe28ebffaa0913bd7.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_2d0e75c846e5078f0a61e426a5969ee9.dat b/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_2d0e75c846e5078f0a61e426a5969ee9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_931657f7683f5d3368f814b6a2a92689.dat b/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_931657f7683f5d3368f814b6a2a92689.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_9c86484e2acd47f9bf4e560c9b0105ff.dat b/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_9c86484e2acd47f9bf4e560c9b0105ff.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_b617c8caed29d2fd4ae26ed2c0c4fdf4.dat b/documentation/api/phpdoc-cache-f0/phpdoc-cache-file_b617c8caed29d2fd4ae26ed2c0c4fdf4.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f1/phpdoc-cache-file_bc4e29c76fe113554e183af52f897b65.dat b/documentation/api/phpdoc-cache-f1/phpdoc-cache-file_bc4e29c76fe113554e183af52f897b65.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f1/phpdoc-cache-file_c5531200ca3389bbe0bcaa3f201af0e5.dat b/documentation/api/phpdoc-cache-f1/phpdoc-cache-file_c5531200ca3389bbe0bcaa3f201af0e5.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f2/phpdoc-cache-file_071ce88b22c1d9ff6f11c18561d8d6cb.dat b/documentation/api/phpdoc-cache-f2/phpdoc-cache-file_071ce88b22c1d9ff6f11c18561d8d6cb.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f2/phpdoc-cache-file_5b2409c0b60e4b5895e19edb6ab2ca6f.dat b/documentation/api/phpdoc-cache-f2/phpdoc-cache-file_5b2409c0b60e4b5895e19edb6ab2ca6f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f2/phpdoc-cache-file_90c06817bb87dd194601544afa659901.dat b/documentation/api/phpdoc-cache-f2/phpdoc-cache-file_90c06817bb87dd194601544afa659901.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f3/phpdoc-cache-file_5086dab53c078f395027f57e00fc6dac.dat b/documentation/api/phpdoc-cache-f3/phpdoc-cache-file_5086dab53c078f395027f57e00fc6dac.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f3/phpdoc-cache-file_5a9f5328801bed42d1edeb96a4ac871a.dat b/documentation/api/phpdoc-cache-f3/phpdoc-cache-file_5a9f5328801bed42d1edeb96a4ac871a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f3/phpdoc-cache-file_6308945f40a44eac79459bb6a6da5c04.dat b/documentation/api/phpdoc-cache-f3/phpdoc-cache-file_6308945f40a44eac79459bb6a6da5c04.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_1fcc0656fdc2d84a1d6edd199a0eabbd.dat b/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_1fcc0656fdc2d84a1d6edd199a0eabbd.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_6533a78c2260615a9e5171454cbb4f23.dat b/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_6533a78c2260615a9e5171454cbb4f23.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_925e1734286928436e7193a6dda4d87b.dat b/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_925e1734286928436e7193a6dda4d87b.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_b58aa07464ed69a02634f89541f7dec3.dat b/documentation/api/phpdoc-cache-f4/phpdoc-cache-file_b58aa07464ed69a02634f89541f7dec3.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f5/phpdoc-cache-file_69bebcf2ec6f5d364b97b8dc42a76cab.dat b/documentation/api/phpdoc-cache-f5/phpdoc-cache-file_69bebcf2ec6f5d364b97b8dc42a76cab.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f5/phpdoc-cache-file_6a9414d75ddf96e8f9aeb7afe3450e3a.dat b/documentation/api/phpdoc-cache-f5/phpdoc-cache-file_6a9414d75ddf96e8f9aeb7afe3450e3a.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_1ca75ecdbe0f836d250e435431c6cd63.dat b/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_1ca75ecdbe0f836d250e435431c6cd63.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_415fd344c1229472372a06e7cccb218c.dat b/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_415fd344c1229472372a06e7cccb218c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_c16934e15f04cfc351ce0b5a2fd128b6.dat b/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_c16934e15f04cfc351ce0b5a2fd128b6.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_e6b8bc3613f2e2546be2db11c1edb92f.dat b/documentation/api/phpdoc-cache-f6/phpdoc-cache-file_e6b8bc3613f2e2546be2db11c1edb92f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f7/phpdoc-cache-file_09f63bb12393ddf82ca4585feee32044.dat b/documentation/api/phpdoc-cache-f7/phpdoc-cache-file_09f63bb12393ddf82ca4585feee32044.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f7/phpdoc-cache-file_ff6079e65f8aea9a8369183a7fd6e19f.dat b/documentation/api/phpdoc-cache-f7/phpdoc-cache-file_ff6079e65f8aea9a8369183a7fd6e19f.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f8/phpdoc-cache-file_90cfdb1a8c9d266fc9e4d94cbe72aab0.dat b/documentation/api/phpdoc-cache-f8/phpdoc-cache-file_90cfdb1a8c9d266fc9e4d94cbe72aab0.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f9/phpdoc-cache-file_011efc08f8485e7752bf0da413539561.dat b/documentation/api/phpdoc-cache-f9/phpdoc-cache-file_011efc08f8485e7752bf0da413539561.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f9/phpdoc-cache-file_1ace23574ac2d6d82733bf71cb74025e.dat b/documentation/api/phpdoc-cache-f9/phpdoc-cache-file_1ace23574ac2d6d82733bf71cb74025e.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-f9/phpdoc-cache-file_1add6a6f23743e2234c378e05beac29d.dat b/documentation/api/phpdoc-cache-f9/phpdoc-cache-file_1add6a6f23743e2234c378e05beac29d.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fa/phpdoc-cache-file_cf970b63319f369f70cd2a2bf7147bb9.dat b/documentation/api/phpdoc-cache-fa/phpdoc-cache-file_cf970b63319f369f70cd2a2bf7147bb9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fb/phpdoc-cache-file_752d3473588679cbf5167548d5d846cc.dat b/documentation/api/phpdoc-cache-fb/phpdoc-cache-file_752d3473588679cbf5167548d5d846cc.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_39ba6cbce6e0262121ddac3766d53fbf.dat b/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_39ba6cbce6e0262121ddac3766d53fbf.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_52a2a799d70812ad49b51c59877d9234.dat b/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_52a2a799d70812ad49b51c59877d9234.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_813f6784ad945213c270d8f5111ba100.dat b/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_813f6784ad945213c270d8f5111ba100.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_849a3fed1ffaee9b272bbdaac90d847c.dat b/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_849a3fed1ffaee9b272bbdaac90d847c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_c43d3ccc11c02c1e51878514279e583c.dat b/documentation/api/phpdoc-cache-fc/phpdoc-cache-file_c43d3ccc11c02c1e51878514279e583c.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fd/phpdoc-cache-file_5a0ec461faba6c24629bc724dd7e79d9.dat b/documentation/api/phpdoc-cache-fd/phpdoc-cache-file_5a0ec461faba6c24629bc724dd7e79d9.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fd/phpdoc-cache-file_8ccdbbac8df4dad1c84995e897d58f80.dat b/documentation/api/phpdoc-cache-fd/phpdoc-cache-file_8ccdbbac8df4dad1c84995e897d58f80.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fe/phpdoc-cache-file_3a202f8aed229d2e6b7013a1f8887467.dat b/documentation/api/phpdoc-cache-fe/phpdoc-cache-file_3a202f8aed229d2e6b7013a1f8887467.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fe/phpdoc-cache-file_ba3f73c72527fdc8215470469c924b07.dat b/documentation/api/phpdoc-cache-fe/phpdoc-cache-file_ba3f73c72527fdc8215470469c924b07.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-fe/phpdoc-cache-file_e79721e3d1f008bb0a4184f772e38609.dat b/documentation/api/phpdoc-cache-fe/phpdoc-cache-file_e79721e3d1f008bb0a4184f772e38609.dat old mode 100644 new mode 100755 diff --git a/documentation/api/phpdoc-cache-ff/phpdoc-cache-file_4299eabd52ccf9d3218008aefb3ec617.dat b/documentation/api/phpdoc-cache-ff/phpdoc-cache-file_4299eabd52ccf9d3218008aefb3ec617.dat old mode 100644 new mode 100755 diff --git a/documentation/api/reports/deprecated.html b/documentation/api/reports/deprecated.html old mode 100644 new mode 100755 diff --git a/documentation/api/reports/errors.html b/documentation/api/reports/errors.html old mode 100644 new mode 100755 diff --git a/documentation/api/reports/markers.html b/documentation/api/reports/markers.html old mode 100644 new mode 100755 diff --git a/install/INSTALL-TODO.txt b/install/INSTALL-TODO.txt old mode 100644 new mode 100755 diff --git a/install/faker-assets/FreeSans.ttf b/install/faker-assets/FreeSans.ttf old mode 100644 new mode 100755 diff --git a/install/faker.php b/install/faker.php index b262a8460..81edd767d 100755 --- a/install/faker.php +++ b/install/faker.php @@ -1,11 +1,11 @@ beginTransaction(); $currency = \Thelia\Model\CurrencyQuery::create()->filterByCode('EUR')->findOne(); +try { + $stmt = $con->prepare("SET foreign_key_checks = 0"); + $stmt->execute(); + + $productAssociatedContent = Thelia\Model\ProductAssociatedContentQuery::create() + ->find(); + $productAssociatedContent->delete(); + + $categoryAssociatedContent = Thelia\Model\CategoryAssociatedContentQuery::create() + ->find(); + $categoryAssociatedContent->delete(); + + $attributeCategory = Thelia\Model\AttributeCategoryQuery::create() + ->find(); + $attributeCategory->delete(); + + $featureCategory = Thelia\Model\FeatureCategoryQuery::create() + ->find(); + $featureCategory->delete(); + + $featureProduct = Thelia\Model\FeatureProductQuery::create() + ->find(); + $featureProduct->delete(); + + $attributeCombination = Thelia\Model\AttributeCombinationQuery::create() + ->find(); + $attributeCombination->delete(); + + $feature = Thelia\Model\FeatureQuery::create() + ->find(); + $feature->delete(); + + $feature = Thelia\Model\FeatureI18nQuery::create() + ->find(); + $feature->delete(); + + $featureAv = Thelia\Model\FeatureAvQuery::create() + ->find(); + $featureAv->delete(); + + $featureAv = Thelia\Model\FeatureAvI18nQuery::create() + ->find(); + $featureAv->delete(); + + $attribute = Thelia\Model\AttributeQuery::create() + ->find(); + $attribute->delete(); + + $attribute = Thelia\Model\AttributeI18nQuery::create() + ->find(); + $attribute->delete(); + + $attributeAv = Thelia\Model\AttributeAvQuery::create() + ->find(); + $attributeAv->delete(); + + $attributeAv = Thelia\Model\AttributeAvI18nQuery::create() + ->find(); + $attributeAv->delete(); + + $category = Thelia\Model\CategoryQuery::create() + ->find(); + $category->delete(); + + $category = Thelia\Model\CategoryI18nQuery::create() + ->find(); + $category->delete(); + + $product = Thelia\Model\ProductQuery::create() + ->find(); + $product->delete(); + + $product = Thelia\Model\ProductI18nQuery::create() + ->find(); + $product->delete(); + + $customer = Thelia\Model\CustomerQuery::create() + ->find(); + $customer->delete(); + + $folder = Thelia\Model\FolderQuery::create() + ->find(); + $folder->delete(); + + $folder = Thelia\Model\FolderI18nQuery::create() + ->find(); + $folder->delete(); + + $content = Thelia\Model\ContentQuery::create() + ->find(); + $content->delete(); + + $content = Thelia\Model\ContentI18nQuery::create() + ->find(); + $content->delete(); + + $accessory = Thelia\Model\AccessoryQuery::create() + ->find(); + $accessory->delete(); + + $stock = \Thelia\Model\ProductSaleElementsQuery::create() + ->find(); + $stock->delete(); + + $productPrice = \Thelia\Model\ProductPriceQuery::create() + ->find(); + $productPrice->delete(); + + $stmt = $con->prepare("SET foreign_key_checks = 1"); + $stmt->execute(); + + //customer + $customer = new Thelia\Model\Customer(); + $customer->createOrUpdate( + 1, + "thelia", + "thelia", + "5 rue rochon", + "", + "", + "0102030405", + "0601020304", + "63000", + "clermont-ferrand", + 64, + "test@thelia.net", + "azerty" + ); + + //features and features_av + $featureList = array(); + for($i=0; $i<4; $i++) { + $feature = new Thelia\Model\Feature(); + $feature->setVisible(rand(1, 10)>7 ? 0 : 1); + $feature->setPosition($i); + setI18n($faker, $feature); + + $feature->save(); + $featureId = $feature->getId(); + $featureList[$featureId] = array(); + + for($j=0; $jsetFeature($feature); + $featureAv->setPosition($j); + setI18n($faker, $featureAv); + + $featureAv->save(); + $featureList[$featureId][] = $featureAv->getId(); + } + } + + //attributes and attributes_av + $attributeList = array(); + for($i=0; $i<4; $i++) { + $attribute = new Thelia\Model\Attribute(); + $attribute->setPosition($i); + setI18n($faker, $attribute); + + $attribute->save(); + $attributeId = $attribute->getId(); + $attributeList[$attributeId] = array(); + + for($j=0; $jsetAttribute($attribute); + $attributeAv->setPosition($j); + setI18n($faker, $attributeAv); + + $attributeAv->save(); + $attributeList[$attributeId][] = $attributeAv->getId(); + } + } + + //folders and contents + $contentIdList = array(); + for($i=0; $i<4; $i++) { + $folder = new Thelia\Model\Folder(); + $folder->setParent(0); + $folder->setVisible(rand(1, 10)>7 ? 0 : 1); + $folder->setPosition($i); + setI18n($faker, $folder); + + $folder->save(); + + $image = new FolderImage(); + $image->setFolderId($folder->getId()); + generate_image($image, 1, 'folder', $folder->getId()); + + for($j=1; $jsetParent($folder->getId()); + $subfolder->setVisible(rand(1, 10)>7 ? 0 : 1); + $subfolder->setPosition($j); + setI18n($faker, $subfolder); + + $subfolder->save(); + + $image = new FolderImage(); + $image->setFolderId($subfolder->getId()); + generate_image($image, 1, 'folder', $subfolder->getId()); + + for($k=0; $kaddFolder($subfolder); + $content->setVisible(rand(1, 10)>7 ? 0 : 1); + $content->setPosition($k); + setI18n($faker, $content); + + $content->save(); + $contentId = $content->getId(); + $contentIdList[] = $contentId; + + $image = new ContentImage(); + $image->setContentId($content->getId()); + generate_image($image, 1, 'content', $contentId); + } + } + } + + //categories and products + $productIdList = array(); + $categoryIdList = array(); + for($i=0; $i<4; $i++) { + $category = createCategory($faker, 0, $i, $categoryIdList, $contentIdList); + + for($j=1; $jgetId(), $j, $categoryIdList, $contentIdList); + + for($k=0; $k $attributeAvId) { + $attributeCategory = new Thelia\Model\AttributeCategory(); + $attributeCategory->setCategoryId($categoryId) + ->setAttributeId($attributeId) + ->save(); + } + foreach($featureList as $featureId => $featureAvId) { + $featureCategory = new Thelia\Model\FeatureCategory(); + $featureCategory->setCategoryId($categoryId) + ->setFeatureId($featureId) + ->save(); + } + } + + foreach($productIdList as $productId) { + //add random accessories - or not + $alreadyPicked = array(); + for($i=1; $isetAccessory($productIdList[$pick]) + ->setProductId($productId) + ->setPosition($i) + ->save(); + } + + //add random associated content + $alreadyPicked = array(); + for($i=1; $isetContentId($contentIdList[$pick]) + ->setProductId($productId) + ->setPosition($i) + ->save(); + } + + //associate PSE and stocks to products + for($i=0; $isetProductId($productId); + $stock->setQuantity($faker->randomNumber(1,50)); + $stock->setPromo($faker->randomNumber(0,1)); + $stock->setNewness($faker->randomNumber(0,1)); + $stock->setWeight($faker->randomFloat(2, 100,10000)); + $stock->save(); + + $productPrice = new \Thelia\Model\ProductPrice(); + $productPrice->setProductSaleElements($stock); + $productPrice->setCurrency($currency); + $productPrice->setPrice($faker->randomFloat(2, 20, 250)); + $productPrice->setPromoPrice($faker->randomFloat(2, 20, 250)); + $productPrice->save(); + + //associate attributes - or not - to PSE + + $alreadyPicked = array(); + for($i=0; $isetAttributeId($pick) + ->setAttributeAvId($attributeList[$pick][array_rand($attributeList[$pick], 1)]) + ->setProductSaleElements($stock) + ->save(); + } + } + + //associate features to products + foreach($featureList as $featureId => $featureAvId) { + $featureProduct = new Thelia\Model\FeatureProduct(); + $featureProduct->setProductId($productId) + ->setFeatureId($featureId); + + if(count($featureAvId) > 0) { //got some av + $featureProduct->setFeatureAvId( + $featureAvId[array_rand($featureAvId, 1)] + ); + } else { //no av + $featureProduct->setByDefault($faker->text(10)); + } + + $featureProduct->save(); + } + } + + $con->commit(); +} catch (Exception $e) { + echo "error : ".$e->getMessage()."\n"; + $con->rollBack(); +} + +function createProduct($faker, $category, $position, &$productIdList) +{ + $product = new Thelia\Model\Product(); + $product->setRef($category->getId() . '_' . $position . '_' . $faker->randomNumber(8)); + $product->addCategory($category); + $product->setVisible(rand(1, 10)>7 ? 0 : 1); + $product->setPosition($position); + setI18n($faker, $product); + + $product->save(); + $productId = $product->getId(); + $productIdList[] = $productId; + + $image = new ProductImage(); + $image->setProductId($productId); + generate_image($image, 1, 'product', $productId); + + return $product; +} + +function createCategory($faker, $parent, $position, &$categoryIdList, $contentIdList) +{ + $category = new Thelia\Model\Category(); + $category->setParent($parent); + $category->setVisible(rand(1, 10)>7 ? 0 : 1); + $category->setPosition($position); + setI18n($faker, $category); + + $category->save(); + $categoryId = $category->getId(); + $categoryIdList[] = $categoryId; + + //add random associated content + $alreadyPicked = array(); + for($i=1; $isetContentId($contentIdList[$pick]) + ->setCategoryId($categoryId) + ->setPosition($i) + ->save(); + } + + $image = new CategoryImage(); + $image->setCategoryId($categoryId); + generate_image($image, 1, 'category', $categoryId); + + return $category; +} + function generate_image($image, $position, $typeobj, $id) { global $faker; @@ -66,232 +468,18 @@ function generate_image($image, $position, $typeobj, $id) { $image->save($image_file); } -try { +function setI18n($faker, &$object) +{ + $localeList = array('fr_FR', 'en_EN'); - $stmt = $con->prepare("SET foreign_key_checks = 0"); - $stmt->execute(); + $title = $faker->text(20); + $description = $faker->text(50); - $category = Thelia\Model\CategoryQuery::create() - ->find(); - $category->delete(); + foreach($localeList as $locale) { + $object->setLocale($locale); - $product = Thelia\Model\ProductQuery::create() - ->find(); - $product->delete(); - - $customer = Thelia\Model\CustomerQuery::create() - ->find(); - $customer->delete(); - - $customer = new Thelia\Model\Customer(); - $customer->createOrUpdate( - 1, - "thelia", - "thelia", - "5 rue rochon", - "", - "", - "0102030405", - "0601020304", - "63000", - "clermont-ferrand", - 64, - "test@thelia.net", - "azerty" - ); - - - $folder = Thelia\Model\FolderQuery::create() - ->find(); - $folder->delete(); - - $content = Thelia\Model\ContentQuery::create() - ->find(); - $content->delete(); - - $stmt = $con->prepare("SET foreign_key_checks = 1"); - $stmt->execute(); - - //first category - $sweet = new Thelia\Model\Category(); - $sweet->setParent(0); - $sweet->setVisible(1); - $sweet->setPosition(1); - $sweet->setDescription($faker->text(255)); - $sweet->setTitle($faker->text(20)); - - $sweet->save(); - - $image = new CategoryImage(); - $image->setCategoryId($sweet->getId()); - generate_image($image, 1, 'category', $sweet->getId()); - - //second category - $jeans = new Thelia\Model\Category(); - $jeans->setParent(0); - $jeans->setVisible(1); - $jeans->setPosition(2); - $jeans->setDescription($faker->text(255)); - $jeans->setTitle($faker->text(20)); - - $jeans->save(); - - $image = new CategoryImage(); - $image->setCategoryId($jeans->getId()); - generate_image($image, 2, 'category', $jeans->getId()); - - //third category - $other = new Thelia\Model\Category(); - $other->setParent($jeans->getId()); - $other->setVisible(1); - $other->setPosition(3); - $other->setDescription($faker->text(255)); - $other->setTitle($faker->text(20)); - - $other->save(); - - $image = new CategoryImage(); - $image->setCategoryId($other->getId()); - generate_image($image, 3, 'category', $other->getId()); - - for ($i=1; $i <= 5; $i++) { - $product = new \Thelia\Model\Product(); - $product->addCategory($sweet); - $product->setTitle($faker->text(20)); - $product->setDescription($faker->text(250)); -/* $product->setQuantity($faker->randomNumber(1,50)); - $product->setPrice($faker->randomFloat(2, 20, 2500));*/ - $product->setVisible(1); - $product->setPosition($i); - $product->setRef($faker->text(255)); - $product->save(); - - $stock = new \Thelia\Model\ProductSaleElements(); - $stock->setProduct($product); - $stock->setQuantity($faker->randomNumber(1,50)); - $stock->setPromo($faker->randomNumber(0,1)); - $stock->save(); - - $productPrice = new \Thelia\Model\ProductPrice(); - $productPrice->setProductSaleElements($stock); - $productPrice->setCurrency($currency); - $productPrice->setPrice($faker->randomFloat(2, 20, 2500)); - - $productPrice->save(); - - $image = new ProductImage(); - $image->setProductId($product->getId()); - generate_image($image, $i, 'product', $product->getId()); + $object->setTitle($locale . ' : ' . $title); + $object->setDescription($locale . ' : ' . $description); } - - for ($i=1; $i <= 5; $i++) { - $product = new \Thelia\Model\Product(); - $product->addCategory($jeans); - $product->setTitle($faker->text(20)); - $product->setDescription($faker->text(250)); -/* $product->setQuantity($faker->randomNumber(1,50)); - $product->setPrice($faker->randomFloat(2, 20, 2500));*/ - $product->setVisible(1); - $product->setPosition($i); - $product->setRef($faker->text(255)); - $product->save(); - - $stock = new \Thelia\Model\ProductSaleElements(); - $stock->setProduct($product); - $stock->setQuantity($faker->randomNumber(1,50)); - $stock->setPromo($faker->randomNumber(0,1)); - $stock->save(); - - $productPrice = new \Thelia\Model\ProductPrice(); - $productPrice->setProductSaleElements($stock); - $productPrice->setCurrency($currency); - $productPrice->setPrice($faker->randomFloat(2, 20, 2500)); - $productPrice->save(); - - $image = new ProductImage(); - $image->setProductId($product->getId()); - generate_image($image, $i, 'product', $product->getId()); - - } - - //folders and contents - for($i=0; $i<4; $i++) { - $folder = new Thelia\Model\Folder(); - $folder->setParent(0); - $folder->setVisible(rand(1, 10)>7 ? 0 : 1); - $folder->setPosition($i); - $folder->setTitle($faker->text(20)); - $folder->setDescription($faker->text(255)); - - $folder->save(); - - $image = new FolderImage(); - $image->setFolderId($folder->getId()); - generate_image($image, $i, 'folder', $folder->getId()); - - for($j=0; $jsetParent($folder->getId()); - $subfolder->setVisible(rand(1, 10)>7 ? 0 : 1); - $subfolder->setPosition($j); - $subfolder->setTitle($faker->text(20)); - $subfolder->setDescription($faker->text(255)); - - $subfolder->save(); - - $image = new FolderImage(); - $image->setFolderId($subfolder->getId()); - generate_image($image, $j, 'folder', $subfolder->getId()); - - for($k=0; $kaddFolder($subfolder); - $content->setVisible(rand(1, 10)>7 ? 0 : 1); - $content->setPosition($k); - $content->setTitle($faker->text(20)); - $content->setDescription($faker->text(255)); - - $content->save(); - - $image = new ContentImage(); - $image->setContentId($content->getId()); - generate_image($image, $k, 'content', $content->getId()); - - } - } - } - - //features and features_av - for($i=0; $i<4; $i++) { - $feature = new Thelia\Model\Feature(); - $feature->setVisible(rand(1, 10)>7 ? 0 : 1); - $feature->setPosition($i); - $feature->setTitle($faker->text(20)); - $feature->setDescription($faker->text(50)); - - $feature->save(); - - for($j=0; $jsetFeature($feature); - $featureAv->setPosition($j); - $featureAv->setTitle($faker->text(20)); - $featureAv->setDescription($faker->text(255)); - - $featureAv->save(); - } - } - - $con->commit(); -} -catch (PropelException $pe) { - echo "Propel error: ".$pe->getMessage()."\n".$pe->getTraceAsString(); - $con->rollBack(); -} -catch (Exception $e) { - echo "error occured : ".$e->getMessage()."\n".$e->getTraceAsString(); - $con->rollBack(); } - - diff --git a/install/insert.sql b/install/insert.sql index b4b0570dd..58fc9a70f 100755 --- a/install/insert.sql +++ b/install/insert.sql @@ -1,8 +1,8 @@ -INSERT INTO `lang`(`id`,`title`,`code`,`locale`,`url`,`by_default`,`position`,`created_at`,`updated_at`)VALUES -(1, 'Français', 'fr', 'fr_FR', '','1', '1', NOW(), NOW()), -(2, 'English', 'en', 'en_EN', '', '0', '2', NOW(), NOW()), -(3, 'Espanol', 'es', 'es_ES', '', '0', '3', NOW(), NOW()), -(4, 'Italiano', 'it', 'it_IT', '','0', '4', NOW(), NOW()); +INSERT INTO `lang`(`id`,`title`,`code`,`locale`,`url`,`by_default`,`created_at`,`updated_at`)VALUES +(1, 'Français', 'fr', 'fr_FR', '','1', NOW(), NOW()), +(2, 'English', 'en', 'en_EN', '', '0', NOW(), NOW()), +(3, 'Espanol', 'es', 'es_ES', '', '0', NOW(), NOW()), +(4, 'Italiano', 'it', 'it_IT', '','0', NOW(), NOW()); INSERT INTO `config` (`name`, `value`, `secured`, `hidden`, `created_at`, `updated_at`) VALUES ('session_config.default', '1', 1, 1, NOW(), NOW()), @@ -30,11 +30,11 @@ INSERT INTO `customer_title_i18n` (`id`, `locale`, `short`, `long`) VALUES (3, 'en_US', 'Miss', 'Miss'), (3, 'fr_FR', 'Mlle', 'Madamemoiselle'); -INSERT INTO `currency` (`id` ,`code` ,`symbol` ,`rate` ,`by_default`, `position` ,`created_at` ,`updated_at`) +INSERT INTO `currency` (`id` ,`code` ,`symbol` ,`rate`, `position` ,`by_default` ,`created_at` ,`updated_at`) VALUES -(1, 'EUR', '€', '1', '1', '1', NOW() , NOW()), -(2, 'USD', '$', '1.26', '0', '2', NOW(), NOW()), -(3, 'GBP', '£', '0.89', '0', '3',NOW(), NOW()); +(1, 'EUR', '€', '1', 1, '1', NOW() , NOW()), +(2, 'USD', '$', '1.26', 2, '0', NOW(), NOW()), +(3, 'GBP', '£', '0.89', 3, '0', NOW(), NOW()); INSERT INTO `currency_i18n` (`id` ,`locale` ,`name`) VALUES diff --git a/install/thelia.sql b/install/thelia.sql index 9188f164d..031b00f5b 100755 --- a/install/thelia.sql +++ b/install/thelia.sql @@ -567,42 +567,6 @@ CREATE TABLE `content` PRIMARY KEY (`id`) ) ENGINE=InnoDB; --- --------------------------------------------------------------------- --- content_assoc --- --------------------------------------------------------------------- - -DROP TABLE IF EXISTS `content_assoc`; - -CREATE TABLE `content_assoc` -( - `id` INTEGER NOT NULL AUTO_INCREMENT, - `category_id` INTEGER, - `product_id` INTEGER, - `content_id` INTEGER, - `position` INTEGER, - `created_at` DATETIME, - `updated_at` DATETIME, - PRIMARY KEY (`id`), - INDEX `idx_content_assoc_category_id` (`category_id`), - INDEX `idx_content_assoc_product_id` (`product_id`), - INDEX `idx_content_assoc_content_id` (`content_id`), - CONSTRAINT `fk_content_assoc_category_id` - FOREIGN KEY (`category_id`) - REFERENCES `category` (`id`) - ON UPDATE RESTRICT - ON DELETE CASCADE, - CONSTRAINT `fk_content_assoc_product_id` - FOREIGN KEY (`product_id`) - REFERENCES `product` (`id`) - ON UPDATE RESTRICT - ON DELETE CASCADE, - CONSTRAINT `fk_content_assoc_content_id` - FOREIGN KEY (`content_id`) - REFERENCES `content` (`id`) - ON UPDATE RESTRICT - ON DELETE CASCADE -) ENGINE=InnoDB; - -- --------------------------------------------------------------------- -- product_image -- --------------------------------------------------------------------- @@ -846,7 +810,7 @@ DROP TABLE IF EXISTS `accessory`; CREATE TABLE `accessory` ( - `id` INTEGER NOT NULL, + `id` INTEGER NOT NULL AUTO_INCREMENT, `product_id` INTEGER NOT NULL, `accessory` INTEGER NOT NULL, `position` INTEGER NOT NULL, @@ -1117,42 +1081,22 @@ CREATE TABLE `coupon` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `code` VARCHAR(45) NOT NULL, - `action` VARCHAR(255) NOT NULL, + `type` VARCHAR(255) NOT NULL, + `title` VARCHAR(255) NOT NULL, + `short_description` TEXT NOT NULL, + `description` LONGTEXT NOT NULL, `value` FLOAT NOT NULL, - `used` TINYINT, - `available_since` DATETIME, - `date_limit` DATETIME, - `activate` TINYINT, + `is_used` TINYINT NOT NULL, + `is_enabled` TINYINT NOT NULL, + `expiration_date` DATETIME NOT NULL, + `serialized_rules` TEXT NOT NULL, `created_at` DATETIME, `updated_at` DATETIME, + `version` INTEGER DEFAULT 0, PRIMARY KEY (`id`), UNIQUE INDEX `code_UNIQUE` (`code`) ) ENGINE=InnoDB; --- --------------------------------------------------------------------- --- coupon_rule --- --------------------------------------------------------------------- - -DROP TABLE IF EXISTS `coupon_rule`; - -CREATE TABLE `coupon_rule` -( - `id` INTEGER NOT NULL AUTO_INCREMENT, - `coupon_id` INTEGER NOT NULL, - `controller` VARCHAR(255), - `operation` VARCHAR(255), - `value` FLOAT, - `created_at` DATETIME, - `updated_at` DATETIME, - PRIMARY KEY (`id`), - INDEX `idx_coupon_rule_coupon_id` (`coupon_id`), - CONSTRAINT `fk_coupon_rule_coupon_id` - FOREIGN KEY (`coupon_id`) - REFERENCES `coupon` (`id`) - ON UPDATE RESTRICT - ON DELETE CASCADE -) ENGINE=InnoDB; - -- --------------------------------------------------------------------- -- coupon_order -- --------------------------------------------------------------------- @@ -1169,11 +1113,15 @@ CREATE TABLE `coupon_order` `updated_at` DATETIME, PRIMARY KEY (`id`), INDEX `idx_coupon_order_order_id` (`order_id`), + INDEX `fk_coupon_order_coupon_idx` (`code`), CONSTRAINT `fk_coupon_order_order_id` FOREIGN KEY (`order_id`) REFERENCES `order` (`id`) ON UPDATE RESTRICT - ON DELETE CASCADE + ON DELETE CASCADE, + CONSTRAINT `fk_coupon_order_coupon` + FOREIGN KEY (`code`) + REFERENCES `coupon` (`code`) ) ENGINE=InnoDB; -- --------------------------------------------------------------------- @@ -1457,6 +1405,64 @@ CREATE TABLE `folder_document` ON DELETE CASCADE ) ENGINE=InnoDB; +-- --------------------------------------------------------------------- +-- product_associated_content +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `product_associated_content`; + +CREATE TABLE `product_associated_content` +( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `product_id` INTEGER NOT NULL, + `content_id` INTEGER NOT NULL, + `position` INTEGER NOT NULL, + `created_at` DATETIME, + `updated_at` DATETIME, + PRIMARY KEY (`id`), + INDEX `idx_product_associated_content_product_id` (`product_id`), + INDEX `idx_product_associated_content_content_id` (`content_id`), + CONSTRAINT `fk_product_associated_content_product_id` + FOREIGN KEY (`product_id`) + REFERENCES `product` (`id`) + ON UPDATE RESTRICT + ON DELETE CASCADE, + CONSTRAINT `fk_product_associated_content_content_id` + FOREIGN KEY (`content_id`) + REFERENCES `content` (`id`) + ON UPDATE RESTRICT + ON DELETE CASCADE +) ENGINE=InnoDB; + +-- --------------------------------------------------------------------- +-- category_associated_content +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `category_associated_content`; + +CREATE TABLE `category_associated_content` +( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `category_id` INTEGER NOT NULL, + `content_id` INTEGER NOT NULL, + `position` INTEGER NOT NULL, + `created_at` DATETIME, + `updated_at` DATETIME, + PRIMARY KEY (`id`), + INDEX `idx_category_associated_content_category_id` (`category_id`), + INDEX `idx_category_associated_content_content_id` (`content_id`), + CONSTRAINT `fk_category_associated_content_category_id` + FOREIGN KEY (`category_id`) + REFERENCES `category` (`id`) + ON UPDATE RESTRICT + ON DELETE CASCADE, + CONSTRAINT `fk_category_associated_content_content_id` + FOREIGN KEY (`content_id`) + REFERENCES `content` (`id`) + ON UPDATE RESTRICT + ON DELETE CASCADE +) ENGINE=InnoDB; + -- --------------------------------------------------------------------- -- category_i18n -- --------------------------------------------------------------------- @@ -1466,7 +1472,7 @@ DROP TABLE IF EXISTS `category_i18n`; CREATE TABLE `category_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1487,7 +1493,7 @@ DROP TABLE IF EXISTS `product_i18n`; CREATE TABLE `product_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1508,7 +1514,7 @@ DROP TABLE IF EXISTS `country_i18n`; CREATE TABLE `country_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1529,7 +1535,7 @@ DROP TABLE IF EXISTS `tax_i18n`; CREATE TABLE `tax_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` TEXT, PRIMARY KEY (`id`,`locale`), @@ -1548,7 +1554,7 @@ DROP TABLE IF EXISTS `tax_rule_i18n`; CREATE TABLE `tax_rule_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, PRIMARY KEY (`id`,`locale`), CONSTRAINT `tax_rule_i18n_FK_1` FOREIGN KEY (`id`) @@ -1565,7 +1571,7 @@ DROP TABLE IF EXISTS `feature_i18n`; CREATE TABLE `feature_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1586,7 +1592,7 @@ DROP TABLE IF EXISTS `feature_av_i18n`; CREATE TABLE `feature_av_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1607,7 +1613,7 @@ DROP TABLE IF EXISTS `attribute_i18n`; CREATE TABLE `attribute_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1628,7 +1634,7 @@ DROP TABLE IF EXISTS `attribute_av_i18n`; CREATE TABLE `attribute_av_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1649,7 +1655,7 @@ DROP TABLE IF EXISTS `config_i18n`; CREATE TABLE `config_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1670,7 +1676,7 @@ DROP TABLE IF EXISTS `customer_title_i18n`; CREATE TABLE `customer_title_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `short` VARCHAR(10), `long` VARCHAR(45), PRIMARY KEY (`id`,`locale`), @@ -1689,7 +1695,7 @@ DROP TABLE IF EXISTS `folder_i18n`; CREATE TABLE `folder_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1710,7 +1716,7 @@ DROP TABLE IF EXISTS `content_i18n`; CREATE TABLE `content_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1731,7 +1737,7 @@ DROP TABLE IF EXISTS `product_image_i18n`; CREATE TABLE `product_image_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1752,7 +1758,7 @@ DROP TABLE IF EXISTS `product_document_i18n`; CREATE TABLE `product_document_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1773,7 +1779,7 @@ DROP TABLE IF EXISTS `currency_i18n`; CREATE TABLE `currency_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `name` VARCHAR(45), PRIMARY KEY (`id`,`locale`), CONSTRAINT `currency_i18n_FK_1` @@ -1791,7 +1797,7 @@ DROP TABLE IF EXISTS `order_status_i18n`; CREATE TABLE `order_status_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1812,7 +1818,7 @@ DROP TABLE IF EXISTS `module_i18n`; CREATE TABLE `module_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1833,7 +1839,7 @@ DROP TABLE IF EXISTS `group_i18n`; CREATE TABLE `group_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1854,7 +1860,7 @@ DROP TABLE IF EXISTS `resource_i18n`; CREATE TABLE `resource_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1875,7 +1881,7 @@ DROP TABLE IF EXISTS `message_i18n`; CREATE TABLE `message_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` TEXT, `description` LONGTEXT, `description_html` LONGTEXT, @@ -1886,6 +1892,23 @@ CREATE TABLE `message_i18n` ON DELETE CASCADE ) ENGINE=InnoDB; +-- --------------------------------------------------------------------- +-- coupon_i18n +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `coupon_i18n`; + +CREATE TABLE `coupon_i18n` +( + `id` INTEGER NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, + PRIMARY KEY (`id`,`locale`), + CONSTRAINT `coupon_i18n_FK_1` + FOREIGN KEY (`id`) + REFERENCES `coupon` (`id`) + ON DELETE CASCADE +) ENGINE=InnoDB; + -- --------------------------------------------------------------------- -- category_image_i18n -- --------------------------------------------------------------------- @@ -1895,7 +1918,7 @@ DROP TABLE IF EXISTS `category_image_i18n`; CREATE TABLE `category_image_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1916,7 +1939,7 @@ DROP TABLE IF EXISTS `folder_image_i18n`; CREATE TABLE `folder_image_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1937,7 +1960,7 @@ DROP TABLE IF EXISTS `content_image_i18n`; CREATE TABLE `content_image_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1958,7 +1981,7 @@ DROP TABLE IF EXISTS `category_document_i18n`; CREATE TABLE `category_document_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -1979,7 +2002,7 @@ DROP TABLE IF EXISTS `content_document_i18n`; CREATE TABLE `content_document_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -2000,7 +2023,7 @@ DROP TABLE IF EXISTS `folder_document_i18n`; CREATE TABLE `folder_document_i18n` ( `id` INTEGER NOT NULL, - `locale` VARCHAR(5) DEFAULT 'en_US' NOT NULL, + `locale` VARCHAR(5) DEFAULT 'en_EN' NOT NULL, `title` VARCHAR(255), `description` LONGTEXT, `chapo` TEXT, @@ -2132,5 +2155,34 @@ CREATE TABLE `message_version` ON DELETE CASCADE ) ENGINE=InnoDB; +-- --------------------------------------------------------------------- +-- coupon_version +-- --------------------------------------------------------------------- + +DROP TABLE IF EXISTS `coupon_version`; + +CREATE TABLE `coupon_version` +( + `id` INTEGER NOT NULL, + `code` VARCHAR(45) NOT NULL, + `type` VARCHAR(255) NOT NULL, + `title` VARCHAR(255) NOT NULL, + `short_description` TEXT NOT NULL, + `description` LONGTEXT NOT NULL, + `value` FLOAT NOT NULL, + `is_used` TINYINT NOT NULL, + `is_enabled` TINYINT NOT NULL, + `expiration_date` DATETIME NOT NULL, + `serialized_rules` TEXT NOT NULL, + `created_at` DATETIME, + `updated_at` DATETIME, + `version` INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY (`id`,`version`), + CONSTRAINT `coupon_version_FK_1` + FOREIGN KEY (`id`) + REFERENCES `coupon` (`id`) + ON DELETE CASCADE +) ENGINE=InnoDB; + # This restores the fkey checks, after having unset them earlier SET FOREIGN_KEY_CHECKS = 1; diff --git a/local/config/database.yml.sample b/local/config/database.yml.sample old mode 100644 new mode 100755 diff --git a/local/config/schema.xml b/local/config/schema.xml index 59ef62cb9..839e89079 100755 --- a/local/config/schema.xml +++ b/local/config/schema.xml @@ -425,32 +425,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -631,7 +605,7 @@
- + @@ -817,30 +791,21 @@
- + + + + - - - - + + + + -
- - - - - - - - - - - - - + +
@@ -850,9 +815,15 @@ + + + + + +
@@ -1086,4 +1057,42 @@
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
diff --git a/local/media/.gitkeep b/local/media/.gitkeep old mode 100644 new mode 100755 diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/bootstrap-editable/css/bootstrap-editable.css b/templates/admin/default/assets/bootstrap-editable/css/bootstrap-editable.css old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/bootstrap-editable/img/clear.png b/templates/admin/default/assets/bootstrap-editable/img/clear.png old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/bootstrap-editable/img/loading.gif b/templates/admin/default/assets/bootstrap-editable/img/loading.gif old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/bootstrap-editable/js/bootstrap-editable.js b/templates/admin/default/assets/bootstrap-editable/js/bootstrap-editable.js old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/bootstrap-editable/js/bootstrap-editable.min.js b/templates/admin/default/assets/bootstrap-editable/js/bootstrap-editable.min.js old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/css/img/logout.png b/templates/admin/default/assets/css/img/logout.png old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/css/img/search-icon.png b/templates/admin/default/assets/css/img/search-icon.png old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/css/img/search.png b/templates/admin/default/assets/css/img/search.png old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/css/img/title-header.png b/templates/admin/default/assets/css/img/title-header.png old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/css/img/top-bar-logo.png b/templates/admin/default/assets/css/img/top-bar-logo.png old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/css/img/top.jpg b/templates/admin/default/assets/css/img/top.jpg old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/img/flags/en.gif b/templates/admin/default/assets/img/flags/en.gif old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/img/flags/es.gif b/templates/admin/default/assets/img/flags/es.gif old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/img/flags/fr.gif b/templates/admin/default/assets/img/flags/fr.gif old mode 100644 new mode 100755 diff --git a/templates/admin/default/assets/img/flags/it.gif b/templates/admin/default/assets/img/flags/it.gif old mode 100644 new mode 100755 diff --git a/templates/admin/default/categories.html b/templates/admin/default/categories.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/edit_category.html b/templates/admin/default/edit_category.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/general_error.html b/templates/admin/default/general_error.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/includes/add-category-dialog.html b/templates/admin/default/includes/add-category-dialog.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/includes/category_breadcrumb.html b/templates/admin/default/includes/category_breadcrumb.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/includes/delete-category-dialog.html b/templates/admin/default/includes/delete-category-dialog.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/includes/inner-form-toolbar.html b/templates/admin/default/includes/inner-form-toolbar.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/includes/js.inc.html b/templates/admin/default/includes/js.inc.html old mode 100644 new mode 100755 diff --git a/templates/admin/default/includes/thelia_news_feed.html b/templates/admin/default/includes/thelia_news_feed.html old mode 100644 new mode 100755 diff --git a/templates/default/bug.html b/templates/default/bug.html deleted file mode 100644 index e69de29bb..000000000 diff --git a/templates/default/cart.html b/templates/default/cart.html old mode 100644 new mode 100755 diff --git a/templates/default/category.html b/templates/default/category.html index acb98e919..8b52f0afc 100755 --- a/templates/default/category.html +++ b/templates/default/category.html @@ -1,70 +1,194 @@ -{*loop name="category0" type="category" parent="0"} -

CATEGORY : #TITLE

- {loop name="category1" type="category" parent="#ID"} -
-

SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)

- {loop name="product" type="product" category="#ID"} -

PRODUCT : #REF / #TITLE

- #PRICE € - {/loop} -
-
- {/loop} +

Category page

- {loop name="product" type="product" category="#ID"} -

PRODUCT : #REF / #TITLE

- #PRICE € - {/loop} -
-
-{/loop*} -

PRODUCTS

-{*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" 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*} +

CATALOG

-{*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 name="category0" type="category" parent="0" order="manual"} +
+

CATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)

-{loop name="product" type="product" order="ref"} -

PRODUCT #ID : #REF / #TITLE

- -

Accessories

+ {ifloop rel="prod_ass_cont"} +
Associated Content
    - {loop name="acc" type="accessory" product="#ID" order="accessory"} -
  • #REF
  • - {/loop} + {loop name="prod_ass_cont" type="associated_content" category="#ID" order="associated_content"} +
  • #TITLE
  • + {/loop}
+ {/ifloop} + {elseloop rel="prod_ass_cont"} +
No associated content
+ {/elseloop} -

Features

-
    - {loop name="ft" type="feature" order="manual" product="#ID"} -
  • #TITLE
  • + {loop name="product" type="product" category="#ID"} +
    +

    PRODUCT : #REF (#LOOP_COUNT / #LOOP_TOTAL)

    +

    #TITLE

    +

    #DESCRIPTION

    + + {ifloop rel="acc"} +
    Accessories
    +
      + {loop name="acc" type="accessory" product="#ID" order="accessory"} +
    • #REF
    • + {/loop} +
    + {/ifloop} + {elseloop rel="acc"} +
    No accessory
    + {/elseloop} + + {ifloop rel="prod_ass_cont"} +
    Associated Content
    +
      + {loop name="prod_ass_cont" type="associated_content" product="#ID" order="associated_content"} +
    • #TITLE
    • + {/loop} +
    + {/ifloop} + {elseloop rel="prod_ass_cont"} +
    No associated content
    + {/elseloop} + + {ifloop rel="ft"} +
    Features
    +
      + {assign var=current_product value=#ID} + {loop name="ft" type="feature" order="manual" product="#ID"} +
    • + #TITLE : + {loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"} + #TITLE / #PERSONAL_VALUE + {/loop} +
    • + {/loop} +
    + {/ifloop} + {elseloop rel="ft"} +
    No feature
    + {/elseloop} + +
    Product sale elements
    + + {assign var=current_product value=#ID} + {loop name="pse" type="product_sale_elements" product="#ID"} +
    + {loop name="combi" type="attribute_combination" product_sale_elements="#ID"} + #ATTRIBUTE_TITLE = #ATTRIBUTE_AVAILABILITY_TITLE
    + {/loop} +
    #WEIGHT g +
    {if #IS_PROMO == 1} #PROMO_PRICE € (instead of #PRICE) {else} #PRICE € {/if} +

    + Add + + to my cart +
+
{/loop} - +
+ {/loop} + {loop name="catgory1" type="category" parent="#ID"} +
+

SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)

+ + {ifloop rel="prod_ass_cont"} +
Associated Content
+
    + {loop name="prod_ass_cont" type="associated_content" category="#ID" order="associated_content"} +
  • #TITLE
  • + {/loop} +
+ {/ifloop} + {elseloop rel="prod_ass_cont"} +
No associated content
+ {/elseloop} + + {loop name="product" type="product" category="#ID"} + +
+

PRODUCT : #REF (#LOOP_COUNT / #LOOP_TOTAL)

+

#TITLE

+

#DESCRIPTION

+ + {ifloop rel="acc"} +
Accessories
+
    + {loop name="acc" type="accessory" product="#ID" order="accessory"} +
  • #REF
  • + {/loop} +
+ {/ifloop} + {elseloop rel="acc"} +
No accessory
+ {/elseloop} + + {ifloop rel="prod_ass_cont"} +
Associated Content
+
    + {loop name="prod_ass_cont" type="associated_content" product="#ID" order="associated_content"} +
  • #TITLE
  • + {/loop} +
+ {/ifloop} + {elseloop rel="prod_ass_cont"} +
No associated content
+ {/elseloop} + + {ifloop rel="ft"} +
Features
+
    + {loop name="ft" type="feature" order="manual" product="#ID"} +
  • + #TITLE : + {loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"} + #TITLE / #PERSONAL_VALUE + {/loop} +
  • + {/loop} +
+ {/ifloop} + {elseloop rel="ft"} +
No feature
+ {/elseloop} + +
Product sale elements
+ + {assign var=current_product value=#ID} + {loop name="pse" type="product_sale_elements" product="#ID"} +
+ {loop name="combi" type="attribute_combination" product_sale_elements="#ID"} + #ATTRIBUTE_TITLE = #ATTRIBUTE_AVAILABILITY_TITLE
+ {/loop} +
#WEIGHT g +
{if #IS_PROMO == 1} #PROMO_PRICE € (instead of #PRICE) {else} #PRICE € {/if} +

+ Add + + to my cart + +
+ {/loop} + +
+ {/loop} +
+ {/loop} + {/loop} + + +
+

ALL FEATURES AND THEIR AVAILABILITY

    @@ -72,10 +196,29 @@
  • #TITLE
      - {loop name="ftav" type="feature_available" order="manual" feature="#ID"} + {loop name="ftav" type="feature_availability" order="manual" feature="#ID"}
    • #TITLE
    • {/loop}
  • {/loop} -
\ No newline at end of file + + +
+ +

ALL ATTRIBUTES AND THEIR AVAILABILITY

+ +
    + {loop name="attr" type="attribute" order="manual"} +
  • + #TITLE +
      + {loop name="attrav" type="attribute_availability" order="manual" attribute="#ID"} +
    • #TITLE
    • + {/loop} +
    +
  • + {/loop} +
+ +
\ No newline at end of file diff --git a/templates/default/debug.html b/templates/default/debug.html new file mode 100755 index 000000000..251a9b891 --- /dev/null +++ b/templates/default/debug.html @@ -0,0 +1,23 @@ +{*loop name="product" type="product" new="on" promo="on" min_stock="20" attribute_non_strict_match="min_stock,promo"} +

PRODUCT : #REF / #TITLE (#ID)

+{/loop*} + +{*loop name="product" type="product" min_weight="1000" max_weight="6000" attribute_non_strict_match="*"} +

PRODUCT : #REF / #TITLE (#ID)

+{/loop*} + +{*loop name="product" type="product" min_price="100" max_price="300" min_stock="4" min_weight="6000" max_weight="7000" attribute_non_strict_match="*" promo="on"} +

PRODUCT : #REF / #TITLE (#ID)

+{/loop*} + +{*loop name="product" type="product" promo="0" min_stock="4" order="promo,min_price"} +

PRODUCT : #REF / #TITLE (#ID)

+{/loop*} + +{*loop name="product" type="product" order="promo,min_price"} +

PRODUCT : #REF / #TITLE (#ID) / NEW : #NEW / PROMO : #PROMO / best price : #BEST_PRICE

+{/loop*} + +{loop name="product" type="product"} +

PRODUCT : #REF / #TITLE

+{/loop} \ No newline at end of file diff --git a/templates/default/images.html b/templates/default/images.html old mode 100644 new mode 100755 diff --git a/templates/default/login.html b/templates/default/login.html old mode 100644 new mode 100755 diff --git a/templates/default/myaccount.html b/templates/default/myaccount.html old mode 100644 new mode 100755