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
4
votes
1 answer

Batch multi step and/or form multi step in sonata admin bundle

I have make search but I found nothing that help me. I use sonata admin bundle and first I want to know if it's possible to make multi step form. Second, I'd like to make a new batch action (this step is ok for me), but after user chose the batch…
loic
  • 109
  • 1
  • 10
4
votes
1 answer

Class '...\Entity\User' does not have a method 'getGenderList'

I'm working with the Sonata Admin bundle for the backend of my website. My user table in my database looks like this: id (PK) username email password salt last_login created_at company_id (FK) My User entity looks like the…
nielsv
  • 6,540
  • 35
  • 111
  • 215
4
votes
1 answer

Is it possible to add custom global Symfony2 route variables like _format and _locale?

In my Symfony2 project, I have a news site which has posts. Those posts can be published in different regions. The current region (user choice) has to be part of the url. So the URLs should look like this: /mag => main news site, no region…
Michael
  • 2,309
  • 1
  • 23
  • 34
4
votes
1 answer

How to make sub groups in sonata admin form

In Sonata's AdminBundle\Mapper\BaseGroupedMapper.php, I saw a code example: public function with($name, array $options = array()) { /* * The current implementation should work with the following workflow: * * …
Florent Destremau
  • 653
  • 1
  • 5
  • 24
4
votes
3 answers

CKEditor not showing with Sonata Formatter (Sonata Admin Bundle)

I'm having troubles using the Sonata Formatter Bundle. In my config.yml I have the following (amongst other stuff): imports: - { resource: sonata.yml } twig: debug: "%kernel.debug%" strict_variables: "%kernel.debug%" …
nielsv
  • 6,540
  • 35
  • 111
  • 215
4
votes
3 answers

Adding own action to SonataAdminBundle dropdown menu

We use the SonataAdminBundle with our Symfony2 application. When editing an entity I want to add an own action to the dropdown menu which is located in the top right corner, but I have no idea how this works. I know I can add own routes via…
Malte
  • 53
  • 1
  • 6
3
votes
1 answer

Preview column disappears when modifying Sonata Media Bundle

I am modifying the Sonata Media Bundle's media admin screen to show a new field. After using the Easy Extends tool to extend the bundle, I create a very small class to do this with: namespace App\Application\Sonata\MediaBundle\Admin\ORM; use…
3
votes
0 answers

join on subquery in Sonata Admin/ Symfony doctrin-orm query-builder

When I try joining the subquery in the following function of a Sonata Admin Panel Class protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface I always get the following error: [Semantical Error] line 0, col 44 near…
3
votes
1 answer

Getting the page variable to Sonata twig templates

When using sonata templates, the individual pages from the PageBundle are meant to extend the page.site.layout template, then you can use twig standard block system to place things where you like. However i'm finding that the page variable is…
Kevin
  • 383
  • 5
  • 16
3
votes
2 answers

sonata admin Variable "form_helper" does not exist. after twig update

before update (no errors) symfony/twig-bridge v4.2.8 v4.3.0 Symfony Twig Bridge symfony/twig-bundle v4.2.8 v4.3.0 Symfony TwigBundle twig/extensions v1.5.4 v1.5.4 Common additional features for Twig that do not directly belong…
Developer
  • 2,731
  • 2
  • 41
  • 71
3
votes
1 answer

The service "admin.category" has a dependency on a non-existent service "sonata.admin.manager.orm"

To set up Sonata admin in Symfony 3, I followed the exact instructions: https://symfony.com/doc/3.x/bundles/SonataAdminBundle/getting_started/creating_an_admin.html At step 3, I have entered the exact configuration as…
Douma
  • 2,682
  • 14
  • 23
3
votes
1 answer

Where to put tests testing the configuration in the YAML files

I'm developing an application in Symfony (version 4.2.3) and use also few bundles from the Sonata project as well the API Platform. We have 4 different user roles with different privilegies. The API is read-only and should be accessed by ROLE_USER,…
cezar
  • 11,616
  • 6
  • 48
  • 84
3
votes
0 answers

how to update Sonata getFlashMessage and addStatusService deprecations

im updating a project from sf2.6/php5.6 to sf3.4/php7.1 and i'm actually facing these 2 deprecation errors: Method "StatusExtension::addStatusService()" is deprecated since SonataCoreBundle 3.x and will be removed in 4.0. Use the StatusRuntime…
netzding
  • 772
  • 4
  • 21
3
votes
2 answers

Symfony 4 error installing sensio/generator-bundle for sonata admin bundle

I'm starting with version 4 of sonata. 3 works great but with the 4th version lot of things changes. After a while I found here how to install it but it return me the next error. Problem 1 - sensio/generator-bundle v3.1.7 requires…
Braian Mellor
  • 1,934
  • 3
  • 31
  • 50
3
votes
2 answers

Use custom column in Sonata Admin list

I created a project with Symfony 4.1, and install Sonata Admin Bundle. In a listing of my categories, I try to add a column which is not related to a field of Category So I did /* Admin/CategoryAdmin.php */ protected function…
Bouffe
  • 770
  • 13
  • 37
1 2
3
47 48