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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:29:57+00:00 2026-05-17T01:29:57+00:00

I am trying to implement a multi-tenant application, that is – data of all

  • 0

I am trying to implement a multi-tenant application, that is
– data of all clients in a single database
– each shared table has a tenant_id field to separate data

I wish to achieve data separation by adding where('tenant_id = ', $user->getTenantID()) {pseudoc-code}
to all SELECT queries
I could not find any solution up-front, but here are possible approaches I am considering.
1) crude approach:
customizing all fetchAll and fetchOne functions in every class (I will go mad!)
2) using listeners:
possibly coding for the preDqlSelect event and adding the ‘where’ to all queries
3) override buildQuery(): could not find an example of this for front-end
4) implement contentformfilter: again need a pointer

Would appreciate if someone could validate these & comment on efficieny, suitability.
Also, if anyone has achieved multitenancy using another strategy, pl share. Thanks

  • 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-17T01:29:57+00:00Added an answer on May 17, 2026 at 1:29 am

    I have published the sfMultiTenantPlugin, find it here:
    http://www.symfony-project.org/plugins/sfMultiTenantPlugin

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

Sidebar

Related Questions

I am trying to implement multi-threading in my Java Mandelbrot application: This is what
I have a multi-page form, and I'm trying to implement Back buttons, so that
I have a multi page form that I am trying to implement on my
I'm building an application that is multi-lingual, multi-timezoned and n-tier. All dates are stored
I am trying to implement core data entities in a multi-threaded environment. I understand
Hi fellow android developers, I'm trying to implement a multi-pane layout as described here
I am trying to implement MVVM (Model View ViewModel) pattern for my WinForms application.
I'm having an issue with a servlet that delivers multimedia data. I'm trying to
I'm trying to implement a trigger to search values on a table, and, if
I've been trying to implement a dynamic multi-model form with accepts_nested_attributes_for in my rails

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.