Changeset 3960
- Timestamp:
- 05/08/07 18:17:34 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDoctrineCommentsPlugin/config/doctrine/schema.yml
r3925 r3960 1 1 <?php include('schemaConfig.php') ?> 2 2 Comment: 3 tableName: sf_comment3 tableName: <?php echo $config['schema']['comment_table_name']; ?> 4 4 options: 5 5 treeImpl: NestedSet … … 20 20 type: integer 21 21 size: 4 22 foreignClass: <?php echo $config[' user_model']."\n" ?>23 foreignReference: <?php echo $config[' user_model_id']."\n" ?>22 foreignClass: <?php echo $config['schema']['user_model']."\n" ?> 23 foreignReference: <?php echo $config['schema']['user_model_id']."\n" ?> 24 24 localName: Comments 25 25 foreignName: User plugins/sfDoctrineCommentsPlugin/config/doctrine/schemaConfig.php
r3907 r3960 1 1 <?php 2 $config = array('user_model' => 'User', 3 'user_model_id' => 'id'); 2 // Schema defaults 3 $config['schema'] = array('comment_table_name' => 'sf_comment', 4 'user_model' => 'User', 5 'user_model_id' => 'id'); 4 6 5 7 if( is_readable($config_file = sfConfig::get('sf_config_dir').'/sfDoctrineCommentsPlugin.yml') ) … … 9 11 if(isset($doctrine_comments_config['schema'])) 10 12 { 11 $config = array_merge($config , $doctrine_comments_config['schema']);13 $config = array_merge($config['schema'], $doctrine_comments_config['schema']); 12 14 } 13 15 }