OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

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 5 months, 4 weeks ago.

  • 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)

You must be logged in to reply to this topic.

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

Yes No