mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
GenerateProxiesCommand getConfiguration()->getProxyDir() is undefined #6269
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Musiksammler on GitHub (Jul 5, 2019).
Bug Report
Summary
I just started to use the doctrine console. With a simple "php vendor/bin/doctrine orm:generate-proxies" it fails with the following message: "Call to undefined method Doctrine\ORM\Configuration::getProxyDir() in .../vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php on line 57"
Current behavior
Command failes when to proxies directory is given as an argument.
Use the doctrine console with following call:
"php vendor/bin/doctrine orm:generate-proxies"
Expected behavior
That the command generates the proxy classes even without giving an explicit directory.
@greg0ire commented on GitHub (Sep 28, 2019):
Where should the proxy classes be generated?
@Ocramius commented on GitHub (Oct 2, 2019):
Note: https://github.com/doctrine/orm/pull/7770#issuecomment-537401418
In theory, we can solve this by just "instantiating" a proxy for every metadata type: the ProxyManager component will already perform disk writes, if configured in such way.
getProxyDir()should no longer be used. /cc @alirezameskin (if you want to give this another try)