0

enter image description here

Im using Doctrine in my custom project with PHP 7.4.6. When I`m trying to apply migration I get this error

[error] Migration app\migrations\Version20210113120851 failed during Pre-Checks. Error: "Provided directory "C:\Users\836D~1\AppData\Local\Temp" does not exist"

In InvalidProxyDirectoryException.php line 18:
                                                                          
  Provided directory "C:\Users\836D~1\AppData\Local\Temp" does not exist  
                                                                      
A J
  • 1

1 Answers1

-2

If you are using windows, the problem could be in "vendor/friendsofphp/proxy-manager-lts/src/ProxyManager/FileLocator/FileLocator.php". To do migration you can just comment $absolutePath = realpath($proxiesDirectory); row in constructor and specify explicitly your temp directory path. f.e.:

//$absolutePath = realpath($proxiesDirectory);
$absolutePath = 'C:\Temp';
epctn
  • 1
  • 1