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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:54:41+00:00 2026-06-14T03:54:41+00:00

I have an Entity type which uses the nested set extension. When I am

  • 0

I have an Entity type which uses the nested set extension. When I am accessing it within the Sonata Admin forms, it just shows up as a basic select box with no distinction between levels.

How can I force each option to be displayed using an additional ‘-‘ symbol for its level in order to help identify the nested elements.

  • 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-14T03:54:42+00:00Added an answer on June 14, 2026 at 3:54 am

    I couldn’t see a way to do this directly in the Sonata Admin Bundle but got around it by editing the model’s toString method:

    public function __toString() {
        return str_repeat('-', $this->lvl).' '.$this->getTitle();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a field aliases of type java.util.Set in one Entity . This Set
I have c# application which writes files to an sqlite database. It uses entity
I have an ASP.NET MVC application which uses Entity Framework to get data. I
I have an entity type A. Which has many B's. The B entity has
I have two entities types: RunContainer parent entity type Run child entity type Run
I have a table with tax rates where NULL entity type rows represent the
I have a Web Service call that returns reporting data using Linq-To-Entity (strongly type
I have this type of data: entity, account, month1, month2, ..., month12 abc, 2000.02,
I have a property of type uint on my entity. Something like: public class
I have Entity Framework entities Events which have an EntityCollection of RSVP. I want

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.