From 66b34314d67c695b899b704feffbe723453f1dbf Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 4 May 2015 12:32:33 +0200 Subject: Use isCrossRef for a many-to-many relation --- Aufgabe06/generated-classes/Map/ProductCategoryTableMap.php | 1 + 1 file changed, 1 insertion(+) (limited to 'Aufgabe06/generated-classes/Map/ProductCategoryTableMap.php') diff --git a/Aufgabe06/generated-classes/Map/ProductCategoryTableMap.php b/Aufgabe06/generated-classes/Map/ProductCategoryTableMap.php index 44d7849..262f098 100644 --- a/Aufgabe06/generated-classes/Map/ProductCategoryTableMap.php +++ b/Aufgabe06/generated-classes/Map/ProductCategoryTableMap.php @@ -130,6 +130,7 @@ class ProductCategoryTableMap extends TableMap $this->setClassName('\\ProductCategory'); $this->setPackage(''); $this->setUseIdGenerator(false); + $this->setIsCrossRef(true); // columns $this->addForeignPrimaryKey('product_id', 'ProductId', 'INTEGER' , 'product', 'id', true, null, null); $this->addForeignPrimaryKey('category_id', 'CategoryId', 'INTEGER' , 'category', 'id', true, null, null); -- cgit v1.2.3-70-g09d2