If the entity setting is the same for multiple bundle, do I still need to repeat it for each bundle?
mappings: # Required
ApplicationUserBundle:
is_bundle: false
dir: doctrine/Entities
prefix: Entities
type: staticphp
ApplicationAdminBundle:
is_bundle: false
dir: doctrine/Entities
prefix: Entities
type: staticphp
Or is there a way to set the same entity setting for several bundle without repeating them?
Hi nimasdj.
This code is a part of your config.yml?
Yes. Do I really need to repeat for each bundle?
For a complete mapping of your entities,… You do.
nimasdj
January 13, 2015, 10:20am
5
nimasdj
January 13, 2015, 11:55am
6
Do you have any idea about that issue?
oddz
January 14, 2015, 1:08am
7
Yaml node references and anchors can be used.
YAML (/ˈjæməl/) (see § History and name) is a human-readable data-serialization language. It is commonly used for configuration files and in applications where data is being stored or transmitted. YAML targets many of the same communications applications as Extensible Markup Language (XML) but has a minimal syntax which intentionally differs from Standard Generalized Markup Language (SGML). It uses both Python-style indentation to indicate nesting, and a more compact format that uses [...] for Cu...
Thanks. But probably I’d stop using symfony as they don’t care to support users nor confirm my issue as a bug. I reported another issue too and wonder some other people reported the same issue a few years ago and did not get a support nor it is fixed after a few years. That issue was about entity “alias”.
The issue i am talking at the beginning of this reply is this one: https://github.com/doctrine/DoctrineCacheBundle/issues/38
system
Closed
April 15, 2015, 8:33pm
10
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.