w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Why are my Symfony/Doctrine2 entites different from my CI/D2 ones ? (Ultimately, What is the difference between Doctrine 2 and Doctrine 2 ORM ?)

Long story short, in symfony the doctrine annotation reader is an AnnotationReader, whereas in CI using the doctrine Setup::createAnnotationMetadataConfiguration helper, you have the SimpleAnnotationReader by default.

You should be able to have the same behavior as in symfony by passing false to the 5th argument $useSimpleAnnotationReader of Setup::createAnnotationMetadataConfiguration.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.