Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6058927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:39:15+00:00 2026-05-23T08:39:15+00:00

I have recently started to learn using of Doctrine 2.0 framework for PHP. Now

  • 0

I have recently started to learn using of Doctrine 2.0 framework for PHP. Now I have already managed to utilize some Doctrine things (using MySQL), insert some data using defined XML model, but now I have a problem with selecting data. Everywhere, including Doctrine site, I have found that data are being selected by DQL or raw SQL. But in this way, I lose half of advantages that ORM gives. How can I select data using pure ORM, for example like I can do with Hibernate in Java?

Here is some mapping XML example from the Doctrine site I am working with:

<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                    http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

      <entity name="Product" table="products">
          <id name="id" type="integer" column="product_id">
              <generator strategy="AUTO" />
          </id>

          <field name="name" column="product_name" type="string" />
      </entity>
</doctrine-mapping>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:39:15+00:00Added an answer on May 23, 2026 at 8:39 am

    In the beginning I missed that one too, but what is important to understand is that DQL doesn’t understand concept of tables (read note DQL is not SQL) it is purely object-oriented query. That is you query your models, not the database directly.

    Manual itself states that DQL “is very similar to the Hibernate Query Language“.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started using the CodeIgniter framework for my PHP development. I was
I've been a web developer for some time now, and have recently started learning
I have recently started to learn Objective-C and write my tests using OCUnit that
I recently started C++. I am using PHP right now and decided to take
I have recently started to learn lisp, and have mainly bin using clisp and
I recently started using WPF and the MVVM framework, one thing that I have
I have recently started looking into using Azure but I'm having some issues getting
I have recently started using Vim as my text editor and am currently working
I have recently started working with Unified Communication Managed API 2.0 (UCMA) and Office
I have a friend and he recently started to learn Cinema 4D. He asked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.