Development

Changeset 11850

You must first sign up to be able to contribute.

Changeset 11850

Show
Ignore:
Timestamp:
09/29/08 17:43:13 (6 years ago)
Author:
fabien
Message:

[1.0] ignore doctrine schema in the propel tasks (closes #4027)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/data/tasks/sfPakePropel.php

    r8288 r11850  
    5454function _propel_convert_yml_schema($check_schema = true, $prefix = '') 
    5555{ 
    56   $finder = pakeFinder::type('file')->ignore_version_control()->name('*schema.yml')
     56  $finder = pakeFinder::type('file')->ignore_version_control()->name('*schema.yml')->prune('doctrine')
    5757  $dirs = array('config'); 
    5858  if ($pluginDirs = glob(sfConfig::get('sf_root_dir').'/plugins/*/config')) 
     
    9292function _propel_convert_xml_schema($check_schema = true, $prefix = '') 
    9393{ 
    94   $finder = pakeFinder::type('file')->ignore_version_control()->name('*schema.xml')
     94  $finder = pakeFinder::type('file')->ignore_version_control()->name('*schema.xml')->prune('doctrine')
    9595 
    9696  $schemas = array_merge($finder->in('config'), $finder->in(glob(sfConfig::get('sf_root_dir').'/plugins/*/config'))); 
     
    124124function _propel_copy_xml_schema_from_plugins($prefix = '') 
    125125{ 
    126   $schemas = pakeFinder::type('file')->ignore_version_control()->name('*schema.xml')->in(glob(sfConfig::get('sf_root_dir').'/plugins/*/config')); 
     126  $schemas = pakeFinder::type('file')->ignore_version_control()->name('*schema.xml')->prune('doctrine')->in(glob(sfConfig::get('sf_root_dir').'/plugins/*/config')); 
    127127 
    128128  foreach ($schemas as $schema) 
     
    351351function _call_phing($task, $task_name, $check_schema = true) 
    352352{ 
    353   $schemas = pakeFinder::type('file')->ignore_version_control()->name('*schema.xml')->relative()->follow_link()->in('config'); 
     353  $schemas = pakeFinder::type('file')->ignore_version_control()->name('*schema.xml')->prune('doctrine')->relative()->follow_link()->in('config'); 
    354354  if ($check_schema && !$schemas) 
    355355  {