ssossossosso

Forums

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

Open-Source CRM software Forums OroCRM OroCRM – Programming Questions Extending OroUserBundle error

This topic contains 7 replies, has 4 voices, and was last updated by Spurgeon Spurgeon 2 years, 6 months ago.

  • Creator
    Topic
  • #5787

    furyruf
    Participant

    Hi guys.

    I just followed up these articles
    How to create new bundle
    How to extend existing bundle
    And after step with getParent function I cleared cache and got exception

    Seems AcmeBundle somehow blocks all user routes.
    command php app/console route:debug | grep oro_user_security_logout shows nothing.
    But when I comment getParent function and clear cache it works.

    Any thoughts? Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #5803
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Hello, furyruf.

    Look’s like you added routing.yml file that overrides existing one. See this topic – it should help you.

    It you’ll still have problems – please, put here content of routing.yml file from your bundle.

    #5804

    furyruf
    Participant

    Hello Yevhen,

    I’ve added file …oro/routing.xml with content

    And it works fine now.

    Thank you.

    #6151
    Spurgeon
    Spurgeon
    Participant

    Hi Yehven / furyurf,

    Thanks for sharing the info. Helped me too, to get going.

    BTW, I’d like to have Address field inherited for Users also (like leads)

    Any idea how this can be implemented?

    I tried copy / pasting relevant snippets (declaration / use etc)

    from vendor/oro/crm/src/OroCRM/Bundle/SalesBundle/Entity/Lead.php
    to vendor/oro/platform/src/Oro/Bundle/UserBundle/Entity/User.php

    cleared cache
    and
    tried
    but ended up with exceptions.

    Any ideal way to do this?

    Thanks!
    Warm regards
    Spurgeon

    #6152
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Hello, spurgeonbj.

    > but ended up with exceptions
    Could you please put here error message or log?

    #6158
    Spurgeon
    Spurgeon
    Participant

    Hi Yevhen,

    Thanks for the kind and quick response!

    Well, in a second attempt I did a short while ago, I did this


    Edited User.php (mentioned above) and pasted the following lines

    then cleared cache

    and ran

    then cleared cache again

    when I checked the oro_user table structure, an address_id field was included in the table and there were no error messages

    So, thought things are ok.

    However address field doesnt show up in user page (view / edit / create ) and theres no error messages either.

    Am I missing something here or is this the right approach?

    Thank you.
    Sincere, warm regards
    Spurgeon

    #6159

    Alexandr Smaga
    Participant

    Hello @spurgeonbj!

    UPD: answered in prev post

    Did you add field to form? I mean UserFormType ?

    #6187
    Spurgeon
    Spurgeon
    Participant

    Hi Alexandr,

    Greetings!

    Thanks for the kind response an insight!

    No, I didnt. So, I understand that’s why it didnt show up.

    Thanks a lot once again!
    Sincere, warm regards
    Spurgeon

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

You must be logged in to reply to this topic.