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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:29:56+00:00 2026-05-18T11:29:56+00:00

Im using the doctrine admin generator, and I want to not allow the user

  • 0

Im using the doctrine admin generator, and I want to not allow the user to create new records (just to show them), is there any way to do that by setting up the “generator.yml” ? I’ve succeeded to remove de batch and per items actions and everything else is working perfect, but can’t remove the “new” link =(
This is what I have (the relevant part btw):

generator:
  params:
    config:
      list:
        batch_actions: {}
        object_actions:
          _delete: ~
  • 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-18T11:29:56+00:00Added an answer on May 18, 2026 at 11:29 am

    You need to change the “actions” value of list:

    generator:
      params:
        config:
          list:
            actions: { }
    

    You could restrict to a credential via:

    generator:
      params:
        config:
          list:
            actions: { credentials: admin }
    

    To clarify the difference between the action types:

    • batch_actions – actions that can be performed on multiple items via the checkboxes and select widget at the bottom (e.g. bulk delete)
    • object_actions – actions that are performed on a specific item (e.g. edit)
    • actions – actions that appear in the list controls (e.g. new)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Symfony 1.4 project I am using the doctrine:generate-admin task to create the
I'm using Symfony 1.4 and Doctrine. My application's backend was built using Symfony's admin
Using Doctrine PHP If I have a user with a many to many relationship
Using Doctrine , I am trying to delete records in a single table based
I'm using Doctrine 1.1.5 and I'd like to know if there is some option
I have a many-to-many relation in symfony 1.4. I am using the Doctrine admin
My problem is that iam using admin generator for model with some extra virtual
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters

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.