Changeset 4890
- Timestamp:
- 09/08/08 21:12:00 (4 months ago)
- Location:
- branches/1.0
- Files:
-
- 6 modified
-
lib/Doctrine/Import/Schema.php (modified) (1 diff)
-
lib/Doctrine/Relation.php (modified) (1 diff)
-
lib/Doctrine/Relation/Nest.php (modified) (1 diff)
-
lib/Doctrine/Relation/Parser.php (modified) (1 diff)
-
tests/Ticket/1323b2TestCase.php (modified) (2 diffs)
-
tests/Ticket/1323TestCase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Import/Schema.php
r4832 r4890 121 121 'onUpdate', 122 122 'equal', 123 'owningSide'), 123 'owningSide', 124 'refClassRelationAlias'), 124 125 125 126 'inheritance'=> array('type', -
branches/1.0/lib/Doctrine/Relation.php
r4889 r4890 67 67 'cascade' => array(), // application-level cascades 68 68 'owningSide' => false, // whether this is the owning side 69 'refClassRelation ' => null,69 'refClassRelationAlias' => null, 70 70 ); 71 71 -
branches/1.0/lib/Doctrine/Relation/Nest.php
r4889 r4890 112 112 113 113 $path = $record->getTable()->getComponentName(). '.' . $this->getAssociationFactory()->getComponentName(); 114 if ($this->definition['refClassRelation ']) {115 $path = $record->getTable()->getComponentName(). '.' . $this->definition['refClassRelation '];114 if ($this->definition['refClassRelationAlias']) { 115 $path = $record->getTable()->getComponentName(). '.' . $this->definition['refClassRelationAlias']; 116 116 } 117 117 $q->addComponent($assocTable, $path); -
branches/1.0/lib/Doctrine/Relation/Parser.php
r4889 r4890 168 168 $localClasses = array_merge($this->_table->getOption('parents'), array($this->_table->getComponentName())); 169 169 170 $backRefRelationName = isset($def['refClassRelation ']) ?171 $def['refClassRelation '] : $def['refClass'];170 $backRefRelationName = isset($def['refClassRelationAlias']) ? 171 $def['refClassRelationAlias'] : $def['refClass']; 172 172 if ( ! isset($this->_pending[$backRefRelationName]) && ! isset($this->_relations[$backRefRelationName])) { 173 173 -
branches/1.0/tests/Ticket/1323b2TestCase.php
r4889 r4890 152 152 'local' => 'concept_id', 153 153 'foreign' => 'parent_concept_id', 154 'refClassRelation ' => 'broaderLinks'));154 'refClassRelationAlias' => 'broaderLinks')); 155 155 156 156 … … 158 158 'local' => 'parent_concept_id', 159 159 'foreign' => 'concept_id', 160 'refClassRelation ' => 'narrowerLinks'));160 'refClassRelationAlias' => 'narrowerLinks')); 161 161 } 162 162 } -
branches/1.0/tests/Ticket/1323TestCase.php
r4889 r4890 162 162 'foreign' => 'parent_id', 163 163 'refClass' => 'T1323UserReference', 164 'refClassRelation ' => 'childLinks'164 'refClassRelationAlias' => 'childLinks' 165 165 )); 166 166 … … 168 168 'foreign' => 'child_id', 169 169 'refClass' => 'T1323UserReference', 170 'refClassRelation ' => 'parentLinks'170 'refClassRelationAlias' => 'parentLinks' 171 171 )); 172 172 }