Bug #38032
Code Creation fails on self referenced one-to-one relation
| Status: | Closed | Start date: | 2012-06-14 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Code Creation | |||
| Target version: | 2.2 | |||
| Votes: | 0 |
Description
If I have a domain model that has a 1:1 reference to itself, extension builder fires an error:
Fatal error: Call to undefined method Tx_ExtensionBuilder_Domain_Model_DomainObject_Relation_ZeroToOneRelation::setUseExtendedRelationTableName() in C:\xampp\htdocs\t3\typo3conf\ext\extension_builder\Classes\Service\ExtensionSchemaBuilder.php on line 178
I worked around the problem buy adding the method in question to Tx_ExtensionBuilder_Domain_Model_DomainObject_Relation_ZeroToOneRelation like this:
public function setUseExtendedRelationTableName($useExtendedRelationTableName) {
$this->useExtendedRelationTableName = $useExtendedRelationTableName;
}
After reviewing the generated code, I assume, that the builder generates the code correctly.
History
Updated by Nico de Haen 11 months ago
- Status changed from New to Needs Feedback
Hi Christian,
I can't reproduce this.
Can you describe how to reproduce this?
I tried:
1. Craete a model
2. add a relation to itself (by dragging the wire from the relation to the top connector of the model
2. Select 1:1 as relation type
I even tried adding 2 self relations and changing relation type to n:1 (dropdown),
all worked fine...
Updated by Nico de Haen 9 months ago
- Status changed from Needs Feedback to Closed