I'm working with a weird configuration and I'm hoping someone here can help me find the best way to minimize the hassles it is giving me. The software I'm working with uses a folder structure similar to the following
The way everything works is that each time I perform a build, it makes a new folder in the builds folder, in the example the next one would be build4. The www folder is simply a symlink to the most recent build. Ideally I would like to be able to build my PHPStorm projects to just be the www folder. The problem I'm running into though is that if I set it up that way, whenever I run a debugger it tends to error because it tries to follow the symlink to the build folder which is outside the project. I can manually add in references to the files but the next time I do a build I have to recreate all of that. The other side of the coin is that if I include the builds folder I get multiple declarations every time I try to jump to a declaration. I've been experimenting with scopes within PHPStorm but so far I've been unable to set it up so that when I use the go to declaration command, it automatically goes to the declaration within the scope which in this case is just set to include the www folder.
Anyone have any ideas?