OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions @Config annotation – custom defaultValue key

This topic contains 4 replies, has 2 voices, and was last updated by  jakabadambalazs 9 years, 3 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #33599

    jakabadambalazs
    Participant

    Hi,

    I noticed that I can easily add custom keys under @Config annotation in an entity and retrieve it easily through:

    from something like:

    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)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #33600

    ignat
    Participant

    Hi,

    At the moment there is no check of using not declared keys, but it’s highly recommended to declare all custom keys in entity_config.yml (https://github.com/orocrm/platform/blob/master/src/Oro/Bundle/EntityConfigBundle/Resources/doc/configuration.md).

    Thanks,
    Ignat

    #33601

    jakabadambalazs
    Participant

    Thanks @ignat!


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    #33602

    jakabadambalazs
    Participant

    I just got around to do this. WOW! This is very cool!


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    #33603

    jakabadambalazs
    Participant

    Hi @ignat,

    The link you gave me above does not expain this key: “require_schema_update”

    what does it do/what is it for?
    Thanks
    a\


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top