Kdyby\GeneratedProxy\__CG__\Intra\Model\Database\Entity\PaymentMethod::getReflection() is deprecated PHP7.4

crookslovacko
Člen | 75
+
0
-

Dobrý den

Dostal jsem za úkol update jeden projekt. Byl v PHP5.6 teď jede na 7.4 Nette 2.4. Jakž takž se dařilo ale nemůžu se zbavit tohoto deprecated.

Půjde to vůbec, vypnutí deprecate alert beru jako poslední možnost

Samozrejmě cache temp vyčištěno.

Možná tam zasahuje nette/SmartObject z Utils. Bohužel není to můj project a doctrine teprve studuju
composer.json

Celá chyba
Kdyby\GeneratedProxy\__CG__\Intra\Model\Database\Entity\PaymentMethod::getReflection() is deprecated in C:\xampp74\htdocs\audiopro74new\vendor\kdyby\doctrine\src\Kdyby\Doctrine\Entities\BaseEntity.php:229

{
    "name": "nette/web-project",
    "description": "Nette: Standard Web Project",
    "type": "project",
    "license": ["MIT", "BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
    "require": {
        "php": ">= 7.4",
        "nette/application": "2.4.*",
	"nette/bootstrap": "2.4.*",
	"nette/di": "^2.4",
	"nette/forms": "^2.4",
	"nette/http": "^2.4",
	"nette/security": "^2.4",
        "nette/database": "^2.4",
        "nette/finder": "^2.6",
        "nette/mail": "^2.4",
        "nette/robot-loader": "^3.1",
        "nette/safe-stream": "^2.4.1",
        "latte/latte": "2.10.9",
        "tracy/tracy": "^2.6",
        "ublaboo/datagrid": "^5.7",
        "mpdf/mpdf": "^8.2",
        "kdyby/translation": "^2.3",
        "uestla/recaptcha-control": "^7.0",
        "filipsedivy/php-eet": "^4.2",
        "heureka/overeno-zakazniky": "^4.0",
        "ulozenka/api-v3": "^0.4.0",
        "facebook/graph-sdk": "^5.7",
        "league/flysystem-sftp": "^2.5",
        "soukicz/zbozicz": "^1.3",
        "symfony/options-resolver": "^5.4",
        "respect/validation": "^2.2",
        "guzzlehttp/guzzle": "^7.8",
        "minishlink/web-push": "^7.0",
        "phpoffice/phpexcel": "^1.8",
        "ublaboo/datagrid-nette-database-data-source": "^1.1",
        "php-imap/php-imap": "^5.0",
        "ext-json": "*",
        "ext-curl": "*",
        "thepay/api-client": "^2.1",
        "bigit/vokativ": "dev-master",
        "tamtamchik/namecase": "^3.0",
        "kdyby/doctrine": "^3.3",
        "nettrine/orm": "^0.3.1",
        "contributte/console": "^0.6.0",
        "symfony/console": "^4.4",
        "doctrine/doctrine-bundle": "^2.3",
        "nette/utils": "^2.5"

    },
    "require-dev": {
        "nette/tester": "^2.4"
    },
    "minimum-stability": "stable"
}

Felix
Nette Core | 1245
+
0
-

Doporucuju aktualizovat na posledni verzi, ktera podporuje Doctrine DBAL 4.x a ORM 3.x.

makak
Člen | 2
+
-1
-

jj – metoda getReflection() je od PHP 7.4 označena jako deprecated

V souboru index.php přidejte na začátek:
error_reporting(E_ALL & ~E_DEPRECATED);