new faker entries
new category view
This commit is contained in:
@@ -148,7 +148,7 @@ class AccessoryTableMap extends TableMap
|
||||
$this->setPhpName('Accessory');
|
||||
$this->setClassName('\\Thelia\\Model\\Accessory');
|
||||
$this->setPackage('Thelia.Model');
|
||||
$this->setUseIdGenerator(false);
|
||||
$this->setUseIdGenerator(true);
|
||||
$this->setIsCrossRef(true);
|
||||
// columns
|
||||
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
|
||||
@@ -429,6 +429,10 @@ class AccessoryTableMap extends TableMap
|
||||
$criteria = $criteria->buildCriteria(); // build Criteria from Accessory object
|
||||
}
|
||||
|
||||
if ($criteria->containsKey(AccessoryTableMap::ID) && $criteria->keyContainsValue(AccessoryTableMap::ID) ) {
|
||||
throw new PropelException('Cannot insert a value for auto-increment primary key ('.AccessoryTableMap::ID.')');
|
||||
}
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$query = AccessoryQuery::create()->mergeWith($criteria);
|
||||
|
||||
Reference in New Issue
Block a user