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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:06:27+00:00 2026-05-23T02:06:27+00:00

we are building a new website, which will reuse an existing symfony-software used by

  • 0

we are building a new website, which will reuse an existing symfony-software used by another website. I’m moving reusable components into a plugin (“app-plugin”), in order to avoid duplicating code and data. The plugin will be configured as svn-external in the websites’ svn repositories.

The existing symfony instance contains overridden doctrine classes (models, forms, form-filters) which are originally defined in other plugins (e.g. sfDoctrineGuardPlugin). The overridden classes can be reused by both symfony-instances, therefore I’m going to move them to the “app-plugin”. But this causes problems:

If someone, for instance, runs symfony doctrine:build-forms, the moved files will be re-created by the task inside lib/form/doctrine and will contain empty class-definitions. The reason is very clear to me: How was symfony supposed to know that the “app-plugin” is already defining those form-classes? The only way would be to autoload all classes before executing the task and checking whether classes are already available.

A workaround would be to exclude those classes in the app-plugin’s config/autoload.yml. But is there a better way?

Edit

I’m using the term “app-plugin” to avoid confusion between normal plugin (e.g. sfGuard) and our plugin which contains shared components.


Before:

dependencies before


After:

dependencies after

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

    There seems to be no better way than excluding the original model in the app-plugin’s config/autoload.yml. Even if you can derive model-classes as shown in the images above you’ll get in trouble as soon as you run the build-forms task. I looked through the form-generator’s source code which reveals that this isn’t possible. Therefore, the only solutions are: avoiding the build-forms task, rewriting the form-generator or, as already stated, using autoload.yml.

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

Sidebar

Related Questions

We are in the process of building a new website which we want to
I'm building a website which will show comics. I'd like to store each image
I am building a new website and it will contain a lot of image
I'm building a Java application which will download a HTML page from a website
I'm building a new website and it will be a website with different layers.
I am currently building an making my new website. It uses one page and
I am building a website for a comedy group which uses Facebook as one
i have a new website (i'm building one right now) and i want to
I'm building an ASP.Net website. I have a cart class which stores the items
I'm new to web development and I'm recently asked to help building a website.

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.