Skip to content

orm:ensure-production-settings incorrectly reports that proxy classes are always generated #6423

Open
@BrandonDusseau

Description

@BrandonDusseau

The console tool orm:ensure-production-settings appears to report that "Proxy Classes are always regenerating" when the proxy mode is set to AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS.

This is due to the use of a check for truthy values rather than strict checks for boolean true or the constant AbstractProxyFactory::AUTOGENERATE_ALWAYS:

if ($this->getAutoGenerateProxyClasses()) {
    throw ORMException::proxyClassesAlwaysRegenerating();
}

This may be one of two situations: either this is a bug and the production readiness tool is misreporting this case, or the string returned by the tool is simply misleading ("... are always regenerating.").

This affects Doctrine 2.5.6.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions