diff --git a/core/lib/Thelia/Config/Resources/export.xml b/core/lib/Thelia/Config/Resources/export.xml
new file mode 100644
index 000000000..3bacdca5a
--- /dev/null
+++ b/core/lib/Thelia/Config/Resources/export.xml
@@ -0,0 +1,26 @@
+
+
+
+ * $query->filterByRef('fooValue'); // WHERE ref = 'fooValue'
+ * $query->filterByRef('%fooValue%'); // WHERE ref LIKE '%fooValue%'
+ *
+ *
+ * @param string $ref The value to use as filter.
+ * Accepts wildcards (* and % trigger a LIKE)
+ * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
+ *
+ * @return ChildExportCategoryQuery The current query, for fluid interface
+ */
+ public function filterByRef($ref = null, $comparison = null)
+ {
+ if (null === $comparison) {
+ if (is_array($ref)) {
+ $comparison = Criteria::IN;
+ } elseif (preg_match('/[\%\*]/', $ref)) {
+ $ref = str_replace('*', '%', $ref);
+ $comparison = Criteria::LIKE;
+ }
+ }
+
+ return $this->addUsingAlias(ExportCategoryTableMap::REF, $ref, $comparison);
+ }
+
/**
* Filter the query on the position column
*
diff --git a/core/lib/Thelia/Model/Base/ExportQuery.php b/core/lib/Thelia/Model/Base/ExportQuery.php
index 65e266d73..73397efb2 100644
--- a/core/lib/Thelia/Model/Base/ExportQuery.php
+++ b/core/lib/Thelia/Model/Base/ExportQuery.php
@@ -23,16 +23,18 @@ use Thelia\Model\Map\ExportTableMap;
*
*
* @method ChildExportQuery orderById($order = Criteria::ASC) Order by the id column
+ * @method ChildExportQuery orderByRef($order = Criteria::ASC) Order by the ref column
* @method ChildExportQuery orderByExportCategoryId($order = Criteria::ASC) Order by the export_category_id column
* @method ChildExportQuery orderByPosition($order = Criteria::ASC) Order by the position column
- * @method ChildExportQuery orderByHandleclass($order = Criteria::ASC) Order by the handleClass column
+ * @method ChildExportQuery orderByHandleClass($order = Criteria::ASC) Order by the handle_class column
* @method ChildExportQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column
* @method ChildExportQuery orderByUpdatedAt($order = Criteria::ASC) Order by the updated_at column
*
* @method ChildExportQuery groupById() Group by the id column
+ * @method ChildExportQuery groupByRef() Group by the ref column
* @method ChildExportQuery groupByExportCategoryId() Group by the export_category_id column
* @method ChildExportQuery groupByPosition() Group by the position column
- * @method ChildExportQuery groupByHandleclass() Group by the handleClass column
+ * @method ChildExportQuery groupByHandleClass() Group by the handle_class column
* @method ChildExportQuery groupByCreatedAt() Group by the created_at column
* @method ChildExportQuery groupByUpdatedAt() Group by the updated_at column
*
@@ -52,16 +54,18 @@ use Thelia\Model\Map\ExportTableMap;
* @method ChildExport findOneOrCreate(ConnectionInterface $con = null) Return the first ChildExport matching the query, or a new ChildExport object populated from the query conditions when no match is found
*
* @method ChildExport findOneById(int $id) Return the first ChildExport filtered by the id column
+ * @method ChildExport findOneByRef(string $ref) Return the first ChildExport filtered by the ref column
* @method ChildExport findOneByExportCategoryId(int $export_category_id) Return the first ChildExport filtered by the export_category_id column
* @method ChildExport findOneByPosition(int $position) Return the first ChildExport filtered by the position column
- * @method ChildExport findOneByHandleclass(string $handleClass) Return the first ChildExport filtered by the handleClass column
+ * @method ChildExport findOneByHandleClass(string $handle_class) Return the first ChildExport filtered by the handle_class column
* @method ChildExport findOneByCreatedAt(string $created_at) Return the first ChildExport filtered by the created_at column
* @method ChildExport findOneByUpdatedAt(string $updated_at) Return the first ChildExport filtered by the updated_at column
*
* @method array findById(int $id) Return ChildExport objects filtered by the id column
+ * @method array findByRef(string $ref) Return ChildExport objects filtered by the ref column
* @method array findByExportCategoryId(int $export_category_id) Return ChildExport objects filtered by the export_category_id column
* @method array findByPosition(int $position) Return ChildExport objects filtered by the position column
- * @method array findByHandleclass(string $handleClass) Return ChildExport objects filtered by the handleClass column
+ * @method array findByHandleClass(string $handle_class) Return ChildExport objects filtered by the handle_class column
* @method array findByCreatedAt(string $created_at) Return ChildExport objects filtered by the created_at column
* @method array findByUpdatedAt(string $updated_at) Return ChildExport objects filtered by the updated_at column
*
@@ -152,7 +156,7 @@ abstract class ExportQuery extends ModelCriteria
*/
protected function findPkSimple($key, $con)
{
- $sql = 'SELECT `ID`, `EXPORT_CATEGORY_ID`, `POSITION`, `HANDLECLASS`, `CREATED_AT`, `UPDATED_AT` FROM `export` WHERE `ID` = :p0';
+ $sql = 'SELECT `ID`, `REF`, `EXPORT_CATEGORY_ID`, `POSITION`, `HANDLE_CLASS`, `CREATED_AT`, `UPDATED_AT` FROM `export` WHERE `ID` = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
@@ -282,6 +286,35 @@ abstract class ExportQuery extends ModelCriteria
return $this->addUsingAlias(ExportTableMap::ID, $id, $comparison);
}
+ /**
+ * Filter the query on the ref column
+ *
+ * Example usage:
+ *
+ * $query->filterByRef('fooValue'); // WHERE ref = 'fooValue'
+ * $query->filterByRef('%fooValue%'); // WHERE ref LIKE '%fooValue%'
+ *
+ *
+ * @param string $ref The value to use as filter.
+ * Accepts wildcards (* and % trigger a LIKE)
+ * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
+ *
+ * @return ChildExportQuery The current query, for fluid interface
+ */
+ public function filterByRef($ref = null, $comparison = null)
+ {
+ if (null === $comparison) {
+ if (is_array($ref)) {
+ $comparison = Criteria::IN;
+ } elseif (preg_match('/[\%\*]/', $ref)) {
+ $ref = str_replace('*', '%', $ref);
+ $comparison = Criteria::LIKE;
+ }
+ }
+
+ return $this->addUsingAlias(ExportTableMap::REF, $ref, $comparison);
+ }
+
/**
* Filter the query on the export_category_id column
*
@@ -367,32 +400,32 @@ abstract class ExportQuery extends ModelCriteria
}
/**
- * Filter the query on the handleClass column
+ * Filter the query on the handle_class column
*
* Example usage:
*
- * $query->filterByHandleclass('fooValue'); // WHERE handleClass = 'fooValue'
- * $query->filterByHandleclass('%fooValue%'); // WHERE handleClass LIKE '%fooValue%'
+ * $query->filterByHandleClass('fooValue'); // WHERE handle_class = 'fooValue'
+ * $query->filterByHandleClass('%fooValue%'); // WHERE handle_class LIKE '%fooValue%'
*
*
- * @param string $handleclass The value to use as filter.
+ * @param string $handleClass The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return ChildExportQuery The current query, for fluid interface
*/
- public function filterByHandleclass($handleclass = null, $comparison = null)
+ public function filterByHandleClass($handleClass = null, $comparison = null)
{
if (null === $comparison) {
- if (is_array($handleclass)) {
+ if (is_array($handleClass)) {
$comparison = Criteria::IN;
- } elseif (preg_match('/[\%\*]/', $handleclass)) {
- $handleclass = str_replace('*', '%', $handleclass);
+ } elseif (preg_match('/[\%\*]/', $handleClass)) {
+ $handleClass = str_replace('*', '%', $handleClass);
$comparison = Criteria::LIKE;
}
}
- return $this->addUsingAlias(ExportTableMap::HANDLECLASS, $handleclass, $comparison);
+ return $this->addUsingAlias(ExportTableMap::HANDLE_CLASS, $handleClass, $comparison);
}
/**
diff --git a/core/lib/Thelia/Model/Base/Import.php b/core/lib/Thelia/Model/Base/Import.php
index 180125c2e..0b65b3867 100644
--- a/core/lib/Thelia/Model/Base/Import.php
+++ b/core/lib/Thelia/Model/Base/Import.php
@@ -65,6 +65,12 @@ abstract class Import implements ActiveRecordInterface
*/
protected $id;
+ /**
+ * The value for the ref field.
+ * @var string
+ */
+ protected $ref;
+
/**
* The value for the import_category_id field.
* @var int
@@ -78,10 +84,10 @@ abstract class Import implements ActiveRecordInterface
protected $position;
/**
- * The value for the handleclass field.
+ * The value for the handle_class field.
* @var string
*/
- protected $handleclass;
+ protected $handle_class;
/**
* The value for the created_at field.
@@ -403,6 +409,17 @@ abstract class Import implements ActiveRecordInterface
return $this->id;
}
+ /**
+ * Get the [ref] column value.
+ *
+ * @return string
+ */
+ public function getRef()
+ {
+
+ return $this->ref;
+ }
+
/**
* Get the [import_category_id] column value.
*
@@ -426,14 +443,14 @@ abstract class Import implements ActiveRecordInterface
}
/**
- * Get the [handleclass] column value.
+ * Get the [handle_class] column value.
*
* @return string
*/
- public function getHandleclass()
+ public function getHandleClass()
{
- return $this->handleclass;
+ return $this->handle_class;
}
/**
@@ -497,6 +514,27 @@ abstract class Import implements ActiveRecordInterface
return $this;
} // setId()
+ /**
+ * Set the value of [ref] column.
+ *
+ * @param string $v new value
+ * @return \Thelia\Model\Import The current object (for fluent API support)
+ */
+ public function setRef($v)
+ {
+ if ($v !== null) {
+ $v = (string) $v;
+ }
+
+ if ($this->ref !== $v) {
+ $this->ref = $v;
+ $this->modifiedColumns[ImportTableMap::REF] = true;
+ }
+
+
+ return $this;
+ } // setRef()
+
/**
* Set the value of [import_category_id] column.
*
@@ -544,25 +582,25 @@ abstract class Import implements ActiveRecordInterface
} // setPosition()
/**
- * Set the value of [handleclass] column.
+ * Set the value of [handle_class] column.
*
* @param string $v new value
* @return \Thelia\Model\Import The current object (for fluent API support)
*/
- public function setHandleclass($v)
+ public function setHandleClass($v)
{
if ($v !== null) {
$v = (string) $v;
}
- if ($this->handleclass !== $v) {
- $this->handleclass = $v;
- $this->modifiedColumns[ImportTableMap::HANDLECLASS] = true;
+ if ($this->handle_class !== $v) {
+ $this->handle_class = $v;
+ $this->modifiedColumns[ImportTableMap::HANDLE_CLASS] = true;
}
return $this;
- } // setHandleclass()
+ } // setHandleClass()
/**
* Sets the value of [created_at] column to a normalized version of the date/time value specified.
@@ -646,22 +684,25 @@ abstract class Import implements ActiveRecordInterface
$col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ImportTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)];
$this->id = (null !== $col) ? (int) $col : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ImportTableMap::translateFieldName('ImportCategoryId', TableMap::TYPE_PHPNAME, $indexType)];
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ImportTableMap::translateFieldName('Ref', TableMap::TYPE_PHPNAME, $indexType)];
+ $this->ref = (null !== $col) ? (string) $col : null;
+
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ImportTableMap::translateFieldName('ImportCategoryId', TableMap::TYPE_PHPNAME, $indexType)];
$this->import_category_id = (null !== $col) ? (int) $col : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ImportTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)];
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ImportTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)];
$this->position = (null !== $col) ? (int) $col : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ImportTableMap::translateFieldName('Handleclass', TableMap::TYPE_PHPNAME, $indexType)];
- $this->handleclass = (null !== $col) ? (string) $col : null;
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ImportTableMap::translateFieldName('HandleClass', TableMap::TYPE_PHPNAME, $indexType)];
+ $this->handle_class = (null !== $col) ? (string) $col : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ImportTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)];
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : ImportTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)];
if ($col === '0000-00-00 00:00:00') {
$col = null;
}
$this->created_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : ImportTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 6 + $startcol : ImportTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
if ($col === '0000-00-00 00:00:00') {
$col = null;
}
@@ -674,7 +715,7 @@ abstract class Import implements ActiveRecordInterface
$this->ensureConsistency();
}
- return $startcol + 6; // 6 = ImportTableMap::NUM_HYDRATE_COLUMNS.
+ return $startcol + 7; // 7 = ImportTableMap::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating \Thelia\Model\Import object", 0, $e);
@@ -932,14 +973,17 @@ abstract class Import implements ActiveRecordInterface
if ($this->isColumnModified(ImportTableMap::ID)) {
$modifiedColumns[':p' . $index++] = '`ID`';
}
+ if ($this->isColumnModified(ImportTableMap::REF)) {
+ $modifiedColumns[':p' . $index++] = '`REF`';
+ }
if ($this->isColumnModified(ImportTableMap::IMPORT_CATEGORY_ID)) {
$modifiedColumns[':p' . $index++] = '`IMPORT_CATEGORY_ID`';
}
if ($this->isColumnModified(ImportTableMap::POSITION)) {
$modifiedColumns[':p' . $index++] = '`POSITION`';
}
- if ($this->isColumnModified(ImportTableMap::HANDLECLASS)) {
- $modifiedColumns[':p' . $index++] = '`HANDLECLASS`';
+ if ($this->isColumnModified(ImportTableMap::HANDLE_CLASS)) {
+ $modifiedColumns[':p' . $index++] = '`HANDLE_CLASS`';
}
if ($this->isColumnModified(ImportTableMap::CREATED_AT)) {
$modifiedColumns[':p' . $index++] = '`CREATED_AT`';
@@ -961,14 +1005,17 @@ abstract class Import implements ActiveRecordInterface
case '`ID`':
$stmt->bindValue($identifier, $this->id, PDO::PARAM_INT);
break;
+ case '`REF`':
+ $stmt->bindValue($identifier, $this->ref, PDO::PARAM_STR);
+ break;
case '`IMPORT_CATEGORY_ID`':
$stmt->bindValue($identifier, $this->import_category_id, PDO::PARAM_INT);
break;
case '`POSITION`':
$stmt->bindValue($identifier, $this->position, PDO::PARAM_INT);
break;
- case '`HANDLECLASS`':
- $stmt->bindValue($identifier, $this->handleclass, PDO::PARAM_STR);
+ case '`HANDLE_CLASS`':
+ $stmt->bindValue($identifier, $this->handle_class, PDO::PARAM_STR);
break;
case '`CREATED_AT`':
$stmt->bindValue($identifier, $this->created_at ? $this->created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
@@ -1042,18 +1089,21 @@ abstract class Import implements ActiveRecordInterface
return $this->getId();
break;
case 1:
- return $this->getImportCategoryId();
+ return $this->getRef();
break;
case 2:
- return $this->getPosition();
+ return $this->getImportCategoryId();
break;
case 3:
- return $this->getHandleclass();
+ return $this->getPosition();
break;
case 4:
- return $this->getCreatedAt();
+ return $this->getHandleClass();
break;
case 5:
+ return $this->getCreatedAt();
+ break;
+ case 6:
return $this->getUpdatedAt();
break;
default:
@@ -1086,11 +1136,12 @@ abstract class Import implements ActiveRecordInterface
$keys = ImportTableMap::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getId(),
- $keys[1] => $this->getImportCategoryId(),
- $keys[2] => $this->getPosition(),
- $keys[3] => $this->getHandleclass(),
- $keys[4] => $this->getCreatedAt(),
- $keys[5] => $this->getUpdatedAt(),
+ $keys[1] => $this->getRef(),
+ $keys[2] => $this->getImportCategoryId(),
+ $keys[3] => $this->getPosition(),
+ $keys[4] => $this->getHandleClass(),
+ $keys[5] => $this->getCreatedAt(),
+ $keys[6] => $this->getUpdatedAt(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
@@ -1142,18 +1193,21 @@ abstract class Import implements ActiveRecordInterface
$this->setId($value);
break;
case 1:
- $this->setImportCategoryId($value);
+ $this->setRef($value);
break;
case 2:
- $this->setPosition($value);
+ $this->setImportCategoryId($value);
break;
case 3:
- $this->setHandleclass($value);
+ $this->setPosition($value);
break;
case 4:
- $this->setCreatedAt($value);
+ $this->setHandleClass($value);
break;
case 5:
+ $this->setCreatedAt($value);
+ break;
+ case 6:
$this->setUpdatedAt($value);
break;
} // switch()
@@ -1181,11 +1235,12 @@ abstract class Import implements ActiveRecordInterface
$keys = ImportTableMap::getFieldNames($keyType);
if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
- if (array_key_exists($keys[1], $arr)) $this->setImportCategoryId($arr[$keys[1]]);
- if (array_key_exists($keys[2], $arr)) $this->setPosition($arr[$keys[2]]);
- if (array_key_exists($keys[3], $arr)) $this->setHandleclass($arr[$keys[3]]);
- if (array_key_exists($keys[4], $arr)) $this->setCreatedAt($arr[$keys[4]]);
- if (array_key_exists($keys[5], $arr)) $this->setUpdatedAt($arr[$keys[5]]);
+ if (array_key_exists($keys[1], $arr)) $this->setRef($arr[$keys[1]]);
+ if (array_key_exists($keys[2], $arr)) $this->setImportCategoryId($arr[$keys[2]]);
+ if (array_key_exists($keys[3], $arr)) $this->setPosition($arr[$keys[3]]);
+ if (array_key_exists($keys[4], $arr)) $this->setHandleClass($arr[$keys[4]]);
+ if (array_key_exists($keys[5], $arr)) $this->setCreatedAt($arr[$keys[5]]);
+ if (array_key_exists($keys[6], $arr)) $this->setUpdatedAt($arr[$keys[6]]);
}
/**
@@ -1198,9 +1253,10 @@ abstract class Import implements ActiveRecordInterface
$criteria = new Criteria(ImportTableMap::DATABASE_NAME);
if ($this->isColumnModified(ImportTableMap::ID)) $criteria->add(ImportTableMap::ID, $this->id);
+ if ($this->isColumnModified(ImportTableMap::REF)) $criteria->add(ImportTableMap::REF, $this->ref);
if ($this->isColumnModified(ImportTableMap::IMPORT_CATEGORY_ID)) $criteria->add(ImportTableMap::IMPORT_CATEGORY_ID, $this->import_category_id);
if ($this->isColumnModified(ImportTableMap::POSITION)) $criteria->add(ImportTableMap::POSITION, $this->position);
- if ($this->isColumnModified(ImportTableMap::HANDLECLASS)) $criteria->add(ImportTableMap::HANDLECLASS, $this->handleclass);
+ if ($this->isColumnModified(ImportTableMap::HANDLE_CLASS)) $criteria->add(ImportTableMap::HANDLE_CLASS, $this->handle_class);
if ($this->isColumnModified(ImportTableMap::CREATED_AT)) $criteria->add(ImportTableMap::CREATED_AT, $this->created_at);
if ($this->isColumnModified(ImportTableMap::UPDATED_AT)) $criteria->add(ImportTableMap::UPDATED_AT, $this->updated_at);
@@ -1266,9 +1322,10 @@ abstract class Import implements ActiveRecordInterface
*/
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{
+ $copyObj->setRef($this->getRef());
$copyObj->setImportCategoryId($this->getImportCategoryId());
$copyObj->setPosition($this->getPosition());
- $copyObj->setHandleclass($this->getHandleclass());
+ $copyObj->setHandleClass($this->getHandleClass());
$copyObj->setCreatedAt($this->getCreatedAt());
$copyObj->setUpdatedAt($this->getUpdatedAt());
@@ -1611,9 +1668,10 @@ abstract class Import implements ActiveRecordInterface
public function clear()
{
$this->id = null;
+ $this->ref = null;
$this->import_category_id = null;
$this->position = null;
- $this->handleclass = null;
+ $this->handle_class = null;
$this->created_at = null;
$this->updated_at = null;
$this->alreadyInSave = false;
diff --git a/core/lib/Thelia/Model/Base/ImportCategory.php b/core/lib/Thelia/Model/Base/ImportCategory.php
index 83f3f2810..2822e810b 100644
--- a/core/lib/Thelia/Model/Base/ImportCategory.php
+++ b/core/lib/Thelia/Model/Base/ImportCategory.php
@@ -65,6 +65,12 @@ abstract class ImportCategory implements ActiveRecordInterface
*/
protected $id;
+ /**
+ * The value for the ref field.
+ * @var string
+ */
+ protected $ref;
+
/**
* The value for the position field.
* @var int
@@ -398,6 +404,17 @@ abstract class ImportCategory implements ActiveRecordInterface
return $this->id;
}
+ /**
+ * Get the [ref] column value.
+ *
+ * @return string
+ */
+ public function getRef()
+ {
+
+ return $this->ref;
+ }
+
/**
* Get the [position] column value.
*
@@ -470,6 +487,27 @@ abstract class ImportCategory implements ActiveRecordInterface
return $this;
} // setId()
+ /**
+ * Set the value of [ref] column.
+ *
+ * @param string $v new value
+ * @return \Thelia\Model\ImportCategory The current object (for fluent API support)
+ */
+ public function setRef($v)
+ {
+ if ($v !== null) {
+ $v = (string) $v;
+ }
+
+ if ($this->ref !== $v) {
+ $this->ref = $v;
+ $this->modifiedColumns[ImportCategoryTableMap::REF] = true;
+ }
+
+
+ return $this;
+ } // setRef()
+
/**
* Set the value of [position] column.
*
@@ -573,16 +611,19 @@ abstract class ImportCategory implements ActiveRecordInterface
$col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : ImportCategoryTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)];
$this->id = (null !== $col) ? (int) $col : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ImportCategoryTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)];
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : ImportCategoryTableMap::translateFieldName('Ref', TableMap::TYPE_PHPNAME, $indexType)];
+ $this->ref = (null !== $col) ? (string) $col : null;
+
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ImportCategoryTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)];
$this->position = (null !== $col) ? (int) $col : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ImportCategoryTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)];
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ImportCategoryTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)];
if ($col === '0000-00-00 00:00:00') {
$col = null;
}
$this->created_at = (null !== $col) ? PropelDateTime::newInstance($col, null, '\DateTime') : null;
- $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ImportCategoryTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
+ $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ImportCategoryTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
if ($col === '0000-00-00 00:00:00') {
$col = null;
}
@@ -595,7 +636,7 @@ abstract class ImportCategory implements ActiveRecordInterface
$this->ensureConsistency();
}
- return $startcol + 4; // 4 = ImportCategoryTableMap::NUM_HYDRATE_COLUMNS.
+ return $startcol + 5; // 5 = ImportCategoryTableMap::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating \Thelia\Model\ImportCategory object", 0, $e);
@@ -856,6 +897,9 @@ abstract class ImportCategory implements ActiveRecordInterface
if ($this->isColumnModified(ImportCategoryTableMap::ID)) {
$modifiedColumns[':p' . $index++] = '`ID`';
}
+ if ($this->isColumnModified(ImportCategoryTableMap::REF)) {
+ $modifiedColumns[':p' . $index++] = '`REF`';
+ }
if ($this->isColumnModified(ImportCategoryTableMap::POSITION)) {
$modifiedColumns[':p' . $index++] = '`POSITION`';
}
@@ -879,6 +923,9 @@ abstract class ImportCategory implements ActiveRecordInterface
case '`ID`':
$stmt->bindValue($identifier, $this->id, PDO::PARAM_INT);
break;
+ case '`REF`':
+ $stmt->bindValue($identifier, $this->ref, PDO::PARAM_STR);
+ break;
case '`POSITION`':
$stmt->bindValue($identifier, $this->position, PDO::PARAM_INT);
break;
@@ -954,12 +1001,15 @@ abstract class ImportCategory implements ActiveRecordInterface
return $this->getId();
break;
case 1:
- return $this->getPosition();
+ return $this->getRef();
break;
case 2:
- return $this->getCreatedAt();
+ return $this->getPosition();
break;
case 3:
+ return $this->getCreatedAt();
+ break;
+ case 4:
return $this->getUpdatedAt();
break;
default:
@@ -992,9 +1042,10 @@ abstract class ImportCategory implements ActiveRecordInterface
$keys = ImportCategoryTableMap::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getId(),
- $keys[1] => $this->getPosition(),
- $keys[2] => $this->getCreatedAt(),
- $keys[3] => $this->getUpdatedAt(),
+ $keys[1] => $this->getRef(),
+ $keys[2] => $this->getPosition(),
+ $keys[3] => $this->getCreatedAt(),
+ $keys[4] => $this->getUpdatedAt(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
@@ -1046,12 +1097,15 @@ abstract class ImportCategory implements ActiveRecordInterface
$this->setId($value);
break;
case 1:
- $this->setPosition($value);
+ $this->setRef($value);
break;
case 2:
- $this->setCreatedAt($value);
+ $this->setPosition($value);
break;
case 3:
+ $this->setCreatedAt($value);
+ break;
+ case 4:
$this->setUpdatedAt($value);
break;
} // switch()
@@ -1079,9 +1133,10 @@ abstract class ImportCategory implements ActiveRecordInterface
$keys = ImportCategoryTableMap::getFieldNames($keyType);
if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
- if (array_key_exists($keys[1], $arr)) $this->setPosition($arr[$keys[1]]);
- if (array_key_exists($keys[2], $arr)) $this->setCreatedAt($arr[$keys[2]]);
- if (array_key_exists($keys[3], $arr)) $this->setUpdatedAt($arr[$keys[3]]);
+ if (array_key_exists($keys[1], $arr)) $this->setRef($arr[$keys[1]]);
+ if (array_key_exists($keys[2], $arr)) $this->setPosition($arr[$keys[2]]);
+ if (array_key_exists($keys[3], $arr)) $this->setCreatedAt($arr[$keys[3]]);
+ if (array_key_exists($keys[4], $arr)) $this->setUpdatedAt($arr[$keys[4]]);
}
/**
@@ -1094,6 +1149,7 @@ abstract class ImportCategory implements ActiveRecordInterface
$criteria = new Criteria(ImportCategoryTableMap::DATABASE_NAME);
if ($this->isColumnModified(ImportCategoryTableMap::ID)) $criteria->add(ImportCategoryTableMap::ID, $this->id);
+ if ($this->isColumnModified(ImportCategoryTableMap::REF)) $criteria->add(ImportCategoryTableMap::REF, $this->ref);
if ($this->isColumnModified(ImportCategoryTableMap::POSITION)) $criteria->add(ImportCategoryTableMap::POSITION, $this->position);
if ($this->isColumnModified(ImportCategoryTableMap::CREATED_AT)) $criteria->add(ImportCategoryTableMap::CREATED_AT, $this->created_at);
if ($this->isColumnModified(ImportCategoryTableMap::UPDATED_AT)) $criteria->add(ImportCategoryTableMap::UPDATED_AT, $this->updated_at);
@@ -1160,6 +1216,7 @@ abstract class ImportCategory implements ActiveRecordInterface
*/
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{
+ $copyObj->setRef($this->getRef());
$copyObj->setPosition($this->getPosition());
$copyObj->setCreatedAt($this->getCreatedAt());
$copyObj->setUpdatedAt($this->getUpdatedAt());
@@ -1679,6 +1736,7 @@ abstract class ImportCategory implements ActiveRecordInterface
public function clear()
{
$this->id = null;
+ $this->ref = null;
$this->position = null;
$this->created_at = null;
$this->updated_at = null;
diff --git a/core/lib/Thelia/Model/Base/ImportCategoryQuery.php b/core/lib/Thelia/Model/Base/ImportCategoryQuery.php
index 9c00639ad..a9dd3115c 100644
--- a/core/lib/Thelia/Model/Base/ImportCategoryQuery.php
+++ b/core/lib/Thelia/Model/Base/ImportCategoryQuery.php
@@ -23,11 +23,13 @@ use Thelia\Model\Map\ImportCategoryTableMap;
*
*
* @method ChildImportCategoryQuery orderById($order = Criteria::ASC) Order by the id column
+ * @method ChildImportCategoryQuery orderByRef($order = Criteria::ASC) Order by the ref column
* @method ChildImportCategoryQuery orderByPosition($order = Criteria::ASC) Order by the position column
* @method ChildImportCategoryQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column
* @method ChildImportCategoryQuery orderByUpdatedAt($order = Criteria::ASC) Order by the updated_at column
*
* @method ChildImportCategoryQuery groupById() Group by the id column
+ * @method ChildImportCategoryQuery groupByRef() Group by the ref column
* @method ChildImportCategoryQuery groupByPosition() Group by the position column
* @method ChildImportCategoryQuery groupByCreatedAt() Group by the created_at column
* @method ChildImportCategoryQuery groupByUpdatedAt() Group by the updated_at column
@@ -48,11 +50,13 @@ use Thelia\Model\Map\ImportCategoryTableMap;
* @method ChildImportCategory findOneOrCreate(ConnectionInterface $con = null) Return the first ChildImportCategory matching the query, or a new ChildImportCategory object populated from the query conditions when no match is found
*
* @method ChildImportCategory findOneById(int $id) Return the first ChildImportCategory filtered by the id column
+ * @method ChildImportCategory findOneByRef(string $ref) Return the first ChildImportCategory filtered by the ref column
* @method ChildImportCategory findOneByPosition(int $position) Return the first ChildImportCategory filtered by the position column
* @method ChildImportCategory findOneByCreatedAt(string $created_at) Return the first ChildImportCategory filtered by the created_at column
* @method ChildImportCategory findOneByUpdatedAt(string $updated_at) Return the first ChildImportCategory filtered by the updated_at column
*
* @method array findById(int $id) Return ChildImportCategory objects filtered by the id column
+ * @method array findByRef(string $ref) Return ChildImportCategory objects filtered by the ref column
* @method array findByPosition(int $position) Return ChildImportCategory objects filtered by the position column
* @method array findByCreatedAt(string $created_at) Return ChildImportCategory objects filtered by the created_at column
* @method array findByUpdatedAt(string $updated_at) Return ChildImportCategory objects filtered by the updated_at column
@@ -144,7 +148,7 @@ abstract class ImportCategoryQuery extends ModelCriteria
*/
protected function findPkSimple($key, $con)
{
- $sql = 'SELECT `ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `import_category` WHERE `ID` = :p0';
+ $sql = 'SELECT `ID`, `REF`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `import_category` WHERE `ID` = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
@@ -274,6 +278,35 @@ abstract class ImportCategoryQuery extends ModelCriteria
return $this->addUsingAlias(ImportCategoryTableMap::ID, $id, $comparison);
}
+ /**
+ * Filter the query on the ref column
+ *
+ * Example usage:
+ *
+ * $query->filterByRef('fooValue'); // WHERE ref = 'fooValue'
+ * $query->filterByRef('%fooValue%'); // WHERE ref LIKE '%fooValue%'
+ *
+ *
+ * @param string $ref The value to use as filter.
+ * Accepts wildcards (* and % trigger a LIKE)
+ * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
+ *
+ * @return ChildImportCategoryQuery The current query, for fluid interface
+ */
+ public function filterByRef($ref = null, $comparison = null)
+ {
+ if (null === $comparison) {
+ if (is_array($ref)) {
+ $comparison = Criteria::IN;
+ } elseif (preg_match('/[\%\*]/', $ref)) {
+ $ref = str_replace('*', '%', $ref);
+ $comparison = Criteria::LIKE;
+ }
+ }
+
+ return $this->addUsingAlias(ImportCategoryTableMap::REF, $ref, $comparison);
+ }
+
/**
* Filter the query on the position column
*
diff --git a/core/lib/Thelia/Model/Base/ImportQuery.php b/core/lib/Thelia/Model/Base/ImportQuery.php
index 883783ebb..434952923 100644
--- a/core/lib/Thelia/Model/Base/ImportQuery.php
+++ b/core/lib/Thelia/Model/Base/ImportQuery.php
@@ -23,16 +23,18 @@ use Thelia\Model\Map\ImportTableMap;
*
*
* @method ChildImportQuery orderById($order = Criteria::ASC) Order by the id column
+ * @method ChildImportQuery orderByRef($order = Criteria::ASC) Order by the ref column
* @method ChildImportQuery orderByImportCategoryId($order = Criteria::ASC) Order by the import_category_id column
* @method ChildImportQuery orderByPosition($order = Criteria::ASC) Order by the position column
- * @method ChildImportQuery orderByHandleclass($order = Criteria::ASC) Order by the handleClass column
+ * @method ChildImportQuery orderByHandleClass($order = Criteria::ASC) Order by the handle_class column
* @method ChildImportQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column
* @method ChildImportQuery orderByUpdatedAt($order = Criteria::ASC) Order by the updated_at column
*
* @method ChildImportQuery groupById() Group by the id column
+ * @method ChildImportQuery groupByRef() Group by the ref column
* @method ChildImportQuery groupByImportCategoryId() Group by the import_category_id column
* @method ChildImportQuery groupByPosition() Group by the position column
- * @method ChildImportQuery groupByHandleclass() Group by the handleClass column
+ * @method ChildImportQuery groupByHandleClass() Group by the handle_class column
* @method ChildImportQuery groupByCreatedAt() Group by the created_at column
* @method ChildImportQuery groupByUpdatedAt() Group by the updated_at column
*
@@ -52,16 +54,18 @@ use Thelia\Model\Map\ImportTableMap;
* @method ChildImport findOneOrCreate(ConnectionInterface $con = null) Return the first ChildImport matching the query, or a new ChildImport object populated from the query conditions when no match is found
*
* @method ChildImport findOneById(int $id) Return the first ChildImport filtered by the id column
+ * @method ChildImport findOneByRef(string $ref) Return the first ChildImport filtered by the ref column
* @method ChildImport findOneByImportCategoryId(int $import_category_id) Return the first ChildImport filtered by the import_category_id column
* @method ChildImport findOneByPosition(int $position) Return the first ChildImport filtered by the position column
- * @method ChildImport findOneByHandleclass(string $handleClass) Return the first ChildImport filtered by the handleClass column
+ * @method ChildImport findOneByHandleClass(string $handle_class) Return the first ChildImport filtered by the handle_class column
* @method ChildImport findOneByCreatedAt(string $created_at) Return the first ChildImport filtered by the created_at column
* @method ChildImport findOneByUpdatedAt(string $updated_at) Return the first ChildImport filtered by the updated_at column
*
* @method array findById(int $id) Return ChildImport objects filtered by the id column
+ * @method array findByRef(string $ref) Return ChildImport objects filtered by the ref column
* @method array findByImportCategoryId(int $import_category_id) Return ChildImport objects filtered by the import_category_id column
* @method array findByPosition(int $position) Return ChildImport objects filtered by the position column
- * @method array findByHandleclass(string $handleClass) Return ChildImport objects filtered by the handleClass column
+ * @method array findByHandleClass(string $handle_class) Return ChildImport objects filtered by the handle_class column
* @method array findByCreatedAt(string $created_at) Return ChildImport objects filtered by the created_at column
* @method array findByUpdatedAt(string $updated_at) Return ChildImport objects filtered by the updated_at column
*
@@ -152,7 +156,7 @@ abstract class ImportQuery extends ModelCriteria
*/
protected function findPkSimple($key, $con)
{
- $sql = 'SELECT `ID`, `IMPORT_CATEGORY_ID`, `POSITION`, `HANDLECLASS`, `CREATED_AT`, `UPDATED_AT` FROM `import` WHERE `ID` = :p0';
+ $sql = 'SELECT `ID`, `REF`, `IMPORT_CATEGORY_ID`, `POSITION`, `HANDLE_CLASS`, `CREATED_AT`, `UPDATED_AT` FROM `import` WHERE `ID` = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
@@ -282,6 +286,35 @@ abstract class ImportQuery extends ModelCriteria
return $this->addUsingAlias(ImportTableMap::ID, $id, $comparison);
}
+ /**
+ * Filter the query on the ref column
+ *
+ * Example usage:
+ *
+ * $query->filterByRef('fooValue'); // WHERE ref = 'fooValue'
+ * $query->filterByRef('%fooValue%'); // WHERE ref LIKE '%fooValue%'
+ *
+ *
+ * @param string $ref The value to use as filter.
+ * Accepts wildcards (* and % trigger a LIKE)
+ * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
+ *
+ * @return ChildImportQuery The current query, for fluid interface
+ */
+ public function filterByRef($ref = null, $comparison = null)
+ {
+ if (null === $comparison) {
+ if (is_array($ref)) {
+ $comparison = Criteria::IN;
+ } elseif (preg_match('/[\%\*]/', $ref)) {
+ $ref = str_replace('*', '%', $ref);
+ $comparison = Criteria::LIKE;
+ }
+ }
+
+ return $this->addUsingAlias(ImportTableMap::REF, $ref, $comparison);
+ }
+
/**
* Filter the query on the import_category_id column
*
@@ -367,32 +400,32 @@ abstract class ImportQuery extends ModelCriteria
}
/**
- * Filter the query on the handleClass column
+ * Filter the query on the handle_class column
*
* Example usage:
*
- * $query->filterByHandleclass('fooValue'); // WHERE handleClass = 'fooValue'
- * $query->filterByHandleclass('%fooValue%'); // WHERE handleClass LIKE '%fooValue%'
+ * $query->filterByHandleClass('fooValue'); // WHERE handle_class = 'fooValue'
+ * $query->filterByHandleClass('%fooValue%'); // WHERE handle_class LIKE '%fooValue%'
*
*
- * @param string $handleclass The value to use as filter.
+ * @param string $handleClass The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return ChildImportQuery The current query, for fluid interface
*/
- public function filterByHandleclass($handleclass = null, $comparison = null)
+ public function filterByHandleClass($handleClass = null, $comparison = null)
{
if (null === $comparison) {
- if (is_array($handleclass)) {
+ if (is_array($handleClass)) {
$comparison = Criteria::IN;
- } elseif (preg_match('/[\%\*]/', $handleclass)) {
- $handleclass = str_replace('*', '%', $handleclass);
+ } elseif (preg_match('/[\%\*]/', $handleClass)) {
+ $handleClass = str_replace('*', '%', $handleClass);
$comparison = Criteria::LIKE;
}
}
- return $this->addUsingAlias(ImportTableMap::HANDLECLASS, $handleclass, $comparison);
+ return $this->addUsingAlias(ImportTableMap::HANDLE_CLASS, $handleClass, $comparison);
}
/**
diff --git a/core/lib/Thelia/Model/Export.php b/core/lib/Thelia/Model/Export.php
index f71dad85d..f07fbfeaf 100644
--- a/core/lib/Thelia/Model/Export.php
+++ b/core/lib/Thelia/Model/Export.php
@@ -5,12 +5,16 @@ namespace Thelia\Model;
use Propel\Runtime\ActiveQuery\Criteria;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Thelia\Core\Translation\Translator;
+use Thelia\ImportExport\DocumentsExportInterface;
use Thelia\ImportExport\ExportHandler;
+use Thelia\ImportExport\ImagesExportInterface;
use Thelia\Model\Base\Export as BaseExport;
use Thelia\Model\Map\ExportTableMap;
class Export extends BaseExport
{
+ protected static $cache;
+
public function upPosition()
{
@@ -75,8 +79,25 @@ class Export extends BaseExport
$this->setPosition($position)->save();
}
+ public function setPositionToLast()
+ {
+ $max = ExportQuery::create()
+ ->orderByPosition(Criteria::DESC)
+ ->select(ExportTableMap::POSITION)
+ ->findOne()
+ ;
+
+ if (null === $max) {
+ $this->setPosition(1);
+ } else {
+ $this->setPosition($max+1);
+ }
+
+ return $this;
+ }
+
/**
- * @param ContainerInterface $container
+ * @param ContainerInterface $container
* @return ExportHandler
* @throws \ErrorException
*/
@@ -113,6 +134,24 @@ class Export extends BaseExport
);
}
- return $instance;
+ return static::$cache = $instance;
+ }
+
+ public function hasImages(ContainerInterface $container)
+ {
+ if (static::$cache === null) {
+ $this->getHandleClassInstance($container);
+ }
+
+ return static::$cache instanceof ImagesExportInterface;
+ }
+
+ public function hasDocuments(ContainerInterface $container)
+ {
+ if (static::$cache === null) {
+ $this->getHandleClassInstance($container);
+ }
+
+ return static::$cache instanceof DocumentsExportInterface;
}
}
diff --git a/core/lib/Thelia/Model/ExportCategory.php b/core/lib/Thelia/Model/ExportCategory.php
index 2e3726e31..44f8dce9a 100644
--- a/core/lib/Thelia/Model/ExportCategory.php
+++ b/core/lib/Thelia/Model/ExportCategory.php
@@ -29,7 +29,7 @@ class ExportCategory extends BaseExportCategory
public function downPosition()
{
- $max = CategoryQuery::create()
+ $max = ExportCategoryQuery::create()
->orderByPosition(Criteria::DESC)
->select(ExportCategoryTableMap::POSITION)
->findOne()
@@ -71,4 +71,21 @@ class ExportCategory extends BaseExportCategory
$this->setPosition($position)->save();
}
-}
\ No newline at end of file
+
+ public function setPositionToLast()
+ {
+ $max = ExportCategoryQuery::create()
+ ->orderByPosition(Criteria::DESC)
+ ->select(ExportCategoryTableMap::POSITION)
+ ->findOne()
+ ;
+
+ if (null === $max) {
+ $this->setPosition(1);
+ } else {
+ $this->setPosition($max+1);
+ }
+
+ return $this;
+ }
+}
diff --git a/core/lib/Thelia/Model/ExportCategoryI18nQuery.php b/core/lib/Thelia/Model/ExportCategoryI18nQuery.php
index f94fb50a7..d6b8ce7f7 100644
--- a/core/lib/Thelia/Model/ExportCategoryI18nQuery.php
+++ b/core/lib/Thelia/Model/ExportCategoryI18nQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ExportCategoryI18nQuery as BaseExportCategoryI18nQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'export_category_i18n' table.
*
diff --git a/core/lib/Thelia/Model/ExportCategoryQuery.php b/core/lib/Thelia/Model/ExportCategoryQuery.php
index 6cc562245..44aae37d4 100644
--- a/core/lib/Thelia/Model/ExportCategoryQuery.php
+++ b/core/lib/Thelia/Model/ExportCategoryQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ExportCategoryQuery as BaseExportCategoryQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'export_category' table.
*
diff --git a/core/lib/Thelia/Model/ExportI18nQuery.php b/core/lib/Thelia/Model/ExportI18nQuery.php
index d15febb24..a58a47783 100644
--- a/core/lib/Thelia/Model/ExportI18nQuery.php
+++ b/core/lib/Thelia/Model/ExportI18nQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ExportI18nQuery as BaseExportI18nQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'export_i18n' table.
*
diff --git a/core/lib/Thelia/Model/ExportQuery.php b/core/lib/Thelia/Model/ExportQuery.php
index bec19d085..7273278a0 100644
--- a/core/lib/Thelia/Model/ExportQuery.php
+++ b/core/lib/Thelia/Model/ExportQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ExportQuery as BaseExportQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'export' table.
*
diff --git a/core/lib/Thelia/Model/ImportCategoryI18nQuery.php b/core/lib/Thelia/Model/ImportCategoryI18nQuery.php
index fda0c35c5..be424d022 100644
--- a/core/lib/Thelia/Model/ImportCategoryI18nQuery.php
+++ b/core/lib/Thelia/Model/ImportCategoryI18nQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ImportCategoryI18nQuery as BaseImportCategoryI18nQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'import_category_i18n' table.
*
diff --git a/core/lib/Thelia/Model/ImportCategoryQuery.php b/core/lib/Thelia/Model/ImportCategoryQuery.php
index 9169d9659..ff7cb3d19 100644
--- a/core/lib/Thelia/Model/ImportCategoryQuery.php
+++ b/core/lib/Thelia/Model/ImportCategoryQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ImportCategoryQuery as BaseImportCategoryQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'import_category' table.
*
diff --git a/core/lib/Thelia/Model/ImportI18nQuery.php b/core/lib/Thelia/Model/ImportI18nQuery.php
index 274b8e893..522b1cf69 100644
--- a/core/lib/Thelia/Model/ImportI18nQuery.php
+++ b/core/lib/Thelia/Model/ImportI18nQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ImportI18nQuery as BaseImportI18nQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'import_i18n' table.
*
diff --git a/core/lib/Thelia/Model/ImportQuery.php b/core/lib/Thelia/Model/ImportQuery.php
index d1219b1bc..3d5d6d3af 100644
--- a/core/lib/Thelia/Model/ImportQuery.php
+++ b/core/lib/Thelia/Model/ImportQuery.php
@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\ImportQuery as BaseImportQuery;
-
/**
* Skeleton subclass for performing query and update operations on the 'import' table.
*
diff --git a/core/lib/Thelia/Model/Map/ExportCategoryTableMap.php b/core/lib/Thelia/Model/Map/ExportCategoryTableMap.php
index 1d5f32451..b5888f849 100644
--- a/core/lib/Thelia/Model/Map/ExportCategoryTableMap.php
+++ b/core/lib/Thelia/Model/Map/ExportCategoryTableMap.php
@@ -58,7 +58,7 @@ class ExportCategoryTableMap extends TableMap
/**
* The total number of columns
*/
- const NUM_COLUMNS = 4;
+ const NUM_COLUMNS = 5;
/**
* The number of lazy-loaded columns
@@ -68,13 +68,18 @@ class ExportCategoryTableMap extends TableMap
/**
* The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS)
*/
- const NUM_HYDRATE_COLUMNS = 4;
+ const NUM_HYDRATE_COLUMNS = 5;
/**
* the column name for the ID field
*/
const ID = 'export_category.ID';
+ /**
+ * the column name for the REF field
+ */
+ const REF = 'export_category.REF';
+
/**
* the column name for the POSITION field
*/
@@ -111,12 +116,12 @@ class ExportCategoryTableMap extends TableMap
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
protected static $fieldNames = array (
- self::TYPE_PHPNAME => array('Id', 'Position', 'CreatedAt', 'UpdatedAt', ),
- self::TYPE_STUDLYPHPNAME => array('id', 'position', 'createdAt', 'updatedAt', ),
- self::TYPE_COLNAME => array(ExportCategoryTableMap::ID, ExportCategoryTableMap::POSITION, ExportCategoryTableMap::CREATED_AT, ExportCategoryTableMap::UPDATED_AT, ),
- self::TYPE_RAW_COLNAME => array('ID', 'POSITION', 'CREATED_AT', 'UPDATED_AT', ),
- self::TYPE_FIELDNAME => array('id', 'position', 'created_at', 'updated_at', ),
- self::TYPE_NUM => array(0, 1, 2, 3, )
+ self::TYPE_PHPNAME => array('Id', 'Ref', 'Position', 'CreatedAt', 'UpdatedAt', ),
+ self::TYPE_STUDLYPHPNAME => array('id', 'ref', 'position', 'createdAt', 'updatedAt', ),
+ self::TYPE_COLNAME => array(ExportCategoryTableMap::ID, ExportCategoryTableMap::REF, ExportCategoryTableMap::POSITION, ExportCategoryTableMap::CREATED_AT, ExportCategoryTableMap::UPDATED_AT, ),
+ self::TYPE_RAW_COLNAME => array('ID', 'REF', 'POSITION', 'CREATED_AT', 'UPDATED_AT', ),
+ self::TYPE_FIELDNAME => array('id', 'ref', 'position', 'created_at', 'updated_at', ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, )
);
/**
@@ -126,12 +131,12 @@ class ExportCategoryTableMap extends TableMap
* e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
*/
protected static $fieldKeys = array (
- self::TYPE_PHPNAME => array('Id' => 0, 'Position' => 1, 'CreatedAt' => 2, 'UpdatedAt' => 3, ),
- self::TYPE_STUDLYPHPNAME => array('id' => 0, 'position' => 1, 'createdAt' => 2, 'updatedAt' => 3, ),
- self::TYPE_COLNAME => array(ExportCategoryTableMap::ID => 0, ExportCategoryTableMap::POSITION => 1, ExportCategoryTableMap::CREATED_AT => 2, ExportCategoryTableMap::UPDATED_AT => 3, ),
- self::TYPE_RAW_COLNAME => array('ID' => 0, 'POSITION' => 1, 'CREATED_AT' => 2, 'UPDATED_AT' => 3, ),
- self::TYPE_FIELDNAME => array('id' => 0, 'position' => 1, 'created_at' => 2, 'updated_at' => 3, ),
- self::TYPE_NUM => array(0, 1, 2, 3, )
+ self::TYPE_PHPNAME => array('Id' => 0, 'Ref' => 1, 'Position' => 2, 'CreatedAt' => 3, 'UpdatedAt' => 4, ),
+ self::TYPE_STUDLYPHPNAME => array('id' => 0, 'ref' => 1, 'position' => 2, 'createdAt' => 3, 'updatedAt' => 4, ),
+ self::TYPE_COLNAME => array(ExportCategoryTableMap::ID => 0, ExportCategoryTableMap::REF => 1, ExportCategoryTableMap::POSITION => 2, ExportCategoryTableMap::CREATED_AT => 3, ExportCategoryTableMap::UPDATED_AT => 4, ),
+ self::TYPE_RAW_COLNAME => array('ID' => 0, 'REF' => 1, 'POSITION' => 2, 'CREATED_AT' => 3, 'UPDATED_AT' => 4, ),
+ self::TYPE_FIELDNAME => array('id' => 0, 'ref' => 1, 'position' => 2, 'created_at' => 3, 'updated_at' => 4, ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, )
);
/**
@@ -151,6 +156,7 @@ class ExportCategoryTableMap extends TableMap
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
+ $this->addColumn('REF', 'Ref', 'VARCHAR', true, 255, null);
$this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null);
$this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null);
@@ -328,11 +334,13 @@ class ExportCategoryTableMap extends TableMap
{
if (null === $alias) {
$criteria->addSelectColumn(ExportCategoryTableMap::ID);
+ $criteria->addSelectColumn(ExportCategoryTableMap::REF);
$criteria->addSelectColumn(ExportCategoryTableMap::POSITION);
$criteria->addSelectColumn(ExportCategoryTableMap::CREATED_AT);
$criteria->addSelectColumn(ExportCategoryTableMap::UPDATED_AT);
} else {
$criteria->addSelectColumn($alias . '.ID');
+ $criteria->addSelectColumn($alias . '.REF');
$criteria->addSelectColumn($alias . '.POSITION');
$criteria->addSelectColumn($alias . '.CREATED_AT');
$criteria->addSelectColumn($alias . '.UPDATED_AT');
diff --git a/core/lib/Thelia/Model/Map/ExportTableMap.php b/core/lib/Thelia/Model/Map/ExportTableMap.php
index 58b667b9d..27293ab25 100644
--- a/core/lib/Thelia/Model/Map/ExportTableMap.php
+++ b/core/lib/Thelia/Model/Map/ExportTableMap.php
@@ -58,7 +58,7 @@ class ExportTableMap extends TableMap
/**
* The total number of columns
*/
- const NUM_COLUMNS = 6;
+ const NUM_COLUMNS = 7;
/**
* The number of lazy-loaded columns
@@ -68,13 +68,18 @@ class ExportTableMap extends TableMap
/**
* The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS)
*/
- const NUM_HYDRATE_COLUMNS = 6;
+ const NUM_HYDRATE_COLUMNS = 7;
/**
* the column name for the ID field
*/
const ID = 'export.ID';
+ /**
+ * the column name for the REF field
+ */
+ const REF = 'export.REF';
+
/**
* the column name for the EXPORT_CATEGORY_ID field
*/
@@ -86,9 +91,9 @@ class ExportTableMap extends TableMap
const POSITION = 'export.POSITION';
/**
- * the column name for the HANDLECLASS field
+ * the column name for the HANDLE_CLASS field
*/
- const HANDLECLASS = 'export.HANDLECLASS';
+ const HANDLE_CLASS = 'export.HANDLE_CLASS';
/**
* the column name for the CREATED_AT field
@@ -121,12 +126,12 @@ class ExportTableMap extends TableMap
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
protected static $fieldNames = array (
- self::TYPE_PHPNAME => array('Id', 'ExportCategoryId', 'Position', 'Handleclass', 'CreatedAt', 'UpdatedAt', ),
- self::TYPE_STUDLYPHPNAME => array('id', 'exportCategoryId', 'position', 'handleclass', 'createdAt', 'updatedAt', ),
- self::TYPE_COLNAME => array(ExportTableMap::ID, ExportTableMap::EXPORT_CATEGORY_ID, ExportTableMap::POSITION, ExportTableMap::HANDLECLASS, ExportTableMap::CREATED_AT, ExportTableMap::UPDATED_AT, ),
- self::TYPE_RAW_COLNAME => array('ID', 'EXPORT_CATEGORY_ID', 'POSITION', 'HANDLECLASS', 'CREATED_AT', 'UPDATED_AT', ),
- self::TYPE_FIELDNAME => array('id', 'export_category_id', 'position', 'handleClass', 'created_at', 'updated_at', ),
- self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, )
+ self::TYPE_PHPNAME => array('Id', 'Ref', 'ExportCategoryId', 'Position', 'HandleClass', 'CreatedAt', 'UpdatedAt', ),
+ self::TYPE_STUDLYPHPNAME => array('id', 'ref', 'exportCategoryId', 'position', 'handleClass', 'createdAt', 'updatedAt', ),
+ self::TYPE_COLNAME => array(ExportTableMap::ID, ExportTableMap::REF, ExportTableMap::EXPORT_CATEGORY_ID, ExportTableMap::POSITION, ExportTableMap::HANDLE_CLASS, ExportTableMap::CREATED_AT, ExportTableMap::UPDATED_AT, ),
+ self::TYPE_RAW_COLNAME => array('ID', 'REF', 'EXPORT_CATEGORY_ID', 'POSITION', 'HANDLE_CLASS', 'CREATED_AT', 'UPDATED_AT', ),
+ self::TYPE_FIELDNAME => array('id', 'ref', 'export_category_id', 'position', 'handle_class', 'created_at', 'updated_at', ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, )
);
/**
@@ -136,12 +141,12 @@ class ExportTableMap extends TableMap
* e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
*/
protected static $fieldKeys = array (
- self::TYPE_PHPNAME => array('Id' => 0, 'ExportCategoryId' => 1, 'Position' => 2, 'Handleclass' => 3, 'CreatedAt' => 4, 'UpdatedAt' => 5, ),
- self::TYPE_STUDLYPHPNAME => array('id' => 0, 'exportCategoryId' => 1, 'position' => 2, 'handleclass' => 3, 'createdAt' => 4, 'updatedAt' => 5, ),
- self::TYPE_COLNAME => array(ExportTableMap::ID => 0, ExportTableMap::EXPORT_CATEGORY_ID => 1, ExportTableMap::POSITION => 2, ExportTableMap::HANDLECLASS => 3, ExportTableMap::CREATED_AT => 4, ExportTableMap::UPDATED_AT => 5, ),
- self::TYPE_RAW_COLNAME => array('ID' => 0, 'EXPORT_CATEGORY_ID' => 1, 'POSITION' => 2, 'HANDLECLASS' => 3, 'CREATED_AT' => 4, 'UPDATED_AT' => 5, ),
- self::TYPE_FIELDNAME => array('id' => 0, 'export_category_id' => 1, 'position' => 2, 'handleClass' => 3, 'created_at' => 4, 'updated_at' => 5, ),
- self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, )
+ self::TYPE_PHPNAME => array('Id' => 0, 'Ref' => 1, 'ExportCategoryId' => 2, 'Position' => 3, 'HandleClass' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, ),
+ self::TYPE_STUDLYPHPNAME => array('id' => 0, 'ref' => 1, 'exportCategoryId' => 2, 'position' => 3, 'handleClass' => 4, 'createdAt' => 5, 'updatedAt' => 6, ),
+ self::TYPE_COLNAME => array(ExportTableMap::ID => 0, ExportTableMap::REF => 1, ExportTableMap::EXPORT_CATEGORY_ID => 2, ExportTableMap::POSITION => 3, ExportTableMap::HANDLE_CLASS => 4, ExportTableMap::CREATED_AT => 5, ExportTableMap::UPDATED_AT => 6, ),
+ self::TYPE_RAW_COLNAME => array('ID' => 0, 'REF' => 1, 'EXPORT_CATEGORY_ID' => 2, 'POSITION' => 3, 'HANDLE_CLASS' => 4, 'CREATED_AT' => 5, 'UPDATED_AT' => 6, ),
+ self::TYPE_FIELDNAME => array('id' => 0, 'ref' => 1, 'export_category_id' => 2, 'position' => 3, 'handle_class' => 4, 'created_at' => 5, 'updated_at' => 6, ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, )
);
/**
@@ -161,9 +166,10 @@ class ExportTableMap extends TableMap
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
+ $this->addColumn('REF', 'Ref', 'VARCHAR', true, 255, null);
$this->addForeignKey('EXPORT_CATEGORY_ID', 'ExportCategoryId', 'INTEGER', 'export_category', 'ID', true, null, null);
$this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null);
- $this->addColumn('HANDLECLASS', 'Handleclass', 'CLOB', true, null, null);
+ $this->addColumn('HANDLE_CLASS', 'HandleClass', 'CLOB', true, null, null);
$this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null);
} // initialize()
@@ -339,16 +345,18 @@ class ExportTableMap extends TableMap
{
if (null === $alias) {
$criteria->addSelectColumn(ExportTableMap::ID);
+ $criteria->addSelectColumn(ExportTableMap::REF);
$criteria->addSelectColumn(ExportTableMap::EXPORT_CATEGORY_ID);
$criteria->addSelectColumn(ExportTableMap::POSITION);
- $criteria->addSelectColumn(ExportTableMap::HANDLECLASS);
+ $criteria->addSelectColumn(ExportTableMap::HANDLE_CLASS);
$criteria->addSelectColumn(ExportTableMap::CREATED_AT);
$criteria->addSelectColumn(ExportTableMap::UPDATED_AT);
} else {
$criteria->addSelectColumn($alias . '.ID');
+ $criteria->addSelectColumn($alias . '.REF');
$criteria->addSelectColumn($alias . '.EXPORT_CATEGORY_ID');
$criteria->addSelectColumn($alias . '.POSITION');
- $criteria->addSelectColumn($alias . '.HANDLECLASS');
+ $criteria->addSelectColumn($alias . '.HANDLE_CLASS');
$criteria->addSelectColumn($alias . '.CREATED_AT');
$criteria->addSelectColumn($alias . '.UPDATED_AT');
}
diff --git a/core/lib/Thelia/Model/Map/ImportCategoryTableMap.php b/core/lib/Thelia/Model/Map/ImportCategoryTableMap.php
index e75ddf2ba..82966e1b1 100644
--- a/core/lib/Thelia/Model/Map/ImportCategoryTableMap.php
+++ b/core/lib/Thelia/Model/Map/ImportCategoryTableMap.php
@@ -58,7 +58,7 @@ class ImportCategoryTableMap extends TableMap
/**
* The total number of columns
*/
- const NUM_COLUMNS = 4;
+ const NUM_COLUMNS = 5;
/**
* The number of lazy-loaded columns
@@ -68,13 +68,18 @@ class ImportCategoryTableMap extends TableMap
/**
* The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS)
*/
- const NUM_HYDRATE_COLUMNS = 4;
+ const NUM_HYDRATE_COLUMNS = 5;
/**
* the column name for the ID field
*/
const ID = 'import_category.ID';
+ /**
+ * the column name for the REF field
+ */
+ const REF = 'import_category.REF';
+
/**
* the column name for the POSITION field
*/
@@ -111,12 +116,12 @@ class ImportCategoryTableMap extends TableMap
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
protected static $fieldNames = array (
- self::TYPE_PHPNAME => array('Id', 'Position', 'CreatedAt', 'UpdatedAt', ),
- self::TYPE_STUDLYPHPNAME => array('id', 'position', 'createdAt', 'updatedAt', ),
- self::TYPE_COLNAME => array(ImportCategoryTableMap::ID, ImportCategoryTableMap::POSITION, ImportCategoryTableMap::CREATED_AT, ImportCategoryTableMap::UPDATED_AT, ),
- self::TYPE_RAW_COLNAME => array('ID', 'POSITION', 'CREATED_AT', 'UPDATED_AT', ),
- self::TYPE_FIELDNAME => array('id', 'position', 'created_at', 'updated_at', ),
- self::TYPE_NUM => array(0, 1, 2, 3, )
+ self::TYPE_PHPNAME => array('Id', 'Ref', 'Position', 'CreatedAt', 'UpdatedAt', ),
+ self::TYPE_STUDLYPHPNAME => array('id', 'ref', 'position', 'createdAt', 'updatedAt', ),
+ self::TYPE_COLNAME => array(ImportCategoryTableMap::ID, ImportCategoryTableMap::REF, ImportCategoryTableMap::POSITION, ImportCategoryTableMap::CREATED_AT, ImportCategoryTableMap::UPDATED_AT, ),
+ self::TYPE_RAW_COLNAME => array('ID', 'REF', 'POSITION', 'CREATED_AT', 'UPDATED_AT', ),
+ self::TYPE_FIELDNAME => array('id', 'ref', 'position', 'created_at', 'updated_at', ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, )
);
/**
@@ -126,12 +131,12 @@ class ImportCategoryTableMap extends TableMap
* e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
*/
protected static $fieldKeys = array (
- self::TYPE_PHPNAME => array('Id' => 0, 'Position' => 1, 'CreatedAt' => 2, 'UpdatedAt' => 3, ),
- self::TYPE_STUDLYPHPNAME => array('id' => 0, 'position' => 1, 'createdAt' => 2, 'updatedAt' => 3, ),
- self::TYPE_COLNAME => array(ImportCategoryTableMap::ID => 0, ImportCategoryTableMap::POSITION => 1, ImportCategoryTableMap::CREATED_AT => 2, ImportCategoryTableMap::UPDATED_AT => 3, ),
- self::TYPE_RAW_COLNAME => array('ID' => 0, 'POSITION' => 1, 'CREATED_AT' => 2, 'UPDATED_AT' => 3, ),
- self::TYPE_FIELDNAME => array('id' => 0, 'position' => 1, 'created_at' => 2, 'updated_at' => 3, ),
- self::TYPE_NUM => array(0, 1, 2, 3, )
+ self::TYPE_PHPNAME => array('Id' => 0, 'Ref' => 1, 'Position' => 2, 'CreatedAt' => 3, 'UpdatedAt' => 4, ),
+ self::TYPE_STUDLYPHPNAME => array('id' => 0, 'ref' => 1, 'position' => 2, 'createdAt' => 3, 'updatedAt' => 4, ),
+ self::TYPE_COLNAME => array(ImportCategoryTableMap::ID => 0, ImportCategoryTableMap::REF => 1, ImportCategoryTableMap::POSITION => 2, ImportCategoryTableMap::CREATED_AT => 3, ImportCategoryTableMap::UPDATED_AT => 4, ),
+ self::TYPE_RAW_COLNAME => array('ID' => 0, 'REF' => 1, 'POSITION' => 2, 'CREATED_AT' => 3, 'UPDATED_AT' => 4, ),
+ self::TYPE_FIELDNAME => array('id' => 0, 'ref' => 1, 'position' => 2, 'created_at' => 3, 'updated_at' => 4, ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, )
);
/**
@@ -151,6 +156,7 @@ class ImportCategoryTableMap extends TableMap
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
+ $this->addColumn('REF', 'Ref', 'VARCHAR', true, 255, null);
$this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null);
$this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null);
@@ -328,11 +334,13 @@ class ImportCategoryTableMap extends TableMap
{
if (null === $alias) {
$criteria->addSelectColumn(ImportCategoryTableMap::ID);
+ $criteria->addSelectColumn(ImportCategoryTableMap::REF);
$criteria->addSelectColumn(ImportCategoryTableMap::POSITION);
$criteria->addSelectColumn(ImportCategoryTableMap::CREATED_AT);
$criteria->addSelectColumn(ImportCategoryTableMap::UPDATED_AT);
} else {
$criteria->addSelectColumn($alias . '.ID');
+ $criteria->addSelectColumn($alias . '.REF');
$criteria->addSelectColumn($alias . '.POSITION');
$criteria->addSelectColumn($alias . '.CREATED_AT');
$criteria->addSelectColumn($alias . '.UPDATED_AT');
diff --git a/core/lib/Thelia/Model/Map/ImportTableMap.php b/core/lib/Thelia/Model/Map/ImportTableMap.php
index 735c20236..56cbe3592 100644
--- a/core/lib/Thelia/Model/Map/ImportTableMap.php
+++ b/core/lib/Thelia/Model/Map/ImportTableMap.php
@@ -58,7 +58,7 @@ class ImportTableMap extends TableMap
/**
* The total number of columns
*/
- const NUM_COLUMNS = 6;
+ const NUM_COLUMNS = 7;
/**
* The number of lazy-loaded columns
@@ -68,13 +68,18 @@ class ImportTableMap extends TableMap
/**
* The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS)
*/
- const NUM_HYDRATE_COLUMNS = 6;
+ const NUM_HYDRATE_COLUMNS = 7;
/**
* the column name for the ID field
*/
const ID = 'import.ID';
+ /**
+ * the column name for the REF field
+ */
+ const REF = 'import.REF';
+
/**
* the column name for the IMPORT_CATEGORY_ID field
*/
@@ -86,9 +91,9 @@ class ImportTableMap extends TableMap
const POSITION = 'import.POSITION';
/**
- * the column name for the HANDLECLASS field
+ * the column name for the HANDLE_CLASS field
*/
- const HANDLECLASS = 'import.HANDLECLASS';
+ const HANDLE_CLASS = 'import.HANDLE_CLASS';
/**
* the column name for the CREATED_AT field
@@ -121,12 +126,12 @@ class ImportTableMap extends TableMap
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
protected static $fieldNames = array (
- self::TYPE_PHPNAME => array('Id', 'ImportCategoryId', 'Position', 'Handleclass', 'CreatedAt', 'UpdatedAt', ),
- self::TYPE_STUDLYPHPNAME => array('id', 'importCategoryId', 'position', 'handleclass', 'createdAt', 'updatedAt', ),
- self::TYPE_COLNAME => array(ImportTableMap::ID, ImportTableMap::IMPORT_CATEGORY_ID, ImportTableMap::POSITION, ImportTableMap::HANDLECLASS, ImportTableMap::CREATED_AT, ImportTableMap::UPDATED_AT, ),
- self::TYPE_RAW_COLNAME => array('ID', 'IMPORT_CATEGORY_ID', 'POSITION', 'HANDLECLASS', 'CREATED_AT', 'UPDATED_AT', ),
- self::TYPE_FIELDNAME => array('id', 'import_category_id', 'position', 'handleClass', 'created_at', 'updated_at', ),
- self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, )
+ self::TYPE_PHPNAME => array('Id', 'Ref', 'ImportCategoryId', 'Position', 'HandleClass', 'CreatedAt', 'UpdatedAt', ),
+ self::TYPE_STUDLYPHPNAME => array('id', 'ref', 'importCategoryId', 'position', 'handleClass', 'createdAt', 'updatedAt', ),
+ self::TYPE_COLNAME => array(ImportTableMap::ID, ImportTableMap::REF, ImportTableMap::IMPORT_CATEGORY_ID, ImportTableMap::POSITION, ImportTableMap::HANDLE_CLASS, ImportTableMap::CREATED_AT, ImportTableMap::UPDATED_AT, ),
+ self::TYPE_RAW_COLNAME => array('ID', 'REF', 'IMPORT_CATEGORY_ID', 'POSITION', 'HANDLE_CLASS', 'CREATED_AT', 'UPDATED_AT', ),
+ self::TYPE_FIELDNAME => array('id', 'ref', 'import_category_id', 'position', 'handle_class', 'created_at', 'updated_at', ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, )
);
/**
@@ -136,12 +141,12 @@ class ImportTableMap extends TableMap
* e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0
*/
protected static $fieldKeys = array (
- self::TYPE_PHPNAME => array('Id' => 0, 'ImportCategoryId' => 1, 'Position' => 2, 'Handleclass' => 3, 'CreatedAt' => 4, 'UpdatedAt' => 5, ),
- self::TYPE_STUDLYPHPNAME => array('id' => 0, 'importCategoryId' => 1, 'position' => 2, 'handleclass' => 3, 'createdAt' => 4, 'updatedAt' => 5, ),
- self::TYPE_COLNAME => array(ImportTableMap::ID => 0, ImportTableMap::IMPORT_CATEGORY_ID => 1, ImportTableMap::POSITION => 2, ImportTableMap::HANDLECLASS => 3, ImportTableMap::CREATED_AT => 4, ImportTableMap::UPDATED_AT => 5, ),
- self::TYPE_RAW_COLNAME => array('ID' => 0, 'IMPORT_CATEGORY_ID' => 1, 'POSITION' => 2, 'HANDLECLASS' => 3, 'CREATED_AT' => 4, 'UPDATED_AT' => 5, ),
- self::TYPE_FIELDNAME => array('id' => 0, 'import_category_id' => 1, 'position' => 2, 'handleClass' => 3, 'created_at' => 4, 'updated_at' => 5, ),
- self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, )
+ self::TYPE_PHPNAME => array('Id' => 0, 'Ref' => 1, 'ImportCategoryId' => 2, 'Position' => 3, 'HandleClass' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, ),
+ self::TYPE_STUDLYPHPNAME => array('id' => 0, 'ref' => 1, 'importCategoryId' => 2, 'position' => 3, 'handleClass' => 4, 'createdAt' => 5, 'updatedAt' => 6, ),
+ self::TYPE_COLNAME => array(ImportTableMap::ID => 0, ImportTableMap::REF => 1, ImportTableMap::IMPORT_CATEGORY_ID => 2, ImportTableMap::POSITION => 3, ImportTableMap::HANDLE_CLASS => 4, ImportTableMap::CREATED_AT => 5, ImportTableMap::UPDATED_AT => 6, ),
+ self::TYPE_RAW_COLNAME => array('ID' => 0, 'REF' => 1, 'IMPORT_CATEGORY_ID' => 2, 'POSITION' => 3, 'HANDLE_CLASS' => 4, 'CREATED_AT' => 5, 'UPDATED_AT' => 6, ),
+ self::TYPE_FIELDNAME => array('id' => 0, 'ref' => 1, 'import_category_id' => 2, 'position' => 3, 'handle_class' => 4, 'created_at' => 5, 'updated_at' => 6, ),
+ self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, )
);
/**
@@ -161,9 +166,10 @@ class ImportTableMap extends TableMap
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
+ $this->addColumn('REF', 'Ref', 'VARCHAR', true, 255, null);
$this->addForeignKey('IMPORT_CATEGORY_ID', 'ImportCategoryId', 'INTEGER', 'import_category', 'ID', true, null, null);
$this->addColumn('POSITION', 'Position', 'INTEGER', true, null, null);
- $this->addColumn('HANDLECLASS', 'Handleclass', 'CLOB', true, null, null);
+ $this->addColumn('HANDLE_CLASS', 'HandleClass', 'CLOB', true, null, null);
$this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);
$this->addColumn('UPDATED_AT', 'UpdatedAt', 'TIMESTAMP', false, null, null);
} // initialize()
@@ -339,16 +345,18 @@ class ImportTableMap extends TableMap
{
if (null === $alias) {
$criteria->addSelectColumn(ImportTableMap::ID);
+ $criteria->addSelectColumn(ImportTableMap::REF);
$criteria->addSelectColumn(ImportTableMap::IMPORT_CATEGORY_ID);
$criteria->addSelectColumn(ImportTableMap::POSITION);
- $criteria->addSelectColumn(ImportTableMap::HANDLECLASS);
+ $criteria->addSelectColumn(ImportTableMap::HANDLE_CLASS);
$criteria->addSelectColumn(ImportTableMap::CREATED_AT);
$criteria->addSelectColumn(ImportTableMap::UPDATED_AT);
} else {
$criteria->addSelectColumn($alias . '.ID');
+ $criteria->addSelectColumn($alias . '.REF');
$criteria->addSelectColumn($alias . '.IMPORT_CATEGORY_ID');
$criteria->addSelectColumn($alias . '.POSITION');
- $criteria->addSelectColumn($alias . '.HANDLECLASS');
+ $criteria->addSelectColumn($alias . '.HANDLE_CLASS');
$criteria->addSelectColumn($alias . '.CREATED_AT');
$criteria->addSelectColumn($alias . '.UPDATED_AT');
}
diff --git a/local/config/schema.xml b/local/config/schema.xml
index b21b9526e..74cbe189c 100644
--- a/local/config/schema.xml
+++ b/local/config/schema.xml
@@ -1513,33 +1513,45 @@