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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:19:52+00:00 2026-05-25T19:19:52+00:00

We are creating a SaaS that monitors certain assets. This means it takes in

  • 0

We are creating a SaaS that monitors certain assets. This means it takes in data, saves it, and displays it in a webinterface.

For this, we have a few components that we created with/are moving to Symfony2:

  • a frontend web application, where users can view their data
  • a backend administrative web application, where we create new monitors, users, etc.
  • an API
  • an application that retrieves the received data from a queue and puts it in our database (this is now a seperate script, but I’m thinking of reworking this as a Symfony command that is called by cron)

All these four applications share the same model: our main database that holds all the users, monitors, and data.

My question is: how should I structure these projects in Symfony2?

  1. Do I create a seperate bundle which holds the entities for my database, and have the four projects include those entities and work with them?
  2. Can I make a ‘model’ directory in my Symfony app folder, which is used by all the bundles in my /src directory?
  3. Some other, cleaner way to do this?

Option 1 seems a bit weird, since a bundle, to my understanding, needs routing, views, controllers, etc. Using it for just entities would be a bit weird.

Option 2 seems alright, since the /app folder is considered ‘communal’ anyway for everything that is in the /src folder (since, for example, parameters reside there as well). However, there is no ‘model’ folder there, and I’m not sure that there should be?

I understand that there are very few ‘best practices’ out already for Symfony 2, since it’s brand new. But I wanted to see if there are any practices more preferable then others, in your opinion.

Any feedback is more then welcome.
Thanks in advance,

Dieter

  • 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-25T19:19:52+00:00Added an answer on May 25, 2026 at 7:19 pm

    What I am currently doing is the first option: create a separate bundle for your entities.
    That’s where I store fixtures, entities, forms and entity-related tests.

    A bundle does NOT need to have routing, controllers, views etc. I’ve actually seen a blueprint bundle, and all it does is ship blueprint-css resources with it so they can be easily reused in projects.

    As for adding models to the app directory… I wouldn’t like that. I see the app directory as a place where all the configuration should be. Even though you can override views under app/Resources, whenever I want to override something I create a new bundle.

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

Sidebar

Related Questions

My company is creating a SaaS in Django. We know that some corporate customers
Creating an installer for possible remote systems so that if they do not have
I am creating a SaaS that will allow users to interact with it via
Creating a relatively simple data entry form, and just want to separate certain sections
Creating a simple app that calculates the speed your going and displays it in
Creating a voting system just like stackoverflow. Questions like this have been asking several
Creating Traversals for Binary Search Tree with Recursion. void inOrder(void (*inOrderPtr)(T&)) { if(this->left !=
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
(creating a separate question after comments on this: Javascript redeclared global variable overrides old
Creating a JApplet I have 2 Text Fields, a button and a Text Area.

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.