ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Open-Source CRM software Forums OroPlatform OroPlatform – Programming Questions @Config annotation – custom defaultValue key

This topic contains 4 replies, has 2 voices, and was last updated by  jakabadambalazs 2 years, 1 month ago.

  • Creator
    Topic
  • #7405

    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
  • #7412
    ignat
    ignat
    Oro Core

    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

    #7426

    jakabadambalazs
    Participant

    Thanks @ignat!


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

    #7432

    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)

    #7966

    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)

You must be logged in to reply to this topic.