FriendsOfSymfony1 / doctrine1

[DEPRECATED -- Use Doctrine2 instead] Doctrine 1 Object Relational Mapper.
http://www.doctrine-project.org
GNU Lesser General Public License v2.1
40 stars 75 forks source link

Do you know why I got this message ? #35

Open MaraScott opened 7 years ago

MaraScott commented 7 years ago

Hi, Do you know why I got this kind of message ?

Fatal error: require(): Failed opening required 'symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Parser/sfYaml/sfYamlConfigHandler.php' (include_path='.:/usr/share/php') in symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Core.php on line 1118

see original issue https://github.com/qdpm/qdpm/issues/2

regisnew commented 5 years ago

It's becouse of autoload.

regisnew commented 5 years ago

https://github.com/FriendsOfSymfony1/doctrine1/pull/34

alquerci commented 5 years ago

Hello,

@regisnew Yes, because of autoloading logic that try to load class sfYamlConfigHandler that is not part of Yaml component see: https://github.com/FriendsOfSymfony1/doctrine1/blob/v1.3.6/lib/Doctrine/Core.php#L1135 So the PR #34 is not going to fix it, as it just upgrade Yaml code and fix composer autoloading.

@davask Doctrine1 autoloader is registered on this application. The reason is because of autoloader precedence order. Symfony1 autoloader must be register before Doctrine1 to avoid this error.