ssossossosso

Forums

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

This topic contains 4 replies, has 2 voices, and was last updated by  matt1991 7 months, 3 weeks ago.

  • Creator
    Topic
  • #33036

    matt1991
    Participant

    Hello,
    I need some help, i added filters to the entity order from MagentoBundle in my own bundle under “Resources/config/oro/api.yml” like this :

    When i run php app/console oro:api:cache:clear and oro:api:doc:cache:clear command for make him accessible through Data API, it doesn’t work however i run php app/console oro:api:config:dump “OroCRM\Bundle\MagentoBundle\Entity\Order” i can see the api configuration that i added

    My bundle is correctly added and i make the same thing in a local environment i made it.

    Is there anything more to do ?

    System information:
    oro/platform 1.10.12
    oro/crm 1.10.12
    symfony/symfony v2.8.11

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #33059
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi

    Could you please tell me what kind of issue you are experiencing? Did you remove ‘/app/cache/prod’ and ‘/app/cache/dev’ directories?

    #33065

    matt1991
    Participant

    Hey Mike,

    Yes i tried many times to remove ‘/app/cache/prod’ and ‘/app/cache/dev’ directories.

    The issue is that filters do not appear in the api /api/magentoorders/ and no more in sandbox api although the removal cache.

    Thank for your answer
    Regards.

    #33083
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi

    I have just tested your case: added ‘status’ and ‘updatedAt’ fields to api.yml, ran two commands (oro:api:*), deleted cache directories and checked local url ‘http://orocrm-application.local/api/doc/rest_json_api#get–api-magentoorders’. Here is the result:

    Also, I ran script and got a valid order record:

    Are you using the PHP OPCache?

    #33127

    matt1991
    Participant

    Hi Mike,

    Thank you for your help, it was a cache problem, i didn’t think to check the php OPCache.

    Thank
    Best regards.

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

You must be logged in to reply to this topic.