ssossossosso

Forums

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

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

  • Creator
    Topic
  • #12266
    Grégory PLANCHAT
    Grégory PLANCHAT
    Participant

    Hi,

    I updated my project’s source code from GIT, including oro/platform-application, and while trying to log in, I get this error :

    PHP Fatal error: Call to undefined method Oro\Bundle\UserBundle\Entity\User::getOrganizations() in /.../projects/erp/vendor/oro/platform/src/Oro/Bundle/SecurityBundle/Owner/OwnerTreeProvider.php on line 114

    I did a composer update and a app/console cache:clear –env=dev before trying to log in.

    I use the version from dev-master, maybe some refactorings hasn’t been merged yet on the repo?

    Greg

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #12267
    Grégory PLANCHAT
    Grégory PLANCHAT
    Participant

    I’m missing some point here, it seems to be related to the entity extension code builder.

    At the line mentioned in the error message, I checked the types of the object contained by the $user variable.

    It is an object of type Oro\Bundle\UserBundle\Entity\User, extending Extend\Entity\EX_OroUserBundle_User and thus does not extend the base user class, as I checked with instanceof.

    What am I missing?

    #12268
    Grégory PLANCHAT
    Grégory PLANCHAT
    Participant

    I just fixed the issue by running these commands :

    #12306

    Dima Makaruk
    Participant

    I used the following app/console oro:platform:update –force. I think i should be run after every platform update.

    #13636

    Yurii Muratov
    Oro Core

    Hi, @gregory_planchat.
    Answer what give @dimonixx is correct but also i would recommend to clear cache directory before run app/console oro:platform:update –force command

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

You must be logged in to reply to this topic.