diff --git a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php index 63d115334..3c8b3ddb3 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -14,13 +14,11 @@ use Thelia\Core\Template\Smarty\AbstractSmartyPlugin; use Thelia\Core\Template\Exception\ResourceNotFoundException; use Thelia\Core\Template\ParserContext; use Thelia\Core\Template\TemplateDefinition; -<<<<<<< HEAD + use Thelia\Model\ConfigQuery; use Thelia\Core\Template\TemplateHelper; use Imagine\Exception\InvalidArgumentException; -======= use Thelia\Core\Translation\Translator; ->>>>>>> master /** * @@ -167,7 +165,6 @@ class SmartyParser extends Smarty implements ParserInterface $this->setConfigDir($configDirectory); /* add modules template directories */ -<<<<<<< HEAD $this->addTemplateDirectory( $templateDefinition->getType(), $templateDefinition->getName(), @@ -181,32 +178,6 @@ class SmartyParser extends Smarty implements ParserInterface foreach($this->templateDirectories[$templateDefinition->getType()][$templateDefinition->getName()] as $key => $directory) { $this->addTemplateDir($directory, $key); } -======= - switch ($templateDefinition->getType()) { - case TemplateDefinition::FRONT_OFFICE: - /* do not pass array directly to addTemplateDir since we cant control on keys */ - if (isset($this->frontOfficeTemplateDirectories[$templateDefinition->getName()])) { - foreach ($this->frontOfficeTemplateDirectories[$templateDefinition->getName()] as $key => $directory) { - $this->addTemplateDir($directory, $key); - } - } - break; - - case TemplateDefinition::BACK_OFFICE: - /* do not pass array directly to addTemplateDir since we cant control on keys */ - if (isset($this->backOfficeTemplateDirectories[$templateDefinition->getName()])) { - foreach ($this->backOfficeTemplateDirectories[$templateDefinition->getName()] as $key => $directory) { - $this->addTemplateDir($directory, $key); - } - } - break; - - case TemplateDefinition::PDF: - break; - - default: - break; ->>>>>>> master } } @@ -215,62 +186,58 @@ class SmartyParser extends Smarty implements ParserInterface return $this->templateDefinition; } -<<<<<<< HEAD public function getTemplate() -======= - /** - * Return a rendered template, either from file or ftom a string - * - * @param string $resourceType either 'string' (rendering from a string) or 'file' (rendering a file) - * @param string $resourceContent the resource content (a text, or a template file name) - * @param array $parameters an associative array of names / value pairs - * - * @return string the rendered template text - */ - protected function internalRenderer($resourceType, $resourceContent, array $parameters) ->>>>>>> master { return $this->templateDefinition->getPath(); } /** - * Return a rendered template file + * Return a rendered template, either from file or ftom a string + * + * @param string $resourceType either 'string' (rendering from a string) or 'file' (rendering a file) + * @param string $resourceContent the resource content (a text, or a template file name) + * @param array $parameters an associative array of names / value pairs * - * @param string $realTemplateName the template name (from the template directory) - * @param array $parameters an associative array of names / value pairs * @return string the rendered template text */ - public function render($realTemplateName, array $parameters = array()) + protected function internalRenderer($resourceType, $resourceContent, array $parameters) { -<<<<<<< HEAD - if(false === $this->templateExists($realTemplateName)) { - throw new ResourceNotFoundException(); - } // Assign the parserContext variables foreach ($this->parserContext as $var => $value) { $this->assign($var, $value); -======= - if (false === $this->templateExists($realTemplateName)) { - throw new ResourceNotFoundException(Translator::getInstance()->trans("Template file %file cannot be found.", array('%file', $realTemplateName))); ->>>>>>> master } $this->assign($parameters); -<<<<<<< HEAD - return $this->fetch(sprintf("file:%s", $realTemplateName)); -======= + return $this->fetch(sprintf("%s:%s", $resourceType, $resourceContent)); + } + + /** + * Return a rendered template file + * + * @param string $realTemplateName the template name (from the template directory) + * @param array $parameters an associative array of names / value pairs + * @return string the rendered template text + */ + public function render($realTemplateName, array $parameters = array()) + { + if (false === $this->templateExists($realTemplateName)) { + throw new ResourceNotFoundException(Translator::getInstance()->trans("Template file %file cannot be found.", array('%file', $realTemplateName))); + } + + return $this->internalRenderer('file', $realTemplateName, $parameters); + } + /** * Return a rendered template text * - * @param string $templateText the template text - * @param array $parameters an associative array of names / value pairs + * @param string $templateText the template text + * @param array $parameters an associative array of names / value pairs * @return string the rendered template text */ public function renderString($templateText, array $parameters = array()) { return $this->internalRenderer('string', $templateText, $parameters); ->>>>>>> master } /** diff --git a/core/lib/Thelia/Model/Base/Accessory.php b/core/lib/Thelia/Model/Base/Accessory.php index 5dfd4c91b..df3de2bc3 100644 --- a/core/lib/Thelia/Model/Base/Accessory.php +++ b/core/lib/Thelia/Model/Base/Accessory.php @@ -902,26 +902,26 @@ abstract class Accessory implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AccessoryTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AccessoryTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(AccessoryTableMap::ACCESSORY)) { - $modifiedColumns[':p' . $index++] = '`ACCESSORY`'; + $modifiedColumns[':p' . $index++] = 'ACCESSORY'; } if ($this->isColumnModified(AccessoryTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(AccessoryTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AccessoryTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `accessory` (%s) VALUES (%s)', + 'INSERT INTO accessory (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -930,22 +930,22 @@ abstract class Accessory implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`ACCESSORY`': + case 'ACCESSORY': $stmt->bindValue($identifier, $this->accessory, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AccessoryQuery.php b/core/lib/Thelia/Model/Base/AccessoryQuery.php index a79b73fbd..82bb03a70 100644 --- a/core/lib/Thelia/Model/Base/AccessoryQuery.php +++ b/core/lib/Thelia/Model/Base/AccessoryQuery.php @@ -151,7 +151,7 @@ abstract class AccessoryQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PRODUCT_ID`, `ACCESSORY`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `accessory` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PRODUCT_ID, ACCESSORY, POSITION, CREATED_AT, UPDATED_AT FROM accessory WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Address.php b/core/lib/Thelia/Model/Base/Address.php index 98a346969..47bcd35a3 100644 --- a/core/lib/Thelia/Model/Base/Address.php +++ b/core/lib/Thelia/Model/Base/Address.php @@ -1503,62 +1503,62 @@ abstract class Address implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AddressTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AddressTableMap::LABEL)) { - $modifiedColumns[':p' . $index++] = '`LABEL`'; + $modifiedColumns[':p' . $index++] = 'LABEL'; } if ($this->isColumnModified(AddressTableMap::CUSTOMER_ID)) { - $modifiedColumns[':p' . $index++] = '`CUSTOMER_ID`'; + $modifiedColumns[':p' . $index++] = 'CUSTOMER_ID'; } if ($this->isColumnModified(AddressTableMap::TITLE_ID)) { - $modifiedColumns[':p' . $index++] = '`TITLE_ID`'; + $modifiedColumns[':p' . $index++] = 'TITLE_ID'; } if ($this->isColumnModified(AddressTableMap::COMPANY)) { - $modifiedColumns[':p' . $index++] = '`COMPANY`'; + $modifiedColumns[':p' . $index++] = 'COMPANY'; } if ($this->isColumnModified(AddressTableMap::FIRSTNAME)) { - $modifiedColumns[':p' . $index++] = '`FIRSTNAME`'; + $modifiedColumns[':p' . $index++] = 'FIRSTNAME'; } if ($this->isColumnModified(AddressTableMap::LASTNAME)) { - $modifiedColumns[':p' . $index++] = '`LASTNAME`'; + $modifiedColumns[':p' . $index++] = 'LASTNAME'; } if ($this->isColumnModified(AddressTableMap::ADDRESS1)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS1`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS1'; } if ($this->isColumnModified(AddressTableMap::ADDRESS2)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS2`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS2'; } if ($this->isColumnModified(AddressTableMap::ADDRESS3)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS3`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS3'; } if ($this->isColumnModified(AddressTableMap::ZIPCODE)) { - $modifiedColumns[':p' . $index++] = '`ZIPCODE`'; + $modifiedColumns[':p' . $index++] = 'ZIPCODE'; } if ($this->isColumnModified(AddressTableMap::CITY)) { - $modifiedColumns[':p' . $index++] = '`CITY`'; + $modifiedColumns[':p' . $index++] = 'CITY'; } if ($this->isColumnModified(AddressTableMap::COUNTRY_ID)) { - $modifiedColumns[':p' . $index++] = '`COUNTRY_ID`'; + $modifiedColumns[':p' . $index++] = 'COUNTRY_ID'; } if ($this->isColumnModified(AddressTableMap::PHONE)) { - $modifiedColumns[':p' . $index++] = '`PHONE`'; + $modifiedColumns[':p' . $index++] = 'PHONE'; } if ($this->isColumnModified(AddressTableMap::CELLPHONE)) { - $modifiedColumns[':p' . $index++] = '`CELLPHONE`'; + $modifiedColumns[':p' . $index++] = 'CELLPHONE'; } if ($this->isColumnModified(AddressTableMap::IS_DEFAULT)) { - $modifiedColumns[':p' . $index++] = '`IS_DEFAULT`'; + $modifiedColumns[':p' . $index++] = 'IS_DEFAULT'; } if ($this->isColumnModified(AddressTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AddressTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `address` (%s) VALUES (%s)', + 'INSERT INTO address (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1567,58 +1567,58 @@ abstract class Address implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LABEL`': + case 'LABEL': $stmt->bindValue($identifier, $this->label, PDO::PARAM_STR); break; - case '`CUSTOMER_ID`': + case 'CUSTOMER_ID': $stmt->bindValue($identifier, $this->customer_id, PDO::PARAM_INT); break; - case '`TITLE_ID`': + case 'TITLE_ID': $stmt->bindValue($identifier, $this->title_id, PDO::PARAM_INT); break; - case '`COMPANY`': + case 'COMPANY': $stmt->bindValue($identifier, $this->company, PDO::PARAM_STR); break; - case '`FIRSTNAME`': + case 'FIRSTNAME': $stmt->bindValue($identifier, $this->firstname, PDO::PARAM_STR); break; - case '`LASTNAME`': + case 'LASTNAME': $stmt->bindValue($identifier, $this->lastname, PDO::PARAM_STR); break; - case '`ADDRESS1`': + case 'ADDRESS1': $stmt->bindValue($identifier, $this->address1, PDO::PARAM_STR); break; - case '`ADDRESS2`': + case 'ADDRESS2': $stmt->bindValue($identifier, $this->address2, PDO::PARAM_STR); break; - case '`ADDRESS3`': + case 'ADDRESS3': $stmt->bindValue($identifier, $this->address3, PDO::PARAM_STR); break; - case '`ZIPCODE`': + case 'ZIPCODE': $stmt->bindValue($identifier, $this->zipcode, PDO::PARAM_STR); break; - case '`CITY`': + case 'CITY': $stmt->bindValue($identifier, $this->city, PDO::PARAM_STR); break; - case '`COUNTRY_ID`': + case 'COUNTRY_ID': $stmt->bindValue($identifier, $this->country_id, PDO::PARAM_INT); break; - case '`PHONE`': + case 'PHONE': $stmt->bindValue($identifier, $this->phone, PDO::PARAM_STR); break; - case '`CELLPHONE`': + case 'CELLPHONE': $stmt->bindValue($identifier, $this->cellphone, PDO::PARAM_STR); break; - case '`IS_DEFAULT`': + case 'IS_DEFAULT': $stmt->bindValue($identifier, $this->is_default, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AddressQuery.php b/core/lib/Thelia/Model/Base/AddressQuery.php index 40d15fd96..dc6827868 100644 --- a/core/lib/Thelia/Model/Base/AddressQuery.php +++ b/core/lib/Thelia/Model/Base/AddressQuery.php @@ -211,7 +211,7 @@ abstract class AddressQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LABEL`, `CUSTOMER_ID`, `TITLE_ID`, `COMPANY`, `FIRSTNAME`, `LASTNAME`, `ADDRESS1`, `ADDRESS2`, `ADDRESS3`, `ZIPCODE`, `CITY`, `COUNTRY_ID`, `PHONE`, `CELLPHONE`, `IS_DEFAULT`, `CREATED_AT`, `UPDATED_AT` FROM `address` WHERE `ID` = :p0'; + $sql = 'SELECT ID, LABEL, CUSTOMER_ID, TITLE_ID, COMPANY, FIRSTNAME, LASTNAME, ADDRESS1, ADDRESS2, ADDRESS3, ZIPCODE, CITY, COUNTRY_ID, PHONE, CELLPHONE, IS_DEFAULT, CREATED_AT, UPDATED_AT FROM address WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Admin.php b/core/lib/Thelia/Model/Base/Admin.php index 4342ae90f..cb1295c3f 100644 --- a/core/lib/Thelia/Model/Base/Admin.php +++ b/core/lib/Thelia/Model/Base/Admin.php @@ -1128,44 +1128,44 @@ abstract class Admin implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AdminTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AdminTableMap::PROFILE_ID)) { - $modifiedColumns[':p' . $index++] = '`PROFILE_ID`'; + $modifiedColumns[':p' . $index++] = 'PROFILE_ID'; } if ($this->isColumnModified(AdminTableMap::FIRSTNAME)) { - $modifiedColumns[':p' . $index++] = '`FIRSTNAME`'; + $modifiedColumns[':p' . $index++] = 'FIRSTNAME'; } if ($this->isColumnModified(AdminTableMap::LASTNAME)) { - $modifiedColumns[':p' . $index++] = '`LASTNAME`'; + $modifiedColumns[':p' . $index++] = 'LASTNAME'; } if ($this->isColumnModified(AdminTableMap::LOGIN)) { - $modifiedColumns[':p' . $index++] = '`LOGIN`'; + $modifiedColumns[':p' . $index++] = 'LOGIN'; } if ($this->isColumnModified(AdminTableMap::PASSWORD)) { - $modifiedColumns[':p' . $index++] = '`PASSWORD`'; + $modifiedColumns[':p' . $index++] = 'PASSWORD'; } if ($this->isColumnModified(AdminTableMap::ALGO)) { - $modifiedColumns[':p' . $index++] = '`ALGO`'; + $modifiedColumns[':p' . $index++] = 'ALGO'; } if ($this->isColumnModified(AdminTableMap::SALT)) { - $modifiedColumns[':p' . $index++] = '`SALT`'; + $modifiedColumns[':p' . $index++] = 'SALT'; } if ($this->isColumnModified(AdminTableMap::REMEMBER_ME_TOKEN)) { - $modifiedColumns[':p' . $index++] = '`REMEMBER_ME_TOKEN`'; + $modifiedColumns[':p' . $index++] = 'REMEMBER_ME_TOKEN'; } if ($this->isColumnModified(AdminTableMap::REMEMBER_ME_SERIAL)) { - $modifiedColumns[':p' . $index++] = '`REMEMBER_ME_SERIAL`'; + $modifiedColumns[':p' . $index++] = 'REMEMBER_ME_SERIAL'; } if ($this->isColumnModified(AdminTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AdminTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `admin` (%s) VALUES (%s)', + 'INSERT INTO admin (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1174,40 +1174,40 @@ abstract class Admin implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PROFILE_ID`': + case 'PROFILE_ID': $stmt->bindValue($identifier, $this->profile_id, PDO::PARAM_INT); break; - case '`FIRSTNAME`': + case 'FIRSTNAME': $stmt->bindValue($identifier, $this->firstname, PDO::PARAM_STR); break; - case '`LASTNAME`': + case 'LASTNAME': $stmt->bindValue($identifier, $this->lastname, PDO::PARAM_STR); break; - case '`LOGIN`': + case 'LOGIN': $stmt->bindValue($identifier, $this->login, PDO::PARAM_STR); break; - case '`PASSWORD`': + case 'PASSWORD': $stmt->bindValue($identifier, $this->password, PDO::PARAM_STR); break; - case '`ALGO`': + case 'ALGO': $stmt->bindValue($identifier, $this->algo, PDO::PARAM_STR); break; - case '`SALT`': + case 'SALT': $stmt->bindValue($identifier, $this->salt, PDO::PARAM_STR); break; - case '`REMEMBER_ME_TOKEN`': + case 'REMEMBER_ME_TOKEN': $stmt->bindValue($identifier, $this->remember_me_token, PDO::PARAM_STR); break; - case '`REMEMBER_ME_SERIAL`': + case 'REMEMBER_ME_SERIAL': $stmt->bindValue($identifier, $this->remember_me_serial, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AdminLog.php b/core/lib/Thelia/Model/Base/AdminLog.php index 346011916..abebb7cd9 100644 --- a/core/lib/Thelia/Model/Base/AdminLog.php +++ b/core/lib/Thelia/Model/Base/AdminLog.php @@ -1019,38 +1019,38 @@ abstract class AdminLog implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AdminLogTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AdminLogTableMap::ADMIN_LOGIN)) { - $modifiedColumns[':p' . $index++] = '`ADMIN_LOGIN`'; + $modifiedColumns[':p' . $index++] = 'ADMIN_LOGIN'; } if ($this->isColumnModified(AdminLogTableMap::ADMIN_FIRSTNAME)) { - $modifiedColumns[':p' . $index++] = '`ADMIN_FIRSTNAME`'; + $modifiedColumns[':p' . $index++] = 'ADMIN_FIRSTNAME'; } if ($this->isColumnModified(AdminLogTableMap::ADMIN_LASTNAME)) { - $modifiedColumns[':p' . $index++] = '`ADMIN_LASTNAME`'; + $modifiedColumns[':p' . $index++] = 'ADMIN_LASTNAME'; } if ($this->isColumnModified(AdminLogTableMap::RESOURCE)) { - $modifiedColumns[':p' . $index++] = '`RESOURCE`'; + $modifiedColumns[':p' . $index++] = 'RESOURCE'; } if ($this->isColumnModified(AdminLogTableMap::ACTION)) { - $modifiedColumns[':p' . $index++] = '`ACTION`'; + $modifiedColumns[':p' . $index++] = 'ACTION'; } if ($this->isColumnModified(AdminLogTableMap::MESSAGE)) { - $modifiedColumns[':p' . $index++] = '`MESSAGE`'; + $modifiedColumns[':p' . $index++] = 'MESSAGE'; } if ($this->isColumnModified(AdminLogTableMap::REQUEST)) { - $modifiedColumns[':p' . $index++] = '`REQUEST`'; + $modifiedColumns[':p' . $index++] = 'REQUEST'; } if ($this->isColumnModified(AdminLogTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AdminLogTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `admin_log` (%s) VALUES (%s)', + 'INSERT INTO admin_log (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1059,34 +1059,34 @@ abstract class AdminLog implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`ADMIN_LOGIN`': + case 'ADMIN_LOGIN': $stmt->bindValue($identifier, $this->admin_login, PDO::PARAM_STR); break; - case '`ADMIN_FIRSTNAME`': + case 'ADMIN_FIRSTNAME': $stmt->bindValue($identifier, $this->admin_firstname, PDO::PARAM_STR); break; - case '`ADMIN_LASTNAME`': + case 'ADMIN_LASTNAME': $stmt->bindValue($identifier, $this->admin_lastname, PDO::PARAM_STR); break; - case '`RESOURCE`': + case 'RESOURCE': $stmt->bindValue($identifier, $this->resource, PDO::PARAM_STR); break; - case '`ACTION`': + case 'ACTION': $stmt->bindValue($identifier, $this->action, PDO::PARAM_STR); break; - case '`MESSAGE`': + case 'MESSAGE': $stmt->bindValue($identifier, $this->message, PDO::PARAM_STR); break; - case '`REQUEST`': + case 'REQUEST': $stmt->bindValue($identifier, $this->request, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AdminLogQuery.php b/core/lib/Thelia/Model/Base/AdminLogQuery.php index de0a8771f..061b9013d 100644 --- a/core/lib/Thelia/Model/Base/AdminLogQuery.php +++ b/core/lib/Thelia/Model/Base/AdminLogQuery.php @@ -156,7 +156,7 @@ abstract class AdminLogQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `ADMIN_LOGIN`, `ADMIN_FIRSTNAME`, `ADMIN_LASTNAME`, `RESOURCE`, `ACTION`, `MESSAGE`, `REQUEST`, `CREATED_AT`, `UPDATED_AT` FROM `admin_log` WHERE `ID` = :p0'; + $sql = 'SELECT ID, ADMIN_LOGIN, ADMIN_FIRSTNAME, ADMIN_LASTNAME, RESOURCE, ACTION, MESSAGE, REQUEST, CREATED_AT, UPDATED_AT FROM admin_log WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/AdminQuery.php b/core/lib/Thelia/Model/Base/AdminQuery.php index 0ec88d23e..d9f032544 100644 --- a/core/lib/Thelia/Model/Base/AdminQuery.php +++ b/core/lib/Thelia/Model/Base/AdminQuery.php @@ -171,7 +171,7 @@ abstract class AdminQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PROFILE_ID`, `FIRSTNAME`, `LASTNAME`, `LOGIN`, `PASSWORD`, `ALGO`, `SALT`, `REMEMBER_ME_TOKEN`, `REMEMBER_ME_SERIAL`, `CREATED_AT`, `UPDATED_AT` FROM `admin` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PROFILE_ID, FIRSTNAME, LASTNAME, LOGIN, PASSWORD, ALGO, SALT, REMEMBER_ME_TOKEN, REMEMBER_ME_SERIAL, CREATED_AT, UPDATED_AT FROM admin WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Area.php b/core/lib/Thelia/Model/Base/Area.php index b0efba572..14d834929 100644 --- a/core/lib/Thelia/Model/Base/Area.php +++ b/core/lib/Thelia/Model/Base/Area.php @@ -882,23 +882,23 @@ abstract class Area implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AreaTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AreaTableMap::NAME)) { - $modifiedColumns[':p' . $index++] = '`NAME`'; + $modifiedColumns[':p' . $index++] = 'NAME'; } if ($this->isColumnModified(AreaTableMap::POSTAGE)) { - $modifiedColumns[':p' . $index++] = '`POSTAGE`'; + $modifiedColumns[':p' . $index++] = 'POSTAGE'; } if ($this->isColumnModified(AreaTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AreaTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `area` (%s) VALUES (%s)', + 'INSERT INTO area (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -907,19 +907,19 @@ abstract class Area implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`NAME`': + case 'NAME': $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); break; - case '`POSTAGE`': + case 'POSTAGE': $stmt->bindValue($identifier, $this->postage, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AreaDeliveryModule.php b/core/lib/Thelia/Model/Base/AreaDeliveryModule.php index 2873ca946..1e2996fb4 100644 --- a/core/lib/Thelia/Model/Base/AreaDeliveryModule.php +++ b/core/lib/Thelia/Model/Base/AreaDeliveryModule.php @@ -863,23 +863,23 @@ abstract class AreaDeliveryModule implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AreaDeliveryModuleTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AreaDeliveryModuleTableMap::AREA_ID)) { - $modifiedColumns[':p' . $index++] = '`AREA_ID`'; + $modifiedColumns[':p' . $index++] = 'AREA_ID'; } if ($this->isColumnModified(AreaDeliveryModuleTableMap::DELIVERY_MODULE_ID)) { - $modifiedColumns[':p' . $index++] = '`DELIVERY_MODULE_ID`'; + $modifiedColumns[':p' . $index++] = 'DELIVERY_MODULE_ID'; } if ($this->isColumnModified(AreaDeliveryModuleTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AreaDeliveryModuleTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `area_delivery_module` (%s) VALUES (%s)', + 'INSERT INTO area_delivery_module (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -888,19 +888,19 @@ abstract class AreaDeliveryModule implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`AREA_ID`': + case 'AREA_ID': $stmt->bindValue($identifier, $this->area_id, PDO::PARAM_INT); break; - case '`DELIVERY_MODULE_ID`': + case 'DELIVERY_MODULE_ID': $stmt->bindValue($identifier, $this->delivery_module_id, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AreaDeliveryModuleQuery.php b/core/lib/Thelia/Model/Base/AreaDeliveryModuleQuery.php index 2d21d28e0..394fe651e 100644 --- a/core/lib/Thelia/Model/Base/AreaDeliveryModuleQuery.php +++ b/core/lib/Thelia/Model/Base/AreaDeliveryModuleQuery.php @@ -147,7 +147,7 @@ abstract class AreaDeliveryModuleQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `AREA_ID`, `DELIVERY_MODULE_ID`, `CREATED_AT`, `UPDATED_AT` FROM `area_delivery_module` WHERE `ID` = :p0'; + $sql = 'SELECT ID, AREA_ID, DELIVERY_MODULE_ID, CREATED_AT, UPDATED_AT FROM area_delivery_module WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/AreaQuery.php b/core/lib/Thelia/Model/Base/AreaQuery.php index e1033e576..ea4cd8b90 100644 --- a/core/lib/Thelia/Model/Base/AreaQuery.php +++ b/core/lib/Thelia/Model/Base/AreaQuery.php @@ -147,7 +147,7 @@ abstract class AreaQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `NAME`, `POSTAGE`, `CREATED_AT`, `UPDATED_AT` FROM `area` WHERE `ID` = :p0'; + $sql = 'SELECT ID, NAME, POSTAGE, CREATED_AT, UPDATED_AT FROM area WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Attribute.php b/core/lib/Thelia/Model/Base/Attribute.php index 9e1fc6c9c..f9cee31c7 100644 --- a/core/lib/Thelia/Model/Base/Attribute.php +++ b/core/lib/Thelia/Model/Base/Attribute.php @@ -961,20 +961,20 @@ abstract class Attribute implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AttributeTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AttributeTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(AttributeTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AttributeTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `attribute` (%s) VALUES (%s)', + 'INSERT INTO attribute (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -983,16 +983,16 @@ abstract class Attribute implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AttributeAv.php b/core/lib/Thelia/Model/Base/AttributeAv.php index e92a8cd12..83b55fab8 100644 --- a/core/lib/Thelia/Model/Base/AttributeAv.php +++ b/core/lib/Thelia/Model/Base/AttributeAv.php @@ -922,23 +922,23 @@ abstract class AttributeAv implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AttributeAvTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AttributeAvTableMap::ATTRIBUTE_ID)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_ID`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_ID'; } if ($this->isColumnModified(AttributeAvTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(AttributeAvTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AttributeAvTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `attribute_av` (%s) VALUES (%s)', + 'INSERT INTO attribute_av (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -947,19 +947,19 @@ abstract class AttributeAv implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`ATTRIBUTE_ID`': + case 'ATTRIBUTE_ID': $stmt->bindValue($identifier, $this->attribute_id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AttributeAvI18n.php b/core/lib/Thelia/Model/Base/AttributeAvI18n.php index 106dee40c..dd2a973b7 100644 --- a/core/lib/Thelia/Model/Base/AttributeAvI18n.php +++ b/core/lib/Thelia/Model/Base/AttributeAvI18n.php @@ -858,26 +858,26 @@ abstract class AttributeAvI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AttributeAvI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AttributeAvI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(AttributeAvI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(AttributeAvI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(AttributeAvI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(AttributeAvI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `attribute_av_i18n` (%s) VALUES (%s)', + 'INSERT INTO attribute_av_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class AttributeAvI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AttributeAvI18nQuery.php b/core/lib/Thelia/Model/Base/AttributeAvI18nQuery.php index df90b3baa..943e453a9 100644 --- a/core/lib/Thelia/Model/Base/AttributeAvI18nQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeAvI18nQuery.php @@ -147,7 +147,7 @@ abstract class AttributeAvI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `attribute_av_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM attribute_av_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/AttributeAvQuery.php b/core/lib/Thelia/Model/Base/AttributeAvQuery.php index d0227b7c9..8ebfaa8c9 100644 --- a/core/lib/Thelia/Model/Base/AttributeAvQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeAvQuery.php @@ -152,7 +152,7 @@ abstract class AttributeAvQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `ATTRIBUTE_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `attribute_av` WHERE `ID` = :p0'; + $sql = 'SELECT ID, ATTRIBUTE_ID, POSITION, CREATED_AT, UPDATED_AT FROM attribute_av WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/AttributeCombination.php b/core/lib/Thelia/Model/Base/AttributeCombination.php index 7db295561..543e86476 100644 --- a/core/lib/Thelia/Model/Base/AttributeCombination.php +++ b/core/lib/Thelia/Model/Base/AttributeCombination.php @@ -881,23 +881,23 @@ abstract class AttributeCombination implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AttributeCombinationTableMap::ATTRIBUTE_ID)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_ID`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_ID'; } if ($this->isColumnModified(AttributeCombinationTableMap::ATTRIBUTE_AV_ID)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_AV_ID`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_AV_ID'; } if ($this->isColumnModified(AttributeCombinationTableMap::PRODUCT_SALE_ELEMENTS_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_SALE_ELEMENTS_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_SALE_ELEMENTS_ID'; } if ($this->isColumnModified(AttributeCombinationTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AttributeCombinationTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `attribute_combination` (%s) VALUES (%s)', + 'INSERT INTO attribute_combination (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -906,19 +906,19 @@ abstract class AttributeCombination implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ATTRIBUTE_ID`': + case 'ATTRIBUTE_ID': $stmt->bindValue($identifier, $this->attribute_id, PDO::PARAM_INT); break; - case '`ATTRIBUTE_AV_ID`': + case 'ATTRIBUTE_AV_ID': $stmt->bindValue($identifier, $this->attribute_av_id, PDO::PARAM_INT); break; - case '`PRODUCT_SALE_ELEMENTS_ID`': + case 'PRODUCT_SALE_ELEMENTS_ID': $stmt->bindValue($identifier, $this->product_sale_elements_id, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AttributeCombinationQuery.php b/core/lib/Thelia/Model/Base/AttributeCombinationQuery.php index d77286e11..291ff7725 100644 --- a/core/lib/Thelia/Model/Base/AttributeCombinationQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeCombinationQuery.php @@ -151,7 +151,7 @@ abstract class AttributeCombinationQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ATTRIBUTE_ID`, `ATTRIBUTE_AV_ID`, `PRODUCT_SALE_ELEMENTS_ID`, `CREATED_AT`, `UPDATED_AT` FROM `attribute_combination` WHERE `ATTRIBUTE_ID` = :p0 AND `ATTRIBUTE_AV_ID` = :p1 AND `PRODUCT_SALE_ELEMENTS_ID` = :p2'; + $sql = 'SELECT ATTRIBUTE_ID, ATTRIBUTE_AV_ID, PRODUCT_SALE_ELEMENTS_ID, CREATED_AT, UPDATED_AT FROM attribute_combination WHERE ATTRIBUTE_ID = :p0 AND ATTRIBUTE_AV_ID = :p1 AND PRODUCT_SALE_ELEMENTS_ID = :p2'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/AttributeI18n.php b/core/lib/Thelia/Model/Base/AttributeI18n.php index f5cd9c6af..30bd331a3 100644 --- a/core/lib/Thelia/Model/Base/AttributeI18n.php +++ b/core/lib/Thelia/Model/Base/AttributeI18n.php @@ -858,26 +858,26 @@ abstract class AttributeI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AttributeI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AttributeI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(AttributeI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(AttributeI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(AttributeI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(AttributeI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `attribute_i18n` (%s) VALUES (%s)', + 'INSERT INTO attribute_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class AttributeI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AttributeI18nQuery.php b/core/lib/Thelia/Model/Base/AttributeI18nQuery.php index 5b7f05df5..c553af9a2 100644 --- a/core/lib/Thelia/Model/Base/AttributeI18nQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeI18nQuery.php @@ -147,7 +147,7 @@ abstract class AttributeI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `attribute_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM attribute_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/AttributeQuery.php b/core/lib/Thelia/Model/Base/AttributeQuery.php index a2f2b6915..b496289f8 100644 --- a/core/lib/Thelia/Model/Base/AttributeQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeQuery.php @@ -152,7 +152,7 @@ abstract class AttributeQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `attribute` WHERE `ID` = :p0'; + $sql = 'SELECT ID, POSITION, CREATED_AT, UPDATED_AT FROM attribute WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/AttributeTemplate.php b/core/lib/Thelia/Model/Base/AttributeTemplate.php index ea3032359..ae45495ee 100644 --- a/core/lib/Thelia/Model/Base/AttributeTemplate.php +++ b/core/lib/Thelia/Model/Base/AttributeTemplate.php @@ -904,26 +904,26 @@ abstract class AttributeTemplate implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(AttributeTemplateTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(AttributeTemplateTableMap::ATTRIBUTE_ID)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_ID`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_ID'; } if ($this->isColumnModified(AttributeTemplateTableMap::TEMPLATE_ID)) { - $modifiedColumns[':p' . $index++] = '`TEMPLATE_ID`'; + $modifiedColumns[':p' . $index++] = 'TEMPLATE_ID'; } if ($this->isColumnModified(AttributeTemplateTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(AttributeTemplateTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(AttributeTemplateTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `attribute_template` (%s) VALUES (%s)', + 'INSERT INTO attribute_template (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -932,22 +932,22 @@ abstract class AttributeTemplate implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`ATTRIBUTE_ID`': + case 'ATTRIBUTE_ID': $stmt->bindValue($identifier, $this->attribute_id, PDO::PARAM_INT); break; - case '`TEMPLATE_ID`': + case 'TEMPLATE_ID': $stmt->bindValue($identifier, $this->template_id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/AttributeTemplateQuery.php b/core/lib/Thelia/Model/Base/AttributeTemplateQuery.php index bbfd77ebb..e1a8d0320 100644 --- a/core/lib/Thelia/Model/Base/AttributeTemplateQuery.php +++ b/core/lib/Thelia/Model/Base/AttributeTemplateQuery.php @@ -151,7 +151,7 @@ abstract class AttributeTemplateQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `ATTRIBUTE_ID`, `TEMPLATE_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `attribute_template` WHERE `ID` = :p0'; + $sql = 'SELECT ID, ATTRIBUTE_ID, TEMPLATE_ID, POSITION, CREATED_AT, UPDATED_AT FROM attribute_template WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Cart.php b/core/lib/Thelia/Model/Base/Cart.php index 446eae129..96880be66 100644 --- a/core/lib/Thelia/Model/Base/Cart.php +++ b/core/lib/Thelia/Model/Base/Cart.php @@ -1121,35 +1121,35 @@ abstract class Cart implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CartTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CartTableMap::TOKEN)) { - $modifiedColumns[':p' . $index++] = '`TOKEN`'; + $modifiedColumns[':p' . $index++] = 'TOKEN'; } if ($this->isColumnModified(CartTableMap::CUSTOMER_ID)) { - $modifiedColumns[':p' . $index++] = '`CUSTOMER_ID`'; + $modifiedColumns[':p' . $index++] = 'CUSTOMER_ID'; } if ($this->isColumnModified(CartTableMap::ADDRESS_DELIVERY_ID)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS_DELIVERY_ID`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS_DELIVERY_ID'; } if ($this->isColumnModified(CartTableMap::ADDRESS_INVOICE_ID)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS_INVOICE_ID`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS_INVOICE_ID'; } if ($this->isColumnModified(CartTableMap::CURRENCY_ID)) { - $modifiedColumns[':p' . $index++] = '`CURRENCY_ID`'; + $modifiedColumns[':p' . $index++] = 'CURRENCY_ID'; } if ($this->isColumnModified(CartTableMap::DISCOUNT)) { - $modifiedColumns[':p' . $index++] = '`DISCOUNT`'; + $modifiedColumns[':p' . $index++] = 'DISCOUNT'; } if ($this->isColumnModified(CartTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CartTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `cart` (%s) VALUES (%s)', + 'INSERT INTO cart (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1158,31 +1158,31 @@ abstract class Cart implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`TOKEN`': + case 'TOKEN': $stmt->bindValue($identifier, $this->token, PDO::PARAM_STR); break; - case '`CUSTOMER_ID`': + case 'CUSTOMER_ID': $stmt->bindValue($identifier, $this->customer_id, PDO::PARAM_INT); break; - case '`ADDRESS_DELIVERY_ID`': + case 'ADDRESS_DELIVERY_ID': $stmt->bindValue($identifier, $this->address_delivery_id, PDO::PARAM_INT); break; - case '`ADDRESS_INVOICE_ID`': + case 'ADDRESS_INVOICE_ID': $stmt->bindValue($identifier, $this->address_invoice_id, PDO::PARAM_INT); break; - case '`CURRENCY_ID`': + case 'CURRENCY_ID': $stmt->bindValue($identifier, $this->currency_id, PDO::PARAM_INT); break; - case '`DISCOUNT`': + case 'DISCOUNT': $stmt->bindValue($identifier, $this->discount, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CartItem.php b/core/lib/Thelia/Model/Base/CartItem.php index 6b074e4e3..0591d07e6 100644 --- a/core/lib/Thelia/Model/Base/CartItem.php +++ b/core/lib/Thelia/Model/Base/CartItem.php @@ -1161,41 +1161,41 @@ abstract class CartItem implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CartItemTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CartItemTableMap::CART_ID)) { - $modifiedColumns[':p' . $index++] = '`CART_ID`'; + $modifiedColumns[':p' . $index++] = 'CART_ID'; } if ($this->isColumnModified(CartItemTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(CartItemTableMap::QUANTITY)) { - $modifiedColumns[':p' . $index++] = '`QUANTITY`'; + $modifiedColumns[':p' . $index++] = 'QUANTITY'; } if ($this->isColumnModified(CartItemTableMap::PRODUCT_SALE_ELEMENTS_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_SALE_ELEMENTS_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_SALE_ELEMENTS_ID'; } if ($this->isColumnModified(CartItemTableMap::PRICE)) { - $modifiedColumns[':p' . $index++] = '`PRICE`'; + $modifiedColumns[':p' . $index++] = 'PRICE'; } if ($this->isColumnModified(CartItemTableMap::PROMO_PRICE)) { - $modifiedColumns[':p' . $index++] = '`PROMO_PRICE`'; + $modifiedColumns[':p' . $index++] = 'PROMO_PRICE'; } if ($this->isColumnModified(CartItemTableMap::PRICE_END_OF_LIFE)) { - $modifiedColumns[':p' . $index++] = '`PRICE_END_OF_LIFE`'; + $modifiedColumns[':p' . $index++] = 'PRICE_END_OF_LIFE'; } if ($this->isColumnModified(CartItemTableMap::PROMO)) { - $modifiedColumns[':p' . $index++] = '`PROMO`'; + $modifiedColumns[':p' . $index++] = 'PROMO'; } if ($this->isColumnModified(CartItemTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CartItemTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `cart_item` (%s) VALUES (%s)', + 'INSERT INTO cart_item (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1204,37 +1204,37 @@ abstract class CartItem implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CART_ID`': + case 'CART_ID': $stmt->bindValue($identifier, $this->cart_id, PDO::PARAM_INT); break; - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`QUANTITY`': + case 'QUANTITY': $stmt->bindValue($identifier, $this->quantity, PDO::PARAM_STR); break; - case '`PRODUCT_SALE_ELEMENTS_ID`': + case 'PRODUCT_SALE_ELEMENTS_ID': $stmt->bindValue($identifier, $this->product_sale_elements_id, PDO::PARAM_INT); break; - case '`PRICE`': + case 'PRICE': $stmt->bindValue($identifier, $this->price, PDO::PARAM_STR); break; - case '`PROMO_PRICE`': + case 'PROMO_PRICE': $stmt->bindValue($identifier, $this->promo_price, PDO::PARAM_STR); break; - case '`PRICE_END_OF_LIFE`': + case 'PRICE_END_OF_LIFE': $stmt->bindValue($identifier, $this->price_end_of_life ? $this->price_end_of_life->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`PROMO`': + case 'PROMO': $stmt->bindValue($identifier, $this->promo, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CartItemQuery.php b/core/lib/Thelia/Model/Base/CartItemQuery.php index 9e7e675d1..524707a26 100644 --- a/core/lib/Thelia/Model/Base/CartItemQuery.php +++ b/core/lib/Thelia/Model/Base/CartItemQuery.php @@ -175,7 +175,7 @@ abstract class CartItemQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CART_ID`, `PRODUCT_ID`, `QUANTITY`, `PRODUCT_SALE_ELEMENTS_ID`, `PRICE`, `PROMO_PRICE`, `PRICE_END_OF_LIFE`, `PROMO`, `CREATED_AT`, `UPDATED_AT` FROM `cart_item` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CART_ID, PRODUCT_ID, QUANTITY, PRODUCT_SALE_ELEMENTS_ID, PRICE, PROMO_PRICE, PRICE_END_OF_LIFE, PROMO, CREATED_AT, UPDATED_AT FROM cart_item WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CartQuery.php b/core/lib/Thelia/Model/Base/CartQuery.php index 9fbd97a12..2628aa893 100644 --- a/core/lib/Thelia/Model/Base/CartQuery.php +++ b/core/lib/Thelia/Model/Base/CartQuery.php @@ -175,7 +175,7 @@ abstract class CartQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `TOKEN`, `CUSTOMER_ID`, `ADDRESS_DELIVERY_ID`, `ADDRESS_INVOICE_ID`, `CURRENCY_ID`, `DISCOUNT`, `CREATED_AT`, `UPDATED_AT` FROM `cart` WHERE `ID` = :p0'; + $sql = 'SELECT ID, TOKEN, CUSTOMER_ID, ADDRESS_DELIVERY_ID, ADDRESS_INVOICE_ID, CURRENCY_ID, DISCOUNT, CREATED_AT, UPDATED_AT FROM cart WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Category.php b/core/lib/Thelia/Model/Base/Category.php index 8b3cbceaf..aacf774c0 100644 --- a/core/lib/Thelia/Model/Base/Category.php +++ b/core/lib/Thelia/Model/Base/Category.php @@ -1283,35 +1283,35 @@ abstract class Category implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryTableMap::PARENT)) { - $modifiedColumns[':p' . $index++] = '`PARENT`'; + $modifiedColumns[':p' . $index++] = 'PARENT'; } if ($this->isColumnModified(CategoryTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(CategoryTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(CategoryTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CategoryTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(CategoryTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(CategoryTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(CategoryTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `category` (%s) VALUES (%s)', + 'INSERT INTO category (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1320,31 +1320,31 @@ abstract class Category implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PARENT`': + case 'PARENT': $stmt->bindValue($identifier, $this->parent, PDO::PARAM_INT); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryAssociatedContent.php b/core/lib/Thelia/Model/Base/CategoryAssociatedContent.php index 31f7b0b6e..8079eb563 100644 --- a/core/lib/Thelia/Model/Base/CategoryAssociatedContent.php +++ b/core/lib/Thelia/Model/Base/CategoryAssociatedContent.php @@ -904,26 +904,26 @@ abstract class CategoryAssociatedContent implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryAssociatedContentTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryAssociatedContentTableMap::CATEGORY_ID)) { - $modifiedColumns[':p' . $index++] = '`CATEGORY_ID`'; + $modifiedColumns[':p' . $index++] = 'CATEGORY_ID'; } if ($this->isColumnModified(CategoryAssociatedContentTableMap::CONTENT_ID)) { - $modifiedColumns[':p' . $index++] = '`CONTENT_ID`'; + $modifiedColumns[':p' . $index++] = 'CONTENT_ID'; } if ($this->isColumnModified(CategoryAssociatedContentTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(CategoryAssociatedContentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CategoryAssociatedContentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `category_associated_content` (%s) VALUES (%s)', + 'INSERT INTO category_associated_content (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -932,22 +932,22 @@ abstract class CategoryAssociatedContent implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CATEGORY_ID`': + case 'CATEGORY_ID': $stmt->bindValue($identifier, $this->category_id, PDO::PARAM_INT); break; - case '`CONTENT_ID`': + case 'CONTENT_ID': $stmt->bindValue($identifier, $this->content_id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryAssociatedContentQuery.php b/core/lib/Thelia/Model/Base/CategoryAssociatedContentQuery.php index dd5238d83..bb03306f4 100644 --- a/core/lib/Thelia/Model/Base/CategoryAssociatedContentQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryAssociatedContentQuery.php @@ -151,7 +151,7 @@ abstract class CategoryAssociatedContentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CATEGORY_ID`, `CONTENT_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `category_associated_content` 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); diff --git a/core/lib/Thelia/Model/Base/CategoryDocument.php b/core/lib/Thelia/Model/Base/CategoryDocument.php index c39cf631a..83660e717 100644 --- a/core/lib/Thelia/Model/Base/CategoryDocument.php +++ b/core/lib/Thelia/Model/Base/CategoryDocument.php @@ -930,26 +930,26 @@ abstract class CategoryDocument implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryDocumentTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryDocumentTableMap::CATEGORY_ID)) { - $modifiedColumns[':p' . $index++] = '`CATEGORY_ID`'; + $modifiedColumns[':p' . $index++] = 'CATEGORY_ID'; } if ($this->isColumnModified(CategoryDocumentTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(CategoryDocumentTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(CategoryDocumentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CategoryDocumentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `category_document` (%s) VALUES (%s)', + 'INSERT INTO category_document (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class CategoryDocument implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CATEGORY_ID`': + case 'CATEGORY_ID': $stmt->bindValue($identifier, $this->category_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php b/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php index 24f29f985..c4348da52 100644 --- a/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/CategoryDocumentI18n.php @@ -858,26 +858,26 @@ abstract class CategoryDocumentI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryDocumentI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryDocumentI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(CategoryDocumentI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(CategoryDocumentI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(CategoryDocumentI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(CategoryDocumentI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `category_document_i18n` (%s) VALUES (%s)', + 'INSERT INTO category_document_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class CategoryDocumentI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/CategoryDocumentI18nQuery.php index d9dc050aa..a8c6000dc 100644 --- a/core/lib/Thelia/Model/Base/CategoryDocumentI18nQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryDocumentI18nQuery.php @@ -147,7 +147,7 @@ abstract class CategoryDocumentI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `category_document_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM category_document_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php b/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php index 55fb01406..8c0a177ac 100644 --- a/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryDocumentQuery.php @@ -152,7 +152,7 @@ abstract class CategoryDocumentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CATEGORY_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `category_document` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CATEGORY_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM category_document WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CategoryI18n.php b/core/lib/Thelia/Model/Base/CategoryI18n.php index 873d152a1..0eb196d29 100644 --- a/core/lib/Thelia/Model/Base/CategoryI18n.php +++ b/core/lib/Thelia/Model/Base/CategoryI18n.php @@ -981,35 +981,35 @@ abstract class CategoryI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(CategoryI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(CategoryI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(CategoryI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(CategoryI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } if ($this->isColumnModified(CategoryI18nTableMap::META_TITLE)) { - $modifiedColumns[':p' . $index++] = '`META_TITLE`'; + $modifiedColumns[':p' . $index++] = 'META_TITLE'; } if ($this->isColumnModified(CategoryI18nTableMap::META_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`META_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'META_DESCRIPTION'; } if ($this->isColumnModified(CategoryI18nTableMap::META_KEYWORDS)) { - $modifiedColumns[':p' . $index++] = '`META_KEYWORDS`'; + $modifiedColumns[':p' . $index++] = 'META_KEYWORDS'; } $sql = sprintf( - 'INSERT INTO `category_i18n` (%s) VALUES (%s)', + 'INSERT INTO category_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1018,31 +1018,31 @@ abstract class CategoryI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; - case '`META_TITLE`': + case 'META_TITLE': $stmt->bindValue($identifier, $this->meta_title, PDO::PARAM_STR); break; - case '`META_DESCRIPTION`': + case 'META_DESCRIPTION': $stmt->bindValue($identifier, $this->meta_description, PDO::PARAM_STR); break; - case '`META_KEYWORDS`': + case 'META_KEYWORDS': $stmt->bindValue($identifier, $this->meta_keywords, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryI18nQuery.php b/core/lib/Thelia/Model/Base/CategoryI18nQuery.php index 68a692f2d..44ef90de3 100644 --- a/core/lib/Thelia/Model/Base/CategoryI18nQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryI18nQuery.php @@ -159,7 +159,7 @@ abstract class CategoryI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM`, `META_TITLE`, `META_DESCRIPTION`, `META_KEYWORDS` FROM `category_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM, META_TITLE, META_DESCRIPTION, META_KEYWORDS FROM category_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CategoryImage.php b/core/lib/Thelia/Model/Base/CategoryImage.php index 04963495f..2a7e826c7 100644 --- a/core/lib/Thelia/Model/Base/CategoryImage.php +++ b/core/lib/Thelia/Model/Base/CategoryImage.php @@ -930,26 +930,26 @@ abstract class CategoryImage implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryImageTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryImageTableMap::CATEGORY_ID)) { - $modifiedColumns[':p' . $index++] = '`CATEGORY_ID`'; + $modifiedColumns[':p' . $index++] = 'CATEGORY_ID'; } if ($this->isColumnModified(CategoryImageTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(CategoryImageTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(CategoryImageTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CategoryImageTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `category_image` (%s) VALUES (%s)', + 'INSERT INTO category_image (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class CategoryImage implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CATEGORY_ID`': + case 'CATEGORY_ID': $stmt->bindValue($identifier, $this->category_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryImageI18n.php b/core/lib/Thelia/Model/Base/CategoryImageI18n.php index 73b9e6037..1197930c8 100644 --- a/core/lib/Thelia/Model/Base/CategoryImageI18n.php +++ b/core/lib/Thelia/Model/Base/CategoryImageI18n.php @@ -858,26 +858,26 @@ abstract class CategoryImageI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryImageI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryImageI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(CategoryImageI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(CategoryImageI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(CategoryImageI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(CategoryImageI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `category_image_i18n` (%s) VALUES (%s)', + 'INSERT INTO category_image_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class CategoryImageI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryImageI18nQuery.php b/core/lib/Thelia/Model/Base/CategoryImageI18nQuery.php index 424a478cf..6d552e808 100644 --- a/core/lib/Thelia/Model/Base/CategoryImageI18nQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryImageI18nQuery.php @@ -147,7 +147,7 @@ abstract class CategoryImageI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `category_image_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM category_image_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CategoryImageQuery.php b/core/lib/Thelia/Model/Base/CategoryImageQuery.php index af219e055..2130e757b 100644 --- a/core/lib/Thelia/Model/Base/CategoryImageQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryImageQuery.php @@ -152,7 +152,7 @@ abstract class CategoryImageQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CATEGORY_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `category_image` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CATEGORY_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM category_image WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CategoryQuery.php b/core/lib/Thelia/Model/Base/CategoryQuery.php index 5cd4bc8f9..4ef552094 100644 --- a/core/lib/Thelia/Model/Base/CategoryQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryQuery.php @@ -187,7 +187,7 @@ abstract class CategoryQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PARENT`, `VISIBLE`, `POSITION`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `category` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PARENT, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM category WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CategoryVersion.php b/core/lib/Thelia/Model/Base/CategoryVersion.php index 110844ba0..7abd40b21 100644 --- a/core/lib/Thelia/Model/Base/CategoryVersion.php +++ b/core/lib/Thelia/Model/Base/CategoryVersion.php @@ -1019,35 +1019,35 @@ abstract class CategoryVersion implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CategoryVersionTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CategoryVersionTableMap::PARENT)) { - $modifiedColumns[':p' . $index++] = '`PARENT`'; + $modifiedColumns[':p' . $index++] = 'PARENT'; } if ($this->isColumnModified(CategoryVersionTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(CategoryVersionTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(CategoryVersionTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CategoryVersionTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(CategoryVersionTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(CategoryVersionTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(CategoryVersionTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `category_version` (%s) VALUES (%s)', + 'INSERT INTO category_version (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1056,31 +1056,31 @@ abstract class CategoryVersion implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PARENT`': + case 'PARENT': $stmt->bindValue($identifier, $this->parent, PDO::PARAM_INT); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CategoryVersionQuery.php b/core/lib/Thelia/Model/Base/CategoryVersionQuery.php index a51640003..88c4f460a 100644 --- a/core/lib/Thelia/Model/Base/CategoryVersionQuery.php +++ b/core/lib/Thelia/Model/Base/CategoryVersionQuery.php @@ -159,7 +159,7 @@ abstract class CategoryVersionQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PARENT`, `VISIBLE`, `POSITION`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `category_version` WHERE `ID` = :p0 AND `VERSION` = :p1'; + $sql = 'SELECT ID, PARENT, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM category_version WHERE ID = :p0 AND VERSION = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Config.php b/core/lib/Thelia/Model/Base/Config.php index b7ca01d01..72837ec39 100644 --- a/core/lib/Thelia/Model/Base/Config.php +++ b/core/lib/Thelia/Model/Base/Config.php @@ -968,29 +968,29 @@ abstract class Config implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ConfigTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ConfigTableMap::NAME)) { - $modifiedColumns[':p' . $index++] = '`NAME`'; + $modifiedColumns[':p' . $index++] = 'NAME'; } if ($this->isColumnModified(ConfigTableMap::VALUE)) { - $modifiedColumns[':p' . $index++] = '`VALUE`'; + $modifiedColumns[':p' . $index++] = 'VALUE'; } if ($this->isColumnModified(ConfigTableMap::SECURED)) { - $modifiedColumns[':p' . $index++] = '`SECURED`'; + $modifiedColumns[':p' . $index++] = 'SECURED'; } if ($this->isColumnModified(ConfigTableMap::HIDDEN)) { - $modifiedColumns[':p' . $index++] = '`HIDDEN`'; + $modifiedColumns[':p' . $index++] = 'HIDDEN'; } if ($this->isColumnModified(ConfigTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ConfigTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `config` (%s) VALUES (%s)', + 'INSERT INTO config (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -999,25 +999,25 @@ abstract class Config implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`NAME`': + case 'NAME': $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); break; - case '`VALUE`': + case 'VALUE': $stmt->bindValue($identifier, $this->value, PDO::PARAM_STR); break; - case '`SECURED`': + case 'SECURED': $stmt->bindValue($identifier, $this->secured, PDO::PARAM_INT); break; - case '`HIDDEN`': + case 'HIDDEN': $stmt->bindValue($identifier, $this->hidden, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ConfigI18n.php b/core/lib/Thelia/Model/Base/ConfigI18n.php index d5a976276..370860b61 100644 --- a/core/lib/Thelia/Model/Base/ConfigI18n.php +++ b/core/lib/Thelia/Model/Base/ConfigI18n.php @@ -858,26 +858,26 @@ abstract class ConfigI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ConfigI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ConfigI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ConfigI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ConfigI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ConfigI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ConfigI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `config_i18n` (%s) VALUES (%s)', + 'INSERT INTO config_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ConfigI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ConfigI18nQuery.php b/core/lib/Thelia/Model/Base/ConfigI18nQuery.php index b10bb1da3..bc231b05c 100644 --- a/core/lib/Thelia/Model/Base/ConfigI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ConfigI18nQuery.php @@ -147,7 +147,7 @@ abstract class ConfigI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `config_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM config_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ConfigQuery.php b/core/lib/Thelia/Model/Base/ConfigQuery.php index d219bb4a2..ef47308a4 100644 --- a/core/lib/Thelia/Model/Base/ConfigQuery.php +++ b/core/lib/Thelia/Model/Base/ConfigQuery.php @@ -152,7 +152,7 @@ abstract class ConfigQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `NAME`, `VALUE`, `SECURED`, `HIDDEN`, `CREATED_AT`, `UPDATED_AT` FROM `config` WHERE `ID` = :p0'; + $sql = 'SELECT ID, NAME, VALUE, SECURED, HIDDEN, CREATED_AT, UPDATED_AT FROM config WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Content.php b/core/lib/Thelia/Model/Base/Content.php index 1e6165d3e..6618ae9c7 100644 --- a/core/lib/Thelia/Model/Base/Content.php +++ b/core/lib/Thelia/Model/Base/Content.php @@ -1275,32 +1275,32 @@ abstract class Content implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ContentTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(ContentTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ContentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ContentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(ContentTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(ContentTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(ContentTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `content` (%s) VALUES (%s)', + 'INSERT INTO content (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1309,28 +1309,28 @@ abstract class Content implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentDocument.php b/core/lib/Thelia/Model/Base/ContentDocument.php index 382154637..f59b52af0 100644 --- a/core/lib/Thelia/Model/Base/ContentDocument.php +++ b/core/lib/Thelia/Model/Base/ContentDocument.php @@ -930,26 +930,26 @@ abstract class ContentDocument implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentDocumentTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ContentDocumentTableMap::CONTENT_ID)) { - $modifiedColumns[':p' . $index++] = '`CONTENT_ID`'; + $modifiedColumns[':p' . $index++] = 'CONTENT_ID'; } if ($this->isColumnModified(ContentDocumentTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(ContentDocumentTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ContentDocumentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ContentDocumentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `content_document` (%s) VALUES (%s)', + 'INSERT INTO content_document (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class ContentDocument implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CONTENT_ID`': + case 'CONTENT_ID': $stmt->bindValue($identifier, $this->content_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentDocumentI18n.php b/core/lib/Thelia/Model/Base/ContentDocumentI18n.php index 22139cd78..e51c76524 100644 --- a/core/lib/Thelia/Model/Base/ContentDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/ContentDocumentI18n.php @@ -858,26 +858,26 @@ abstract class ContentDocumentI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentDocumentI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ContentDocumentI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ContentDocumentI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ContentDocumentI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ContentDocumentI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ContentDocumentI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `content_document_i18n` (%s) VALUES (%s)', + 'INSERT INTO content_document_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ContentDocumentI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/ContentDocumentI18nQuery.php index 67ef58154..e88858892 100644 --- a/core/lib/Thelia/Model/Base/ContentDocumentI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ContentDocumentI18nQuery.php @@ -147,7 +147,7 @@ abstract class ContentDocumentI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `content_document_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM content_document_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ContentDocumentQuery.php b/core/lib/Thelia/Model/Base/ContentDocumentQuery.php index f6e09b426..89cf5d48b 100644 --- a/core/lib/Thelia/Model/Base/ContentDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/ContentDocumentQuery.php @@ -152,7 +152,7 @@ abstract class ContentDocumentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CONTENT_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `content_document` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CONTENT_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM content_document WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ContentFolder.php b/core/lib/Thelia/Model/Base/ContentFolder.php index 2e4525e28..8200b942c 100644 --- a/core/lib/Thelia/Model/Base/ContentFolder.php +++ b/core/lib/Thelia/Model/Base/ContentFolder.php @@ -867,23 +867,23 @@ abstract class ContentFolder implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentFolderTableMap::CONTENT_ID)) { - $modifiedColumns[':p' . $index++] = '`CONTENT_ID`'; + $modifiedColumns[':p' . $index++] = 'CONTENT_ID'; } if ($this->isColumnModified(ContentFolderTableMap::FOLDER_ID)) { - $modifiedColumns[':p' . $index++] = '`FOLDER_ID`'; + $modifiedColumns[':p' . $index++] = 'FOLDER_ID'; } if ($this->isColumnModified(ContentFolderTableMap::DEFAULT_FOLDER)) { - $modifiedColumns[':p' . $index++] = '`DEFAULT_FOLDER`'; + $modifiedColumns[':p' . $index++] = 'DEFAULT_FOLDER'; } if ($this->isColumnModified(ContentFolderTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ContentFolderTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `content_folder` (%s) VALUES (%s)', + 'INSERT INTO content_folder (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -892,19 +892,19 @@ abstract class ContentFolder implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`CONTENT_ID`': + case 'CONTENT_ID': $stmt->bindValue($identifier, $this->content_id, PDO::PARAM_INT); break; - case '`FOLDER_ID`': + case 'FOLDER_ID': $stmt->bindValue($identifier, $this->folder_id, PDO::PARAM_INT); break; - case '`DEFAULT_FOLDER`': + case 'DEFAULT_FOLDER': $stmt->bindValue($identifier, (int) $this->default_folder, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentFolderQuery.php b/core/lib/Thelia/Model/Base/ContentFolderQuery.php index 4aa4e26df..72561ae77 100644 --- a/core/lib/Thelia/Model/Base/ContentFolderQuery.php +++ b/core/lib/Thelia/Model/Base/ContentFolderQuery.php @@ -147,7 +147,7 @@ abstract class ContentFolderQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `CONTENT_ID`, `FOLDER_ID`, `DEFAULT_FOLDER`, `CREATED_AT`, `UPDATED_AT` FROM `content_folder` WHERE `CONTENT_ID` = :p0 AND `FOLDER_ID` = :p1'; + $sql = 'SELECT CONTENT_ID, FOLDER_ID, DEFAULT_FOLDER, CREATED_AT, UPDATED_AT FROM content_folder WHERE CONTENT_ID = :p0 AND FOLDER_ID = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ContentI18n.php b/core/lib/Thelia/Model/Base/ContentI18n.php index 706f8a714..5b5dd2459 100644 --- a/core/lib/Thelia/Model/Base/ContentI18n.php +++ b/core/lib/Thelia/Model/Base/ContentI18n.php @@ -981,35 +981,35 @@ abstract class ContentI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ContentI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ContentI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ContentI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ContentI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ContentI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } if ($this->isColumnModified(ContentI18nTableMap::META_TITLE)) { - $modifiedColumns[':p' . $index++] = '`META_TITLE`'; + $modifiedColumns[':p' . $index++] = 'META_TITLE'; } if ($this->isColumnModified(ContentI18nTableMap::META_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`META_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'META_DESCRIPTION'; } if ($this->isColumnModified(ContentI18nTableMap::META_KEYWORDS)) { - $modifiedColumns[':p' . $index++] = '`META_KEYWORDS`'; + $modifiedColumns[':p' . $index++] = 'META_KEYWORDS'; } $sql = sprintf( - 'INSERT INTO `content_i18n` (%s) VALUES (%s)', + 'INSERT INTO content_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1018,31 +1018,31 @@ abstract class ContentI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; - case '`META_TITLE`': + case 'META_TITLE': $stmt->bindValue($identifier, $this->meta_title, PDO::PARAM_STR); break; - case '`META_DESCRIPTION`': + case 'META_DESCRIPTION': $stmt->bindValue($identifier, $this->meta_description, PDO::PARAM_STR); break; - case '`META_KEYWORDS`': + case 'META_KEYWORDS': $stmt->bindValue($identifier, $this->meta_keywords, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentI18nQuery.php b/core/lib/Thelia/Model/Base/ContentI18nQuery.php index c2b1dc15b..ed844f4c2 100644 --- a/core/lib/Thelia/Model/Base/ContentI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ContentI18nQuery.php @@ -159,7 +159,7 @@ abstract class ContentI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM`, `META_TITLE`, `META_DESCRIPTION`, `META_KEYWORDS` FROM `content_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM, META_TITLE, META_DESCRIPTION, META_KEYWORDS FROM content_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ContentImage.php b/core/lib/Thelia/Model/Base/ContentImage.php index 0dd622743..17fa9d1f8 100644 --- a/core/lib/Thelia/Model/Base/ContentImage.php +++ b/core/lib/Thelia/Model/Base/ContentImage.php @@ -930,26 +930,26 @@ abstract class ContentImage implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentImageTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ContentImageTableMap::CONTENT_ID)) { - $modifiedColumns[':p' . $index++] = '`CONTENT_ID`'; + $modifiedColumns[':p' . $index++] = 'CONTENT_ID'; } if ($this->isColumnModified(ContentImageTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(ContentImageTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ContentImageTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ContentImageTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `content_image` (%s) VALUES (%s)', + 'INSERT INTO content_image (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class ContentImage implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CONTENT_ID`': + case 'CONTENT_ID': $stmt->bindValue($identifier, $this->content_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentImageI18n.php b/core/lib/Thelia/Model/Base/ContentImageI18n.php index 996ce8b5c..dcee14315 100644 --- a/core/lib/Thelia/Model/Base/ContentImageI18n.php +++ b/core/lib/Thelia/Model/Base/ContentImageI18n.php @@ -858,26 +858,26 @@ abstract class ContentImageI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentImageI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ContentImageI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ContentImageI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ContentImageI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ContentImageI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ContentImageI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `content_image_i18n` (%s) VALUES (%s)', + 'INSERT INTO content_image_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ContentImageI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentImageI18nQuery.php b/core/lib/Thelia/Model/Base/ContentImageI18nQuery.php index e99e58f37..1807c5bb7 100644 --- a/core/lib/Thelia/Model/Base/ContentImageI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ContentImageI18nQuery.php @@ -147,7 +147,7 @@ abstract class ContentImageI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `content_image_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM content_image_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ContentImageQuery.php b/core/lib/Thelia/Model/Base/ContentImageQuery.php index 339bdfc55..f69464dd7 100644 --- a/core/lib/Thelia/Model/Base/ContentImageQuery.php +++ b/core/lib/Thelia/Model/Base/ContentImageQuery.php @@ -152,7 +152,7 @@ abstract class ContentImageQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CONTENT_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `content_image` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CONTENT_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM content_image WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ContentQuery.php b/core/lib/Thelia/Model/Base/ContentQuery.php index 0cbd7191d..0dc2f57a4 100644 --- a/core/lib/Thelia/Model/Base/ContentQuery.php +++ b/core/lib/Thelia/Model/Base/ContentQuery.php @@ -187,7 +187,7 @@ abstract class ContentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `VISIBLE`, `POSITION`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `content` WHERE `ID` = :p0'; + $sql = 'SELECT ID, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM content WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ContentVersion.php b/core/lib/Thelia/Model/Base/ContentVersion.php index f4190b659..beb02456e 100644 --- a/core/lib/Thelia/Model/Base/ContentVersion.php +++ b/core/lib/Thelia/Model/Base/ContentVersion.php @@ -978,32 +978,32 @@ abstract class ContentVersion implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ContentVersionTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ContentVersionTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(ContentVersionTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ContentVersionTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ContentVersionTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(ContentVersionTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(ContentVersionTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(ContentVersionTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `content_version` (%s) VALUES (%s)', + 'INSERT INTO content_version (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1012,28 +1012,28 @@ abstract class ContentVersion implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ContentVersionQuery.php b/core/lib/Thelia/Model/Base/ContentVersionQuery.php index 6e8481c99..ae737d96e 100644 --- a/core/lib/Thelia/Model/Base/ContentVersionQuery.php +++ b/core/lib/Thelia/Model/Base/ContentVersionQuery.php @@ -155,7 +155,7 @@ abstract class ContentVersionQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `VISIBLE`, `POSITION`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `content_version` WHERE `ID` = :p0 AND `VERSION` = :p1'; + $sql = 'SELECT ID, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM content_version WHERE ID = :p0 AND VERSION = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Country.php b/core/lib/Thelia/Model/Base/Country.php index 288ad7128..299b3e511 100644 --- a/core/lib/Thelia/Model/Base/Country.php +++ b/core/lib/Thelia/Model/Base/Country.php @@ -1151,35 +1151,35 @@ abstract class Country implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CountryTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CountryTableMap::AREA_ID)) { - $modifiedColumns[':p' . $index++] = '`AREA_ID`'; + $modifiedColumns[':p' . $index++] = 'AREA_ID'; } if ($this->isColumnModified(CountryTableMap::ISOCODE)) { - $modifiedColumns[':p' . $index++] = '`ISOCODE`'; + $modifiedColumns[':p' . $index++] = 'ISOCODE'; } if ($this->isColumnModified(CountryTableMap::ISOALPHA2)) { - $modifiedColumns[':p' . $index++] = '`ISOALPHA2`'; + $modifiedColumns[':p' . $index++] = 'ISOALPHA2'; } if ($this->isColumnModified(CountryTableMap::ISOALPHA3)) { - $modifiedColumns[':p' . $index++] = '`ISOALPHA3`'; + $modifiedColumns[':p' . $index++] = 'ISOALPHA3'; } if ($this->isColumnModified(CountryTableMap::BY_DEFAULT)) { - $modifiedColumns[':p' . $index++] = '`BY_DEFAULT`'; + $modifiedColumns[':p' . $index++] = 'BY_DEFAULT'; } if ($this->isColumnModified(CountryTableMap::SHOP_COUNTRY)) { - $modifiedColumns[':p' . $index++] = '`SHOP_COUNTRY`'; + $modifiedColumns[':p' . $index++] = 'SHOP_COUNTRY'; } if ($this->isColumnModified(CountryTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CountryTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `country` (%s) VALUES (%s)', + 'INSERT INTO country (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1188,31 +1188,31 @@ abstract class Country implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`AREA_ID`': + case 'AREA_ID': $stmt->bindValue($identifier, $this->area_id, PDO::PARAM_INT); break; - case '`ISOCODE`': + case 'ISOCODE': $stmt->bindValue($identifier, $this->isocode, PDO::PARAM_STR); break; - case '`ISOALPHA2`': + case 'ISOALPHA2': $stmt->bindValue($identifier, $this->isoalpha2, PDO::PARAM_STR); break; - case '`ISOALPHA3`': + case 'ISOALPHA3': $stmt->bindValue($identifier, $this->isoalpha3, PDO::PARAM_STR); break; - case '`BY_DEFAULT`': + case 'BY_DEFAULT': $stmt->bindValue($identifier, $this->by_default, PDO::PARAM_INT); break; - case '`SHOP_COUNTRY`': + case 'SHOP_COUNTRY': $stmt->bindValue($identifier, (int) $this->shop_country, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CountryI18n.php b/core/lib/Thelia/Model/Base/CountryI18n.php index 16fcf0d0f..2c660e200 100644 --- a/core/lib/Thelia/Model/Base/CountryI18n.php +++ b/core/lib/Thelia/Model/Base/CountryI18n.php @@ -858,26 +858,26 @@ abstract class CountryI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CountryI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CountryI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(CountryI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(CountryI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(CountryI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(CountryI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `country_i18n` (%s) VALUES (%s)', + 'INSERT INTO country_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class CountryI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CountryI18nQuery.php b/core/lib/Thelia/Model/Base/CountryI18nQuery.php index 81ea2b508..924ed263a 100644 --- a/core/lib/Thelia/Model/Base/CountryI18nQuery.php +++ b/core/lib/Thelia/Model/Base/CountryI18nQuery.php @@ -147,7 +147,7 @@ abstract class CountryI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `country_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM country_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CountryQuery.php b/core/lib/Thelia/Model/Base/CountryQuery.php index 270802f07..9135e293a 100644 --- a/core/lib/Thelia/Model/Base/CountryQuery.php +++ b/core/lib/Thelia/Model/Base/CountryQuery.php @@ -172,7 +172,7 @@ abstract class CountryQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `AREA_ID`, `ISOCODE`, `ISOALPHA2`, `ISOALPHA3`, `BY_DEFAULT`, `SHOP_COUNTRY`, `CREATED_AT`, `UPDATED_AT` FROM `country` WHERE `ID` = :p0'; + $sql = 'SELECT ID, AREA_ID, ISOCODE, ISOALPHA2, ISOALPHA3, BY_DEFAULT, SHOP_COUNTRY, CREATED_AT, UPDATED_AT FROM country WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Coupon.php b/core/lib/Thelia/Model/Base/Coupon.php index e664fc623..012b97313 100644 --- a/core/lib/Thelia/Model/Base/Coupon.php +++ b/core/lib/Thelia/Model/Base/Coupon.php @@ -1393,53 +1393,53 @@ abstract class Coupon implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CouponTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CouponTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(CouponTableMap::TYPE)) { - $modifiedColumns[':p' . $index++] = '`TYPE`'; + $modifiedColumns[':p' . $index++] = 'TYPE'; } if ($this->isColumnModified(CouponTableMap::AMOUNT)) { - $modifiedColumns[':p' . $index++] = '`AMOUNT`'; + $modifiedColumns[':p' . $index++] = 'AMOUNT'; } if ($this->isColumnModified(CouponTableMap::IS_ENABLED)) { - $modifiedColumns[':p' . $index++] = '`IS_ENABLED`'; + $modifiedColumns[':p' . $index++] = 'IS_ENABLED'; } if ($this->isColumnModified(CouponTableMap::EXPIRATION_DATE)) { - $modifiedColumns[':p' . $index++] = '`EXPIRATION_DATE`'; + $modifiedColumns[':p' . $index++] = 'EXPIRATION_DATE'; } if ($this->isColumnModified(CouponTableMap::MAX_USAGE)) { - $modifiedColumns[':p' . $index++] = '`MAX_USAGE`'; + $modifiedColumns[':p' . $index++] = 'MAX_USAGE'; } if ($this->isColumnModified(CouponTableMap::IS_CUMULATIVE)) { - $modifiedColumns[':p' . $index++] = '`IS_CUMULATIVE`'; + $modifiedColumns[':p' . $index++] = 'IS_CUMULATIVE'; } if ($this->isColumnModified(CouponTableMap::IS_REMOVING_POSTAGE)) { - $modifiedColumns[':p' . $index++] = '`IS_REMOVING_POSTAGE`'; + $modifiedColumns[':p' . $index++] = 'IS_REMOVING_POSTAGE'; } if ($this->isColumnModified(CouponTableMap::IS_AVAILABLE_ON_SPECIAL_OFFERS)) { - $modifiedColumns[':p' . $index++] = '`IS_AVAILABLE_ON_SPECIAL_OFFERS`'; + $modifiedColumns[':p' . $index++] = 'IS_AVAILABLE_ON_SPECIAL_OFFERS'; } if ($this->isColumnModified(CouponTableMap::IS_USED)) { - $modifiedColumns[':p' . $index++] = '`IS_USED`'; + $modifiedColumns[':p' . $index++] = 'IS_USED'; } if ($this->isColumnModified(CouponTableMap::SERIALIZED_CONDITIONS)) { - $modifiedColumns[':p' . $index++] = '`SERIALIZED_CONDITIONS`'; + $modifiedColumns[':p' . $index++] = 'SERIALIZED_CONDITIONS'; } if ($this->isColumnModified(CouponTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CouponTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(CouponTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } $sql = sprintf( - 'INSERT INTO `coupon` (%s) VALUES (%s)', + 'INSERT INTO coupon (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1448,49 +1448,49 @@ abstract class Coupon implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`TYPE`': + case 'TYPE': $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); break; - case '`AMOUNT`': + case 'AMOUNT': $stmt->bindValue($identifier, $this->amount, PDO::PARAM_STR); break; - case '`IS_ENABLED`': + case 'IS_ENABLED': $stmt->bindValue($identifier, (int) $this->is_enabled, PDO::PARAM_INT); break; - case '`EXPIRATION_DATE`': + 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 '`MAX_USAGE`': + case 'MAX_USAGE': $stmt->bindValue($identifier, $this->max_usage, PDO::PARAM_INT); break; - case '`IS_CUMULATIVE`': + case 'IS_CUMULATIVE': $stmt->bindValue($identifier, (int) $this->is_cumulative, PDO::PARAM_INT); break; - case '`IS_REMOVING_POSTAGE`': + case 'IS_REMOVING_POSTAGE': $stmt->bindValue($identifier, (int) $this->is_removing_postage, PDO::PARAM_INT); break; - case '`IS_AVAILABLE_ON_SPECIAL_OFFERS`': + case 'IS_AVAILABLE_ON_SPECIAL_OFFERS': $stmt->bindValue($identifier, (int) $this->is_available_on_special_offers, PDO::PARAM_INT); break; - case '`IS_USED`': + case 'IS_USED': $stmt->bindValue($identifier, (int) $this->is_used, PDO::PARAM_INT); break; - case '`SERIALIZED_CONDITIONS`': + case 'SERIALIZED_CONDITIONS': $stmt->bindValue($identifier, $this->serialized_conditions, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; } diff --git a/core/lib/Thelia/Model/Base/CouponI18n.php b/core/lib/Thelia/Model/Base/CouponI18n.php index eed23d5fe..7bb7d8314 100644 --- a/core/lib/Thelia/Model/Base/CouponI18n.php +++ b/core/lib/Thelia/Model/Base/CouponI18n.php @@ -817,23 +817,23 @@ abstract class CouponI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CouponI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CouponI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(CouponI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(CouponI18nTableMap::SHORT_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`SHORT_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'SHORT_DESCRIPTION'; } if ($this->isColumnModified(CouponI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } $sql = sprintf( - 'INSERT INTO `coupon_i18n` (%s) VALUES (%s)', + 'INSERT INTO coupon_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -842,19 +842,19 @@ abstract class CouponI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`SHORT_DESCRIPTION`': + case 'SHORT_DESCRIPTION': $stmt->bindValue($identifier, $this->short_description, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CouponI18nQuery.php b/core/lib/Thelia/Model/Base/CouponI18nQuery.php index 217796a80..5dfbdbcdc 100644 --- a/core/lib/Thelia/Model/Base/CouponI18nQuery.php +++ b/core/lib/Thelia/Model/Base/CouponI18nQuery.php @@ -143,7 +143,7 @@ abstract class CouponI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `SHORT_DESCRIPTION`, `DESCRIPTION` FROM `coupon_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, SHORT_DESCRIPTION, DESCRIPTION FROM coupon_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CouponQuery.php b/core/lib/Thelia/Model/Base/CouponQuery.php index 471fc296b..d480f06c4 100644 --- a/core/lib/Thelia/Model/Base/CouponQuery.php +++ b/core/lib/Thelia/Model/Base/CouponQuery.php @@ -195,7 +195,7 @@ abstract class CouponQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CODE`, `TYPE`, `AMOUNT`, `IS_ENABLED`, `EXPIRATION_DATE`, `MAX_USAGE`, `IS_CUMULATIVE`, `IS_REMOVING_POSTAGE`, `IS_AVAILABLE_ON_SPECIAL_OFFERS`, `IS_USED`, `SERIALIZED_CONDITIONS`, `CREATED_AT`, `UPDATED_AT`, `VERSION` FROM `coupon` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CODE, TYPE, AMOUNT, IS_ENABLED, EXPIRATION_DATE, MAX_USAGE, IS_CUMULATIVE, IS_REMOVING_POSTAGE, IS_AVAILABLE_ON_SPECIAL_OFFERS, IS_USED, SERIALIZED_CONDITIONS, CREATED_AT, UPDATED_AT, VERSION FROM coupon WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CouponVersion.php b/core/lib/Thelia/Model/Base/CouponVersion.php index 687acabdb..67c077cfa 100644 --- a/core/lib/Thelia/Model/Base/CouponVersion.php +++ b/core/lib/Thelia/Model/Base/CouponVersion.php @@ -1305,53 +1305,53 @@ abstract class CouponVersion implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CouponVersionTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CouponVersionTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(CouponVersionTableMap::TYPE)) { - $modifiedColumns[':p' . $index++] = '`TYPE`'; + $modifiedColumns[':p' . $index++] = 'TYPE'; } if ($this->isColumnModified(CouponVersionTableMap::AMOUNT)) { - $modifiedColumns[':p' . $index++] = '`AMOUNT`'; + $modifiedColumns[':p' . $index++] = 'AMOUNT'; } if ($this->isColumnModified(CouponVersionTableMap::IS_ENABLED)) { - $modifiedColumns[':p' . $index++] = '`IS_ENABLED`'; + $modifiedColumns[':p' . $index++] = 'IS_ENABLED'; } if ($this->isColumnModified(CouponVersionTableMap::EXPIRATION_DATE)) { - $modifiedColumns[':p' . $index++] = '`EXPIRATION_DATE`'; + $modifiedColumns[':p' . $index++] = 'EXPIRATION_DATE'; } if ($this->isColumnModified(CouponVersionTableMap::MAX_USAGE)) { - $modifiedColumns[':p' . $index++] = '`MAX_USAGE`'; + $modifiedColumns[':p' . $index++] = 'MAX_USAGE'; } if ($this->isColumnModified(CouponVersionTableMap::IS_CUMULATIVE)) { - $modifiedColumns[':p' . $index++] = '`IS_CUMULATIVE`'; + $modifiedColumns[':p' . $index++] = 'IS_CUMULATIVE'; } if ($this->isColumnModified(CouponVersionTableMap::IS_REMOVING_POSTAGE)) { - $modifiedColumns[':p' . $index++] = '`IS_REMOVING_POSTAGE`'; + $modifiedColumns[':p' . $index++] = 'IS_REMOVING_POSTAGE'; } if ($this->isColumnModified(CouponVersionTableMap::IS_AVAILABLE_ON_SPECIAL_OFFERS)) { - $modifiedColumns[':p' . $index++] = '`IS_AVAILABLE_ON_SPECIAL_OFFERS`'; + $modifiedColumns[':p' . $index++] = 'IS_AVAILABLE_ON_SPECIAL_OFFERS'; } if ($this->isColumnModified(CouponVersionTableMap::IS_USED)) { - $modifiedColumns[':p' . $index++] = '`IS_USED`'; + $modifiedColumns[':p' . $index++] = 'IS_USED'; } if ($this->isColumnModified(CouponVersionTableMap::SERIALIZED_CONDITIONS)) { - $modifiedColumns[':p' . $index++] = '`SERIALIZED_CONDITIONS`'; + $modifiedColumns[':p' . $index++] = 'SERIALIZED_CONDITIONS'; } if ($this->isColumnModified(CouponVersionTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CouponVersionTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(CouponVersionTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } $sql = sprintf( - 'INSERT INTO `coupon_version` (%s) VALUES (%s)', + 'INSERT INTO coupon_version (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1360,49 +1360,49 @@ abstract class CouponVersion implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`TYPE`': + case 'TYPE': $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); break; - case '`AMOUNT`': + case 'AMOUNT': $stmt->bindValue($identifier, $this->amount, PDO::PARAM_STR); break; - case '`IS_ENABLED`': + case 'IS_ENABLED': $stmt->bindValue($identifier, (int) $this->is_enabled, PDO::PARAM_INT); break; - case '`EXPIRATION_DATE`': + 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 '`MAX_USAGE`': + case 'MAX_USAGE': $stmt->bindValue($identifier, $this->max_usage, PDO::PARAM_INT); break; - case '`IS_CUMULATIVE`': + case 'IS_CUMULATIVE': $stmt->bindValue($identifier, (int) $this->is_cumulative, PDO::PARAM_INT); break; - case '`IS_REMOVING_POSTAGE`': + case 'IS_REMOVING_POSTAGE': $stmt->bindValue($identifier, (int) $this->is_removing_postage, PDO::PARAM_INT); break; - case '`IS_AVAILABLE_ON_SPECIAL_OFFERS`': + case 'IS_AVAILABLE_ON_SPECIAL_OFFERS': $stmt->bindValue($identifier, (int) $this->is_available_on_special_offers, PDO::PARAM_INT); break; - case '`IS_USED`': + case 'IS_USED': $stmt->bindValue($identifier, (int) $this->is_used, PDO::PARAM_INT); break; - case '`SERIALIZED_CONDITIONS`': + case 'SERIALIZED_CONDITIONS': $stmt->bindValue($identifier, $this->serialized_conditions, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; } diff --git a/core/lib/Thelia/Model/Base/CouponVersionQuery.php b/core/lib/Thelia/Model/Base/CouponVersionQuery.php index 7ff88c828..eebd85dd9 100644 --- a/core/lib/Thelia/Model/Base/CouponVersionQuery.php +++ b/core/lib/Thelia/Model/Base/CouponVersionQuery.php @@ -183,7 +183,7 @@ abstract class CouponVersionQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CODE`, `TYPE`, `AMOUNT`, `IS_ENABLED`, `EXPIRATION_DATE`, `MAX_USAGE`, `IS_CUMULATIVE`, `IS_REMOVING_POSTAGE`, `IS_AVAILABLE_ON_SPECIAL_OFFERS`, `IS_USED`, `SERIALIZED_CONDITIONS`, `CREATED_AT`, `UPDATED_AT`, `VERSION` FROM `coupon_version` WHERE `ID` = :p0 AND `VERSION` = :p1'; + $sql = 'SELECT ID, CODE, TYPE, AMOUNT, IS_ENABLED, EXPIRATION_DATE, MAX_USAGE, IS_CUMULATIVE, IS_REMOVING_POSTAGE, IS_AVAILABLE_ON_SPECIAL_OFFERS, IS_USED, SERIALIZED_CONDITIONS, 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); diff --git a/core/lib/Thelia/Model/Base/Currency.php b/core/lib/Thelia/Model/Base/Currency.php index d701d0e91..2161e4425 100644 --- a/core/lib/Thelia/Model/Base/Currency.php +++ b/core/lib/Thelia/Model/Base/Currency.php @@ -1084,32 +1084,32 @@ abstract class Currency implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CurrencyTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CurrencyTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(CurrencyTableMap::SYMBOL)) { - $modifiedColumns[':p' . $index++] = '`SYMBOL`'; + $modifiedColumns[':p' . $index++] = 'SYMBOL'; } if ($this->isColumnModified(CurrencyTableMap::RATE)) { - $modifiedColumns[':p' . $index++] = '`RATE`'; + $modifiedColumns[':p' . $index++] = 'RATE'; } if ($this->isColumnModified(CurrencyTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(CurrencyTableMap::BY_DEFAULT)) { - $modifiedColumns[':p' . $index++] = '`BY_DEFAULT`'; + $modifiedColumns[':p' . $index++] = 'BY_DEFAULT'; } if ($this->isColumnModified(CurrencyTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CurrencyTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `currency` (%s) VALUES (%s)', + 'INSERT INTO currency (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1118,28 +1118,28 @@ abstract class Currency implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`SYMBOL`': + case 'SYMBOL': $stmt->bindValue($identifier, $this->symbol, PDO::PARAM_STR); break; - case '`RATE`': + case 'RATE': $stmt->bindValue($identifier, $this->rate, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`BY_DEFAULT`': + case 'BY_DEFAULT': $stmt->bindValue($identifier, $this->by_default, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CurrencyI18n.php b/core/lib/Thelia/Model/Base/CurrencyI18n.php index 671696db9..c3e6af289 100644 --- a/core/lib/Thelia/Model/Base/CurrencyI18n.php +++ b/core/lib/Thelia/Model/Base/CurrencyI18n.php @@ -735,17 +735,17 @@ abstract class CurrencyI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CurrencyI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CurrencyI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(CurrencyI18nTableMap::NAME)) { - $modifiedColumns[':p' . $index++] = '`NAME`'; + $modifiedColumns[':p' . $index++] = 'NAME'; } $sql = sprintf( - 'INSERT INTO `currency_i18n` (%s) VALUES (%s)', + 'INSERT INTO currency_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -754,13 +754,13 @@ abstract class CurrencyI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`NAME`': + case 'NAME': $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CurrencyI18nQuery.php b/core/lib/Thelia/Model/Base/CurrencyI18nQuery.php index 65019d642..33af4ff87 100644 --- a/core/lib/Thelia/Model/Base/CurrencyI18nQuery.php +++ b/core/lib/Thelia/Model/Base/CurrencyI18nQuery.php @@ -135,7 +135,7 @@ abstract class CurrencyI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `NAME` FROM `currency_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, NAME FROM currency_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CurrencyQuery.php b/core/lib/Thelia/Model/Base/CurrencyQuery.php index c6382efba..4276000a1 100644 --- a/core/lib/Thelia/Model/Base/CurrencyQuery.php +++ b/core/lib/Thelia/Model/Base/CurrencyQuery.php @@ -168,7 +168,7 @@ abstract class CurrencyQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CODE`, `SYMBOL`, `RATE`, `POSITION`, `BY_DEFAULT`, `CREATED_AT`, `UPDATED_AT` FROM `currency` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CODE, SYMBOL, RATE, POSITION, BY_DEFAULT, CREATED_AT, UPDATED_AT FROM currency WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Customer.php b/core/lib/Thelia/Model/Base/Customer.php index 1273b9c02..857dc5e17 100644 --- a/core/lib/Thelia/Model/Base/Customer.php +++ b/core/lib/Thelia/Model/Base/Customer.php @@ -1392,56 +1392,56 @@ abstract class Customer implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CustomerTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CustomerTableMap::REF)) { - $modifiedColumns[':p' . $index++] = '`REF`'; + $modifiedColumns[':p' . $index++] = 'REF'; } if ($this->isColumnModified(CustomerTableMap::TITLE_ID)) { - $modifiedColumns[':p' . $index++] = '`TITLE_ID`'; + $modifiedColumns[':p' . $index++] = 'TITLE_ID'; } if ($this->isColumnModified(CustomerTableMap::FIRSTNAME)) { - $modifiedColumns[':p' . $index++] = '`FIRSTNAME`'; + $modifiedColumns[':p' . $index++] = 'FIRSTNAME'; } if ($this->isColumnModified(CustomerTableMap::LASTNAME)) { - $modifiedColumns[':p' . $index++] = '`LASTNAME`'; + $modifiedColumns[':p' . $index++] = 'LASTNAME'; } if ($this->isColumnModified(CustomerTableMap::EMAIL)) { - $modifiedColumns[':p' . $index++] = '`EMAIL`'; + $modifiedColumns[':p' . $index++] = 'EMAIL'; } if ($this->isColumnModified(CustomerTableMap::PASSWORD)) { - $modifiedColumns[':p' . $index++] = '`PASSWORD`'; + $modifiedColumns[':p' . $index++] = 'PASSWORD'; } if ($this->isColumnModified(CustomerTableMap::ALGO)) { - $modifiedColumns[':p' . $index++] = '`ALGO`'; + $modifiedColumns[':p' . $index++] = 'ALGO'; } if ($this->isColumnModified(CustomerTableMap::RESELLER)) { - $modifiedColumns[':p' . $index++] = '`RESELLER`'; + $modifiedColumns[':p' . $index++] = 'RESELLER'; } if ($this->isColumnModified(CustomerTableMap::LANG)) { - $modifiedColumns[':p' . $index++] = '`LANG`'; + $modifiedColumns[':p' . $index++] = 'LANG'; } if ($this->isColumnModified(CustomerTableMap::SPONSOR)) { - $modifiedColumns[':p' . $index++] = '`SPONSOR`'; + $modifiedColumns[':p' . $index++] = 'SPONSOR'; } if ($this->isColumnModified(CustomerTableMap::DISCOUNT)) { - $modifiedColumns[':p' . $index++] = '`DISCOUNT`'; + $modifiedColumns[':p' . $index++] = 'DISCOUNT'; } if ($this->isColumnModified(CustomerTableMap::REMEMBER_ME_TOKEN)) { - $modifiedColumns[':p' . $index++] = '`REMEMBER_ME_TOKEN`'; + $modifiedColumns[':p' . $index++] = 'REMEMBER_ME_TOKEN'; } if ($this->isColumnModified(CustomerTableMap::REMEMBER_ME_SERIAL)) { - $modifiedColumns[':p' . $index++] = '`REMEMBER_ME_SERIAL`'; + $modifiedColumns[':p' . $index++] = 'REMEMBER_ME_SERIAL'; } if ($this->isColumnModified(CustomerTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CustomerTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `customer` (%s) VALUES (%s)', + 'INSERT INTO customer (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1450,52 +1450,52 @@ abstract class Customer implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`REF`': + case 'REF': $stmt->bindValue($identifier, $this->ref, PDO::PARAM_STR); break; - case '`TITLE_ID`': + case 'TITLE_ID': $stmt->bindValue($identifier, $this->title_id, PDO::PARAM_INT); break; - case '`FIRSTNAME`': + case 'FIRSTNAME': $stmt->bindValue($identifier, $this->firstname, PDO::PARAM_STR); break; - case '`LASTNAME`': + case 'LASTNAME': $stmt->bindValue($identifier, $this->lastname, PDO::PARAM_STR); break; - case '`EMAIL`': + case 'EMAIL': $stmt->bindValue($identifier, $this->email, PDO::PARAM_STR); break; - case '`PASSWORD`': + case 'PASSWORD': $stmt->bindValue($identifier, $this->password, PDO::PARAM_STR); break; - case '`ALGO`': + case 'ALGO': $stmt->bindValue($identifier, $this->algo, PDO::PARAM_STR); break; - case '`RESELLER`': + case 'RESELLER': $stmt->bindValue($identifier, $this->reseller, PDO::PARAM_INT); break; - case '`LANG`': + case 'LANG': $stmt->bindValue($identifier, $this->lang, PDO::PARAM_STR); break; - case '`SPONSOR`': + case 'SPONSOR': $stmt->bindValue($identifier, $this->sponsor, PDO::PARAM_STR); break; - case '`DISCOUNT`': + case 'DISCOUNT': $stmt->bindValue($identifier, $this->discount, PDO::PARAM_STR); break; - case '`REMEMBER_ME_TOKEN`': + case 'REMEMBER_ME_TOKEN': $stmt->bindValue($identifier, $this->remember_me_token, PDO::PARAM_STR); break; - case '`REMEMBER_ME_SERIAL`': + case 'REMEMBER_ME_SERIAL': $stmt->bindValue($identifier, $this->remember_me_serial, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CustomerQuery.php b/core/lib/Thelia/Model/Base/CustomerQuery.php index 28ccb557b..897bb5ee9 100644 --- a/core/lib/Thelia/Model/Base/CustomerQuery.php +++ b/core/lib/Thelia/Model/Base/CustomerQuery.php @@ -199,7 +199,7 @@ abstract class CustomerQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `REF`, `TITLE_ID`, `FIRSTNAME`, `LASTNAME`, `EMAIL`, `PASSWORD`, `ALGO`, `RESELLER`, `LANG`, `SPONSOR`, `DISCOUNT`, `REMEMBER_ME_TOKEN`, `REMEMBER_ME_SERIAL`, `CREATED_AT`, `UPDATED_AT` FROM `customer` WHERE `ID` = :p0'; + $sql = 'SELECT ID, REF, TITLE_ID, FIRSTNAME, LASTNAME, EMAIL, PASSWORD, ALGO, RESELLER, LANG, SPONSOR, DISCOUNT, REMEMBER_ME_TOKEN, REMEMBER_ME_SERIAL, CREATED_AT, UPDATED_AT FROM customer WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CustomerTitle.php b/core/lib/Thelia/Model/Base/CustomerTitle.php index ccf25fa82..978b779b1 100644 --- a/core/lib/Thelia/Model/Base/CustomerTitle.php +++ b/core/lib/Thelia/Model/Base/CustomerTitle.php @@ -946,23 +946,23 @@ abstract class CustomerTitle implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CustomerTitleTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CustomerTitleTableMap::BY_DEFAULT)) { - $modifiedColumns[':p' . $index++] = '`BY_DEFAULT`'; + $modifiedColumns[':p' . $index++] = 'BY_DEFAULT'; } if ($this->isColumnModified(CustomerTitleTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(CustomerTitleTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(CustomerTitleTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `customer_title` (%s) VALUES (%s)', + 'INSERT INTO customer_title (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -971,19 +971,19 @@ abstract class CustomerTitle implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`BY_DEFAULT`': + case 'BY_DEFAULT': $stmt->bindValue($identifier, $this->by_default, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CustomerTitleI18n.php b/core/lib/Thelia/Model/Base/CustomerTitleI18n.php index b0e182acc..5c173543b 100644 --- a/core/lib/Thelia/Model/Base/CustomerTitleI18n.php +++ b/core/lib/Thelia/Model/Base/CustomerTitleI18n.php @@ -776,20 +776,20 @@ abstract class CustomerTitleI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(CustomerTitleI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(CustomerTitleI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(CustomerTitleI18nTableMap::SHORT)) { - $modifiedColumns[':p' . $index++] = '`SHORT`'; + $modifiedColumns[':p' . $index++] = 'SHORT'; } if ($this->isColumnModified(CustomerTitleI18nTableMap::LONG)) { - $modifiedColumns[':p' . $index++] = '`LONG`'; + $modifiedColumns[':p' . $index++] = 'LONG'; } $sql = sprintf( - 'INSERT INTO `customer_title_i18n` (%s) VALUES (%s)', + 'INSERT INTO customer_title_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -798,16 +798,16 @@ abstract class CustomerTitleI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`SHORT`': + case 'SHORT': $stmt->bindValue($identifier, $this->short, PDO::PARAM_STR); break; - case '`LONG`': + case 'LONG': $stmt->bindValue($identifier, $this->long, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/CustomerTitleI18nQuery.php b/core/lib/Thelia/Model/Base/CustomerTitleI18nQuery.php index 446d44b1f..4feeab473 100644 --- a/core/lib/Thelia/Model/Base/CustomerTitleI18nQuery.php +++ b/core/lib/Thelia/Model/Base/CustomerTitleI18nQuery.php @@ -139,7 +139,7 @@ abstract class CustomerTitleI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `SHORT`, `LONG` FROM `customer_title_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, SHORT, LONG FROM customer_title_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/CustomerTitleQuery.php b/core/lib/Thelia/Model/Base/CustomerTitleQuery.php index 62fa27684..ea34c8c91 100644 --- a/core/lib/Thelia/Model/Base/CustomerTitleQuery.php +++ b/core/lib/Thelia/Model/Base/CustomerTitleQuery.php @@ -152,7 +152,7 @@ abstract class CustomerTitleQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `BY_DEFAULT`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `customer_title` WHERE `ID` = :p0'; + $sql = 'SELECT ID, BY_DEFAULT, POSITION, CREATED_AT, UPDATED_AT FROM customer_title WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Feature.php b/core/lib/Thelia/Model/Base/Feature.php index fbe4448f8..7d3a0e7f3 100644 --- a/core/lib/Thelia/Model/Base/Feature.php +++ b/core/lib/Thelia/Model/Base/Feature.php @@ -1020,23 +1020,23 @@ abstract class Feature implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FeatureTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FeatureTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(FeatureTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FeatureTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FeatureTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `feature` (%s) VALUES (%s)', + 'INSERT INTO feature (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1045,19 +1045,19 @@ abstract class Feature implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FeatureAv.php b/core/lib/Thelia/Model/Base/FeatureAv.php index bc19f98a9..7f5191418 100644 --- a/core/lib/Thelia/Model/Base/FeatureAv.php +++ b/core/lib/Thelia/Model/Base/FeatureAv.php @@ -922,23 +922,23 @@ abstract class FeatureAv implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FeatureAvTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FeatureAvTableMap::FEATURE_ID)) { - $modifiedColumns[':p' . $index++] = '`FEATURE_ID`'; + $modifiedColumns[':p' . $index++] = 'FEATURE_ID'; } if ($this->isColumnModified(FeatureAvTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FeatureAvTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FeatureAvTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `feature_av` (%s) VALUES (%s)', + 'INSERT INTO feature_av (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -947,19 +947,19 @@ abstract class FeatureAv implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`FEATURE_ID`': + case 'FEATURE_ID': $stmt->bindValue($identifier, $this->feature_id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FeatureAvI18n.php b/core/lib/Thelia/Model/Base/FeatureAvI18n.php index 658f4fcc4..e88356a16 100644 --- a/core/lib/Thelia/Model/Base/FeatureAvI18n.php +++ b/core/lib/Thelia/Model/Base/FeatureAvI18n.php @@ -858,26 +858,26 @@ abstract class FeatureAvI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FeatureAvI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FeatureAvI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(FeatureAvI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(FeatureAvI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(FeatureAvI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(FeatureAvI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `feature_av_i18n` (%s) VALUES (%s)', + 'INSERT INTO feature_av_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class FeatureAvI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FeatureAvI18nQuery.php b/core/lib/Thelia/Model/Base/FeatureAvI18nQuery.php index 88bb52aa5..bab9fd843 100644 --- a/core/lib/Thelia/Model/Base/FeatureAvI18nQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureAvI18nQuery.php @@ -147,7 +147,7 @@ abstract class FeatureAvI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `feature_av_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM feature_av_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FeatureAvQuery.php b/core/lib/Thelia/Model/Base/FeatureAvQuery.php index 3d8d81a4b..fb3796c97 100644 --- a/core/lib/Thelia/Model/Base/FeatureAvQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureAvQuery.php @@ -152,7 +152,7 @@ abstract class FeatureAvQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `FEATURE_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `feature_av` WHERE `ID` = :p0'; + $sql = 'SELECT ID, FEATURE_ID, POSITION, CREATED_AT, UPDATED_AT FROM feature_av WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FeatureI18n.php b/core/lib/Thelia/Model/Base/FeatureI18n.php index f11699fb9..ed475e87f 100644 --- a/core/lib/Thelia/Model/Base/FeatureI18n.php +++ b/core/lib/Thelia/Model/Base/FeatureI18n.php @@ -858,26 +858,26 @@ abstract class FeatureI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FeatureI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FeatureI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(FeatureI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(FeatureI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(FeatureI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(FeatureI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `feature_i18n` (%s) VALUES (%s)', + 'INSERT INTO feature_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class FeatureI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FeatureI18nQuery.php b/core/lib/Thelia/Model/Base/FeatureI18nQuery.php index 33c171127..5f7080be6 100644 --- a/core/lib/Thelia/Model/Base/FeatureI18nQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureI18nQuery.php @@ -147,7 +147,7 @@ abstract class FeatureI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `feature_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM feature_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FeatureProduct.php b/core/lib/Thelia/Model/Base/FeatureProduct.php index 151f1cc6a..f8ddbd9b7 100644 --- a/core/lib/Thelia/Model/Base/FeatureProduct.php +++ b/core/lib/Thelia/Model/Base/FeatureProduct.php @@ -1008,32 +1008,32 @@ abstract class FeatureProduct implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FeatureProductTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FeatureProductTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(FeatureProductTableMap::FEATURE_ID)) { - $modifiedColumns[':p' . $index++] = '`FEATURE_ID`'; + $modifiedColumns[':p' . $index++] = 'FEATURE_ID'; } if ($this->isColumnModified(FeatureProductTableMap::FEATURE_AV_ID)) { - $modifiedColumns[':p' . $index++] = '`FEATURE_AV_ID`'; + $modifiedColumns[':p' . $index++] = 'FEATURE_AV_ID'; } if ($this->isColumnModified(FeatureProductTableMap::FREE_TEXT_VALUE)) { - $modifiedColumns[':p' . $index++] = '`FREE_TEXT_VALUE`'; + $modifiedColumns[':p' . $index++] = 'FREE_TEXT_VALUE'; } if ($this->isColumnModified(FeatureProductTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FeatureProductTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FeatureProductTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `feature_product` (%s) VALUES (%s)', + 'INSERT INTO feature_product (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1042,28 +1042,28 @@ abstract class FeatureProduct implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`FEATURE_ID`': + case 'FEATURE_ID': $stmt->bindValue($identifier, $this->feature_id, PDO::PARAM_INT); break; - case '`FEATURE_AV_ID`': + case 'FEATURE_AV_ID': $stmt->bindValue($identifier, $this->feature_av_id, PDO::PARAM_INT); break; - case '`FREE_TEXT_VALUE`': + case 'FREE_TEXT_VALUE': $stmt->bindValue($identifier, $this->free_text_value, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FeatureProductQuery.php b/core/lib/Thelia/Model/Base/FeatureProductQuery.php index b1d46a12f..eb2ee7ec1 100644 --- a/core/lib/Thelia/Model/Base/FeatureProductQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureProductQuery.php @@ -163,7 +163,7 @@ abstract class FeatureProductQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PRODUCT_ID`, `FEATURE_ID`, `FEATURE_AV_ID`, `FREE_TEXT_VALUE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `feature_product` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PRODUCT_ID, FEATURE_ID, FEATURE_AV_ID, FREE_TEXT_VALUE, POSITION, CREATED_AT, UPDATED_AT FROM feature_product WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FeatureQuery.php b/core/lib/Thelia/Model/Base/FeatureQuery.php index d6e20ea15..097646c87 100644 --- a/core/lib/Thelia/Model/Base/FeatureQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureQuery.php @@ -156,7 +156,7 @@ abstract class FeatureQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `VISIBLE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `feature` WHERE `ID` = :p0'; + $sql = 'SELECT ID, VISIBLE, POSITION, CREATED_AT, UPDATED_AT FROM feature WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FeatureTemplate.php b/core/lib/Thelia/Model/Base/FeatureTemplate.php index 920c16cde..bc7b4f921 100644 --- a/core/lib/Thelia/Model/Base/FeatureTemplate.php +++ b/core/lib/Thelia/Model/Base/FeatureTemplate.php @@ -904,26 +904,26 @@ abstract class FeatureTemplate implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FeatureTemplateTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FeatureTemplateTableMap::FEATURE_ID)) { - $modifiedColumns[':p' . $index++] = '`FEATURE_ID`'; + $modifiedColumns[':p' . $index++] = 'FEATURE_ID'; } if ($this->isColumnModified(FeatureTemplateTableMap::TEMPLATE_ID)) { - $modifiedColumns[':p' . $index++] = '`TEMPLATE_ID`'; + $modifiedColumns[':p' . $index++] = 'TEMPLATE_ID'; } if ($this->isColumnModified(FeatureTemplateTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FeatureTemplateTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FeatureTemplateTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `feature_template` (%s) VALUES (%s)', + 'INSERT INTO feature_template (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -932,22 +932,22 @@ abstract class FeatureTemplate implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`FEATURE_ID`': + case 'FEATURE_ID': $stmt->bindValue($identifier, $this->feature_id, PDO::PARAM_INT); break; - case '`TEMPLATE_ID`': + case 'TEMPLATE_ID': $stmt->bindValue($identifier, $this->template_id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FeatureTemplateQuery.php b/core/lib/Thelia/Model/Base/FeatureTemplateQuery.php index 8b4f0893e..cccad15ae 100644 --- a/core/lib/Thelia/Model/Base/FeatureTemplateQuery.php +++ b/core/lib/Thelia/Model/Base/FeatureTemplateQuery.php @@ -151,7 +151,7 @@ abstract class FeatureTemplateQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `FEATURE_ID`, `TEMPLATE_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `feature_template` WHERE `ID` = :p0'; + $sql = 'SELECT ID, FEATURE_ID, TEMPLATE_ID, POSITION, CREATED_AT, UPDATED_AT FROM feature_template WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Folder.php b/core/lib/Thelia/Model/Base/Folder.php index 6b08987e0..20a7e8dbc 100644 --- a/core/lib/Thelia/Model/Base/Folder.php +++ b/core/lib/Thelia/Model/Base/Folder.php @@ -1250,35 +1250,35 @@ abstract class Folder implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FolderTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FolderTableMap::PARENT)) { - $modifiedColumns[':p' . $index++] = '`PARENT`'; + $modifiedColumns[':p' . $index++] = 'PARENT'; } if ($this->isColumnModified(FolderTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(FolderTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FolderTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FolderTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(FolderTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(FolderTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(FolderTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `folder` (%s) VALUES (%s)', + 'INSERT INTO folder (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1287,31 +1287,31 @@ abstract class Folder implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PARENT`': + case 'PARENT': $stmt->bindValue($identifier, $this->parent, PDO::PARAM_INT); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FolderDocument.php b/core/lib/Thelia/Model/Base/FolderDocument.php index abd2b3429..ea1a35d74 100644 --- a/core/lib/Thelia/Model/Base/FolderDocument.php +++ b/core/lib/Thelia/Model/Base/FolderDocument.php @@ -930,26 +930,26 @@ abstract class FolderDocument implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FolderDocumentTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FolderDocumentTableMap::FOLDER_ID)) { - $modifiedColumns[':p' . $index++] = '`FOLDER_ID`'; + $modifiedColumns[':p' . $index++] = 'FOLDER_ID'; } if ($this->isColumnModified(FolderDocumentTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(FolderDocumentTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FolderDocumentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FolderDocumentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `folder_document` (%s) VALUES (%s)', + 'INSERT INTO folder_document (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class FolderDocument implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`FOLDER_ID`': + case 'FOLDER_ID': $stmt->bindValue($identifier, $this->folder_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FolderDocumentI18n.php b/core/lib/Thelia/Model/Base/FolderDocumentI18n.php index a24ea7482..600890a03 100644 --- a/core/lib/Thelia/Model/Base/FolderDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/FolderDocumentI18n.php @@ -858,26 +858,26 @@ abstract class FolderDocumentI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FolderDocumentI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FolderDocumentI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(FolderDocumentI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(FolderDocumentI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(FolderDocumentI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(FolderDocumentI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `folder_document_i18n` (%s) VALUES (%s)', + 'INSERT INTO folder_document_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class FolderDocumentI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FolderDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/FolderDocumentI18nQuery.php index f053ac652..073cef92e 100644 --- a/core/lib/Thelia/Model/Base/FolderDocumentI18nQuery.php +++ b/core/lib/Thelia/Model/Base/FolderDocumentI18nQuery.php @@ -147,7 +147,7 @@ abstract class FolderDocumentI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `folder_document_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM folder_document_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FolderDocumentQuery.php b/core/lib/Thelia/Model/Base/FolderDocumentQuery.php index c438576a6..b1c41a29e 100644 --- a/core/lib/Thelia/Model/Base/FolderDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/FolderDocumentQuery.php @@ -152,7 +152,7 @@ abstract class FolderDocumentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `FOLDER_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `folder_document` WHERE `ID` = :p0'; + $sql = 'SELECT ID, FOLDER_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM folder_document WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FolderI18n.php b/core/lib/Thelia/Model/Base/FolderI18n.php index ef0da9d3e..ec57cff1d 100644 --- a/core/lib/Thelia/Model/Base/FolderI18n.php +++ b/core/lib/Thelia/Model/Base/FolderI18n.php @@ -981,35 +981,35 @@ abstract class FolderI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FolderI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FolderI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(FolderI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(FolderI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(FolderI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(FolderI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } if ($this->isColumnModified(FolderI18nTableMap::META_TITLE)) { - $modifiedColumns[':p' . $index++] = '`META_TITLE`'; + $modifiedColumns[':p' . $index++] = 'META_TITLE'; } if ($this->isColumnModified(FolderI18nTableMap::META_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`META_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'META_DESCRIPTION'; } if ($this->isColumnModified(FolderI18nTableMap::META_KEYWORDS)) { - $modifiedColumns[':p' . $index++] = '`META_KEYWORDS`'; + $modifiedColumns[':p' . $index++] = 'META_KEYWORDS'; } $sql = sprintf( - 'INSERT INTO `folder_i18n` (%s) VALUES (%s)', + 'INSERT INTO folder_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1018,31 +1018,31 @@ abstract class FolderI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; - case '`META_TITLE`': + case 'META_TITLE': $stmt->bindValue($identifier, $this->meta_title, PDO::PARAM_STR); break; - case '`META_DESCRIPTION`': + case 'META_DESCRIPTION': $stmt->bindValue($identifier, $this->meta_description, PDO::PARAM_STR); break; - case '`META_KEYWORDS`': + case 'META_KEYWORDS': $stmt->bindValue($identifier, $this->meta_keywords, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FolderI18nQuery.php b/core/lib/Thelia/Model/Base/FolderI18nQuery.php index 787657033..5a95c3689 100644 --- a/core/lib/Thelia/Model/Base/FolderI18nQuery.php +++ b/core/lib/Thelia/Model/Base/FolderI18nQuery.php @@ -159,7 +159,7 @@ abstract class FolderI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM`, `META_TITLE`, `META_DESCRIPTION`, `META_KEYWORDS` FROM `folder_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM, META_TITLE, META_DESCRIPTION, META_KEYWORDS FROM folder_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FolderImage.php b/core/lib/Thelia/Model/Base/FolderImage.php index 6525246de..2440c7232 100644 --- a/core/lib/Thelia/Model/Base/FolderImage.php +++ b/core/lib/Thelia/Model/Base/FolderImage.php @@ -930,26 +930,26 @@ abstract class FolderImage implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FolderImageTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FolderImageTableMap::FOLDER_ID)) { - $modifiedColumns[':p' . $index++] = '`FOLDER_ID`'; + $modifiedColumns[':p' . $index++] = 'FOLDER_ID'; } if ($this->isColumnModified(FolderImageTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(FolderImageTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FolderImageTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FolderImageTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `folder_image` (%s) VALUES (%s)', + 'INSERT INTO folder_image (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class FolderImage implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`FOLDER_ID`': + case 'FOLDER_ID': $stmt->bindValue($identifier, $this->folder_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FolderImageI18n.php b/core/lib/Thelia/Model/Base/FolderImageI18n.php index 95fb29b2a..e080b4b5c 100644 --- a/core/lib/Thelia/Model/Base/FolderImageI18n.php +++ b/core/lib/Thelia/Model/Base/FolderImageI18n.php @@ -858,26 +858,26 @@ abstract class FolderImageI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FolderImageI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FolderImageI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(FolderImageI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(FolderImageI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(FolderImageI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(FolderImageI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `folder_image_i18n` (%s) VALUES (%s)', + 'INSERT INTO folder_image_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class FolderImageI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FolderImageI18nQuery.php b/core/lib/Thelia/Model/Base/FolderImageI18nQuery.php index 15381439b..0e7e0ab55 100644 --- a/core/lib/Thelia/Model/Base/FolderImageI18nQuery.php +++ b/core/lib/Thelia/Model/Base/FolderImageI18nQuery.php @@ -147,7 +147,7 @@ abstract class FolderImageI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `folder_image_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM folder_image_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FolderImageQuery.php b/core/lib/Thelia/Model/Base/FolderImageQuery.php index 6466b83a3..ca12e098e 100644 --- a/core/lib/Thelia/Model/Base/FolderImageQuery.php +++ b/core/lib/Thelia/Model/Base/FolderImageQuery.php @@ -152,7 +152,7 @@ abstract class FolderImageQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `FOLDER_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `folder_image` WHERE `ID` = :p0'; + $sql = 'SELECT ID, FOLDER_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM folder_image WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FolderQuery.php b/core/lib/Thelia/Model/Base/FolderQuery.php index 473ad2234..d7d6794c5 100644 --- a/core/lib/Thelia/Model/Base/FolderQuery.php +++ b/core/lib/Thelia/Model/Base/FolderQuery.php @@ -183,7 +183,7 @@ abstract class FolderQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PARENT`, `VISIBLE`, `POSITION`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `folder` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PARENT, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM folder WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/FolderVersion.php b/core/lib/Thelia/Model/Base/FolderVersion.php index a0678e1b7..657bdeb44 100644 --- a/core/lib/Thelia/Model/Base/FolderVersion.php +++ b/core/lib/Thelia/Model/Base/FolderVersion.php @@ -1019,35 +1019,35 @@ abstract class FolderVersion implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(FolderVersionTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(FolderVersionTableMap::PARENT)) { - $modifiedColumns[':p' . $index++] = '`PARENT`'; + $modifiedColumns[':p' . $index++] = 'PARENT'; } if ($this->isColumnModified(FolderVersionTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(FolderVersionTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(FolderVersionTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(FolderVersionTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(FolderVersionTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(FolderVersionTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(FolderVersionTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `folder_version` (%s) VALUES (%s)', + 'INSERT INTO folder_version (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1056,31 +1056,31 @@ abstract class FolderVersion implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PARENT`': + case 'PARENT': $stmt->bindValue($identifier, $this->parent, PDO::PARAM_INT); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/FolderVersionQuery.php b/core/lib/Thelia/Model/Base/FolderVersionQuery.php index 086551003..22090d7be 100644 --- a/core/lib/Thelia/Model/Base/FolderVersionQuery.php +++ b/core/lib/Thelia/Model/Base/FolderVersionQuery.php @@ -159,7 +159,7 @@ abstract class FolderVersionQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PARENT`, `VISIBLE`, `POSITION`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `folder_version` WHERE `ID` = :p0 AND `VERSION` = :p1'; + $sql = 'SELECT ID, PARENT, VISIBLE, POSITION, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM folder_version WHERE ID = :p0 AND VERSION = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Lang.php b/core/lib/Thelia/Model/Base/Lang.php index f01227211..ac6f1f63c 100644 --- a/core/lib/Thelia/Model/Base/Lang.php +++ b/core/lib/Thelia/Model/Base/Lang.php @@ -1258,53 +1258,53 @@ abstract class Lang implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(LangTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(LangTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(LangTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(LangTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(LangTableMap::URL)) { - $modifiedColumns[':p' . $index++] = '`URL`'; + $modifiedColumns[':p' . $index++] = 'URL'; } if ($this->isColumnModified(LangTableMap::DATE_FORMAT)) { - $modifiedColumns[':p' . $index++] = '`DATE_FORMAT`'; + $modifiedColumns[':p' . $index++] = 'DATE_FORMAT'; } if ($this->isColumnModified(LangTableMap::TIME_FORMAT)) { - $modifiedColumns[':p' . $index++] = '`TIME_FORMAT`'; + $modifiedColumns[':p' . $index++] = 'TIME_FORMAT'; } if ($this->isColumnModified(LangTableMap::DATETIME_FORMAT)) { - $modifiedColumns[':p' . $index++] = '`DATETIME_FORMAT`'; + $modifiedColumns[':p' . $index++] = 'DATETIME_FORMAT'; } if ($this->isColumnModified(LangTableMap::DECIMAL_SEPARATOR)) { - $modifiedColumns[':p' . $index++] = '`DECIMAL_SEPARATOR`'; + $modifiedColumns[':p' . $index++] = 'DECIMAL_SEPARATOR'; } if ($this->isColumnModified(LangTableMap::THOUSANDS_SEPARATOR)) { - $modifiedColumns[':p' . $index++] = '`THOUSANDS_SEPARATOR`'; + $modifiedColumns[':p' . $index++] = 'THOUSANDS_SEPARATOR'; } if ($this->isColumnModified(LangTableMap::DECIMALS)) { - $modifiedColumns[':p' . $index++] = '`DECIMALS`'; + $modifiedColumns[':p' . $index++] = 'DECIMALS'; } if ($this->isColumnModified(LangTableMap::BY_DEFAULT)) { - $modifiedColumns[':p' . $index++] = '`BY_DEFAULT`'; + $modifiedColumns[':p' . $index++] = 'BY_DEFAULT'; } if ($this->isColumnModified(LangTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(LangTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(LangTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `lang` (%s) VALUES (%s)', + 'INSERT INTO lang (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1313,49 +1313,49 @@ abstract class Lang implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`URL`': + case 'URL': $stmt->bindValue($identifier, $this->url, PDO::PARAM_STR); break; - case '`DATE_FORMAT`': + case 'DATE_FORMAT': $stmt->bindValue($identifier, $this->date_format, PDO::PARAM_STR); break; - case '`TIME_FORMAT`': + case 'TIME_FORMAT': $stmt->bindValue($identifier, $this->time_format, PDO::PARAM_STR); break; - case '`DATETIME_FORMAT`': + case 'DATETIME_FORMAT': $stmt->bindValue($identifier, $this->datetime_format, PDO::PARAM_STR); break; - case '`DECIMAL_SEPARATOR`': + case 'DECIMAL_SEPARATOR': $stmt->bindValue($identifier, $this->decimal_separator, PDO::PARAM_STR); break; - case '`THOUSANDS_SEPARATOR`': + case 'THOUSANDS_SEPARATOR': $stmt->bindValue($identifier, $this->thousands_separator, PDO::PARAM_STR); break; - case '`DECIMALS`': + case 'DECIMALS': $stmt->bindValue($identifier, $this->decimals, PDO::PARAM_STR); break; - case '`BY_DEFAULT`': + case 'BY_DEFAULT': $stmt->bindValue($identifier, $this->by_default, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/LangQuery.php b/core/lib/Thelia/Model/Base/LangQuery.php index f4f480fa9..045ee0887 100644 --- a/core/lib/Thelia/Model/Base/LangQuery.php +++ b/core/lib/Thelia/Model/Base/LangQuery.php @@ -183,7 +183,7 @@ abstract class LangQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `TITLE`, `CODE`, `LOCALE`, `URL`, `DATE_FORMAT`, `TIME_FORMAT`, `DATETIME_FORMAT`, `DECIMAL_SEPARATOR`, `THOUSANDS_SEPARATOR`, `DECIMALS`, `BY_DEFAULT`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `lang` WHERE `ID` = :p0'; + $sql = 'SELECT ID, TITLE, CODE, LOCALE, URL, DATE_FORMAT, TIME_FORMAT, DATETIME_FORMAT, DECIMAL_SEPARATOR, THOUSANDS_SEPARATOR, DECIMALS, BY_DEFAULT, POSITION, CREATED_AT, UPDATED_AT FROM lang WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Message.php b/core/lib/Thelia/Model/Base/Message.php index ef8b825c3..351aa3818 100644 --- a/core/lib/Thelia/Model/Base/Message.php +++ b/core/lib/Thelia/Model/Base/Message.php @@ -1233,44 +1233,44 @@ abstract class Message implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(MessageTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(MessageTableMap::NAME)) { - $modifiedColumns[':p' . $index++] = '`NAME`'; + $modifiedColumns[':p' . $index++] = 'NAME'; } if ($this->isColumnModified(MessageTableMap::SECURED)) { - $modifiedColumns[':p' . $index++] = '`SECURED`'; + $modifiedColumns[':p' . $index++] = 'SECURED'; } if ($this->isColumnModified(MessageTableMap::TEXT_LAYOUT_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`TEXT_LAYOUT_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'TEXT_LAYOUT_FILE_NAME'; } if ($this->isColumnModified(MessageTableMap::TEXT_TEMPLATE_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`TEXT_TEMPLATE_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'TEXT_TEMPLATE_FILE_NAME'; } if ($this->isColumnModified(MessageTableMap::HTML_LAYOUT_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`HTML_LAYOUT_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'HTML_LAYOUT_FILE_NAME'; } if ($this->isColumnModified(MessageTableMap::HTML_TEMPLATE_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`HTML_TEMPLATE_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'HTML_TEMPLATE_FILE_NAME'; } if ($this->isColumnModified(MessageTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(MessageTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(MessageTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(MessageTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(MessageTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `message` (%s) VALUES (%s)', + 'INSERT INTO message (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1279,40 +1279,40 @@ abstract class Message implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`NAME`': + case 'NAME': $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); break; - case '`SECURED`': + case 'SECURED': $stmt->bindValue($identifier, $this->secured, PDO::PARAM_INT); break; - case '`TEXT_LAYOUT_FILE_NAME`': + case 'TEXT_LAYOUT_FILE_NAME': $stmt->bindValue($identifier, $this->text_layout_file_name, PDO::PARAM_STR); break; - case '`TEXT_TEMPLATE_FILE_NAME`': + case 'TEXT_TEMPLATE_FILE_NAME': $stmt->bindValue($identifier, $this->text_template_file_name, PDO::PARAM_STR); break; - case '`HTML_LAYOUT_FILE_NAME`': + case 'HTML_LAYOUT_FILE_NAME': $stmt->bindValue($identifier, $this->html_layout_file_name, PDO::PARAM_STR); break; - case '`HTML_TEMPLATE_FILE_NAME`': + case 'HTML_TEMPLATE_FILE_NAME': $stmt->bindValue($identifier, $this->html_template_file_name, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/MessageI18n.php b/core/lib/Thelia/Model/Base/MessageI18n.php index 615169d63..42923cb69 100644 --- a/core/lib/Thelia/Model/Base/MessageI18n.php +++ b/core/lib/Thelia/Model/Base/MessageI18n.php @@ -858,26 +858,26 @@ abstract class MessageI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(MessageI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(MessageI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(MessageI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(MessageI18nTableMap::SUBJECT)) { - $modifiedColumns[':p' . $index++] = '`SUBJECT`'; + $modifiedColumns[':p' . $index++] = 'SUBJECT'; } if ($this->isColumnModified(MessageI18nTableMap::TEXT_MESSAGE)) { - $modifiedColumns[':p' . $index++] = '`TEXT_MESSAGE`'; + $modifiedColumns[':p' . $index++] = 'TEXT_MESSAGE'; } if ($this->isColumnModified(MessageI18nTableMap::HTML_MESSAGE)) { - $modifiedColumns[':p' . $index++] = '`HTML_MESSAGE`'; + $modifiedColumns[':p' . $index++] = 'HTML_MESSAGE'; } $sql = sprintf( - 'INSERT INTO `message_i18n` (%s) VALUES (%s)', + 'INSERT INTO message_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class MessageI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`SUBJECT`': + case 'SUBJECT': $stmt->bindValue($identifier, $this->subject, PDO::PARAM_STR); break; - case '`TEXT_MESSAGE`': + case 'TEXT_MESSAGE': $stmt->bindValue($identifier, $this->text_message, PDO::PARAM_STR); break; - case '`HTML_MESSAGE`': + case 'HTML_MESSAGE': $stmt->bindValue($identifier, $this->html_message, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/MessageI18nQuery.php b/core/lib/Thelia/Model/Base/MessageI18nQuery.php index 6ef0a1c10..f63ca675a 100644 --- a/core/lib/Thelia/Model/Base/MessageI18nQuery.php +++ b/core/lib/Thelia/Model/Base/MessageI18nQuery.php @@ -147,7 +147,7 @@ abstract class MessageI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `SUBJECT`, `TEXT_MESSAGE`, `HTML_MESSAGE` FROM `message_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, SUBJECT, TEXT_MESSAGE, HTML_MESSAGE FROM message_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/MessageQuery.php b/core/lib/Thelia/Model/Base/MessageQuery.php index 1492b0834..3f412191f 100644 --- a/core/lib/Thelia/Model/Base/MessageQuery.php +++ b/core/lib/Thelia/Model/Base/MessageQuery.php @@ -183,7 +183,7 @@ abstract class MessageQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `NAME`, `SECURED`, `TEXT_LAYOUT_FILE_NAME`, `TEXT_TEMPLATE_FILE_NAME`, `HTML_LAYOUT_FILE_NAME`, `HTML_TEMPLATE_FILE_NAME`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `message` WHERE `ID` = :p0'; + $sql = 'SELECT ID, NAME, SECURED, TEXT_LAYOUT_FILE_NAME, TEXT_TEMPLATE_FILE_NAME, HTML_LAYOUT_FILE_NAME, HTML_TEMPLATE_FILE_NAME, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM message WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/MessageVersion.php b/core/lib/Thelia/Model/Base/MessageVersion.php index 0db39b3ec..6fe06658c 100644 --- a/core/lib/Thelia/Model/Base/MessageVersion.php +++ b/core/lib/Thelia/Model/Base/MessageVersion.php @@ -1142,44 +1142,44 @@ abstract class MessageVersion implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(MessageVersionTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(MessageVersionTableMap::NAME)) { - $modifiedColumns[':p' . $index++] = '`NAME`'; + $modifiedColumns[':p' . $index++] = 'NAME'; } if ($this->isColumnModified(MessageVersionTableMap::SECURED)) { - $modifiedColumns[':p' . $index++] = '`SECURED`'; + $modifiedColumns[':p' . $index++] = 'SECURED'; } if ($this->isColumnModified(MessageVersionTableMap::TEXT_LAYOUT_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`TEXT_LAYOUT_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'TEXT_LAYOUT_FILE_NAME'; } if ($this->isColumnModified(MessageVersionTableMap::TEXT_TEMPLATE_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`TEXT_TEMPLATE_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'TEXT_TEMPLATE_FILE_NAME'; } if ($this->isColumnModified(MessageVersionTableMap::HTML_LAYOUT_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`HTML_LAYOUT_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'HTML_LAYOUT_FILE_NAME'; } if ($this->isColumnModified(MessageVersionTableMap::HTML_TEMPLATE_FILE_NAME)) { - $modifiedColumns[':p' . $index++] = '`HTML_TEMPLATE_FILE_NAME`'; + $modifiedColumns[':p' . $index++] = 'HTML_TEMPLATE_FILE_NAME'; } if ($this->isColumnModified(MessageVersionTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(MessageVersionTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(MessageVersionTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(MessageVersionTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(MessageVersionTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `message_version` (%s) VALUES (%s)', + 'INSERT INTO message_version (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1188,40 +1188,40 @@ abstract class MessageVersion implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`NAME`': + case 'NAME': $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); break; - case '`SECURED`': + case 'SECURED': $stmt->bindValue($identifier, $this->secured, PDO::PARAM_INT); break; - case '`TEXT_LAYOUT_FILE_NAME`': + case 'TEXT_LAYOUT_FILE_NAME': $stmt->bindValue($identifier, $this->text_layout_file_name, PDO::PARAM_STR); break; - case '`TEXT_TEMPLATE_FILE_NAME`': + case 'TEXT_TEMPLATE_FILE_NAME': $stmt->bindValue($identifier, $this->text_template_file_name, PDO::PARAM_STR); break; - case '`HTML_LAYOUT_FILE_NAME`': + case 'HTML_LAYOUT_FILE_NAME': $stmt->bindValue($identifier, $this->html_layout_file_name, PDO::PARAM_STR); break; - case '`HTML_TEMPLATE_FILE_NAME`': + case 'HTML_TEMPLATE_FILE_NAME': $stmt->bindValue($identifier, $this->html_template_file_name, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/MessageVersionQuery.php b/core/lib/Thelia/Model/Base/MessageVersionQuery.php index 5a2a15a03..638ed5e5c 100644 --- a/core/lib/Thelia/Model/Base/MessageVersionQuery.php +++ b/core/lib/Thelia/Model/Base/MessageVersionQuery.php @@ -171,7 +171,7 @@ abstract class MessageVersionQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `NAME`, `SECURED`, `TEXT_LAYOUT_FILE_NAME`, `TEXT_TEMPLATE_FILE_NAME`, `HTML_LAYOUT_FILE_NAME`, `HTML_TEMPLATE_FILE_NAME`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `message_version` WHERE `ID` = :p0 AND `VERSION` = :p1'; + $sql = 'SELECT ID, NAME, SECURED, TEXT_LAYOUT_FILE_NAME, TEXT_TEMPLATE_FILE_NAME, HTML_LAYOUT_FILE_NAME, HTML_TEMPLATE_FILE_NAME, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM message_version WHERE ID = :p0 AND VERSION = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Module.php b/core/lib/Thelia/Model/Base/Module.php index 418417a1a..3331bd57c 100644 --- a/core/lib/Thelia/Model/Base/Module.php +++ b/core/lib/Thelia/Model/Base/Module.php @@ -1148,32 +1148,32 @@ abstract class Module implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ModuleTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ModuleTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(ModuleTableMap::TYPE)) { - $modifiedColumns[':p' . $index++] = '`TYPE`'; + $modifiedColumns[':p' . $index++] = 'TYPE'; } if ($this->isColumnModified(ModuleTableMap::ACTIVATE)) { - $modifiedColumns[':p' . $index++] = '`ACTIVATE`'; + $modifiedColumns[':p' . $index++] = 'ACTIVATE'; } if ($this->isColumnModified(ModuleTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ModuleTableMap::FULL_NAMESPACE)) { - $modifiedColumns[':p' . $index++] = '`FULL_NAMESPACE`'; + $modifiedColumns[':p' . $index++] = 'FULL_NAMESPACE'; } if ($this->isColumnModified(ModuleTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ModuleTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `module` (%s) VALUES (%s)', + 'INSERT INTO module (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1182,28 +1182,28 @@ abstract class Module implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`TYPE`': + case 'TYPE': $stmt->bindValue($identifier, $this->type, PDO::PARAM_INT); break; - case '`ACTIVATE`': + case 'ACTIVATE': $stmt->bindValue($identifier, $this->activate, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`FULL_NAMESPACE`': + case 'FULL_NAMESPACE': $stmt->bindValue($identifier, $this->full_namespace, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ModuleI18n.php b/core/lib/Thelia/Model/Base/ModuleI18n.php index 7c52f409f..359fb530e 100644 --- a/core/lib/Thelia/Model/Base/ModuleI18n.php +++ b/core/lib/Thelia/Model/Base/ModuleI18n.php @@ -858,26 +858,26 @@ abstract class ModuleI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ModuleI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ModuleI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ModuleI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ModuleI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ModuleI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ModuleI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `module_i18n` (%s) VALUES (%s)', + 'INSERT INTO module_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ModuleI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ModuleI18nQuery.php b/core/lib/Thelia/Model/Base/ModuleI18nQuery.php index 9bf96ccd5..d3d4694fb 100644 --- a/core/lib/Thelia/Model/Base/ModuleI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ModuleI18nQuery.php @@ -147,7 +147,7 @@ abstract class ModuleI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `module_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM module_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ModuleImage.php b/core/lib/Thelia/Model/Base/ModuleImage.php index f03e149a2..4185d26c9 100644 --- a/core/lib/Thelia/Model/Base/ModuleImage.php +++ b/core/lib/Thelia/Model/Base/ModuleImage.php @@ -930,26 +930,26 @@ abstract class ModuleImage implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ModuleImageTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ModuleImageTableMap::MODULE_ID)) { - $modifiedColumns[':p' . $index++] = '`MODULE_ID`'; + $modifiedColumns[':p' . $index++] = 'MODULE_ID'; } if ($this->isColumnModified(ModuleImageTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(ModuleImageTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ModuleImageTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ModuleImageTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `module_image` (%s) VALUES (%s)', + 'INSERT INTO module_image (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class ModuleImage implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`MODULE_ID`': + case 'MODULE_ID': $stmt->bindValue($identifier, $this->module_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ModuleImageI18n.php b/core/lib/Thelia/Model/Base/ModuleImageI18n.php index d83d11229..92a19a601 100644 --- a/core/lib/Thelia/Model/Base/ModuleImageI18n.php +++ b/core/lib/Thelia/Model/Base/ModuleImageI18n.php @@ -858,26 +858,26 @@ abstract class ModuleImageI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ModuleImageI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ModuleImageI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ModuleImageI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ModuleImageI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ModuleImageI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ModuleImageI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `module_image_i18n` (%s) VALUES (%s)', + 'INSERT INTO module_image_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ModuleImageI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ModuleImageI18nQuery.php b/core/lib/Thelia/Model/Base/ModuleImageI18nQuery.php index 50e7e61dd..e5b6813d6 100644 --- a/core/lib/Thelia/Model/Base/ModuleImageI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ModuleImageI18nQuery.php @@ -147,7 +147,7 @@ abstract class ModuleImageI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `module_image_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM module_image_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ModuleImageQuery.php b/core/lib/Thelia/Model/Base/ModuleImageQuery.php index e5813c649..966e686ad 100644 --- a/core/lib/Thelia/Model/Base/ModuleImageQuery.php +++ b/core/lib/Thelia/Model/Base/ModuleImageQuery.php @@ -152,7 +152,7 @@ abstract class ModuleImageQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `MODULE_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `module_image` WHERE `ID` = :p0'; + $sql = 'SELECT ID, MODULE_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM module_image WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ModuleQuery.php b/core/lib/Thelia/Model/Base/ModuleQuery.php index 006bfbe7a..84ae33f68 100644 --- a/core/lib/Thelia/Model/Base/ModuleQuery.php +++ b/core/lib/Thelia/Model/Base/ModuleQuery.php @@ -176,7 +176,7 @@ abstract class ModuleQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CODE`, `TYPE`, `ACTIVATE`, `POSITION`, `FULL_NAMESPACE`, `CREATED_AT`, `UPDATED_AT` FROM `module` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CODE, TYPE, ACTIVATE, POSITION, FULL_NAMESPACE, CREATED_AT, UPDATED_AT FROM module WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Newsletter.php b/core/lib/Thelia/Model/Base/Newsletter.php index e9cd4077c..5282045d3 100644 --- a/core/lib/Thelia/Model/Base/Newsletter.php +++ b/core/lib/Thelia/Model/Base/Newsletter.php @@ -896,29 +896,29 @@ abstract class Newsletter implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(NewsletterTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(NewsletterTableMap::EMAIL)) { - $modifiedColumns[':p' . $index++] = '`EMAIL`'; + $modifiedColumns[':p' . $index++] = 'EMAIL'; } if ($this->isColumnModified(NewsletterTableMap::FIRSTNAME)) { - $modifiedColumns[':p' . $index++] = '`FIRSTNAME`'; + $modifiedColumns[':p' . $index++] = 'FIRSTNAME'; } if ($this->isColumnModified(NewsletterTableMap::LASTNAME)) { - $modifiedColumns[':p' . $index++] = '`LASTNAME`'; + $modifiedColumns[':p' . $index++] = 'LASTNAME'; } if ($this->isColumnModified(NewsletterTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(NewsletterTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(NewsletterTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `newsletter` (%s) VALUES (%s)', + 'INSERT INTO newsletter (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -927,25 +927,25 @@ abstract class Newsletter implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`EMAIL`': + case 'EMAIL': $stmt->bindValue($identifier, $this->email, PDO::PARAM_STR); break; - case '`FIRSTNAME`': + case 'FIRSTNAME': $stmt->bindValue($identifier, $this->firstname, PDO::PARAM_STR); break; - case '`LASTNAME`': + case 'LASTNAME': $stmt->bindValue($identifier, $this->lastname, PDO::PARAM_STR); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/NewsletterQuery.php b/core/lib/Thelia/Model/Base/NewsletterQuery.php index 7968412cf..ef9ac0a22 100644 --- a/core/lib/Thelia/Model/Base/NewsletterQuery.php +++ b/core/lib/Thelia/Model/Base/NewsletterQuery.php @@ -144,7 +144,7 @@ abstract class NewsletterQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `EMAIL`, `FIRSTNAME`, `LASTNAME`, `LOCALE`, `CREATED_AT`, `UPDATED_AT` FROM `newsletter` WHERE `ID` = :p0'; + $sql = 'SELECT ID, EMAIL, FIRSTNAME, LASTNAME, LOCALE, CREATED_AT, UPDATED_AT FROM newsletter WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Order.php b/core/lib/Thelia/Model/Base/Order.php index c0f5111ca..ebd3c0de2 100644 --- a/core/lib/Thelia/Model/Base/Order.php +++ b/core/lib/Thelia/Model/Base/Order.php @@ -1644,65 +1644,65 @@ abstract class Order implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderTableMap::REF)) { - $modifiedColumns[':p' . $index++] = '`REF`'; + $modifiedColumns[':p' . $index++] = 'REF'; } if ($this->isColumnModified(OrderTableMap::CUSTOMER_ID)) { - $modifiedColumns[':p' . $index++] = '`CUSTOMER_ID`'; + $modifiedColumns[':p' . $index++] = 'CUSTOMER_ID'; } if ($this->isColumnModified(OrderTableMap::INVOICE_ORDER_ADDRESS_ID)) { - $modifiedColumns[':p' . $index++] = '`INVOICE_ORDER_ADDRESS_ID`'; + $modifiedColumns[':p' . $index++] = 'INVOICE_ORDER_ADDRESS_ID'; } if ($this->isColumnModified(OrderTableMap::DELIVERY_ORDER_ADDRESS_ID)) { - $modifiedColumns[':p' . $index++] = '`DELIVERY_ORDER_ADDRESS_ID`'; + $modifiedColumns[':p' . $index++] = 'DELIVERY_ORDER_ADDRESS_ID'; } if ($this->isColumnModified(OrderTableMap::INVOICE_DATE)) { - $modifiedColumns[':p' . $index++] = '`INVOICE_DATE`'; + $modifiedColumns[':p' . $index++] = 'INVOICE_DATE'; } if ($this->isColumnModified(OrderTableMap::CURRENCY_ID)) { - $modifiedColumns[':p' . $index++] = '`CURRENCY_ID`'; + $modifiedColumns[':p' . $index++] = 'CURRENCY_ID'; } if ($this->isColumnModified(OrderTableMap::CURRENCY_RATE)) { - $modifiedColumns[':p' . $index++] = '`CURRENCY_RATE`'; + $modifiedColumns[':p' . $index++] = 'CURRENCY_RATE'; } if ($this->isColumnModified(OrderTableMap::TRANSACTION_REF)) { - $modifiedColumns[':p' . $index++] = '`TRANSACTION_REF`'; + $modifiedColumns[':p' . $index++] = 'TRANSACTION_REF'; } if ($this->isColumnModified(OrderTableMap::DELIVERY_REF)) { - $modifiedColumns[':p' . $index++] = '`DELIVERY_REF`'; + $modifiedColumns[':p' . $index++] = 'DELIVERY_REF'; } if ($this->isColumnModified(OrderTableMap::INVOICE_REF)) { - $modifiedColumns[':p' . $index++] = '`INVOICE_REF`'; + $modifiedColumns[':p' . $index++] = 'INVOICE_REF'; } if ($this->isColumnModified(OrderTableMap::DISCOUNT)) { - $modifiedColumns[':p' . $index++] = '`DISCOUNT`'; + $modifiedColumns[':p' . $index++] = 'DISCOUNT'; } if ($this->isColumnModified(OrderTableMap::POSTAGE)) { - $modifiedColumns[':p' . $index++] = '`POSTAGE`'; + $modifiedColumns[':p' . $index++] = 'POSTAGE'; } if ($this->isColumnModified(OrderTableMap::PAYMENT_MODULE_ID)) { - $modifiedColumns[':p' . $index++] = '`PAYMENT_MODULE_ID`'; + $modifiedColumns[':p' . $index++] = 'PAYMENT_MODULE_ID'; } if ($this->isColumnModified(OrderTableMap::DELIVERY_MODULE_ID)) { - $modifiedColumns[':p' . $index++] = '`DELIVERY_MODULE_ID`'; + $modifiedColumns[':p' . $index++] = 'DELIVERY_MODULE_ID'; } if ($this->isColumnModified(OrderTableMap::STATUS_ID)) { - $modifiedColumns[':p' . $index++] = '`STATUS_ID`'; + $modifiedColumns[':p' . $index++] = 'STATUS_ID'; } if ($this->isColumnModified(OrderTableMap::LANG_ID)) { - $modifiedColumns[':p' . $index++] = '`LANG_ID`'; + $modifiedColumns[':p' . $index++] = 'LANG_ID'; } if ($this->isColumnModified(OrderTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(OrderTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `order` (%s) VALUES (%s)', + 'INSERT INTO order (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1711,61 +1711,61 @@ abstract class Order implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`REF`': + case 'REF': $stmt->bindValue($identifier, $this->ref, PDO::PARAM_STR); break; - case '`CUSTOMER_ID`': + case 'CUSTOMER_ID': $stmt->bindValue($identifier, $this->customer_id, PDO::PARAM_INT); break; - case '`INVOICE_ORDER_ADDRESS_ID`': + case 'INVOICE_ORDER_ADDRESS_ID': $stmt->bindValue($identifier, $this->invoice_order_address_id, PDO::PARAM_INT); break; - case '`DELIVERY_ORDER_ADDRESS_ID`': + case 'DELIVERY_ORDER_ADDRESS_ID': $stmt->bindValue($identifier, $this->delivery_order_address_id, PDO::PARAM_INT); break; - case '`INVOICE_DATE`': + case 'INVOICE_DATE': $stmt->bindValue($identifier, $this->invoice_date ? $this->invoice_date->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`CURRENCY_ID`': + case 'CURRENCY_ID': $stmt->bindValue($identifier, $this->currency_id, PDO::PARAM_INT); break; - case '`CURRENCY_RATE`': + case 'CURRENCY_RATE': $stmt->bindValue($identifier, $this->currency_rate, PDO::PARAM_STR); break; - case '`TRANSACTION_REF`': + case 'TRANSACTION_REF': $stmt->bindValue($identifier, $this->transaction_ref, PDO::PARAM_STR); break; - case '`DELIVERY_REF`': + case 'DELIVERY_REF': $stmt->bindValue($identifier, $this->delivery_ref, PDO::PARAM_STR); break; - case '`INVOICE_REF`': + case 'INVOICE_REF': $stmt->bindValue($identifier, $this->invoice_ref, PDO::PARAM_STR); break; - case '`DISCOUNT`': + case 'DISCOUNT': $stmt->bindValue($identifier, $this->discount, PDO::PARAM_STR); break; - case '`POSTAGE`': + case 'POSTAGE': $stmt->bindValue($identifier, $this->postage, PDO::PARAM_STR); break; - case '`PAYMENT_MODULE_ID`': + case 'PAYMENT_MODULE_ID': $stmt->bindValue($identifier, $this->payment_module_id, PDO::PARAM_INT); break; - case '`DELIVERY_MODULE_ID`': + case 'DELIVERY_MODULE_ID': $stmt->bindValue($identifier, $this->delivery_module_id, PDO::PARAM_INT); break; - case '`STATUS_ID`': + case 'STATUS_ID': $stmt->bindValue($identifier, $this->status_id, PDO::PARAM_INT); break; - case '`LANG_ID`': + case 'LANG_ID': $stmt->bindValue($identifier, $this->lang_id, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderAddress.php b/core/lib/Thelia/Model/Base/OrderAddress.php index b04e302f7..d52fd9de3 100644 --- a/core/lib/Thelia/Model/Base/OrderAddress.php +++ b/core/lib/Thelia/Model/Base/OrderAddress.php @@ -1248,50 +1248,50 @@ abstract class OrderAddress implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderAddressTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderAddressTableMap::CUSTOMER_TITLE_ID)) { - $modifiedColumns[':p' . $index++] = '`CUSTOMER_TITLE_ID`'; + $modifiedColumns[':p' . $index++] = 'CUSTOMER_TITLE_ID'; } if ($this->isColumnModified(OrderAddressTableMap::COMPANY)) { - $modifiedColumns[':p' . $index++] = '`COMPANY`'; + $modifiedColumns[':p' . $index++] = 'COMPANY'; } if ($this->isColumnModified(OrderAddressTableMap::FIRSTNAME)) { - $modifiedColumns[':p' . $index++] = '`FIRSTNAME`'; + $modifiedColumns[':p' . $index++] = 'FIRSTNAME'; } if ($this->isColumnModified(OrderAddressTableMap::LASTNAME)) { - $modifiedColumns[':p' . $index++] = '`LASTNAME`'; + $modifiedColumns[':p' . $index++] = 'LASTNAME'; } if ($this->isColumnModified(OrderAddressTableMap::ADDRESS1)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS1`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS1'; } if ($this->isColumnModified(OrderAddressTableMap::ADDRESS2)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS2`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS2'; } if ($this->isColumnModified(OrderAddressTableMap::ADDRESS3)) { - $modifiedColumns[':p' . $index++] = '`ADDRESS3`'; + $modifiedColumns[':p' . $index++] = 'ADDRESS3'; } if ($this->isColumnModified(OrderAddressTableMap::ZIPCODE)) { - $modifiedColumns[':p' . $index++] = '`ZIPCODE`'; + $modifiedColumns[':p' . $index++] = 'ZIPCODE'; } if ($this->isColumnModified(OrderAddressTableMap::CITY)) { - $modifiedColumns[':p' . $index++] = '`CITY`'; + $modifiedColumns[':p' . $index++] = 'CITY'; } if ($this->isColumnModified(OrderAddressTableMap::PHONE)) { - $modifiedColumns[':p' . $index++] = '`PHONE`'; + $modifiedColumns[':p' . $index++] = 'PHONE'; } if ($this->isColumnModified(OrderAddressTableMap::COUNTRY_ID)) { - $modifiedColumns[':p' . $index++] = '`COUNTRY_ID`'; + $modifiedColumns[':p' . $index++] = 'COUNTRY_ID'; } if ($this->isColumnModified(OrderAddressTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(OrderAddressTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `order_address` (%s) VALUES (%s)', + 'INSERT INTO order_address (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1300,46 +1300,46 @@ abstract class OrderAddress implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CUSTOMER_TITLE_ID`': + case 'CUSTOMER_TITLE_ID': $stmt->bindValue($identifier, $this->customer_title_id, PDO::PARAM_INT); break; - case '`COMPANY`': + case 'COMPANY': $stmt->bindValue($identifier, $this->company, PDO::PARAM_STR); break; - case '`FIRSTNAME`': + case 'FIRSTNAME': $stmt->bindValue($identifier, $this->firstname, PDO::PARAM_STR); break; - case '`LASTNAME`': + case 'LASTNAME': $stmt->bindValue($identifier, $this->lastname, PDO::PARAM_STR); break; - case '`ADDRESS1`': + case 'ADDRESS1': $stmt->bindValue($identifier, $this->address1, PDO::PARAM_STR); break; - case '`ADDRESS2`': + case 'ADDRESS2': $stmt->bindValue($identifier, $this->address2, PDO::PARAM_STR); break; - case '`ADDRESS3`': + case 'ADDRESS3': $stmt->bindValue($identifier, $this->address3, PDO::PARAM_STR); break; - case '`ZIPCODE`': + case 'ZIPCODE': $stmt->bindValue($identifier, $this->zipcode, PDO::PARAM_STR); break; - case '`CITY`': + case 'CITY': $stmt->bindValue($identifier, $this->city, PDO::PARAM_STR); break; - case '`PHONE`': + case 'PHONE': $stmt->bindValue($identifier, $this->phone, PDO::PARAM_STR); break; - case '`COUNTRY_ID`': + case 'COUNTRY_ID': $stmt->bindValue($identifier, $this->country_id, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderAddressQuery.php b/core/lib/Thelia/Model/Base/OrderAddressQuery.php index 575e24338..41f417872 100644 --- a/core/lib/Thelia/Model/Base/OrderAddressQuery.php +++ b/core/lib/Thelia/Model/Base/OrderAddressQuery.php @@ -183,7 +183,7 @@ abstract class OrderAddressQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CUSTOMER_TITLE_ID`, `COMPANY`, `FIRSTNAME`, `LASTNAME`, `ADDRESS1`, `ADDRESS2`, `ADDRESS3`, `ZIPCODE`, `CITY`, `PHONE`, `COUNTRY_ID`, `CREATED_AT`, `UPDATED_AT` FROM `order_address` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CUSTOMER_TITLE_ID, COMPANY, FIRSTNAME, LASTNAME, ADDRESS1, ADDRESS2, ADDRESS3, ZIPCODE, CITY, PHONE, COUNTRY_ID, CREATED_AT, UPDATED_AT FROM order_address WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/OrderCoupon.php b/core/lib/Thelia/Model/Base/OrderCoupon.php index 296b1af0a..f46404d64 100644 --- a/core/lib/Thelia/Model/Base/OrderCoupon.php +++ b/core/lib/Thelia/Model/Base/OrderCoupon.php @@ -1287,53 +1287,53 @@ abstract class OrderCoupon implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderCouponTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderCouponTableMap::ORDER_ID)) { - $modifiedColumns[':p' . $index++] = '`ORDER_ID`'; + $modifiedColumns[':p' . $index++] = 'ORDER_ID'; } if ($this->isColumnModified(OrderCouponTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(OrderCouponTableMap::TYPE)) { - $modifiedColumns[':p' . $index++] = '`TYPE`'; + $modifiedColumns[':p' . $index++] = 'TYPE'; } if ($this->isColumnModified(OrderCouponTableMap::AMOUNT)) { - $modifiedColumns[':p' . $index++] = '`AMOUNT`'; + $modifiedColumns[':p' . $index++] = 'AMOUNT'; } if ($this->isColumnModified(OrderCouponTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(OrderCouponTableMap::SHORT_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`SHORT_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'SHORT_DESCRIPTION'; } if ($this->isColumnModified(OrderCouponTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(OrderCouponTableMap::EXPIRATION_DATE)) { - $modifiedColumns[':p' . $index++] = '`EXPIRATION_DATE`'; + $modifiedColumns[':p' . $index++] = 'EXPIRATION_DATE'; } if ($this->isColumnModified(OrderCouponTableMap::IS_CUMULATIVE)) { - $modifiedColumns[':p' . $index++] = '`IS_CUMULATIVE`'; + $modifiedColumns[':p' . $index++] = 'IS_CUMULATIVE'; } if ($this->isColumnModified(OrderCouponTableMap::IS_REMOVING_POSTAGE)) { - $modifiedColumns[':p' . $index++] = '`IS_REMOVING_POSTAGE`'; + $modifiedColumns[':p' . $index++] = 'IS_REMOVING_POSTAGE'; } if ($this->isColumnModified(OrderCouponTableMap::IS_AVAILABLE_ON_SPECIAL_OFFERS)) { - $modifiedColumns[':p' . $index++] = '`IS_AVAILABLE_ON_SPECIAL_OFFERS`'; + $modifiedColumns[':p' . $index++] = 'IS_AVAILABLE_ON_SPECIAL_OFFERS'; } if ($this->isColumnModified(OrderCouponTableMap::SERIALIZED_CONDITIONS)) { - $modifiedColumns[':p' . $index++] = '`SERIALIZED_CONDITIONS`'; + $modifiedColumns[':p' . $index++] = 'SERIALIZED_CONDITIONS'; } if ($this->isColumnModified(OrderCouponTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(OrderCouponTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `order_coupon` (%s) VALUES (%s)', + 'INSERT INTO order_coupon (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1342,49 +1342,49 @@ abstract class OrderCoupon implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`ORDER_ID`': + case 'ORDER_ID': $stmt->bindValue($identifier, $this->order_id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`TYPE`': + case 'TYPE': $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); break; - case '`AMOUNT`': + case 'AMOUNT': $stmt->bindValue($identifier, $this->amount, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`SHORT_DESCRIPTION`': + case 'SHORT_DESCRIPTION': $stmt->bindValue($identifier, $this->short_description, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`EXPIRATION_DATE`': + 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 '`IS_CUMULATIVE`': + case 'IS_CUMULATIVE': $stmt->bindValue($identifier, (int) $this->is_cumulative, PDO::PARAM_INT); break; - case '`IS_REMOVING_POSTAGE`': + case 'IS_REMOVING_POSTAGE': $stmt->bindValue($identifier, (int) $this->is_removing_postage, PDO::PARAM_INT); break; - case '`IS_AVAILABLE_ON_SPECIAL_OFFERS`': + case 'IS_AVAILABLE_ON_SPECIAL_OFFERS': $stmt->bindValue($identifier, (int) $this->is_available_on_special_offers, PDO::PARAM_INT); break; - case '`SERIALIZED_CONDITIONS`': + case 'SERIALIZED_CONDITIONS': $stmt->bindValue($identifier, $this->serialized_conditions, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderCouponQuery.php b/core/lib/Thelia/Model/Base/OrderCouponQuery.php index 037a8f695..282dd5627 100644 --- a/core/lib/Thelia/Model/Base/OrderCouponQuery.php +++ b/core/lib/Thelia/Model/Base/OrderCouponQuery.php @@ -183,7 +183,7 @@ abstract class OrderCouponQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `ORDER_ID`, `CODE`, `TYPE`, `AMOUNT`, `TITLE`, `SHORT_DESCRIPTION`, `DESCRIPTION`, `EXPIRATION_DATE`, `IS_CUMULATIVE`, `IS_REMOVING_POSTAGE`, `IS_AVAILABLE_ON_SPECIAL_OFFERS`, `SERIALIZED_CONDITIONS`, `CREATED_AT`, `UPDATED_AT` FROM `order_coupon` WHERE `ID` = :p0'; + $sql = 'SELECT ID, ORDER_ID, CODE, TYPE, AMOUNT, TITLE, SHORT_DESCRIPTION, DESCRIPTION, EXPIRATION_DATE, IS_CUMULATIVE, IS_REMOVING_POSTAGE, IS_AVAILABLE_ON_SPECIAL_OFFERS, SERIALIZED_CONDITIONS, CREATED_AT, UPDATED_AT FROM order_coupon WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/OrderProduct.php b/core/lib/Thelia/Model/Base/OrderProduct.php index 1c7309b77..0cf8c80b6 100644 --- a/core/lib/Thelia/Model/Base/OrderProduct.php +++ b/core/lib/Thelia/Model/Base/OrderProduct.php @@ -1523,68 +1523,68 @@ abstract class OrderProduct implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderProductTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderProductTableMap::ORDER_ID)) { - $modifiedColumns[':p' . $index++] = '`ORDER_ID`'; + $modifiedColumns[':p' . $index++] = 'ORDER_ID'; } if ($this->isColumnModified(OrderProductTableMap::PRODUCT_REF)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_REF`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_REF'; } if ($this->isColumnModified(OrderProductTableMap::PRODUCT_SALE_ELEMENTS_REF)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_SALE_ELEMENTS_REF`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_SALE_ELEMENTS_REF'; } if ($this->isColumnModified(OrderProductTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(OrderProductTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(OrderProductTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(OrderProductTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } if ($this->isColumnModified(OrderProductTableMap::QUANTITY)) { - $modifiedColumns[':p' . $index++] = '`QUANTITY`'; + $modifiedColumns[':p' . $index++] = 'QUANTITY'; } if ($this->isColumnModified(OrderProductTableMap::PRICE)) { - $modifiedColumns[':p' . $index++] = '`PRICE`'; + $modifiedColumns[':p' . $index++] = 'PRICE'; } if ($this->isColumnModified(OrderProductTableMap::PROMO_PRICE)) { - $modifiedColumns[':p' . $index++] = '`PROMO_PRICE`'; + $modifiedColumns[':p' . $index++] = 'PROMO_PRICE'; } if ($this->isColumnModified(OrderProductTableMap::WAS_NEW)) { - $modifiedColumns[':p' . $index++] = '`WAS_NEW`'; + $modifiedColumns[':p' . $index++] = 'WAS_NEW'; } if ($this->isColumnModified(OrderProductTableMap::WAS_IN_PROMO)) { - $modifiedColumns[':p' . $index++] = '`WAS_IN_PROMO`'; + $modifiedColumns[':p' . $index++] = 'WAS_IN_PROMO'; } if ($this->isColumnModified(OrderProductTableMap::WEIGHT)) { - $modifiedColumns[':p' . $index++] = '`WEIGHT`'; + $modifiedColumns[':p' . $index++] = 'WEIGHT'; } if ($this->isColumnModified(OrderProductTableMap::EAN_CODE)) { - $modifiedColumns[':p' . $index++] = '`EAN_CODE`'; + $modifiedColumns[':p' . $index++] = 'EAN_CODE'; } if ($this->isColumnModified(OrderProductTableMap::TAX_RULE_TITLE)) { - $modifiedColumns[':p' . $index++] = '`TAX_RULE_TITLE`'; + $modifiedColumns[':p' . $index++] = 'TAX_RULE_TITLE'; } if ($this->isColumnModified(OrderProductTableMap::TAX_RULE_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`TAX_RULE_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'TAX_RULE_DESCRIPTION'; } if ($this->isColumnModified(OrderProductTableMap::PARENT)) { - $modifiedColumns[':p' . $index++] = '`PARENT`'; + $modifiedColumns[':p' . $index++] = 'PARENT'; } if ($this->isColumnModified(OrderProductTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(OrderProductTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `order_product` (%s) VALUES (%s)', + 'INSERT INTO order_product (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1593,64 +1593,64 @@ abstract class OrderProduct implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`ORDER_ID`': + case 'ORDER_ID': $stmt->bindValue($identifier, $this->order_id, PDO::PARAM_INT); break; - case '`PRODUCT_REF`': + case 'PRODUCT_REF': $stmt->bindValue($identifier, $this->product_ref, PDO::PARAM_STR); break; - case '`PRODUCT_SALE_ELEMENTS_REF`': + case 'PRODUCT_SALE_ELEMENTS_REF': $stmt->bindValue($identifier, $this->product_sale_elements_ref, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; - case '`QUANTITY`': + case 'QUANTITY': $stmt->bindValue($identifier, $this->quantity, PDO::PARAM_STR); break; - case '`PRICE`': + case 'PRICE': $stmt->bindValue($identifier, $this->price, PDO::PARAM_STR); break; - case '`PROMO_PRICE`': + case 'PROMO_PRICE': $stmt->bindValue($identifier, $this->promo_price, PDO::PARAM_STR); break; - case '`WAS_NEW`': + case 'WAS_NEW': $stmt->bindValue($identifier, $this->was_new, PDO::PARAM_INT); break; - case '`WAS_IN_PROMO`': + case 'WAS_IN_PROMO': $stmt->bindValue($identifier, $this->was_in_promo, PDO::PARAM_INT); break; - case '`WEIGHT`': + case 'WEIGHT': $stmt->bindValue($identifier, $this->weight, PDO::PARAM_STR); break; - case '`EAN_CODE`': + case 'EAN_CODE': $stmt->bindValue($identifier, $this->ean_code, PDO::PARAM_STR); break; - case '`TAX_RULE_TITLE`': + case 'TAX_RULE_TITLE': $stmt->bindValue($identifier, $this->tax_rule_title, PDO::PARAM_STR); break; - case '`TAX_RULE_DESCRIPTION`': + case 'TAX_RULE_DESCRIPTION': $stmt->bindValue($identifier, $this->tax_rule_description, PDO::PARAM_STR); break; - case '`PARENT`': + case 'PARENT': $stmt->bindValue($identifier, $this->parent, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderProductAttributeCombination.php b/core/lib/Thelia/Model/Base/OrderProductAttributeCombination.php index 79409f735..bcdcada7a 100644 --- a/core/lib/Thelia/Model/Base/OrderProductAttributeCombination.php +++ b/core/lib/Thelia/Model/Base/OrderProductAttributeCombination.php @@ -1128,44 +1128,44 @@ abstract class OrderProductAttributeCombination implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ORDER_PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`ORDER_PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'ORDER_PRODUCT_ID'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_TITLE)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_TITLE`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_TITLE'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_CHAPO)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_CHAPO`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_CHAPO'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_DESCRIPTION'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_POSTSCRIPTUM'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_AV_TITLE)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_AV_TITLE`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_AV_TITLE'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_AV_CHAPO)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_AV_CHAPO`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_AV_CHAPO'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_AV_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_AV_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_AV_DESCRIPTION'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::ATTRIBUTE_AV_POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`ATTRIBUTE_AV_POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'ATTRIBUTE_AV_POSTSCRIPTUM'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(OrderProductAttributeCombinationTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `order_product_attribute_combination` (%s) VALUES (%s)', + 'INSERT INTO order_product_attribute_combination (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1174,40 +1174,40 @@ abstract class OrderProductAttributeCombination implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`ORDER_PRODUCT_ID`': + case 'ORDER_PRODUCT_ID': $stmt->bindValue($identifier, $this->order_product_id, PDO::PARAM_INT); break; - case '`ATTRIBUTE_TITLE`': + case 'ATTRIBUTE_TITLE': $stmt->bindValue($identifier, $this->attribute_title, PDO::PARAM_STR); break; - case '`ATTRIBUTE_CHAPO`': + case 'ATTRIBUTE_CHAPO': $stmt->bindValue($identifier, $this->attribute_chapo, PDO::PARAM_STR); break; - case '`ATTRIBUTE_DESCRIPTION`': + case 'ATTRIBUTE_DESCRIPTION': $stmt->bindValue($identifier, $this->attribute_description, PDO::PARAM_STR); break; - case '`ATTRIBUTE_POSTSCRIPTUM`': + case 'ATTRIBUTE_POSTSCRIPTUM': $stmt->bindValue($identifier, $this->attribute_postscriptum, PDO::PARAM_STR); break; - case '`ATTRIBUTE_AV_TITLE`': + case 'ATTRIBUTE_AV_TITLE': $stmt->bindValue($identifier, $this->attribute_av_title, PDO::PARAM_STR); break; - case '`ATTRIBUTE_AV_CHAPO`': + case 'ATTRIBUTE_AV_CHAPO': $stmt->bindValue($identifier, $this->attribute_av_chapo, PDO::PARAM_STR); break; - case '`ATTRIBUTE_AV_DESCRIPTION`': + case 'ATTRIBUTE_AV_DESCRIPTION': $stmt->bindValue($identifier, $this->attribute_av_description, PDO::PARAM_STR); break; - case '`ATTRIBUTE_AV_POSTSCRIPTUM`': + case 'ATTRIBUTE_AV_POSTSCRIPTUM': $stmt->bindValue($identifier, $this->attribute_av_postscriptum, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderProductAttributeCombinationQuery.php b/core/lib/Thelia/Model/Base/OrderProductAttributeCombinationQuery.php index cddfb5bbc..886b75c5f 100644 --- a/core/lib/Thelia/Model/Base/OrderProductAttributeCombinationQuery.php +++ b/core/lib/Thelia/Model/Base/OrderProductAttributeCombinationQuery.php @@ -171,7 +171,7 @@ abstract class OrderProductAttributeCombinationQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `ORDER_PRODUCT_ID`, `ATTRIBUTE_TITLE`, `ATTRIBUTE_CHAPO`, `ATTRIBUTE_DESCRIPTION`, `ATTRIBUTE_POSTSCRIPTUM`, `ATTRIBUTE_AV_TITLE`, `ATTRIBUTE_AV_CHAPO`, `ATTRIBUTE_AV_DESCRIPTION`, `ATTRIBUTE_AV_POSTSCRIPTUM`, `CREATED_AT`, `UPDATED_AT` FROM `order_product_attribute_combination` WHERE `ID` = :p0'; + $sql = 'SELECT ID, ORDER_PRODUCT_ID, ATTRIBUTE_TITLE, ATTRIBUTE_CHAPO, ATTRIBUTE_DESCRIPTION, ATTRIBUTE_POSTSCRIPTUM, ATTRIBUTE_AV_TITLE, ATTRIBUTE_AV_CHAPO, ATTRIBUTE_AV_DESCRIPTION, ATTRIBUTE_AV_POSTSCRIPTUM, CREATED_AT, UPDATED_AT FROM order_product_attribute_combination WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/OrderProductQuery.php b/core/lib/Thelia/Model/Base/OrderProductQuery.php index 4ab5d4721..4bf32e83d 100644 --- a/core/lib/Thelia/Model/Base/OrderProductQuery.php +++ b/core/lib/Thelia/Model/Base/OrderProductQuery.php @@ -211,7 +211,7 @@ abstract class OrderProductQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `ORDER_ID`, `PRODUCT_REF`, `PRODUCT_SALE_ELEMENTS_REF`, `TITLE`, `CHAPO`, `DESCRIPTION`, `POSTSCRIPTUM`, `QUANTITY`, `PRICE`, `PROMO_PRICE`, `WAS_NEW`, `WAS_IN_PROMO`, `WEIGHT`, `EAN_CODE`, `TAX_RULE_TITLE`, `TAX_RULE_DESCRIPTION`, `PARENT`, `CREATED_AT`, `UPDATED_AT` FROM `order_product` WHERE `ID` = :p0'; + $sql = 'SELECT ID, ORDER_ID, PRODUCT_REF, PRODUCT_SALE_ELEMENTS_REF, TITLE, CHAPO, DESCRIPTION, POSTSCRIPTUM, QUANTITY, PRICE, PROMO_PRICE, WAS_NEW, WAS_IN_PROMO, WEIGHT, EAN_CODE, TAX_RULE_TITLE, TAX_RULE_DESCRIPTION, PARENT, CREATED_AT, UPDATED_AT FROM order_product WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/OrderProductTax.php b/core/lib/Thelia/Model/Base/OrderProductTax.php index f60c85bc8..91d3492e1 100644 --- a/core/lib/Thelia/Model/Base/OrderProductTax.php +++ b/core/lib/Thelia/Model/Base/OrderProductTax.php @@ -964,32 +964,32 @@ abstract class OrderProductTax implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderProductTaxTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderProductTaxTableMap::ORDER_PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`ORDER_PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'ORDER_PRODUCT_ID'; } if ($this->isColumnModified(OrderProductTaxTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(OrderProductTaxTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(OrderProductTaxTableMap::AMOUNT)) { - $modifiedColumns[':p' . $index++] = '`AMOUNT`'; + $modifiedColumns[':p' . $index++] = 'AMOUNT'; } if ($this->isColumnModified(OrderProductTaxTableMap::PROMO_AMOUNT)) { - $modifiedColumns[':p' . $index++] = '`PROMO_AMOUNT`'; + $modifiedColumns[':p' . $index++] = 'PROMO_AMOUNT'; } if ($this->isColumnModified(OrderProductTaxTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(OrderProductTaxTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `order_product_tax` (%s) VALUES (%s)', + 'INSERT INTO order_product_tax (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -998,28 +998,28 @@ abstract class OrderProductTax implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`ORDER_PRODUCT_ID`': + case 'ORDER_PRODUCT_ID': $stmt->bindValue($identifier, $this->order_product_id, PDO::PARAM_INT); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`AMOUNT`': + case 'AMOUNT': $stmt->bindValue($identifier, $this->amount, PDO::PARAM_STR); break; - case '`PROMO_AMOUNT`': + case 'PROMO_AMOUNT': $stmt->bindValue($identifier, $this->promo_amount, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderProductTaxQuery.php b/core/lib/Thelia/Model/Base/OrderProductTaxQuery.php index 4bb59bf0d..d0153d0cd 100644 --- a/core/lib/Thelia/Model/Base/OrderProductTaxQuery.php +++ b/core/lib/Thelia/Model/Base/OrderProductTaxQuery.php @@ -155,7 +155,7 @@ abstract class OrderProductTaxQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `ORDER_PRODUCT_ID`, `TITLE`, `DESCRIPTION`, `AMOUNT`, `PROMO_AMOUNT`, `CREATED_AT`, `UPDATED_AT` FROM `order_product_tax` WHERE `ID` = :p0'; + $sql = 'SELECT ID, ORDER_PRODUCT_ID, TITLE, DESCRIPTION, AMOUNT, PROMO_AMOUNT, CREATED_AT, UPDATED_AT FROM order_product_tax WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/OrderQuery.php b/core/lib/Thelia/Model/Base/OrderQuery.php index 96aa3d30b..ba669c065 100644 --- a/core/lib/Thelia/Model/Base/OrderQuery.php +++ b/core/lib/Thelia/Model/Base/OrderQuery.php @@ -235,7 +235,7 @@ abstract class OrderQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `REF`, `CUSTOMER_ID`, `INVOICE_ORDER_ADDRESS_ID`, `DELIVERY_ORDER_ADDRESS_ID`, `INVOICE_DATE`, `CURRENCY_ID`, `CURRENCY_RATE`, `TRANSACTION_REF`, `DELIVERY_REF`, `INVOICE_REF`, `DISCOUNT`, `POSTAGE`, `PAYMENT_MODULE_ID`, `DELIVERY_MODULE_ID`, `STATUS_ID`, `LANG_ID`, `CREATED_AT`, `UPDATED_AT` FROM `order` WHERE `ID` = :p0'; + $sql = 'SELECT ID, REF, CUSTOMER_ID, INVOICE_ORDER_ADDRESS_ID, DELIVERY_ORDER_ADDRESS_ID, INVOICE_DATE, CURRENCY_ID, CURRENCY_RATE, TRANSACTION_REF, DELIVERY_REF, INVOICE_REF, DISCOUNT, POSTAGE, PAYMENT_MODULE_ID, DELIVERY_MODULE_ID, STATUS_ID, LANG_ID, CREATED_AT, UPDATED_AT FROM order WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/OrderStatus.php b/core/lib/Thelia/Model/Base/OrderStatus.php index 754876942..4a5e49436 100644 --- a/core/lib/Thelia/Model/Base/OrderStatus.php +++ b/core/lib/Thelia/Model/Base/OrderStatus.php @@ -854,20 +854,20 @@ abstract class OrderStatus implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderStatusTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderStatusTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(OrderStatusTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(OrderStatusTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `order_status` (%s) VALUES (%s)', + 'INSERT INTO order_status (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -876,16 +876,16 @@ abstract class OrderStatus implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderStatusI18n.php b/core/lib/Thelia/Model/Base/OrderStatusI18n.php index 82a84fcea..d9f7f3b52 100644 --- a/core/lib/Thelia/Model/Base/OrderStatusI18n.php +++ b/core/lib/Thelia/Model/Base/OrderStatusI18n.php @@ -858,26 +858,26 @@ abstract class OrderStatusI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(OrderStatusI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(OrderStatusI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(OrderStatusI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(OrderStatusI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(OrderStatusI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(OrderStatusI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `order_status_i18n` (%s) VALUES (%s)', + 'INSERT INTO order_status_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class OrderStatusI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/OrderStatusI18nQuery.php b/core/lib/Thelia/Model/Base/OrderStatusI18nQuery.php index 1de0e360d..58127979f 100644 --- a/core/lib/Thelia/Model/Base/OrderStatusI18nQuery.php +++ b/core/lib/Thelia/Model/Base/OrderStatusI18nQuery.php @@ -147,7 +147,7 @@ abstract class OrderStatusI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `order_status_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM order_status_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/OrderStatusQuery.php b/core/lib/Thelia/Model/Base/OrderStatusQuery.php index 3fa57cb4b..7050b4a5a 100644 --- a/core/lib/Thelia/Model/Base/OrderStatusQuery.php +++ b/core/lib/Thelia/Model/Base/OrderStatusQuery.php @@ -144,7 +144,7 @@ abstract class OrderStatusQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CODE`, `CREATED_AT`, `UPDATED_AT` FROM `order_status` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CODE, CREATED_AT, UPDATED_AT FROM order_status WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Product.php b/core/lib/Thelia/Model/Base/Product.php index 2f7cb3468..50d8e96a3 100644 --- a/core/lib/Thelia/Model/Base/Product.php +++ b/core/lib/Thelia/Model/Base/Product.php @@ -1661,41 +1661,41 @@ abstract class Product implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductTableMap::TAX_RULE_ID)) { - $modifiedColumns[':p' . $index++] = '`TAX_RULE_ID`'; + $modifiedColumns[':p' . $index++] = 'TAX_RULE_ID'; } if ($this->isColumnModified(ProductTableMap::REF)) { - $modifiedColumns[':p' . $index++] = '`REF`'; + $modifiedColumns[':p' . $index++] = 'REF'; } if ($this->isColumnModified(ProductTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(ProductTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ProductTableMap::TEMPLATE_ID)) { - $modifiedColumns[':p' . $index++] = '`TEMPLATE_ID`'; + $modifiedColumns[':p' . $index++] = 'TEMPLATE_ID'; } if ($this->isColumnModified(ProductTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(ProductTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(ProductTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(ProductTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `product` (%s) VALUES (%s)', + 'INSERT INTO product (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1704,37 +1704,37 @@ abstract class Product implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`TAX_RULE_ID`': + case 'TAX_RULE_ID': $stmt->bindValue($identifier, $this->tax_rule_id, PDO::PARAM_INT); break; - case '`REF`': + case 'REF': $stmt->bindValue($identifier, $this->ref, PDO::PARAM_STR); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`TEMPLATE_ID`': + case 'TEMPLATE_ID': $stmt->bindValue($identifier, $this->template_id, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductAssociatedContent.php b/core/lib/Thelia/Model/Base/ProductAssociatedContent.php index a0ce4312c..764a7370c 100644 --- a/core/lib/Thelia/Model/Base/ProductAssociatedContent.php +++ b/core/lib/Thelia/Model/Base/ProductAssociatedContent.php @@ -904,26 +904,26 @@ abstract class ProductAssociatedContent implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductAssociatedContentTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductAssociatedContentTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(ProductAssociatedContentTableMap::CONTENT_ID)) { - $modifiedColumns[':p' . $index++] = '`CONTENT_ID`'; + $modifiedColumns[':p' . $index++] = 'CONTENT_ID'; } if ($this->isColumnModified(ProductAssociatedContentTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ProductAssociatedContentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductAssociatedContentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `product_associated_content` (%s) VALUES (%s)', + 'INSERT INTO product_associated_content (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -932,22 +932,22 @@ abstract class ProductAssociatedContent implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`CONTENT_ID`': + case 'CONTENT_ID': $stmt->bindValue($identifier, $this->content_id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductAssociatedContentQuery.php b/core/lib/Thelia/Model/Base/ProductAssociatedContentQuery.php index 6ce76b876..d387f40ed 100644 --- a/core/lib/Thelia/Model/Base/ProductAssociatedContentQuery.php +++ b/core/lib/Thelia/Model/Base/ProductAssociatedContentQuery.php @@ -151,7 +151,7 @@ abstract class ProductAssociatedContentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PRODUCT_ID`, `CONTENT_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `product_associated_content` WHERE `ID` = :p0'; + $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); diff --git a/core/lib/Thelia/Model/Base/ProductCategory.php b/core/lib/Thelia/Model/Base/ProductCategory.php index 99448c960..2e00db24a 100644 --- a/core/lib/Thelia/Model/Base/ProductCategory.php +++ b/core/lib/Thelia/Model/Base/ProductCategory.php @@ -867,23 +867,23 @@ abstract class ProductCategory implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductCategoryTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(ProductCategoryTableMap::CATEGORY_ID)) { - $modifiedColumns[':p' . $index++] = '`CATEGORY_ID`'; + $modifiedColumns[':p' . $index++] = 'CATEGORY_ID'; } if ($this->isColumnModified(ProductCategoryTableMap::DEFAULT_CATEGORY)) { - $modifiedColumns[':p' . $index++] = '`DEFAULT_CATEGORY`'; + $modifiedColumns[':p' . $index++] = 'DEFAULT_CATEGORY'; } if ($this->isColumnModified(ProductCategoryTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductCategoryTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `product_category` (%s) VALUES (%s)', + 'INSERT INTO product_category (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -892,19 +892,19 @@ abstract class ProductCategory implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`CATEGORY_ID`': + case 'CATEGORY_ID': $stmt->bindValue($identifier, $this->category_id, PDO::PARAM_INT); break; - case '`DEFAULT_CATEGORY`': + case 'DEFAULT_CATEGORY': $stmt->bindValue($identifier, (int) $this->default_category, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductCategoryQuery.php b/core/lib/Thelia/Model/Base/ProductCategoryQuery.php index 1d1e28830..df9fc630b 100644 --- a/core/lib/Thelia/Model/Base/ProductCategoryQuery.php +++ b/core/lib/Thelia/Model/Base/ProductCategoryQuery.php @@ -147,7 +147,7 @@ abstract class ProductCategoryQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `PRODUCT_ID`, `CATEGORY_ID`, `DEFAULT_CATEGORY`, `CREATED_AT`, `UPDATED_AT` FROM `product_category` WHERE `PRODUCT_ID` = :p0 AND `CATEGORY_ID` = :p1'; + $sql = 'SELECT PRODUCT_ID, CATEGORY_ID, DEFAULT_CATEGORY, CREATED_AT, UPDATED_AT FROM product_category WHERE PRODUCT_ID = :p0 AND CATEGORY_ID = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductDocument.php b/core/lib/Thelia/Model/Base/ProductDocument.php index e29fc582a..507539f45 100644 --- a/core/lib/Thelia/Model/Base/ProductDocument.php +++ b/core/lib/Thelia/Model/Base/ProductDocument.php @@ -930,26 +930,26 @@ abstract class ProductDocument implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductDocumentTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductDocumentTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(ProductDocumentTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(ProductDocumentTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ProductDocumentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductDocumentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `product_document` (%s) VALUES (%s)', + 'INSERT INTO product_document (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class ProductDocument implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductDocumentI18n.php b/core/lib/Thelia/Model/Base/ProductDocumentI18n.php index 18ec53fa2..2dff23586 100644 --- a/core/lib/Thelia/Model/Base/ProductDocumentI18n.php +++ b/core/lib/Thelia/Model/Base/ProductDocumentI18n.php @@ -858,26 +858,26 @@ abstract class ProductDocumentI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductDocumentI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductDocumentI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ProductDocumentI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ProductDocumentI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ProductDocumentI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ProductDocumentI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `product_document_i18n` (%s) VALUES (%s)', + 'INSERT INTO product_document_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ProductDocumentI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductDocumentI18nQuery.php b/core/lib/Thelia/Model/Base/ProductDocumentI18nQuery.php index 79d4854b4..5bd94d297 100644 --- a/core/lib/Thelia/Model/Base/ProductDocumentI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ProductDocumentI18nQuery.php @@ -147,7 +147,7 @@ abstract class ProductDocumentI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `product_document_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM product_document_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductDocumentQuery.php b/core/lib/Thelia/Model/Base/ProductDocumentQuery.php index f5d9d446c..06af05a9c 100644 --- a/core/lib/Thelia/Model/Base/ProductDocumentQuery.php +++ b/core/lib/Thelia/Model/Base/ProductDocumentQuery.php @@ -152,7 +152,7 @@ abstract class ProductDocumentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PRODUCT_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `product_document` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PRODUCT_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM product_document WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductI18n.php b/core/lib/Thelia/Model/Base/ProductI18n.php index b76519fe0..44f67373d 100644 --- a/core/lib/Thelia/Model/Base/ProductI18n.php +++ b/core/lib/Thelia/Model/Base/ProductI18n.php @@ -981,35 +981,35 @@ abstract class ProductI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ProductI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ProductI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ProductI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ProductI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } if ($this->isColumnModified(ProductI18nTableMap::META_TITLE)) { - $modifiedColumns[':p' . $index++] = '`META_TITLE`'; + $modifiedColumns[':p' . $index++] = 'META_TITLE'; } if ($this->isColumnModified(ProductI18nTableMap::META_DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`META_DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'META_DESCRIPTION'; } if ($this->isColumnModified(ProductI18nTableMap::META_KEYWORDS)) { - $modifiedColumns[':p' . $index++] = '`META_KEYWORDS`'; + $modifiedColumns[':p' . $index++] = 'META_KEYWORDS'; } $sql = sprintf( - 'INSERT INTO `product_i18n` (%s) VALUES (%s)', + 'INSERT INTO product_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1018,31 +1018,31 @@ abstract class ProductI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; - case '`META_TITLE`': + case 'META_TITLE': $stmt->bindValue($identifier, $this->meta_title, PDO::PARAM_STR); break; - case '`META_DESCRIPTION`': + case 'META_DESCRIPTION': $stmt->bindValue($identifier, $this->meta_description, PDO::PARAM_STR); break; - case '`META_KEYWORDS`': + case 'META_KEYWORDS': $stmt->bindValue($identifier, $this->meta_keywords, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductI18nQuery.php b/core/lib/Thelia/Model/Base/ProductI18nQuery.php index ab99a0ef2..c9eae20ad 100644 --- a/core/lib/Thelia/Model/Base/ProductI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ProductI18nQuery.php @@ -159,7 +159,7 @@ abstract class ProductI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM`, `META_TITLE`, `META_DESCRIPTION`, `META_KEYWORDS` FROM `product_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM, META_TITLE, META_DESCRIPTION, META_KEYWORDS FROM product_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductImage.php b/core/lib/Thelia/Model/Base/ProductImage.php index 450cf5b91..873aa0ec7 100644 --- a/core/lib/Thelia/Model/Base/ProductImage.php +++ b/core/lib/Thelia/Model/Base/ProductImage.php @@ -930,26 +930,26 @@ abstract class ProductImage implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductImageTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductImageTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(ProductImageTableMap::FILE)) { - $modifiedColumns[':p' . $index++] = '`FILE`'; + $modifiedColumns[':p' . $index++] = 'FILE'; } if ($this->isColumnModified(ProductImageTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ProductImageTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductImageTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `product_image` (%s) VALUES (%s)', + 'INSERT INTO product_image (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -958,22 +958,22 @@ abstract class ProductImage implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`FILE`': + case 'FILE': $stmt->bindValue($identifier, $this->file, PDO::PARAM_STR); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductImageI18n.php b/core/lib/Thelia/Model/Base/ProductImageI18n.php index 2b725e831..76f9b38a9 100644 --- a/core/lib/Thelia/Model/Base/ProductImageI18n.php +++ b/core/lib/Thelia/Model/Base/ProductImageI18n.php @@ -858,26 +858,26 @@ abstract class ProductImageI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductImageI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductImageI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ProductImageI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ProductImageI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ProductImageI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ProductImageI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `product_image_i18n` (%s) VALUES (%s)', + 'INSERT INTO product_image_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ProductImageI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductImageI18nQuery.php b/core/lib/Thelia/Model/Base/ProductImageI18nQuery.php index cb588e56c..c1f34fbb9 100644 --- a/core/lib/Thelia/Model/Base/ProductImageI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ProductImageI18nQuery.php @@ -147,7 +147,7 @@ abstract class ProductImageI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `product_image_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM product_image_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductImageQuery.php b/core/lib/Thelia/Model/Base/ProductImageQuery.php index cb73e994b..94cb1b361 100644 --- a/core/lib/Thelia/Model/Base/ProductImageQuery.php +++ b/core/lib/Thelia/Model/Base/ProductImageQuery.php @@ -152,7 +152,7 @@ abstract class ProductImageQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PRODUCT_ID`, `FILE`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `product_image` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PRODUCT_ID, FILE, POSITION, CREATED_AT, UPDATED_AT FROM product_image WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductPrice.php b/core/lib/Thelia/Model/Base/ProductPrice.php index aa92b460a..e5c5b3f27 100644 --- a/core/lib/Thelia/Model/Base/ProductPrice.php +++ b/core/lib/Thelia/Model/Base/ProductPrice.php @@ -979,29 +979,29 @@ abstract class ProductPrice implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductPriceTableMap::PRODUCT_SALE_ELEMENTS_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_SALE_ELEMENTS_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_SALE_ELEMENTS_ID'; } if ($this->isColumnModified(ProductPriceTableMap::CURRENCY_ID)) { - $modifiedColumns[':p' . $index++] = '`CURRENCY_ID`'; + $modifiedColumns[':p' . $index++] = 'CURRENCY_ID'; } if ($this->isColumnModified(ProductPriceTableMap::PRICE)) { - $modifiedColumns[':p' . $index++] = '`PRICE`'; + $modifiedColumns[':p' . $index++] = 'PRICE'; } if ($this->isColumnModified(ProductPriceTableMap::PROMO_PRICE)) { - $modifiedColumns[':p' . $index++] = '`PROMO_PRICE`'; + $modifiedColumns[':p' . $index++] = 'PROMO_PRICE'; } if ($this->isColumnModified(ProductPriceTableMap::FROM_DEFAULT_CURRENCY)) { - $modifiedColumns[':p' . $index++] = '`FROM_DEFAULT_CURRENCY`'; + $modifiedColumns[':p' . $index++] = 'FROM_DEFAULT_CURRENCY'; } if ($this->isColumnModified(ProductPriceTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductPriceTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `product_price` (%s) VALUES (%s)', + 'INSERT INTO product_price (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1010,25 +1010,25 @@ abstract class ProductPrice implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`PRODUCT_SALE_ELEMENTS_ID`': + case 'PRODUCT_SALE_ELEMENTS_ID': $stmt->bindValue($identifier, $this->product_sale_elements_id, PDO::PARAM_INT); break; - case '`CURRENCY_ID`': + case 'CURRENCY_ID': $stmt->bindValue($identifier, $this->currency_id, PDO::PARAM_INT); break; - case '`PRICE`': + case 'PRICE': $stmt->bindValue($identifier, $this->price, PDO::PARAM_STR); break; - case '`PROMO_PRICE`': + case 'PROMO_PRICE': $stmt->bindValue($identifier, $this->promo_price, PDO::PARAM_STR); break; - case '`FROM_DEFAULT_CURRENCY`': + case 'FROM_DEFAULT_CURRENCY': $stmt->bindValue($identifier, (int) $this->from_default_currency, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductPriceQuery.php b/core/lib/Thelia/Model/Base/ProductPriceQuery.php index 269fc833c..1ea364459 100644 --- a/core/lib/Thelia/Model/Base/ProductPriceQuery.php +++ b/core/lib/Thelia/Model/Base/ProductPriceQuery.php @@ -155,7 +155,7 @@ abstract class ProductPriceQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `PRODUCT_SALE_ELEMENTS_ID`, `CURRENCY_ID`, `PRICE`, `PROMO_PRICE`, `FROM_DEFAULT_CURRENCY`, `CREATED_AT`, `UPDATED_AT` FROM `product_price` WHERE `PRODUCT_SALE_ELEMENTS_ID` = :p0 AND `CURRENCY_ID` = :p1'; + $sql = 'SELECT PRODUCT_SALE_ELEMENTS_ID, CURRENCY_ID, PRICE, PROMO_PRICE, FROM_DEFAULT_CURRENCY, CREATED_AT, UPDATED_AT FROM product_price WHERE PRODUCT_SALE_ELEMENTS_ID = :p0 AND CURRENCY_ID = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductQuery.php b/core/lib/Thelia/Model/Base/ProductQuery.php index 352b5cc68..9c3b0759c 100644 --- a/core/lib/Thelia/Model/Base/ProductQuery.php +++ b/core/lib/Thelia/Model/Base/ProductQuery.php @@ -223,7 +223,7 @@ abstract class ProductQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `TAX_RULE_ID`, `REF`, `VISIBLE`, `POSITION`, `TEMPLATE_ID`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `product` WHERE `ID` = :p0'; + $sql = 'SELECT ID, TAX_RULE_ID, REF, VISIBLE, POSITION, TEMPLATE_ID, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM product WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductSaleElements.php b/core/lib/Thelia/Model/Base/ProductSaleElements.php index 3ace78d00..7911b63f7 100644 --- a/core/lib/Thelia/Model/Base/ProductSaleElements.php +++ b/core/lib/Thelia/Model/Base/ProductSaleElements.php @@ -1231,41 +1231,41 @@ abstract class ProductSaleElements implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductSaleElementsTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductSaleElementsTableMap::PRODUCT_ID)) { - $modifiedColumns[':p' . $index++] = '`PRODUCT_ID`'; + $modifiedColumns[':p' . $index++] = 'PRODUCT_ID'; } if ($this->isColumnModified(ProductSaleElementsTableMap::REF)) { - $modifiedColumns[':p' . $index++] = '`REF`'; + $modifiedColumns[':p' . $index++] = 'REF'; } if ($this->isColumnModified(ProductSaleElementsTableMap::QUANTITY)) { - $modifiedColumns[':p' . $index++] = '`QUANTITY`'; + $modifiedColumns[':p' . $index++] = 'QUANTITY'; } if ($this->isColumnModified(ProductSaleElementsTableMap::PROMO)) { - $modifiedColumns[':p' . $index++] = '`PROMO`'; + $modifiedColumns[':p' . $index++] = 'PROMO'; } if ($this->isColumnModified(ProductSaleElementsTableMap::NEWNESS)) { - $modifiedColumns[':p' . $index++] = '`NEWNESS`'; + $modifiedColumns[':p' . $index++] = 'NEWNESS'; } if ($this->isColumnModified(ProductSaleElementsTableMap::WEIGHT)) { - $modifiedColumns[':p' . $index++] = '`WEIGHT`'; + $modifiedColumns[':p' . $index++] = 'WEIGHT'; } if ($this->isColumnModified(ProductSaleElementsTableMap::IS_DEFAULT)) { - $modifiedColumns[':p' . $index++] = '`IS_DEFAULT`'; + $modifiedColumns[':p' . $index++] = 'IS_DEFAULT'; } if ($this->isColumnModified(ProductSaleElementsTableMap::EAN_CODE)) { - $modifiedColumns[':p' . $index++] = '`EAN_CODE`'; + $modifiedColumns[':p' . $index++] = 'EAN_CODE'; } if ($this->isColumnModified(ProductSaleElementsTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductSaleElementsTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `product_sale_elements` (%s) VALUES (%s)', + 'INSERT INTO product_sale_elements (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1274,37 +1274,37 @@ abstract class ProductSaleElements implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`PRODUCT_ID`': + case 'PRODUCT_ID': $stmt->bindValue($identifier, $this->product_id, PDO::PARAM_INT); break; - case '`REF`': + case 'REF': $stmt->bindValue($identifier, $this->ref, PDO::PARAM_STR); break; - case '`QUANTITY`': + case 'QUANTITY': $stmt->bindValue($identifier, $this->quantity, PDO::PARAM_STR); break; - case '`PROMO`': + case 'PROMO': $stmt->bindValue($identifier, $this->promo, PDO::PARAM_INT); break; - case '`NEWNESS`': + case 'NEWNESS': $stmt->bindValue($identifier, $this->newness, PDO::PARAM_INT); break; - case '`WEIGHT`': + case 'WEIGHT': $stmt->bindValue($identifier, $this->weight, PDO::PARAM_STR); break; - case '`IS_DEFAULT`': + case 'IS_DEFAULT': $stmt->bindValue($identifier, (int) $this->is_default, PDO::PARAM_INT); break; - case '`EAN_CODE`': + case 'EAN_CODE': $stmt->bindValue($identifier, $this->ean_code, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductSaleElementsQuery.php b/core/lib/Thelia/Model/Base/ProductSaleElementsQuery.php index 3a46a016d..3d169d24b 100644 --- a/core/lib/Thelia/Model/Base/ProductSaleElementsQuery.php +++ b/core/lib/Thelia/Model/Base/ProductSaleElementsQuery.php @@ -179,7 +179,7 @@ abstract class ProductSaleElementsQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `PRODUCT_ID`, `REF`, `QUANTITY`, `PROMO`, `NEWNESS`, `WEIGHT`, `IS_DEFAULT`, `EAN_CODE`, `CREATED_AT`, `UPDATED_AT` FROM `product_sale_elements` WHERE `ID` = :p0'; + $sql = 'SELECT ID, PRODUCT_ID, REF, QUANTITY, PROMO, NEWNESS, WEIGHT, IS_DEFAULT, EAN_CODE, CREATED_AT, UPDATED_AT FROM product_sale_elements WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProductVersion.php b/core/lib/Thelia/Model/Base/ProductVersion.php index 54c628afa..f4327e4f1 100644 --- a/core/lib/Thelia/Model/Base/ProductVersion.php +++ b/core/lib/Thelia/Model/Base/ProductVersion.php @@ -1107,41 +1107,41 @@ abstract class ProductVersion implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProductVersionTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProductVersionTableMap::TAX_RULE_ID)) { - $modifiedColumns[':p' . $index++] = '`TAX_RULE_ID`'; + $modifiedColumns[':p' . $index++] = 'TAX_RULE_ID'; } if ($this->isColumnModified(ProductVersionTableMap::REF)) { - $modifiedColumns[':p' . $index++] = '`REF`'; + $modifiedColumns[':p' . $index++] = 'REF'; } if ($this->isColumnModified(ProductVersionTableMap::VISIBLE)) { - $modifiedColumns[':p' . $index++] = '`VISIBLE`'; + $modifiedColumns[':p' . $index++] = 'VISIBLE'; } if ($this->isColumnModified(ProductVersionTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(ProductVersionTableMap::TEMPLATE_ID)) { - $modifiedColumns[':p' . $index++] = '`TEMPLATE_ID`'; + $modifiedColumns[':p' . $index++] = 'TEMPLATE_ID'; } if ($this->isColumnModified(ProductVersionTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProductVersionTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } if ($this->isColumnModified(ProductVersionTableMap::VERSION)) { - $modifiedColumns[':p' . $index++] = '`VERSION`'; + $modifiedColumns[':p' . $index++] = 'VERSION'; } if ($this->isColumnModified(ProductVersionTableMap::VERSION_CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_AT'; } if ($this->isColumnModified(ProductVersionTableMap::VERSION_CREATED_BY)) { - $modifiedColumns[':p' . $index++] = '`VERSION_CREATED_BY`'; + $modifiedColumns[':p' . $index++] = 'VERSION_CREATED_BY'; } $sql = sprintf( - 'INSERT INTO `product_version` (%s) VALUES (%s)', + 'INSERT INTO product_version (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1150,37 +1150,37 @@ abstract class ProductVersion implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`TAX_RULE_ID`': + case 'TAX_RULE_ID': $stmt->bindValue($identifier, $this->tax_rule_id, PDO::PARAM_INT); break; - case '`REF`': + case 'REF': $stmt->bindValue($identifier, $this->ref, PDO::PARAM_STR); break; - case '`VISIBLE`': + case 'VISIBLE': $stmt->bindValue($identifier, $this->visible, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`TEMPLATE_ID`': + case 'TEMPLATE_ID': $stmt->bindValue($identifier, $this->template_id, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + 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`': + case 'VERSION': $stmt->bindValue($identifier, $this->version, PDO::PARAM_INT); break; - case '`VERSION_CREATED_AT`': + case 'VERSION_CREATED_AT': $stmt->bindValue($identifier, $this->version_created_at ? $this->version_created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; - case '`VERSION_CREATED_BY`': + case 'VERSION_CREATED_BY': $stmt->bindValue($identifier, $this->version_created_by, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProductVersionQuery.php b/core/lib/Thelia/Model/Base/ProductVersionQuery.php index cf017b048..b659becb9 100644 --- a/core/lib/Thelia/Model/Base/ProductVersionQuery.php +++ b/core/lib/Thelia/Model/Base/ProductVersionQuery.php @@ -167,7 +167,7 @@ abstract class ProductVersionQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `TAX_RULE_ID`, `REF`, `VISIBLE`, `POSITION`, `TEMPLATE_ID`, `CREATED_AT`, `UPDATED_AT`, `VERSION`, `VERSION_CREATED_AT`, `VERSION_CREATED_BY` FROM `product_version` WHERE `ID` = :p0 AND `VERSION` = :p1'; + $sql = 'SELECT ID, TAX_RULE_ID, REF, VISIBLE, POSITION, TEMPLATE_ID, CREATED_AT, UPDATED_AT, VERSION, VERSION_CREATED_AT, VERSION_CREATED_BY FROM product_version WHERE ID = :p0 AND VERSION = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Profile.php b/core/lib/Thelia/Model/Base/Profile.php index bbf597814..f4796c58e 100644 --- a/core/lib/Thelia/Model/Base/Profile.php +++ b/core/lib/Thelia/Model/Base/Profile.php @@ -962,20 +962,20 @@ abstract class Profile implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProfileTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProfileTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(ProfileTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProfileTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `profile` (%s) VALUES (%s)', + 'INSERT INTO profile (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -984,16 +984,16 @@ abstract class Profile implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProfileI18n.php b/core/lib/Thelia/Model/Base/ProfileI18n.php index 8fb69fa12..e9f026d6d 100644 --- a/core/lib/Thelia/Model/Base/ProfileI18n.php +++ b/core/lib/Thelia/Model/Base/ProfileI18n.php @@ -858,26 +858,26 @@ abstract class ProfileI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProfileI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ProfileI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ProfileI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ProfileI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ProfileI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ProfileI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `profile_i18n` (%s) VALUES (%s)', + 'INSERT INTO profile_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ProfileI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProfileI18nQuery.php b/core/lib/Thelia/Model/Base/ProfileI18nQuery.php index 79a5510df..3c9367fb4 100644 --- a/core/lib/Thelia/Model/Base/ProfileI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ProfileI18nQuery.php @@ -147,7 +147,7 @@ abstract class ProfileI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `profile_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM profile_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProfileModule.php b/core/lib/Thelia/Model/Base/ProfileModule.php index 52e2986a6..11523f35c 100644 --- a/core/lib/Thelia/Model/Base/ProfileModule.php +++ b/core/lib/Thelia/Model/Base/ProfileModule.php @@ -877,23 +877,23 @@ abstract class ProfileModule implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProfileModuleTableMap::PROFILE_ID)) { - $modifiedColumns[':p' . $index++] = '`PROFILE_ID`'; + $modifiedColumns[':p' . $index++] = 'PROFILE_ID'; } if ($this->isColumnModified(ProfileModuleTableMap::MODULE_ID)) { - $modifiedColumns[':p' . $index++] = '`MODULE_ID`'; + $modifiedColumns[':p' . $index++] = 'MODULE_ID'; } if ($this->isColumnModified(ProfileModuleTableMap::ACCESS)) { - $modifiedColumns[':p' . $index++] = '`ACCESS`'; + $modifiedColumns[':p' . $index++] = 'ACCESS'; } if ($this->isColumnModified(ProfileModuleTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProfileModuleTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `profile_module` (%s) VALUES (%s)', + 'INSERT INTO profile_module (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -902,19 +902,19 @@ abstract class ProfileModule implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`PROFILE_ID`': + case 'PROFILE_ID': $stmt->bindValue($identifier, $this->profile_id, PDO::PARAM_INT); break; - case '`MODULE_ID`': + case 'MODULE_ID': $stmt->bindValue($identifier, $this->module_id, PDO::PARAM_INT); break; - case '`ACCESS`': + case 'ACCESS': $stmt->bindValue($identifier, $this->access, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProfileModuleQuery.php b/core/lib/Thelia/Model/Base/ProfileModuleQuery.php index 4f49ccb2f..6622eae9e 100644 --- a/core/lib/Thelia/Model/Base/ProfileModuleQuery.php +++ b/core/lib/Thelia/Model/Base/ProfileModuleQuery.php @@ -147,7 +147,7 @@ abstract class ProfileModuleQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `PROFILE_ID`, `MODULE_ID`, `ACCESS`, `CREATED_AT`, `UPDATED_AT` FROM `profile_module` WHERE `PROFILE_ID` = :p0 AND `MODULE_ID` = :p1'; + $sql = 'SELECT PROFILE_ID, MODULE_ID, ACCESS, CREATED_AT, UPDATED_AT FROM profile_module WHERE PROFILE_ID = :p0 AND MODULE_ID = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProfileQuery.php b/core/lib/Thelia/Model/Base/ProfileQuery.php index ad778a354..7937776c5 100644 --- a/core/lib/Thelia/Model/Base/ProfileQuery.php +++ b/core/lib/Thelia/Model/Base/ProfileQuery.php @@ -152,7 +152,7 @@ abstract class ProfileQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CODE`, `CREATED_AT`, `UPDATED_AT` FROM `profile` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CODE, CREATED_AT, UPDATED_AT FROM profile WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ProfileResource.php b/core/lib/Thelia/Model/Base/ProfileResource.php index 06f0b8773..e4efc6f6a 100644 --- a/core/lib/Thelia/Model/Base/ProfileResource.php +++ b/core/lib/Thelia/Model/Base/ProfileResource.php @@ -877,23 +877,23 @@ abstract class ProfileResource implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ProfileResourceTableMap::PROFILE_ID)) { - $modifiedColumns[':p' . $index++] = '`PROFILE_ID`'; + $modifiedColumns[':p' . $index++] = 'PROFILE_ID'; } if ($this->isColumnModified(ProfileResourceTableMap::RESOURCE_ID)) { - $modifiedColumns[':p' . $index++] = '`RESOURCE_ID`'; + $modifiedColumns[':p' . $index++] = 'RESOURCE_ID'; } if ($this->isColumnModified(ProfileResourceTableMap::ACCESS)) { - $modifiedColumns[':p' . $index++] = '`ACCESS`'; + $modifiedColumns[':p' . $index++] = 'ACCESS'; } if ($this->isColumnModified(ProfileResourceTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ProfileResourceTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `profile_resource` (%s) VALUES (%s)', + 'INSERT INTO profile_resource (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -902,19 +902,19 @@ abstract class ProfileResource implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`PROFILE_ID`': + case 'PROFILE_ID': $stmt->bindValue($identifier, $this->profile_id, PDO::PARAM_INT); break; - case '`RESOURCE_ID`': + case 'RESOURCE_ID': $stmt->bindValue($identifier, $this->resource_id, PDO::PARAM_INT); break; - case '`ACCESS`': + case 'ACCESS': $stmt->bindValue($identifier, $this->access, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ProfileResourceQuery.php b/core/lib/Thelia/Model/Base/ProfileResourceQuery.php index e836ec5e0..c33ba7daa 100644 --- a/core/lib/Thelia/Model/Base/ProfileResourceQuery.php +++ b/core/lib/Thelia/Model/Base/ProfileResourceQuery.php @@ -147,7 +147,7 @@ abstract class ProfileResourceQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `PROFILE_ID`, `RESOURCE_ID`, `ACCESS`, `CREATED_AT`, `UPDATED_AT` FROM `profile_resource` WHERE `PROFILE_ID` = :p0 AND `RESOURCE_ID` = :p1'; + $sql = 'SELECT PROFILE_ID, RESOURCE_ID, ACCESS, CREATED_AT, UPDATED_AT FROM profile_resource WHERE PROFILE_ID = :p0 AND RESOURCE_ID = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Resource.php b/core/lib/Thelia/Model/Base/Resource.php index 1f899ec81..166fa7a16 100644 --- a/core/lib/Thelia/Model/Base/Resource.php +++ b/core/lib/Thelia/Model/Base/Resource.php @@ -895,20 +895,20 @@ abstract class Resource implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ResourceTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ResourceTableMap::CODE)) { - $modifiedColumns[':p' . $index++] = '`CODE`'; + $modifiedColumns[':p' . $index++] = 'CODE'; } if ($this->isColumnModified(ResourceTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(ResourceTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `resource` (%s) VALUES (%s)', + 'INSERT INTO resource (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -917,16 +917,16 @@ abstract class Resource implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CODE`': + case 'CODE': $stmt->bindValue($identifier, $this->code, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ResourceI18n.php b/core/lib/Thelia/Model/Base/ResourceI18n.php index 3a9ac35be..bd1104a90 100644 --- a/core/lib/Thelia/Model/Base/ResourceI18n.php +++ b/core/lib/Thelia/Model/Base/ResourceI18n.php @@ -858,26 +858,26 @@ abstract class ResourceI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(ResourceI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(ResourceI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(ResourceI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(ResourceI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } if ($this->isColumnModified(ResourceI18nTableMap::CHAPO)) { - $modifiedColumns[':p' . $index++] = '`CHAPO`'; + $modifiedColumns[':p' . $index++] = 'CHAPO'; } if ($this->isColumnModified(ResourceI18nTableMap::POSTSCRIPTUM)) { - $modifiedColumns[':p' . $index++] = '`POSTSCRIPTUM`'; + $modifiedColumns[':p' . $index++] = 'POSTSCRIPTUM'; } $sql = sprintf( - 'INSERT INTO `resource_i18n` (%s) VALUES (%s)', + 'INSERT INTO resource_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -886,22 +886,22 @@ abstract class ResourceI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; - case '`CHAPO`': + case 'CHAPO': $stmt->bindValue($identifier, $this->chapo, PDO::PARAM_STR); break; - case '`POSTSCRIPTUM`': + case 'POSTSCRIPTUM': $stmt->bindValue($identifier, $this->postscriptum, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/ResourceI18nQuery.php b/core/lib/Thelia/Model/Base/ResourceI18nQuery.php index 839d212dc..8c9872943 100644 --- a/core/lib/Thelia/Model/Base/ResourceI18nQuery.php +++ b/core/lib/Thelia/Model/Base/ResourceI18nQuery.php @@ -147,7 +147,7 @@ abstract class ResourceI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION`, `CHAPO`, `POSTSCRIPTUM` FROM `resource_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION, CHAPO, POSTSCRIPTUM FROM resource_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/ResourceQuery.php b/core/lib/Thelia/Model/Base/ResourceQuery.php index 613ab700a..72888d6a9 100644 --- a/core/lib/Thelia/Model/Base/ResourceQuery.php +++ b/core/lib/Thelia/Model/Base/ResourceQuery.php @@ -144,7 +144,7 @@ abstract class ResourceQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CODE`, `CREATED_AT`, `UPDATED_AT` FROM `resource` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CODE, CREATED_AT, UPDATED_AT FROM resource WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/RewritingArgument.php b/core/lib/Thelia/Model/Base/RewritingArgument.php index 66ad972de..e34778574 100644 --- a/core/lib/Thelia/Model/Base/RewritingArgument.php +++ b/core/lib/Thelia/Model/Base/RewritingArgument.php @@ -837,23 +837,23 @@ abstract class RewritingArgument implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(RewritingArgumentTableMap::REWRITING_URL_ID)) { - $modifiedColumns[':p' . $index++] = '`REWRITING_URL_ID`'; + $modifiedColumns[':p' . $index++] = 'REWRITING_URL_ID'; } if ($this->isColumnModified(RewritingArgumentTableMap::PARAMETER)) { - $modifiedColumns[':p' . $index++] = '`PARAMETER`'; + $modifiedColumns[':p' . $index++] = 'PARAMETER'; } if ($this->isColumnModified(RewritingArgumentTableMap::VALUE)) { - $modifiedColumns[':p' . $index++] = '`VALUE`'; + $modifiedColumns[':p' . $index++] = 'VALUE'; } if ($this->isColumnModified(RewritingArgumentTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(RewritingArgumentTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `rewriting_argument` (%s) VALUES (%s)', + 'INSERT INTO rewriting_argument (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -862,19 +862,19 @@ abstract class RewritingArgument implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`REWRITING_URL_ID`': + case 'REWRITING_URL_ID': $stmt->bindValue($identifier, $this->rewriting_url_id, PDO::PARAM_INT); break; - case '`PARAMETER`': + case 'PARAMETER': $stmt->bindValue($identifier, $this->parameter, PDO::PARAM_STR); break; - case '`VALUE`': + case 'VALUE': $stmt->bindValue($identifier, $this->value, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/RewritingArgumentQuery.php b/core/lib/Thelia/Model/Base/RewritingArgumentQuery.php index bb4dd9a6d..cd9ca4fd3 100644 --- a/core/lib/Thelia/Model/Base/RewritingArgumentQuery.php +++ b/core/lib/Thelia/Model/Base/RewritingArgumentQuery.php @@ -143,7 +143,7 @@ abstract class RewritingArgumentQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `REWRITING_URL_ID`, `PARAMETER`, `VALUE`, `CREATED_AT`, `UPDATED_AT` FROM `rewriting_argument` WHERE `REWRITING_URL_ID` = :p0 AND `PARAMETER` = :p1 AND `VALUE` = :p2'; + $sql = 'SELECT REWRITING_URL_ID, PARAMETER, VALUE, CREATED_AT, UPDATED_AT FROM rewriting_argument WHERE REWRITING_URL_ID = :p0 AND PARAMETER = :p1 AND VALUE = :p2'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/RewritingUrl.php b/core/lib/Thelia/Model/Base/RewritingUrl.php index 979ce378c..06fa093b2 100644 --- a/core/lib/Thelia/Model/Base/RewritingUrl.php +++ b/core/lib/Thelia/Model/Base/RewritingUrl.php @@ -1028,32 +1028,32 @@ abstract class RewritingUrl implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(RewritingUrlTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(RewritingUrlTableMap::URL)) { - $modifiedColumns[':p' . $index++] = '`URL`'; + $modifiedColumns[':p' . $index++] = 'URL'; } if ($this->isColumnModified(RewritingUrlTableMap::VIEW)) { - $modifiedColumns[':p' . $index++] = '`VIEW`'; + $modifiedColumns[':p' . $index++] = 'VIEW'; } if ($this->isColumnModified(RewritingUrlTableMap::VIEW_ID)) { - $modifiedColumns[':p' . $index++] = '`VIEW_ID`'; + $modifiedColumns[':p' . $index++] = 'VIEW_ID'; } if ($this->isColumnModified(RewritingUrlTableMap::VIEW_LOCALE)) { - $modifiedColumns[':p' . $index++] = '`VIEW_LOCALE`'; + $modifiedColumns[':p' . $index++] = 'VIEW_LOCALE'; } if ($this->isColumnModified(RewritingUrlTableMap::REDIRECTED)) { - $modifiedColumns[':p' . $index++] = '`REDIRECTED`'; + $modifiedColumns[':p' . $index++] = 'REDIRECTED'; } if ($this->isColumnModified(RewritingUrlTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(RewritingUrlTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `rewriting_url` (%s) VALUES (%s)', + 'INSERT INTO rewriting_url (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -1062,28 +1062,28 @@ abstract class RewritingUrl implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`URL`': + case 'URL': $stmt->bindValue($identifier, $this->url, PDO::PARAM_STR); break; - case '`VIEW`': + case 'VIEW': $stmt->bindValue($identifier, $this->view, PDO::PARAM_STR); break; - case '`VIEW_ID`': + case 'VIEW_ID': $stmt->bindValue($identifier, $this->view_id, PDO::PARAM_STR); break; - case '`VIEW_LOCALE`': + case 'VIEW_LOCALE': $stmt->bindValue($identifier, $this->view_locale, PDO::PARAM_STR); break; - case '`REDIRECTED`': + case 'REDIRECTED': $stmt->bindValue($identifier, $this->redirected, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/RewritingUrlQuery.php b/core/lib/Thelia/Model/Base/RewritingUrlQuery.php index 9c6a0450b..c3c73b923 100644 --- a/core/lib/Thelia/Model/Base/RewritingUrlQuery.php +++ b/core/lib/Thelia/Model/Base/RewritingUrlQuery.php @@ -163,7 +163,7 @@ abstract class RewritingUrlQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `URL`, `VIEW`, `VIEW_ID`, `VIEW_LOCALE`, `REDIRECTED`, `CREATED_AT`, `UPDATED_AT` FROM `rewriting_url` WHERE `ID` = :p0'; + $sql = 'SELECT ID, URL, VIEW, VIEW_ID, VIEW_LOCALE, REDIRECTED, CREATED_AT, UPDATED_AT FROM rewriting_url WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Tax.php b/core/lib/Thelia/Model/Base/Tax.php index 51a5aed11..2ca5a8735 100644 --- a/core/lib/Thelia/Model/Base/Tax.php +++ b/core/lib/Thelia/Model/Base/Tax.php @@ -895,23 +895,23 @@ abstract class Tax implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TaxTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(TaxTableMap::TYPE)) { - $modifiedColumns[':p' . $index++] = '`TYPE`'; + $modifiedColumns[':p' . $index++] = 'TYPE'; } if ($this->isColumnModified(TaxTableMap::SERIALIZED_REQUIREMENTS)) { - $modifiedColumns[':p' . $index++] = '`SERIALIZED_REQUIREMENTS`'; + $modifiedColumns[':p' . $index++] = 'SERIALIZED_REQUIREMENTS'; } if ($this->isColumnModified(TaxTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(TaxTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `tax` (%s) VALUES (%s)', + 'INSERT INTO tax (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -920,19 +920,19 @@ abstract class Tax implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`TYPE`': + case 'TYPE': $stmt->bindValue($identifier, $this->type, PDO::PARAM_STR); break; - case '`SERIALIZED_REQUIREMENTS`': + case 'SERIALIZED_REQUIREMENTS': $stmt->bindValue($identifier, $this->serialized_requirements, PDO::PARAM_STR); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/TaxI18n.php b/core/lib/Thelia/Model/Base/TaxI18n.php index 2a4a2d316..cedf8b348 100644 --- a/core/lib/Thelia/Model/Base/TaxI18n.php +++ b/core/lib/Thelia/Model/Base/TaxI18n.php @@ -776,20 +776,20 @@ abstract class TaxI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TaxI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(TaxI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(TaxI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(TaxI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } $sql = sprintf( - 'INSERT INTO `tax_i18n` (%s) VALUES (%s)', + 'INSERT INTO tax_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -798,16 +798,16 @@ abstract class TaxI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/TaxI18nQuery.php b/core/lib/Thelia/Model/Base/TaxI18nQuery.php index 7514a394a..e23b36155 100644 --- a/core/lib/Thelia/Model/Base/TaxI18nQuery.php +++ b/core/lib/Thelia/Model/Base/TaxI18nQuery.php @@ -139,7 +139,7 @@ abstract class TaxI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION` FROM `tax_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION FROM tax_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/TaxQuery.php b/core/lib/Thelia/Model/Base/TaxQuery.php index 67fc3a3ec..93da10f53 100644 --- a/core/lib/Thelia/Model/Base/TaxQuery.php +++ b/core/lib/Thelia/Model/Base/TaxQuery.php @@ -148,7 +148,7 @@ abstract class TaxQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `TYPE`, `SERIALIZED_REQUIREMENTS`, `CREATED_AT`, `UPDATED_AT` FROM `tax` WHERE `ID` = :p0'; + $sql = 'SELECT ID, TYPE, SERIALIZED_REQUIREMENTS, CREATED_AT, UPDATED_AT FROM tax WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/TaxRule.php b/core/lib/Thelia/Model/Base/TaxRule.php index e56dfa622..7accb0df8 100644 --- a/core/lib/Thelia/Model/Base/TaxRule.php +++ b/core/lib/Thelia/Model/Base/TaxRule.php @@ -914,20 +914,20 @@ abstract class TaxRule implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TaxRuleTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(TaxRuleTableMap::IS_DEFAULT)) { - $modifiedColumns[':p' . $index++] = '`IS_DEFAULT`'; + $modifiedColumns[':p' . $index++] = 'IS_DEFAULT'; } if ($this->isColumnModified(TaxRuleTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(TaxRuleTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `tax_rule` (%s) VALUES (%s)', + 'INSERT INTO tax_rule (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -936,16 +936,16 @@ abstract class TaxRule implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`IS_DEFAULT`': + case 'IS_DEFAULT': $stmt->bindValue($identifier, (int) $this->is_default, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/TaxRuleCountry.php b/core/lib/Thelia/Model/Base/TaxRuleCountry.php index a6d24e68a..de527540c 100644 --- a/core/lib/Thelia/Model/Base/TaxRuleCountry.php +++ b/core/lib/Thelia/Model/Base/TaxRuleCountry.php @@ -922,26 +922,26 @@ abstract class TaxRuleCountry implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TaxRuleCountryTableMap::TAX_RULE_ID)) { - $modifiedColumns[':p' . $index++] = '`TAX_RULE_ID`'; + $modifiedColumns[':p' . $index++] = 'TAX_RULE_ID'; } if ($this->isColumnModified(TaxRuleCountryTableMap::COUNTRY_ID)) { - $modifiedColumns[':p' . $index++] = '`COUNTRY_ID`'; + $modifiedColumns[':p' . $index++] = 'COUNTRY_ID'; } if ($this->isColumnModified(TaxRuleCountryTableMap::TAX_ID)) { - $modifiedColumns[':p' . $index++] = '`TAX_ID`'; + $modifiedColumns[':p' . $index++] = 'TAX_ID'; } if ($this->isColumnModified(TaxRuleCountryTableMap::POSITION)) { - $modifiedColumns[':p' . $index++] = '`POSITION`'; + $modifiedColumns[':p' . $index++] = 'POSITION'; } if ($this->isColumnModified(TaxRuleCountryTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(TaxRuleCountryTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `tax_rule_country` (%s) VALUES (%s)', + 'INSERT INTO tax_rule_country (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -950,22 +950,22 @@ abstract class TaxRuleCountry implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`TAX_RULE_ID`': + case 'TAX_RULE_ID': $stmt->bindValue($identifier, $this->tax_rule_id, PDO::PARAM_INT); break; - case '`COUNTRY_ID`': + case 'COUNTRY_ID': $stmt->bindValue($identifier, $this->country_id, PDO::PARAM_INT); break; - case '`TAX_ID`': + case 'TAX_ID': $stmt->bindValue($identifier, $this->tax_id, PDO::PARAM_INT); break; - case '`POSITION`': + case 'POSITION': $stmt->bindValue($identifier, $this->position, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/TaxRuleCountryQuery.php b/core/lib/Thelia/Model/Base/TaxRuleCountryQuery.php index 02f5079af..5674643f7 100644 --- a/core/lib/Thelia/Model/Base/TaxRuleCountryQuery.php +++ b/core/lib/Thelia/Model/Base/TaxRuleCountryQuery.php @@ -155,7 +155,7 @@ abstract class TaxRuleCountryQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `TAX_RULE_ID`, `COUNTRY_ID`, `TAX_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `tax_rule_country` WHERE `TAX_RULE_ID` = :p0 AND `COUNTRY_ID` = :p1 AND `TAX_ID` = :p2'; + $sql = 'SELECT TAX_RULE_ID, COUNTRY_ID, TAX_ID, POSITION, CREATED_AT, UPDATED_AT FROM tax_rule_country WHERE TAX_RULE_ID = :p0 AND COUNTRY_ID = :p1 AND TAX_ID = :p2'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/TaxRuleI18n.php b/core/lib/Thelia/Model/Base/TaxRuleI18n.php index b28787f05..535195fb7 100644 --- a/core/lib/Thelia/Model/Base/TaxRuleI18n.php +++ b/core/lib/Thelia/Model/Base/TaxRuleI18n.php @@ -776,20 +776,20 @@ abstract class TaxRuleI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TaxRuleI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(TaxRuleI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(TaxRuleI18nTableMap::TITLE)) { - $modifiedColumns[':p' . $index++] = '`TITLE`'; + $modifiedColumns[':p' . $index++] = 'TITLE'; } if ($this->isColumnModified(TaxRuleI18nTableMap::DESCRIPTION)) { - $modifiedColumns[':p' . $index++] = '`DESCRIPTION`'; + $modifiedColumns[':p' . $index++] = 'DESCRIPTION'; } $sql = sprintf( - 'INSERT INTO `tax_rule_i18n` (%s) VALUES (%s)', + 'INSERT INTO tax_rule_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -798,16 +798,16 @@ abstract class TaxRuleI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`TITLE`': + case 'TITLE': $stmt->bindValue($identifier, $this->title, PDO::PARAM_STR); break; - case '`DESCRIPTION`': + case 'DESCRIPTION': $stmt->bindValue($identifier, $this->description, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/TaxRuleI18nQuery.php b/core/lib/Thelia/Model/Base/TaxRuleI18nQuery.php index 25ad51db5..dfb3e100c 100644 --- a/core/lib/Thelia/Model/Base/TaxRuleI18nQuery.php +++ b/core/lib/Thelia/Model/Base/TaxRuleI18nQuery.php @@ -139,7 +139,7 @@ abstract class TaxRuleI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `TITLE`, `DESCRIPTION` FROM `tax_rule_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, TITLE, DESCRIPTION FROM tax_rule_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/TaxRuleQuery.php b/core/lib/Thelia/Model/Base/TaxRuleQuery.php index 5d2743bfd..bc20c44b1 100644 --- a/core/lib/Thelia/Model/Base/TaxRuleQuery.php +++ b/core/lib/Thelia/Model/Base/TaxRuleQuery.php @@ -148,7 +148,7 @@ abstract class TaxRuleQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `IS_DEFAULT`, `CREATED_AT`, `UPDATED_AT` FROM `tax_rule` WHERE `ID` = :p0'; + $sql = 'SELECT ID, IS_DEFAULT, CREATED_AT, UPDATED_AT FROM tax_rule WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/Template.php b/core/lib/Thelia/Model/Base/Template.php index 922c9e5a4..fdb767c96 100644 --- a/core/lib/Thelia/Model/Base/Template.php +++ b/core/lib/Thelia/Model/Base/Template.php @@ -962,17 +962,17 @@ abstract class Template implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TemplateTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(TemplateTableMap::CREATED_AT)) { - $modifiedColumns[':p' . $index++] = '`CREATED_AT`'; + $modifiedColumns[':p' . $index++] = 'CREATED_AT'; } if ($this->isColumnModified(TemplateTableMap::UPDATED_AT)) { - $modifiedColumns[':p' . $index++] = '`UPDATED_AT`'; + $modifiedColumns[':p' . $index++] = 'UPDATED_AT'; } $sql = sprintf( - 'INSERT INTO `template` (%s) VALUES (%s)', + 'INSERT INTO template (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -981,13 +981,13 @@ abstract class Template implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`CREATED_AT`': + 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`': + case 'UPDATED_AT': $stmt->bindValue($identifier, $this->updated_at ? $this->updated_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/TemplateI18n.php b/core/lib/Thelia/Model/Base/TemplateI18n.php index 00f022d65..67ec21bc5 100644 --- a/core/lib/Thelia/Model/Base/TemplateI18n.php +++ b/core/lib/Thelia/Model/Base/TemplateI18n.php @@ -735,17 +735,17 @@ abstract class TemplateI18n implements ActiveRecordInterface // check the columns in natural order for more readable SQL queries if ($this->isColumnModified(TemplateI18nTableMap::ID)) { - $modifiedColumns[':p' . $index++] = '`ID`'; + $modifiedColumns[':p' . $index++] = 'ID'; } if ($this->isColumnModified(TemplateI18nTableMap::LOCALE)) { - $modifiedColumns[':p' . $index++] = '`LOCALE`'; + $modifiedColumns[':p' . $index++] = 'LOCALE'; } if ($this->isColumnModified(TemplateI18nTableMap::NAME)) { - $modifiedColumns[':p' . $index++] = '`NAME`'; + $modifiedColumns[':p' . $index++] = 'NAME'; } $sql = sprintf( - 'INSERT INTO `template_i18n` (%s) VALUES (%s)', + 'INSERT INTO template_i18n (%s) VALUES (%s)', implode(', ', $modifiedColumns), implode(', ', array_keys($modifiedColumns)) ); @@ -754,13 +754,13 @@ abstract class TemplateI18n implements ActiveRecordInterface $stmt = $con->prepare($sql); foreach ($modifiedColumns as $identifier => $columnName) { switch ($columnName) { - case '`ID`': + case 'ID': $stmt->bindValue($identifier, $this->id, PDO::PARAM_INT); break; - case '`LOCALE`': + case 'LOCALE': $stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR); break; - case '`NAME`': + case 'NAME': $stmt->bindValue($identifier, $this->name, PDO::PARAM_STR); break; } diff --git a/core/lib/Thelia/Model/Base/TemplateI18nQuery.php b/core/lib/Thelia/Model/Base/TemplateI18nQuery.php index 2607e770f..12e7b7d1f 100644 --- a/core/lib/Thelia/Model/Base/TemplateI18nQuery.php +++ b/core/lib/Thelia/Model/Base/TemplateI18nQuery.php @@ -135,7 +135,7 @@ abstract class TemplateI18nQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `LOCALE`, `NAME` FROM `template_i18n` WHERE `ID` = :p0 AND `LOCALE` = :p1'; + $sql = 'SELECT ID, LOCALE, NAME FROM template_i18n WHERE ID = :p0 AND LOCALE = :p1'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT); diff --git a/core/lib/Thelia/Model/Base/TemplateQuery.php b/core/lib/Thelia/Model/Base/TemplateQuery.php index f6821b35d..98c588dd8 100644 --- a/core/lib/Thelia/Model/Base/TemplateQuery.php +++ b/core/lib/Thelia/Model/Base/TemplateQuery.php @@ -148,7 +148,7 @@ abstract class TemplateQuery extends ModelCriteria */ protected function findPkSimple($key, $con) { - $sql = 'SELECT `ID`, `CREATED_AT`, `UPDATED_AT` FROM `template` WHERE `ID` = :p0'; + $sql = 'SELECT ID, CREATED_AT, UPDATED_AT FROM template WHERE ID = :p0'; try { $stmt = $con->prepare($sql); $stmt->bindValue(':p0', $key, PDO::PARAM_INT);