ssossossosso

Forums

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

This topic contains 3 replies, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 2 years, 9 months ago.

  • Creator
    Topic
  • #6993
    alendo
    alendo
    Participant

    I’m trying to set data by using data fixture, with the 1.4 orocrm version it is necessary to set organization field in entities, but I don’t know how to find the organization because I don’t know organization name in this phase. I’ve seen that in other fixtures it is set to “default organization” but I don’t want to configure “default organization” in my db. So I would like to find the first organization in my db and set the field to it:

    But this doesn’t work. I receive:

    Thanks

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

    Hello.

    Please, check signature of your setOrganization method – look’s it uses proxy (Proxies\__CG__\Oro\Bundle\OrganizationBundle\Entity\Organization) instead of original organization entity (Oro\Bundle\OrganizationBundle\Entity\Organization).

    #7028
    alendo
    alendo
    Participant

    Hello Yevhen thank you. Is it possible to run oro:install only for one bundle to test migration and load data functionalities?

    #7030
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    > Is it possible to run oro:install only for one bundle to test migration and load data functionalities?

    Probably no, but you can run separately oro:migration:load and oro:migration:data:load – these command run all not installed migrations. So, you can dump your DB, run migrations and rollback to old DB state in case of some errors.

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

You must be logged in to reply to this topic.