Forums

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

Forums OroPlatform OroPlatform – How do I? Questions How to extend an oro entity

This topic contains 2 replies, has 3 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year, 8 months ago.

  • Creator
    Topic
  • #2772

    sndpl
    Participant

    Hi,

    I created a entity_extend.yml in the config dir of my bundle to extend the default oro user entity with the following contents:

    After running the oro:entity-extend:init, oro:entity-extend:update, oro:entity-extend:update-config, oro:entity-extend:dump commands I have 3 problems:

    – The update command only added a database field for the phone_number in the oro_user table but not for the organisation. I expected a field_organisation_id or something like that.

    – When I view/edit an user it shows the organisation dropdown in the additional block, but when i save the form it doesn’t store the organisation value neither does it give an error (which i expected because there is no field to store this value)

    – The phone number field isn’t displayed on the view/edit form. I already added the same config options as for the organisation relation, but that didn’t have any effect.

    Any tips on what i did wrong or what’s missing?

    And how do you remove a field? for testing I added the my_field from the documentation, but after removing it from the extend_entity.yml i would expect it would remove the field.

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

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
ssossossossosso