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 493479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:13:09+00:00 2026-05-13T02:13:09+00:00

I have a few simple classes, all extending Doctrine_Record. Now I want to make

  • 0

I have a few simple classes, all extending Doctrine_Record.

Now I want to make a slightly more complex query with Inner Join, not just table data extracting.

I am doing to use DQL, does this oblige me to manually define relation between 2 tables?
Should I define this relation class or I better update schema.yml and somehow re-generate class code?

No DQL joins are possible without such explicit relation preparations, right?

  • 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-13T02:13:10+00:00Added an answer on May 13, 2026 at 2:13 am

    You can add the relation to your .yaml file and then re-generate your classes that way. Here’s Doctrine’s documentation on relations in Yaml files.

    You will need to re-generate your db so Doctrine can add the correct foreign key constraints based on the new relationships. This is relatively simple using the command line Doctrine command and assumes you don’t care about losing your data. If you do care about losing data, you should be using Doctrine to manage your migrations for you but that’s beyond the scope of your question. You can find more info about the migrations by looking at A Frankel’s answer to this question.

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

Sidebar

Related Questions

I have a few simple scripts that are intended to daisy chain together to
I have written a small makefile for a few simple C programs that compiles
Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
I have a simple aspx page with a few TextBoxes and a submit button.
I have simple win service, that executes few tasks periodically. How should I pass
I have a simple JavaScript Array object containing a few numbers. [267, 306, 108]
I have set up a few models in a simple django project. When I
I have a fairly simple python loop that calls a few functions, and writes
I have a simple application that loads an unmanaged dll and passes a few
I have a list a simple dialog box which contains a few checkboxes, I

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.