propelorm/sfPropelORMPlugin

Restore the ability to generate 'all' forms and filters (in projects with multiple connections)

mppfiles opened this issue · 6 comments

This change prevents to automagically generate all form classes in projects with multiple connections.
Before, when propel:build-forms (and filters) task was called (without arguments), all classes were built.
Now, if no connection is specified, it will just build the classes for the "propel" connection.

I have a symfony project with 5 connections, and now I have to manually call propel:build-forms and propel:build-filters 5 times each.

Is this the expected behavior? If yes, adding a --all-connections option to the task will be very useful.

instead of propel:build-forms/filters I am used to call propel:build --all-classes.
Maybe that task is more appropiate to implement the proposed --all-connections switch.

Agreed for a --all-connections option. Could you work on a patch ?

👍 for --all-connections and i think should be activated by default if we not give an explicit connection. Like that tools like capifony will not be breaked

Fixed by PR #108

many thanks guys! works like a treat!

Let me know if there are issues..