diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-04 12:32:33 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-04 12:32:33 +0200 |
| commit | 66b34314d67c695b899b704feffbe723453f1dbf (patch) | |
| tree | b6a69358442065692ef546ad836abefd722e89ee /Aufgabe06/generated-classes/Map | |
| parent | f6933b82bbdb767480abf4cf6818b2db56fae1cc (diff) | |
| download | InternetTechnologien-66b34314d67c695b899b704feffbe723453f1dbf.tar.gz InternetTechnologien-66b34314d67c695b899b704feffbe723453f1dbf.zip | |
Use isCrossRef for a many-to-many relation
Diffstat (limited to 'Aufgabe06/generated-classes/Map')
| -rw-r--r-- | Aufgabe06/generated-classes/Map/CategoryTableMap.php | 1 | ||||
| -rw-r--r-- | Aufgabe06/generated-classes/Map/ProductCategoryTableMap.php | 1 | ||||
| -rw-r--r-- | Aufgabe06/generated-classes/Map/ProductTableMap.php | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Aufgabe06/generated-classes/Map/CategoryTableMap.php b/Aufgabe06/generated-classes/Map/CategoryTableMap.php index bc2fd2c..b9aef89 100644 --- a/Aufgabe06/generated-classes/Map/CategoryTableMap.php +++ b/Aufgabe06/generated-classes/Map/CategoryTableMap.php @@ -153,6 +153,7 @@ class CategoryTableMap extends TableMap 1 => ':id', ), ), null, null, 'ProductCategories', false); + $this->addRelation('Product', '\\Product', RelationMap::MANY_TO_MANY, array(), null, null, 'Products'); } // buildRelations() /** 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); diff --git a/Aufgabe06/generated-classes/Map/ProductTableMap.php b/Aufgabe06/generated-classes/Map/ProductTableMap.php index c260802..820ebc3 100644 --- a/Aufgabe06/generated-classes/Map/ProductTableMap.php +++ b/Aufgabe06/generated-classes/Map/ProductTableMap.php @@ -171,6 +171,7 @@ class ProductTableMap extends TableMap 1 => ':id', ), ), null, null, 'ProductCategories', false); + $this->addRelation('Category', '\\Category', RelationMap::MANY_TO_MANY, array(), null, null, 'Categories'); } // buildRelations() /** |
