Changeset 4890

Show
Ignore:
Timestamp:
09/08/08 21:12:00 (4 months ago)
Author:
jwage
Message:

fixes #1323 Renaming to refClassRelationAlias and adding support to yaml

Location:
branches/1.0
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Import/Schema.php

    r4832 r4890  
    121121                                                          'onUpdate', 
    122122                                                          'equal', 
    123                                                           'owningSide'), 
     123                                                          'owningSide', 
     124                                                          'refClassRelationAlias'), 
    124125 
    125126                                   'inheritance'=>  array('type', 
  • branches/1.0/lib/Doctrine/Relation.php

    r4889 r4890  
    6767                                  'cascade'     => array(), // application-level cascades 
    6868                                  'owningSide'  => false, // whether this is the owning side 
    69                                   'refClassRelation' => null, 
     69                                  'refClassRelationAlias' => null, 
    7070                                  ); 
    7171 
  • branches/1.0/lib/Doctrine/Relation/Nest.php

    r4889 r4890  
    112112             
    113113            $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']; 
    116116            } 
    117117            $q->addComponent($assocTable, $path); 
  • branches/1.0/lib/Doctrine/Relation/Parser.php

    r4889 r4890  
    168168                $localClasses = array_merge($this->_table->getOption('parents'), array($this->_table->getComponentName())); 
    169169                 
    170                 $backRefRelationName = isset($def['refClassRelation']) ? 
    171                         $def['refClassRelation'] : $def['refClass']; 
     170                $backRefRelationName = isset($def['refClassRelationAlias']) ? 
     171                        $def['refClassRelationAlias'] : $def['refClass']; 
    172172                if ( ! isset($this->_pending[$backRefRelationName]) && ! isset($this->_relations[$backRefRelationName])) { 
    173173 
  • branches/1.0/tests/Ticket/1323b2TestCase.php

    r4889 r4890  
    152152                                                       'local' => 'concept_id', 
    153153                                                       'foreign' => 'parent_concept_id',  
    154                                                        'refClassRelation' => 'broaderLinks')); 
     154                                                       'refClassRelationAlias' => 'broaderLinks')); 
    155155 
    156156 
     
    158158                                                        'local' => 'parent_concept_id', 
    159159                                                        'foreign' => 'concept_id',  
    160                                                         'refClassRelation' => 'narrowerLinks')); 
     160                                                        'refClassRelationAlias' => 'narrowerLinks')); 
    161161  } 
    162162} 
  • branches/1.0/tests/Ticket/1323TestCase.php

    r4889 r4890  
    162162                                                'foreign'  => 'parent_id', 
    163163                                                'refClass' => 'T1323UserReference', 
    164                                                 'refClassRelation' => 'childLinks' 
     164                                                'refClassRelationAlias' => 'childLinks' 
    165165                                                )); 
    166166 
     
    168168                                                 'foreign'  => 'child_id', 
    169169                                                 'refClass' => 'T1323UserReference', 
    170                                                  'refClassRelation' => 'parentLinks' 
     170                                                 'refClassRelationAlias' => 'parentLinks' 
    171171                                                 )); 
    172172    }