Changeset 4679

Show
Ignore:
Timestamp:
07/13/08 00:34:09 (5 months ago)
Author:
jwage
Message:

fixes #1188 - Removing generate accessors functionality

Location:
branches/1.0
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/docs/manual/de/schema-files.txt

    r4674 r4679  
    541541</code> 
    542542 
    543 +++ Generate Accessors 
    544  
    545 When the generate_accessors: true option is present in a schema file, it will generate propel orm style  
    546 get and set accessors in the Base model definition. For example setFieldName() and getFieldName() would  
    547 then be possible in your models. 
    548  
    549 Example: 
    550 <code type="yaml"> 
    551 --- 
    552 generate_accessors: true 
    553  
    554 User: 
    555   columns: 
    556     username: 
    557       type: string(255) 
    558 </code> 
    559  
    560543+++ Column Aliases 
    561544 
     
    608591inheritance 
    609592detect_relations 
    610 generate_accessors 
    611593 
    612594<code type="yaml"> 
     
    618600package: User 
    619601detect_relations: true 
    620 generate_accessors: true 
    621602 
    622603User: 
  • branches/1.0/docs/manual/en/schema-files.txt

    r4674 r4679  
    578578</code> 
    579579 
    580 +++ Generate Accessors 
    581  
    582 When the generate_accessors: true option is present in a schema file, it will generate propel orm style  
    583 get and set accessors in the Base model definition. For example setFieldName() and getFieldName() would  
    584 then be possible in your models. 
    585  
    586 Example: 
    587 <code type="yaml"> 
    588 --- 
    589 generate_accessors: true 
    590  
    591 User: 
    592   columns: 
    593     username: 
    594       type: string(255) 
    595 </code> 
    596  
    597580+++ Column Aliases 
    598581 
     
    645628inheritance 
    646629detect_relations 
    647 generate_accessors 
    648630 
    649631<code type="yaml"> 
     
    655637package: User 
    656638detect_relations: true 
    657 generate_accessors: true 
    658639 
    659640User: 
  • branches/1.0/lib/Doctrine/Import/Builder.php

    r4637 r4679  
    353353                    . '%s' . PHP_EOL 
    354354                    . '%s' . PHP_EOL 
    355                     . '%s' 
    356355                    . '}'; 
    357356    } 
     
    885884        } 
    886885 
    887         if ( ! isset($definition['generate_accessors']) || !$definition['generate_accessors']) { 
    888           $definition['generate_accessors'] = $this->generateAccessors(); 
    889         } 
    890  
    891         $accessorsCode = (isset($definition['generate_accessors']) && $definition['generate_accessors'] === true) ? $this->buildAccessors($definition):null; 
    892  
    893886        $content = sprintf(self::$_tpl, $abstract, 
    894887                                       $className, 
    895888                                       $extends, 
    896889                                       $tableDefinitionCode, 
    897                                        $setUpCode, 
    898                                        $accessorsCode); 
     890                                       $setUpCode); 
    899891 
    900892        return $content; 
  • branches/1.0/lib/Doctrine/Import/Schema.php

    r4637 r4679  
    8686                                                          'inheritance', 
    8787                                                          'detect_relations', 
    88                                                           'generate_accessors', 
    8988                                                          'listeners'), 
    9089 
     
    293292                          'package'             =>  null, 
    294293                          'inheritance'         =>  array(), 
    295                           'detect_relations'    =>  false, 
    296                           'generate_accessors'  =>  false); 
     294                          'detect_relations'    =>  false); 
    297295         
    298296        $array = Doctrine_Parser::load($schema, $type); 
     
    307305                            'package', 
    308306                            'inheritance', 
    309                             'detect_relations', 
    310                             'generate_accessors'); 
     307                            'detect_relations'); 
    311308 
    312309        // Loop over and build up all the global values and remove them from the array 
  • branches/1.0/tests/Import/SchemaTestCase.php

    r4308 r4679  
    7676        $this->assertTrue(array_key_exists('inheritance', $model) && is_array($model['inheritance'])); 
    7777        $this->assertTrue(array_key_exists('detect_relations', $model) && is_bool($model['detect_relations'])); 
    78         $this->assertTrue(array_key_exists('generate_accessors', $model) && is_bool($model['generate_accessors'])); 
    7978        $this->assertEqual($array['AliasTest']['columns']['test_col']['name'], 'test_col as test_col_alias'); 
    8079    }