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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:45:04+00:00 2026-05-26T14:45:04+00:00

i have an entity with a lot of fields(like facebook user Information with multiple

  • 0

i have an entity with a lot of fields(like facebook user Information with multiple levels like Basic Information, Contact Information, and…). and i want to use it exactly like facebook . i mean i want several tabs to put related fields in there. the easiest way is to store all of them in a table but it’s too nasty . is there any way to do this better? i know something about database hierarchical design, but is there a way to do this in symfony 1.4 and use it’s form creator either?

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-26T14:45:04+00:00Added an answer on May 26, 2026 at 2:45 pm

    First of all: where do you need help? In the view or in the model?

    If you want it too look like Facebook, we’re talking View. This has nothing to do with Symfony, but just HTML (with some CSS/JS probably).

    If you’re talking about how to store this information: the information your describing isn’t “hierarchical”. Hierarchical is about trees and things like that, most of the time with an almost infinite depth.
    Here you’re talking about a strict structure (you, as developer, know exactly which fields you want to render, and define these yourself). You could look into Entity-Attribute-Value stores. But beware: when implementing some like this in mySQL, it won’t be easy to do ‘complex’ queries. (Even a query like: “List all people in New York, older than 30 years old”, is not rendered easy).

    So why won’t you go with a table with a lot of columns? There’s nothing nasty about that! That you, as a human being, may have troubles viewing these data in phpMyAdmin, has nothing to do with how a computer manages this information ;-). You could split up the ‘User’ model in a seperate ‘UserProfile’ model (with a one-on-one relation), so you can easily refer to users on other pages (where you don’t need all profile data).

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

Sidebar

Related Questions

I have Entity Framework entities Events which have an EntityCollection of RSVP. I want
I have entity model like this (using EclipseLink and JPA 2.0): @Entity class A
I have an entity loaded by Hibernate (via EntityManager ): User u = em.load(User.class,
I have an entity in my EDMX that I've extended with a few fields
I have a table in my database with a lot of fields. Most of
I have two entities, User and UserPermission. The User entity contains all your normal
I have two table Part and SubPart. Part table has general fields like id,
I have a database, and I have entity POCO's, and all I want to
I have entity Recipes and it has a HasMany collection comments. In a MVC
I have entity e.g. Product which aggregates other entities such as Category . Those

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.