0

I am able to generate bundle. But I face problem when building model using propel. I tried php symfony propel:build-model to generate model but it throws error - could not open input file: symfony. php app/console cache:clear works fine for me. Will I have to set environmental variable for symfony too. I am on window 7 32bit machine. I am using symfony2. Any suggestion will be very helpful to me.

1
  • Does the file "symfony" exist ? And if yes, what are the rights ? (777 ?) Commented May 31, 2013 at 12:36

1 Answer 1

1

Use php app/console propel:build-model instead of php symfony propel:build-model. The app/console part is just a reference to the console file inside the app directory. That file is the main entrance for all console commands in your Symfony application.

The php part tells the console to use the php command to execute the app/console file and propel:build-model is the command you execute.

EDIT: From the comments: Also don't forget to add the bundle to AppKernel::registerBundles.

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

4 Comments

I have also tried <code>php app/console propel:build-model</code> but with no success. Is there any other way to generate model and schema.
Did you installed the PropelBundle?
@Gautam and activated it in the AppKernel?
I thought composer automatically keep the the things in AppKernel. I got it now. So thanks for the help.

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.