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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:37:15+00:00 2026-06-05T15:37:15+00:00

I have an working application. Now I want to change the table names of

  • 0

I have an working application. Now I want to change the table names of my entities from CamelCase to underscore_case.

Old code:

/**
 * @ORM\Table(name="FeaturedProduct")
 */
class FeaturedProduct
{ ... }

every thing works

New code:

/**
 * @ORM\Table(name="featured_product")
 */
class FeaturedProduct
{ ... }

Now I get:

An exception has been thrown during the rendering of a template:

(“SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘myapp.FeaturedProduct’ doesn’t exist”) in MyApp::layout_user_2_col.html.twig at line 37.

MyApp/Resources/views/layout_user_2_col.html.twig:37 
{% render "MyApp:FeaturedProduct:random" %}

The file MyApp/Resources/views/FeaturedProduct/random.html.twig exists.

It looks like twig is using the table name for the path of the templates instead of the name of the controller.

  • 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-05T15:37:16+00:00Added an answer on June 5, 2026 at 3:37 pm

    I have found the error.

    I used the name of the table in a native doctrine query in my FeaturedProduct repository. Changing this to take the table name dynamic solved the problem.

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

Sidebar

Related Questions

I have an android application and web-server working together. Now I want user log
I am working on an auction web application. Now i have a table with
i have a Spring application and its working well so far. Now i want
I have got UIPickerview in my application working fine. I want to change the
Now that I have a read-only application working, I am working on the insert
I am working on Android Application. Now I have requirement of search the entered
I'm currently working on web application using VB in ASP.NET. Right now I have
I have developed my application in .Net and my installer is working fine. Now
I have created some tests in my WPF application. Right now I am working
I have Rails application (Redmine) and I have created next working code which close

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.