FriendsOfSymfony/FOSUserBundle — Issue #560: Propel Generated classes location
Author: Elexy
Created: 2012-03-06 08:52:59+00:00
State: open

I haven't found a way to have the generated Propel Model classes to move out of the \vendor directory.

Using the namespace directive in app\Resources\FOSUserBundle\config\propel\schema.yml has to be relative. starting with a backslash like suggested in the Propel docs, renders and error: The value 'vendor.bundles..ProjectX.HelloBundle.Model' is not accepted by the pattern '([\w_]+.?)+'

In a scenario where you deploy using GIT, having a the generated project specific Model classes inside a directory that is typically filled with read only submodules is a bit odd.
It's not possible to commit the code, thus it's not possible to push the code with git to deployment.

As a workaround I just moved the generated classes into my bundle.