The Context:
a) Add new tables via mysql
b) ./symfony doctrine:build-schema
c) ./symfony doctrine:build --all-classes --model --forms --filters

Item b) in the above list creates an issue:
It reads the sf_guard_* tables and places the YAML into the newly
generated /config/doctrine/schema.yml file. This causes a problem when
doing the doctrine:build because there is also a YAML schema file for
sfGuardDoctrinePlugin models in the plugin's directory, so now it
appears twice.

Right now I have to open the newly generated /config/doctrine/
schema.yml file and manually remove the SfGuard* entries in the YAML
before building.

I have two questions:
1) Is there a way to exclude the sfGuardDoctrinePlugin tables from the
doctrine:build-schema task? (Then it will only use the schema in the
Plugins directory thus removing the need for me to manually go in and
remove those from the YAML)
2) I noticed when adding new tables that I want to have a relationship
with the id field in the associated sfDoctrineGuardUser table, I need
to edit the schema.yml for the sfDoctrineGuardUser plugin. What is the
best way to do this so future updates don't remove these
relationships, and rebuilding the models will always maintain/keep
these relationships?

Thank you in advance

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to