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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:27:32+00:00 2026-05-29T16:27:32+00:00

I have a doctrine program that works great on my development machine but when

  • 0

I have a doctrine program that works great on my development machine but when I move it to my server, it stops working. The main differences between the two machines are one is windows and running mySql 5.5 and the other is linux running MySQL 5.1.

I have pinpointed the failure to the line $this->entityManager->createNativeQuery($dql, $rsm) as the log statement afterwords never occurs.

get_log()->logDebug("query: ".$dql);
$rsm = new ResultSetMappingBuilder($this->entityManager);
get_log()->logDebug("ResultSetMappingBuilder");

var_dump($rsm);
$rsm->addRootEntityFromClassMetadata('D_Post', 'f');
get_log()->logDebug("addRootEntityFromClassMetadata");
$query = $this->entityManager->createNativeQuery($dql, $rsm);
get_log()->logDebug("createNativeQuery");

The sql that is running is

SELECT * FROM (SELECT DISTINCT f.ID,f.post_title, f.post_date, f.post_type,
f.views_count
as score FROM wp_vsideviewpostfilter f  ) t ORDER BY t.score DESC,t.post_title 
DESC  LIMIT 0,10 

I can execute the SQL code on the linux machine via a query runner and it executes correctly.

Any ideas as to why this program is failing on the other server?

  • 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-29T16:27:34+00:00Added an answer on May 29, 2026 at 4:27 pm

    In my case, the issue was with one of the mappings. Doctrine could not find the D_Post entity mapping. The path to the mapping had a mixture of / and \ in it which is allowed in windows but not in linux.

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

Sidebar

Related Questions

I have an application that I'm converting to Symfony/Doctrine. It currently stores a serialized
Entities in symfony 2 have doctrine tags that are preceded with @ORM\ (eg @ORM\Entity).
I have a doctrine model that has a method getSomethingId() and I'm making something
I have a doctrine query that returns blog posts and their comments: SELECT b,
I have an object that has an instance of Doctrine\ODM\MongoDB\Query\Builder . When I serialize
I'm working with Doctrine 1.2 in Symfony 1.4 on PHP5.3. I have a database,
I have two Doctrine entities that have a one-to-many relationship, like this: License class
I'm working on a Symfony 1.4 project with Doctrine 1.x, and functionality that merits
I'm using symfony 1.4 doctrine. I have a code that can validate phone numbers
I have several doctrine models that have relationships to other models. Let's call those

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.