Hello,
I just start to play with dbfinder and multi-orm schema definition ...
I found out that the sfPropelBaseTask also parse doctrine schema ,
this can be solve by adding maxdepth(0)
### Eclipse Workspace Patch 1.0
#P Soleoweb
Index: sf/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php
===================================================================
--- sf/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php
(revision
11667)
+++ sf/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php (working
copy)
@@ -85,13 +85,14 @@
protected function schemaToXML($checkSchema = self::CHECK_SCHEMA,
$prefix = '')
{
- $finder = sfFinder::type('file')->name('*schema.yml');
+ $finder = sfFinder::type('file')->name('*schema.yml')->maxdepth(0);
$dirs = array('config');
if ($pluginDirs = glob(sfConfig::get('sf_plugins_dir').'/*/config'))
{
$dirs = array_merge($dirs, $pluginDirs);
}
$schemas = $finder->in($dirs);
+
if (self::CHECK_SCHEMA === $checkSchema && !count($schemas))
{
throw new sfCommandException('You must create a schema.yml file.');
Do I need to create a ticket ?
--
Thomas Rabaix
Internet Consultant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---