Questions tagged [sonata]

The Sonata Project is an open source set of bundles which are built on top of Symfony2.

The Sonata Project is an open source set of bundles which are built on top of Symfony2 PHP Framework. It's majorly based on the community work around the globe and uses the most known bundles released by:

FriendsOfSymfony KNPLabs Symfony CMF and so much more...

The complete list of bundle can be found here

Related tags

715 questions
-1
votes
1 answer

Symmfony & Sonata : How to access EntityManagerInterface from AbstractAdmin extends?

I have a class extending AbstractAdmin. I try to inject the EntityManagerInterface with : namespace App\Admin; use Sonata\AdminBundle\Admin\AbstractAdmin; use Sonata\AdminBundle\Datagrid\ListMapper; use…
Alexglvr
  • 427
  • 5
  • 18
-1
votes
2 answers

Syntax Error: Expected Literal, got 'ORDER'

I got this error in symfony 2.8: 3/3] Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("[Syntax Error] line 0, col 128: Error: Expected Literal, got 'ORDER'"). - line 33 is {% if…
Isabelle
  • 41
  • 1
  • 7
-1
votes
1 answer

Create admin user in Sonata symfony 4

I am using symfony4 with sonata admin panel. I need to make admin users to be able to use sonata via a login screen and ofcourse lock the admin area. I noticed that in general the FosUserBundle is not recommended anymore for symfony 4 and sonata. I…
-1
votes
1 answer

Access Admin Panel in SonataAdminBundle without SonataUserBundle

I work in a Symfony Project with SonataAdminBundle, and I have 3 types of user : ROLE_SUPER_ADMIN ROLE_CORRESPONDANT and ROLE_CLIENT ROLE_SUPER_ADMIN and ROLE_CORRESPONDANT have permission to access to Admin Panel, and in Admin Panel I have a Menu…
-1
votes
2 answers

symfony sonata admin filter "start with"

I would like to create a filter where the search would only give me the entries starting with what is searched. For exemple, I'm searching for a post code starting with "92". With the current filter, it gives me "92000", but also "29200" when I only…
-1
votes
1 answer

Preview image in sonata media bundle in configureFormFields

How make preview image in media fields in sonata admin bundle ? This-> https://symfony.com/doc/master/bundles/SonataAdminBundle/cookbook/recipe_image_previews.html no working Return Attempted to call an undefined method named "getWebPath" of…
webwinner
  • 87
  • 2
  • 8
-1
votes
1 answer

Sonata Admin compile form field from query string

In Sonata Admin is it possible to set or precompile a value in a form taking it from the query string? I have a custom page with a calendar and when I click a date on the calendar I would like to be redirected to the create page of an event where…
StockBreak
  • 2,857
  • 1
  • 35
  • 61
-1
votes
1 answer

sonata disallow delete if an entity is linked to another

i need to disallow delete function in an entity if is linked to another for example there are two entity Product and Category, and Category is linked to Product with a relationship oneToMany or ManytoMany i want disallow the delete function of an…
-1
votes
2 answers

Internal page redirection in Symfony/Sonata

I'm trying to work on my sonata sandbox. The problem that I face this message internal page redirection when I try to reload profile or register routes.
famas23
  • 2,072
  • 4
  • 17
  • 53
-1
votes
1 answer

Back end menu administration in Symfony2 (with Sonata admin bundle)

I'm learning Symfony2 and I'm trying to "cover" all featured that may be needed for making web site/application. Menus are one of them. So I've installed Symfony2 and Sonata admin bundle. On the Net I've found that "Knp Menu Bundle" is the most used…
MilanG
  • 6,994
  • 2
  • 35
  • 64
-1
votes
1 answer

Installing sonata ecommerce bundle

I need to use sonata e commerce capabilities in my project but I have't had any success so far. It seems that there is not a compatible version with my current setup. Here is my composer file "require": { "php": ">=5.3", "ext-soap": "*", …
Miguel Carvajal
  • 1,785
  • 19
  • 23
-1
votes
2 answers

Sonata Media Bundle with Sonata Admin Bundle 3.0 (or 2.4)

I'm trying to find a combination of sonata bundles to work with both Sonata Media Bundle and Sonata Admin Bundle 3.0 (or 2.4), but with no success. The versioning on the official documentation is a total mess and does not help. My actual composer…
-1
votes
1 answer

SonataMediaBundle : allow user to upload link

I am fairly new to symfony and I am currently doing a school project with it. I have to make a functionality where my users can upload youtube link video (like a blog post but with a video). So I decided to use sonataMediaBundle to handle the upload…
Manapyzz
  • 11
  • 1
  • 3
-1
votes
1 answer

composer install does not update psr4 autoloader

I am using composer with a symfony project which require sonata-project/sonata-doctrine-orm-bundle and its dependencies (naturally with many other dependencies). When I update symfony 2.3.6 to 2.5.5 and my vendors turn by turn, it updates sonata…
Flohw
  • 1
  • 1
-1
votes
1 answer

sonata installation on windows xampp

i want to install sonata on windows 8 xampp. I use comand php composer.phar create-project sonata-project/sandbox:2.3.x-dev and after download I get error. I found that error is for me 2 lines: in bin\load.data.php rm -rf ./app/cache/* I can…
user2217288
  • 529
  • 2
  • 14
  • 26
1 2 3
47
48