OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce How to set arguments for Doctrine\\ORM\\Query

This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 1 year, 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
  • #37652
    fudu
    fudu
    Participant

    Hello, I’m trying to use query builder, and i can’t find where they define Doctrine\ORM\Query as an arguments so i can set it in arguments.
    I wan’t to find something like @doctrine.orm.entity_manager
    I’ve already try @doctrine.orm.query but doesn’t work.
    Here is how i did:

    Thanks

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #37657
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi, Fudu.

    First of all, you are working with entities in doctrine, not tables.
    here is an example, how to create a query using query builder from the entity manager, and how to get the result from that query.

Viewing 1 replies (of 1 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No