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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:06:30+00:00 2026-06-10T18:06:30+00:00

I have a Symfony2 application, with a bundle that have a couple of entities

  • 0

I have a Symfony2 application, with a bundle that have a couple of entities that isn’t part of my main application.

How can I update the schema but exclude some of the entities?

E.G when I run the following command after updating one of my entities

php app/console doctrine:schema:update --dump-sql

then doctrine generates sql for all the entities, which means it creates tables for the entities that I don’t need. So how can I tell doctrine to skip those specific entities when generating the sql?

  • 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-10T18:06:32+00:00Added an answer on June 10, 2026 at 6:06 pm

    The Symfony command doesn’t allow that way to exclude any entity.

    If you want to differenciate enities from main part to the others, I suggest you define 2 different entity managers, 1 for main entites, 1 other for your annexed entities…

    Official doc : How to work with Multiple Entity Managers

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

Sidebar

Related Questions

I have managed to successfully deploy my Symfony2 application to a production web server,
I have a test suite for phpunit for my symfony application. In that test
I have an application that I'm converting to Symfony/Doctrine. It currently stores a serialized
In Symfony2 (2.0.3) I have a BetaBundle that is set as the parent of
I have a Symfony app that populates the widgets of a portal application and
I have installed the HerzultFourmBundle into my Symfony2 application, added the calls in the
I have a Symfony application that provides a REST interface. When a client requests
In my Symfony2 application, there are two entities: Address and Town. The Address entity
I'm working on a Symfony2 application, that I use to manage my monthly budget.
I have application in Symfony2 with 2 roles: ROLE_ADMIN and ROLE_PARTNER. Also I have

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.