This topic contains 4 replies, has 2 voices, and was last updated by jakabadambalazs 9 years, 3 months ago.
- Topic
Hi,
I noticed that I can easily add custom keys under @Config annotation in an entity and retrieve it easily through:
12345678use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider;use Oro\Bundle\EntityConfigBundle\Config\ConfigManager;$configManager = $this->configProvider->getConfigManager();$metadata = $configManager->getEntityMetadata($entityName);$defaultvalues = $metadata->defaultValues;$myCustomValue = $defaultvalues["eventable"]["customKey1"]from something like:
123456789101112131415161718/*** @ORM\Entity()* ...* @Config(* routeName="something_index",* routeView="something_view",* defaultValues={* "entity"={* "icon"="icon-flag"* },* "eventable"={* "customKey1"="my value #1"* }* }* )*/where “eventable” would be a custom key.
Can I do this? Could there be any problem with this now or in the future?
a\oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.