You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewLogicException('Cannot enable or disable LazyGhostObject when native lazy objects are enabled.');
696
+
}
697
+
698
+
if ($flag) {
692
699
if (! class_exists(ProxyManagerConfiguration::class)) {
693
700
thrownewLogicException('Package "friendsofphp/proxy-manager-lts" is required to disable LazyGhostObject.');
694
701
}
695
702
696
-
trigger_deprecation(
697
-
'doctrine/mongodb-odm',
698
-
'2.10',
699
-
'Using "friendsofphp/proxy-manager-lts" is deprecated. Use "symfony/var-exporter" LazyGhostObjects instead.',
700
-
);
703
+
trigger_deprecation('doctrine/mongodb-odm', '2.10', 'Using "friendsofphp/proxy-manager-lts" is deprecated. Use "symfony/var-exporter" LazyGhostObjects instead.');
701
704
}
702
705
703
-
$this->useLazyGhostObject = $flag;
706
+
if ($flag === true && PHP_VERSION_ID >= 80400) {
707
+
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Using "symfony/var-exporter" lazy ghost objects is deprecated and will be impossible in Doctrine MongoDB ODM 3.0.');
if (PHP_VERSION_ID >= 80400 && ! $nativeLazyObjects) {
721
+
trigger_deprecation('doctrine/mongodb-odm', '2.13', 'Disabling native lazy objects is deprecated and will be impossible in Doctrine MongoDB ODM 3.0.');
722
+
}
723
+
724
+
if (PHP_VERSION_ID < 80400 && $nativeLazyObjects) {
725
+
thrownewLogicException('Lazy loading proxies require PHP 8.4 or higher.');
0 commit comments