Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] namspace to package resolves symlinks with wrong path #291

Open
marcj opened this issue Oct 2, 2014 · 3 comments
Open

[v2] namspace to package resolves symlinks with wrong path #291

marcj opened this issue Oct 2, 2014 · 3 comments

Comments

@marcj
Copy link
Member

marcj commented Oct 2, 2014

When having propel in a vagrant box where you typically have part of your sourcecode in /vagrant to be able to develop on your local machine PropelBundle is going to place the wrong "package" attribute in the schema.

example:

ls -ald /var/www/propelsandbox/src
lrwxrwxrwx 1 www-data www-data 12 Oct  1 17:31 /var/www/propelsandbox/src -> /vagrant/src

In /vagrant/src I have then my bundle files like /vagrant/src/PropelSandbox/. When I have there a /vagrant/src/PropelSandbox/Resources/config/schema.xml

<database name="default" namespace="PropelSandbox\Model">

the result in package of app/cache/*/propel/PropelSandbox-schema.xml is

<database name="default" namespace="PropelSandbox\Model" package="vagrant.src.PropelSandbox.Model">

Which leads to generated files in /var/www/symfony-project/vagrant/src/PropelSandbox/Model. Obviously wrong. Either it needs to place a root . or shouldn't resolve symlinks.

@jaugustin
Copy link
Member

I think I had a pr for this

@marcj
Copy link
Member Author

marcj commented Oct 4, 2014

@jaugustin, would be cool 😎

@jaugustin
Copy link
Member

Hi @marcj

I found My commit I never had time to create test and a PR pixel-cookers@88aabd2

We used it on AWS vm, our vendor dir was a symlink to prevent re-download it on each deploy ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants