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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:37:04+00:00 2026-06-11T07:37:04+00:00

Hello everybody, I’m stuck with a Doctrine join query. The system continues telling me

  • 0

Hello everybody, I’m stuck with a Doctrine join query.

The system continues telling me that Auction is not mapped:

Class Auction does not exist and could not be loaded in Doctrine/doctrine-orm/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php on line 40

The project is already on, obviously, and also other joins were used with success.

include_once '../../../bootstrap_doctrine.php';

$rsm = new \Doctrine\ORM\Query\ResultSetMapping;
$rsm->addEntityResult('Auction', 'Au');
$rsm->addEntityResult('VariantPerAuction', 'Vpa');

$Q=" SELECT Au.id
FROM Auction Au
JOIN VariantPerAuction Vpa ";
        $query = $entityManager->createNativeQuery($Q,$rsm);

$auctions = $query->getResult();
  • 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-06-11T07:37:06+00:00Added an answer on June 11, 2026 at 7:37 am

    Thanks to Marco Pivetta, it now seems to work.

    The problem seems to be that Doctrine2 Class weren’t fully namespaced.

    A fast trial fully namespacing them works.

    On top of each class:

    // put the folder where your class is
     namespace DbClasses\entities;
    

    The new Join Query becomes:

    $rsm = new \Doctrine\ORM\Query\ResultSetMapping;
    $rsm->addEntityResult('DbClasses\entities\Auction', 'Au');
    $rsm->addEntityResult('DbClasses\entities\VariantPerAuction', 'Vpa');
    
    $Q=" SELECT Au.id
    FROM Auction Au
    JOIN VariantPerAuction Vpa 
    Where Au.piattaforma='EbayDE' AND Au.OggettoEbayDBContainer_id=159";
    
    $auctions = $query->getResult();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello everybody my linq to sql selection does not working on dateTime field for
Hello, everybody. We are developing an iPhone app which supported by a server-side that
Hello everybody and sorry for the rather confusing question-title. I have a Hibernate Class
Hello everybody and thanks for reading. I have this html; <i class=icon-plus icon-white> Test
Hello everybody i wonder: when can i use mapped by to indicate whose is
Hello everybody I have a LINQ declaration like this : var query = from
Hello everybody, I have a small code in PHP that I would like to
Hello everybody, I'm a newbie and I'm doing a code that the principal aim
Hello everybody I am drawing dynamic table and I want to add header for
Hello everybody i have C++ tStringGrid I want to get string from specific cell

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.