OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Extending OroUserBundle error

This topic contains 7 replies, has 4 voices, and was last updated by  Spurgeon 9 years, 6 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
  • #24835

    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
  • #24836

    Yevhen Shyshkin
    Participant

    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.

    #24837

    furyruf
    Participant

    Hello Yevhen,

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

    And it works fine now.

    Thank you.

    #24838

    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

    #24839

    Yevhen Shyshkin
    Participant

    Hello, spurgeonbj.

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

    #24840

    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

    #24841

    Alexandr Smaga
    Participant

    Hello @spurgeonbj!

    UPD: answered in prev post

    Did you add field to form? I mean UserFormType ?

    #24842

    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)

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

Back to top