summaryrefslogtreecommitdiffstats
path: root/generated-classes/Map/ProductTableMap.php
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-18 12:36:36 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-18 12:36:36 +0200
commitdb7d9c0817a40ecaf6849c2e024d52ab6ed80324 (patch)
tree28de56eff9954c1fcf2ad4ac41690665ce6dcc84 /generated-classes/Map/ProductTableMap.php
parentfba23ca163517597b67f4674f721d919470f3697 (diff)
downloadCatalog-db7d9c0817a40ecaf6849c2e024d52ab6ed80324.tar.gz
Catalog-db7d9c0817a40ecaf6849c2e024d52ab6ed80324.zip
Update the propel database to cascade updates and deletions
Diffstat (limited to 'generated-classes/Map/ProductTableMap.php')
-rw-r--r--generated-classes/Map/ProductTableMap.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/generated-classes/Map/ProductTableMap.php b/generated-classes/Map/ProductTableMap.php
index 820ebc3..db565a0 100644
--- a/generated-classes/Map/ProductTableMap.php
+++ b/generated-classes/Map/ProductTableMap.php
@@ -170,9 +170,18 @@ class ProductTableMap extends TableMap
0 => ':product_id',
1 => ':id',
),
-), null, null, 'ProductCategories', false);
- $this->addRelation('Category', '\\Category', RelationMap::MANY_TO_MANY, array(), null, null, 'Categories');
+), 'CASCADE', 'CASCADE', 'ProductCategories', false);
+ $this->addRelation('Category', '\\Category', RelationMap::MANY_TO_MANY, array(), 'CASCADE', 'CASCADE', 'Categories');
} // buildRelations()
+ /**
+ * Method to invalidate the instance pool of all tables related to product * by a foreign key with ON DELETE CASCADE
+ */
+ public static function clearRelatedInstancePool()
+ {
+ // Invalidate objects in related instance pools,
+ // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
+ ProductCategoryTableMap::clearInstancePool();
+ }
/**
* Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.