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, 1 month ago.

The forum will run in the read-only mode starting from March 1. Please head to StackOverflow for support.

  • Creator
  • #37652

    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:


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

    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