mmoreram / simpledoctrinemapping Goto Github PK
View Code? Open in Web Editor NEWSimple doctrine mapping for Symfony2 projects
License: MIT License
Simple doctrine mapping for Symfony2 projects
License: MIT License
even though annotations is just plain wrong in the long run for this use case
I wonder if for some legacy projects this can be supported
By default, includes a mapping information, but allow user to override a flag and avoid a mapping inclusion.
If SimpleDoctrineMappingLocator
is configured with an absolute path, LocatorConfigurator
confuses the root with a bundle and fails to find the resource.
would be nice to just set a parameter array with several entries for several repositories at once and have the compiler pass build it all
I'm trying this bundle to develop reusable bundles and I found that everything works as expected but Command related code. It seems the CompilerPass is ignored when you use EntityManager inside a ContainerAwareCommand:
Example:
class ExpireTokenCommand extends ContainerAwareCommand
{
protected function execute(...)
{
$em = $this->getContainer()->get('doctrine.orm.entity_manager');
$em->getRepository("FooBarBundle:SomeEntity");
}
}
It returns
Unknown Entity namespace alias 'FooBarBundle'
Bot the other functional tests are passing
Any idea why?
I wonder what MappingDriverChain
is really doing: Removing it (or just removing every method so they will be inherited from the parent) works the same in our code, which makes heavy usage of this functionality. Even more: this class assumes every Driver
inherits from FileDriver
, which fails when any manual mapping is done. Removing this class makes simple-mapping, manual-mapping and auto-mapping work out of the box. Am I missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.