It seems that there is a fault in: sfDoctrinePlugin's _checkForPackageParameter
lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php line 64: $this->_checkForPackageParameter($config['yaml_schema_path']); line 119: $files = sfFinder::type('file')->name('*.yml')->in($path); i get the point of not having package parameter inside the main schema.yml because would blow up the entire model directory structure but there is no differentiation between files loaded (other schemas and schema.yml) think should turn into: $files = sfFinder::type('file')->name('schema.yml')->in($path); it's up to Jonathan to decide but i think schemas from plugins should be easily overridden by schemas copied inside the /project/doctrine/config/ If i'm missing something related to autoload of models that would break things please let me know. Thanks. Marius On Wed, Jun 17, 2009 at 4:16 PM, Marius Rugan <mariusru...@gmail.com> wrote: > Hi, > > yes, i'm placing it inside > > project/config/doctrine/sfDoctrineGuardPlugin.schema.yml > > package: sfDoctrineGuardPlugin.lib.model.doctrine > sfGuardGroup: > ...rest of the original schema.yml from sfDoctrineGuardPlugin goes here ... > > trying to re-generate model with symfony doctrine:build-all-reload > still sfGuardGroup.class.php and all the rest gets re-generated inside > lib/model/doctrine > instead of lib/model/doctrine/sfDoctrineGuardPlugin > > > On Wed, Jun 17, 2009 at 4:01 PM, Jonathan Wage <jonw...@gmail.com> wrote: > >> And you're placing this at the top of the file in your own >> project/config/doctrine folder? >> >> Jonathan H. Wage (+1 415 992 5468) >> Open Source Software Developer & Evangelist >> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org >> >> >> >> On Wed, Jun 17, 2009 at 7:32 AM, Marius Rugan <mariusru...@gmail.com>wrote: >> >>> Hi all, >>> >>> In March, Jonathan Wage wrote: >>> >>> Add this to the top of the plugin: "package: >>> sfDoctrineGuardPlugin.lib.model.doctrine" >>> This "package" option is automatically added to the schema files found in >>> >>> plugins so that the models are all generated in the right places. When >>> you >>> copy that schema file you just need to set that manually so they are >>> generated in the right place. >>> >>> i'm trying to override the schema in sfDoctrineGuardPlugin with a >>> sfDoctrineGuardPlugin.schema.yml inside >>> config/doctrine folder >>> but i keep bumping my head against >>> >> Cannot use package parameter in symfony Doctrine schema files. << >>> or >>> Cannot redeclare class BasesfGuardGroup (sfDoctrineGuardPlugin.schema.yml >>> generates model in >>> lib/model/doctrine instead of lib/model/doctrine/sfDoctrineGuardPlugin >>> >>> any ideas on how to override the schema.yml cleanly ? >>> >>> >>> >>> >>> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---