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

  • Home
  • SEARCH
  • 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 8381401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:41:28+00:00 2026-06-09T16:41:28+00:00

I have the bundle which is called the Linked Bundle. Now I have put

  • 0

I have the bundle which is called the Linked Bundle. Now I have put all the mix stuff in there which is used across all bundles.

But I don’t have any entity called Linked.

I want to create LinkedRepository so that i can have my all common function there. But how will i get that repository in other bundles. I mean how to call this

$repository = $em->getRepository('LinkedBundle:"*What should I write here*"');
  • 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-09T16:41:29+00:00Added an answer on June 9, 2026 at 4:41 pm

    You cannot have a separate repository class. A repository class is linked to an entity, so you cannot have a “standalone” repository but I can see two options:

    1. Subclass EntityRepository and name it LinkedRepository, here you can add your common methods. All your custom Repository class will have to subclass your LinkedRepository class. If you want that common functionality in all your Entity’s Repository instances but you don’t need a custom Repository class you can declare the LinkedRepository class as the Entity’s repositoryClass @ORM\Entity(repositoryClass="Acme\LinkedBundle\Repository\LinkedRepository") assuming you have your Repository classes in the Repository folder inside your Bundle and replace Acme with your company name.
    2. Create a service and add your common functionality in there.

    I guess the first one is easier.

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

Sidebar

Related Questions

I have a one View Controller Called ThemeViewController with three nibs, all of which
In one of my git projects, I have a zip file which bundles a
I have the current bundle reference working locally: Bundles.Reference(/Content/global.css); On the development site, this
I am using the new System.Web.Optimization and have created a bundle like this: bundles.Add(New
I have written an API Bundle and some implementing services. Now i want to
I have an AsyncTask which gets called onCreate() in my Main Activity . In
I have a form which renders, but when I click the submit button, I
I have made an application which calls the phone's contact list but i want
I have a facebook dialog in the screen in which I put a button
I have a timePicker dialog, which ca be called from different buttons. How can

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.