Home » Php » php – Symfony ignore AppleDouble

php – Symfony ignore AppleDouble

Posted by: admin July 12, 2020 Leave a comment


I have a development server where I log in to (through ssh). Apple automatically creates the AppleDouble files/directories, which doesn’t work well with Symfony. Every time I want to use a command (mostly doctrine:schema:update). I get AppleDouble errors about classes that don’t exist.

Is there any way to tell Symfony to ignore those AppleDouble files?

I saw this issue on GitHub, but it’s closed in favor of other issues, but I don’t really know how to implement it.

How to&Answers:

Try to disable this in OSX itself:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Found on this thread.


The folder is created not by Apple but by NAS which you are using probably. Look at this FAQ

So if you use Netatalk you should probably look at its docs. Same folders are created by RedyNAS. But the common pattern as I understood is to run command from terminal that @Valentas described. And then remove the folders recursively.

If you have to hold folders and make Symfony work you should modify the value of Finder::vcsPatterns. As the property is static you can add the following code to the app/console (or bin/console):

$kernel = new AppKernel($env, $debug);