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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:55:48+00:00 2026-06-13T22:55:48+00:00

I already have a complete web application that was developed for almost two years,

  • 0

I already have a complete web application that was developed for almost two years, but due to some inexperience in the beginning, it was developed in flat PHP. Now I’m trying to replicate the same application but using symfony2 and came across some difficulties.

One of it is that I have several lists of items that are retrieved from the database and by using the ID I can edit those items. What happens is that for listing the item I already have some information that are displayed in the list. For instance the name of the user that has created the item. Of course the name of the user is not stored in that particular table.. instead it is its ID and using a simple function (getUserFullname($id)) I get the user name e display it in the list.

Now on symfony2 I’ve created a controller that creates a repository and sends it to a twig template with a for cycle that lists all the items.. but the id of the user is a number.. I also have created an “User” entity to retrieve the information.

How can I get a specific user information by its “id” and display on each item list?

  • 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-13T22:55:48+00:00Added an answer on June 13, 2026 at 10:55 pm

    You need to define a relationship between the items and users. Then you’ll be able to access the user’s properties somewhat like this:

    {{ item.user.fullName }}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I already have an enterprise Java EE application. I want expose some of the
I have a web-site that generates some simple tabular data as html tables, many
I have some kind of web application - you pay for account and then
I have developed a JSP web application which, on every request, spawns a new
I have a web application that uses a fairly large table (millions of rows,
I have a web application that issues requests to 3 databases in the DAL.
So, I have an web-based application that is using the Wicket 1.4 framework, and
I have a data-mining application that accesses a web-site to retrieve records on an
I have created a turing-complete programming language (already proven) so it must be possible
I have a university project which is already 99% completed. It consists of two

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.