common icon indicating copy to clipboard operation
common copied to clipboard

Feature request: Autogenerate mode that does nothing

Open zerocrates opened this issue 8 years ago • 3 comments

I have a system where proxies are stored in several different locations. The proxy autoloader system provides a perfectly reasonable way of dealing with this, but AbstractProxy::getProxyDefintion gets in the way: its behavior is based on the proxy autogenerate mode, and all the modes that deal with files require a specific file. In other words, I want to configure for AUTOGENERATE_NEVER, but also just leave loading the proxy up to the autoloader.

An additional autogenerate mode that's just a no-op would accomplish this very simply.

zerocrates avatar Sep 15 '17 18:09 zerocrates

This will unlikely be implemented in 2.x, but rather in 3.x if I manage to finish up https://github.com/doctrine/doctrine2/pull/1241

Ocramius avatar Sep 15 '17 18:09 Ocramius

OK, I basically expected that.

This was possible but undocumented before #816 (by choosing any value not accounted for by the switch), and worked quite well. I may just have to stick to those versions where it continues to be possible then.

zerocrates avatar Sep 15 '17 19:09 zerocrates

@zerocrates if you want, you can submit a PR to introduce an "attempt autoloading" mode :-)

Ocramius avatar Sep 15 '17 19:09 Ocramius