Update database, add export and import handle classes

modifié:         core/lib/Thelia/Model/Base/Export.php
	modifié:         core/lib/Thelia/Model/Base/ExportQuery.php
	modifié:         core/lib/Thelia/Model/Base/Import.php
	modifié:         core/lib/Thelia/Model/Base/ImportQuery.php
	modifié:         core/lib/Thelia/Model/Export.php
	modifié:         core/lib/Thelia/Model/Import.php
	modifié:         core/lib/Thelia/Model/Map/ExportTableMap.php
	modifié:         core/lib/Thelia/Model/Map/ImportTableMap.php
	modifié:         local/config/schema.xml
	modifié:         setup/thelia.sql
This commit is contained in:
Benjamin Perche
2014-07-10 15:10:19 +02:00
parent a1526620f4
commit 178ed493f0
10 changed files with 375 additions and 48 deletions

View File

@@ -77,6 +77,12 @@ abstract class Export implements ActiveRecordInterface
*/
protected $position;
/**
* The value for the handleclass field.
* @var string
*/
protected $handleclass;
/**
* The value for the created_at field.
* @var string
@@ -419,6 +425,17 @@ abstract class Export implements ActiveRecordInterface
return $this->position;
}
/**
* Get the [handleclass] column value.
*
* @return string
*/
public function getHandleclass()
{
return $this->handleclass;
}
/**
* Get the [optionally formatted] temporal [created_at] column value.
*
@@ -526,6 +543,27 @@ abstract class Export implements ActiveRecordInterface
return $this;
} // setPosition()
/**
* Set the value of [handleclass] column.
*
* @param string $v new value
* @return \Thelia\Model\Export The current object (for fluent API support)
*/
public function setHandleclass($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->handleclass !== $v) {
$this->handleclass = $v;
$this->modifiedColumns[ExportTableMap::HANDLECLASS] = true;
}
return $this;
} // setHandleclass()
/**
* Sets the value of [created_at] column to a normalized version of the date/time value specified.
*
@@ -614,13 +652,16 @@ abstract class Export implements ActiveRecordInterface
$col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : ExportTableMap::translateFieldName('Position', TableMap::TYPE_PHPNAME, $indexType)];
$this->position = (null !== $col) ? (int) $col : null;
$col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ExportTableMap::translateFieldName('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)];
$col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : ExportTableMap::translateFieldName('Handleclass', TableMap::TYPE_PHPNAME, $indexType)];
$this->handleclass = (null !== $col) ? (string) $col : null;
$col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : ExportTableMap::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 ? 4 + $startcol : ExportTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
$col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : ExportTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
if ($col === '0000-00-00 00:00:00') {
$col = null;
}
@@ -633,7 +674,7 @@ abstract class Export implements ActiveRecordInterface
$this->ensureConsistency();
}
return $startcol + 5; // 5 = ExportTableMap::NUM_HYDRATE_COLUMNS.
return $startcol + 6; // 6 = ExportTableMap::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating \Thelia\Model\Export object", 0, $e);
@@ -897,6 +938,9 @@ abstract class Export implements ActiveRecordInterface
if ($this->isColumnModified(ExportTableMap::POSITION)) {
$modifiedColumns[':p' . $index++] = '`POSITION`';
}
if ($this->isColumnModified(ExportTableMap::HANDLECLASS)) {
$modifiedColumns[':p' . $index++] = '`HANDLECLASS`';
}
if ($this->isColumnModified(ExportTableMap::CREATED_AT)) {
$modifiedColumns[':p' . $index++] = '`CREATED_AT`';
}
@@ -923,6 +967,9 @@ abstract class Export implements ActiveRecordInterface
case '`POSITION`':
$stmt->bindValue($identifier, $this->position, PDO::PARAM_INT);
break;
case '`HANDLECLASS`':
$stmt->bindValue($identifier, $this->handleclass, PDO::PARAM_STR);
break;
case '`CREATED_AT`':
$stmt->bindValue($identifier, $this->created_at ? $this->created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
break;
@@ -1001,9 +1048,12 @@ abstract class Export implements ActiveRecordInterface
return $this->getPosition();
break;
case 3:
return $this->getCreatedAt();
return $this->getHandleclass();
break;
case 4:
return $this->getCreatedAt();
break;
case 5:
return $this->getUpdatedAt();
break;
default:
@@ -1038,8 +1088,9 @@ abstract class Export implements ActiveRecordInterface
$keys[0] => $this->getId(),
$keys[1] => $this->getExportCategoryId(),
$keys[2] => $this->getPosition(),
$keys[3] => $this->getCreatedAt(),
$keys[4] => $this->getUpdatedAt(),
$keys[3] => $this->getHandleclass(),
$keys[4] => $this->getCreatedAt(),
$keys[5] => $this->getUpdatedAt(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
@@ -1097,9 +1148,12 @@ abstract class Export implements ActiveRecordInterface
$this->setPosition($value);
break;
case 3:
$this->setCreatedAt($value);
$this->setHandleclass($value);
break;
case 4:
$this->setCreatedAt($value);
break;
case 5:
$this->setUpdatedAt($value);
break;
} // switch()
@@ -1129,8 +1183,9 @@ abstract class Export implements ActiveRecordInterface
if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setExportCategoryId($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]]);
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]]);
}
/**
@@ -1145,6 +1200,7 @@ abstract class Export implements ActiveRecordInterface
if ($this->isColumnModified(ExportTableMap::ID)) $criteria->add(ExportTableMap::ID, $this->id);
if ($this->isColumnModified(ExportTableMap::EXPORT_CATEGORY_ID)) $criteria->add(ExportTableMap::EXPORT_CATEGORY_ID, $this->export_category_id);
if ($this->isColumnModified(ExportTableMap::POSITION)) $criteria->add(ExportTableMap::POSITION, $this->position);
if ($this->isColumnModified(ExportTableMap::HANDLECLASS)) $criteria->add(ExportTableMap::HANDLECLASS, $this->handleclass);
if ($this->isColumnModified(ExportTableMap::CREATED_AT)) $criteria->add(ExportTableMap::CREATED_AT, $this->created_at);
if ($this->isColumnModified(ExportTableMap::UPDATED_AT)) $criteria->add(ExportTableMap::UPDATED_AT, $this->updated_at);
@@ -1212,6 +1268,7 @@ abstract class Export implements ActiveRecordInterface
{
$copyObj->setExportCategoryId($this->getExportCategoryId());
$copyObj->setPosition($this->getPosition());
$copyObj->setHandleclass($this->getHandleclass());
$copyObj->setCreatedAt($this->getCreatedAt());
$copyObj->setUpdatedAt($this->getUpdatedAt());
@@ -1556,6 +1613,7 @@ abstract class Export implements ActiveRecordInterface
$this->id = null;
$this->export_category_id = null;
$this->position = null;
$this->handleclass = null;
$this->created_at = null;
$this->updated_at = null;
$this->alreadyInSave = false;

View File

@@ -25,12 +25,14 @@ use Thelia\Model\Map\ExportTableMap;
* @method ChildExportQuery orderById($order = Criteria::ASC) Order by the id 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 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 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 groupByCreatedAt() Group by the created_at column
* @method ChildExportQuery groupByUpdatedAt() Group by the updated_at column
*
@@ -52,12 +54,14 @@ use Thelia\Model\Map\ExportTableMap;
* @method ChildExport findOneById(int $id) Return the first ChildExport filtered by the id 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 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 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 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
*
@@ -148,7 +152,7 @@ abstract class ExportQuery extends ModelCriteria
*/
protected function findPkSimple($key, $con)
{
$sql = 'SELECT `ID`, `EXPORT_CATEGORY_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `export` WHERE `ID` = :p0';
$sql = 'SELECT `ID`, `EXPORT_CATEGORY_ID`, `POSITION`, `HANDLECLASS`, `CREATED_AT`, `UPDATED_AT` FROM `export` WHERE `ID` = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
@@ -362,6 +366,35 @@ abstract class ExportQuery extends ModelCriteria
return $this->addUsingAlias(ExportTableMap::POSITION, $position, $comparison);
}
/**
* Filter the query on the handleClass column
*
* Example usage:
* <code>
* $query->filterByHandleclass('fooValue'); // WHERE handleClass = 'fooValue'
* $query->filterByHandleclass('%fooValue%'); // WHERE handleClass LIKE '%fooValue%'
* </code>
*
* @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)
{
if (null === $comparison) {
if (is_array($handleclass)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $handleclass)) {
$handleclass = str_replace('*', '%', $handleclass);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(ExportTableMap::HANDLECLASS, $handleclass, $comparison);
}
/**
* Filter the query on the created_at column
*

View File

@@ -77,6 +77,12 @@ abstract class Import implements ActiveRecordInterface
*/
protected $position;
/**
* The value for the handleclass field.
* @var string
*/
protected $handleclass;
/**
* The value for the created_at field.
* @var string
@@ -419,6 +425,17 @@ abstract class Import implements ActiveRecordInterface
return $this->position;
}
/**
* Get the [handleclass] column value.
*
* @return string
*/
public function getHandleclass()
{
return $this->handleclass;
}
/**
* Get the [optionally formatted] temporal [created_at] column value.
*
@@ -526,6 +543,27 @@ abstract class Import implements ActiveRecordInterface
return $this;
} // setPosition()
/**
* Set the value of [handleclass] column.
*
* @param string $v new value
* @return \Thelia\Model\Import The current object (for fluent API support)
*/
public function setHandleclass($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->handleclass !== $v) {
$this->handleclass = $v;
$this->modifiedColumns[ImportTableMap::HANDLECLASS] = true;
}
return $this;
} // setHandleclass()
/**
* Sets the value of [created_at] column to a normalized version of the date/time value specified.
*
@@ -614,13 +652,16 @@ abstract class Import implements ActiveRecordInterface
$col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $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('CreatedAt', TableMap::TYPE_PHPNAME, $indexType)];
$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('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 ? 4 + $startcol : ImportTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
$col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : ImportTableMap::translateFieldName('UpdatedAt', TableMap::TYPE_PHPNAME, $indexType)];
if ($col === '0000-00-00 00:00:00') {
$col = null;
}
@@ -633,7 +674,7 @@ abstract class Import implements ActiveRecordInterface
$this->ensureConsistency();
}
return $startcol + 5; // 5 = ImportTableMap::NUM_HYDRATE_COLUMNS.
return $startcol + 6; // 6 = ImportTableMap::NUM_HYDRATE_COLUMNS.
} catch (Exception $e) {
throw new PropelException("Error populating \Thelia\Model\Import object", 0, $e);
@@ -897,6 +938,9 @@ abstract class Import implements ActiveRecordInterface
if ($this->isColumnModified(ImportTableMap::POSITION)) {
$modifiedColumns[':p' . $index++] = '`POSITION`';
}
if ($this->isColumnModified(ImportTableMap::HANDLECLASS)) {
$modifiedColumns[':p' . $index++] = '`HANDLECLASS`';
}
if ($this->isColumnModified(ImportTableMap::CREATED_AT)) {
$modifiedColumns[':p' . $index++] = '`CREATED_AT`';
}
@@ -923,6 +967,9 @@ abstract class Import implements ActiveRecordInterface
case '`POSITION`':
$stmt->bindValue($identifier, $this->position, PDO::PARAM_INT);
break;
case '`HANDLECLASS`':
$stmt->bindValue($identifier, $this->handleclass, PDO::PARAM_STR);
break;
case '`CREATED_AT`':
$stmt->bindValue($identifier, $this->created_at ? $this->created_at->format("Y-m-d H:i:s") : null, PDO::PARAM_STR);
break;
@@ -1001,9 +1048,12 @@ abstract class Import implements ActiveRecordInterface
return $this->getPosition();
break;
case 3:
return $this->getCreatedAt();
return $this->getHandleclass();
break;
case 4:
return $this->getCreatedAt();
break;
case 5:
return $this->getUpdatedAt();
break;
default:
@@ -1038,8 +1088,9 @@ abstract class Import implements ActiveRecordInterface
$keys[0] => $this->getId(),
$keys[1] => $this->getImportCategoryId(),
$keys[2] => $this->getPosition(),
$keys[3] => $this->getCreatedAt(),
$keys[4] => $this->getUpdatedAt(),
$keys[3] => $this->getHandleclass(),
$keys[4] => $this->getCreatedAt(),
$keys[5] => $this->getUpdatedAt(),
);
$virtualColumns = $this->virtualColumns;
foreach ($virtualColumns as $key => $virtualColumn) {
@@ -1097,9 +1148,12 @@ abstract class Import implements ActiveRecordInterface
$this->setPosition($value);
break;
case 3:
$this->setCreatedAt($value);
$this->setHandleclass($value);
break;
case 4:
$this->setCreatedAt($value);
break;
case 5:
$this->setUpdatedAt($value);
break;
} // switch()
@@ -1129,8 +1183,9 @@ abstract class Import implements ActiveRecordInterface
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->setCreatedAt($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setUpdatedAt($arr[$keys[4]]);
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]]);
}
/**
@@ -1145,6 +1200,7 @@ abstract class Import implements ActiveRecordInterface
if ($this->isColumnModified(ImportTableMap::ID)) $criteria->add(ImportTableMap::ID, $this->id);
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::CREATED_AT)) $criteria->add(ImportTableMap::CREATED_AT, $this->created_at);
if ($this->isColumnModified(ImportTableMap::UPDATED_AT)) $criteria->add(ImportTableMap::UPDATED_AT, $this->updated_at);
@@ -1212,6 +1268,7 @@ abstract class Import implements ActiveRecordInterface
{
$copyObj->setImportCategoryId($this->getImportCategoryId());
$copyObj->setPosition($this->getPosition());
$copyObj->setHandleclass($this->getHandleclass());
$copyObj->setCreatedAt($this->getCreatedAt());
$copyObj->setUpdatedAt($this->getUpdatedAt());
@@ -1556,6 +1613,7 @@ abstract class Import implements ActiveRecordInterface
$this->id = null;
$this->import_category_id = null;
$this->position = null;
$this->handleclass = null;
$this->created_at = null;
$this->updated_at = null;
$this->alreadyInSave = false;

View File

@@ -25,12 +25,14 @@ use Thelia\Model\Map\ImportTableMap;
* @method ChildImportQuery orderById($order = Criteria::ASC) Order by the id 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 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 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 groupByCreatedAt() Group by the created_at column
* @method ChildImportQuery groupByUpdatedAt() Group by the updated_at column
*
@@ -52,12 +54,14 @@ use Thelia\Model\Map\ImportTableMap;
* @method ChildImport findOneById(int $id) Return the first ChildImport filtered by the id 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 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 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 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
*
@@ -148,7 +152,7 @@ abstract class ImportQuery extends ModelCriteria
*/
protected function findPkSimple($key, $con)
{
$sql = 'SELECT `ID`, `IMPORT_CATEGORY_ID`, `POSITION`, `CREATED_AT`, `UPDATED_AT` FROM `import` WHERE `ID` = :p0';
$sql = 'SELECT `ID`, `IMPORT_CATEGORY_ID`, `POSITION`, `HANDLECLASS`, `CREATED_AT`, `UPDATED_AT` FROM `import` WHERE `ID` = :p0';
try {
$stmt = $con->prepare($sql);
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
@@ -362,6 +366,35 @@ abstract class ImportQuery extends ModelCriteria
return $this->addUsingAlias(ImportTableMap::POSITION, $position, $comparison);
}
/**
* Filter the query on the handleClass column
*
* Example usage:
* <code>
* $query->filterByHandleclass('fooValue'); // WHERE handleClass = 'fooValue'
* $query->filterByHandleclass('%fooValue%'); // WHERE handleClass LIKE '%fooValue%'
* </code>
*
* @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)
{
if (null === $comparison) {
if (is_array($handleclass)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $handleclass)) {
$handleclass = str_replace('*', '%', $handleclass);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(ImportTableMap::HANDLECLASS, $handleclass, $comparison);
}
/**
* Filter the query on the created_at column
*