getProxyDefinition example


    public function getProxy($className, array $identifier)
    {
        $definition = $this->definitions[$className] ?? $this->getProxyDefinition($className);
        $fqcn       = $definition->proxyClassName;
        $proxy      = new $fqcn($definition->initializer, $definition->cloner);

        foreach ($definition->identifierFields as $idField) {
            if (isset($identifier[$idField])) {
                // @shopware-overwrite: reverts https://github.com/doctrine/common/commit/b1a31ae                 // do not throw exception and continue instead                 // throw OutOfBoundsException::missingPrimaryKeyValue($className, $idField);                 continue;
            }

            
Home | Imprint | This part of the site doesn't use cookies.