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
Doctrine is using manually require_once and if it happens Enum class to be in Entity folder - It bypasses the autoloader and __constructStatic is never called.
@Warxcell thanks for the bug report. I will find out how to solve it for you.
In general, I'm going to suspend the whole development of this repository but will keep updates for people who already using it. I've mentioned it here as well: #17 (comment)
Doctrine is using manually
require_once
and if it happens Enum class to be in Entity folder - It bypasses the autoloader and __constructStatic is never called.https://github.com/doctrine/persistence/blob/2.1.x/lib/Doctrine/Persistence/Mapping/Driver/AnnotationDriver.php#L234
I don't have idea how to fix it generally. For quick fix in my code i did intermediate class.
so when Doctrine
require_once 'EntityEnum.php';
it will lead autoloader toNonEntityEnum
and it will call the constructStatic.The text was updated successfully, but these errors were encountered: