In the dev environment Symfony uses the yaml file but when I switch to the prod environment it seems to ignore it and tries to read annotations from the class file which makes the workaround impossible. Why do the two environments not use the same mapping driver?
On Sep 23, 10:27 am, Jordi Boggiano <[email protected]> wrote: > On 23.09.2010 07:49, Fabien Potencier wrote: > > > On 9/23/10 12:04 AM, Pascal Burkhard wrote: > >> After some looking into it I saw that the problem is that @Collection > >> is also used by Doctrine MongoDB Mapping and it does not like it. > > > We are indeed aware of the problem and we are working on the solution. > > It will consist of a default prefix for annotations. So, your code would > > look like some like the following (names are not definitive yet): > > In the meantime I'd recommend you to move your Doctrine definitions to > yaml/xml files, so that the annotations are only used by the form framework. > > For example for an entity class called Bar you must place a file in this > dir: > > src/Application/FooBundle/Resources/config/doctrine/metadata/orm > > Called: > > Application.FooBundle.Entity.Bar.dcm.yml > > And then the content is: > > Application\FooBundle\Entity\Bar: > type: entity > table: bar > fields: > id: > type: integer > id: true > generator: > strategy: IDENTITY > name: > type: string > length: 255 > > More > athttp://www.doctrine-project.org/documentation/manual/2_0/en/basic-map... > > Cheers > > -- > Jordi Boggiano > @seldaek ::http://seld.be/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
