0

When there are number of plugins in a project and I need to create model, form and filter classes , i am left with only one option that I need to create classes for all connections. How can I make propel:build to accept --connection parameter such that it builds only the classes for specific connection related to a plugin?

Symfony Version : 1.4

1 Answer 1

1

If you are using the sfPropelORMPlugin, and according to the code of the sfPropelBuildAllTask, you can use --connection. Same thing for the sfPropelBuildModelTask. Thing is, it's not used by these tasks. This is an issue you should report, but at the moment there is no way to use a given connection to build some classes and not all of them.

Sign up to request clarification or add additional context in comments.

3 Comments

But there maybe some way out by modification or extending these classes?
AFAIK not easily. (disclaimer: I lead the Propel projects)
We used custom generators to achieve this. Accepting your answer as it was helpful. Thank you very much.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.