Questions tagged [symfony-sonata]

The goal of the Sonata Project is to provide an e-commerce framework solution based on the Symfony (version 2 and 3) framework.

The goal of the Sonata Project is to provide an e-commerce framework solution based on the Symfony2 framework. Think of it as a toolkit based on Symfony2 components to make building e-commerce sites easy and fun!

http://sonata-project.org/about

599 questions
7
votes
7 answers

Symfony2 & SonataMedia: current field not linked to an admin

I've been tring the last days to make SonataMedia works with Symfony 2.0.16... with no success. Googling around seems like no much people use that bundle or there's a tutorial or an how-to that I'm not aware of, cause I don't get to much info about…
abiyi
  • 394
  • 2
  • 6
  • 16
7
votes
2 answers

Sonata: Fatal error: Maximum function nesting level of '100' reached.. when embedding forms

EDIT: For anyone interested on solving the same issue, that did the trick: echo `'xdebug.max_nesting_level = 250' >> /etc/php5/conf.d/xdebug.ini` I've created 3 Admins for 3 entities linked to each other, where A Admin is embedding B Admin and B…
peris
  • 943
  • 3
  • 20
  • 33
7
votes
2 answers

how to use sonata media bundle with my entities

I want to use sonata media bundle for medias in my bundle. I have one entity which should have a gallery. After installing sonata media bundle and generating easy:extends, there are 3 diffrent…
Karol F
  • 1,556
  • 2
  • 18
  • 33
6
votes
2 answers

SonataAdminBundle form field query

In SonataAdminBundle in Admin class I cannot make an orderBy on ManyToMany field. For example Author and Book. Author can have many books, as well as Book can have many Autors. In link above it is written that I can use a query for a form field. So…
Tom
  • 1,203
  • 3
  • 15
  • 35
6
votes
5 answers

Sonata Admin Bundle: show total count of collection on list view

Is there any way to show total count of collection on list view? Imagine that there is a user that can have many links. How can I show total links count on list view?
Serhii Smirnov
  • 1,338
  • 1
  • 16
  • 24
6
votes
0 answers

Remove column by doctrine mapping inheritance

What I want to do is to optimize my database by removing unnecessary fields from ProductTable. My application is based on Sonata E-commerce. I want to remove the "shortDescription" field from the Product entity. Mapping was defined in vendor so i…
Piotr Galas
  • 4,518
  • 2
  • 21
  • 30
6
votes
3 answers

Child Admin route is not being generated - Sonata Admin Bundle

I'm trying to set up an Admin as a child of an other Admin in Sonata Admin Bundle. I have 2 Admin classes: CategoryAdmin This class contains the following method protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface…
temparus
  • 119
  • 3
  • 10
6
votes
3 answers

Sonata Admin List View, make more headers sort buttons?

I have an Admin class which has this definition of listFields: protected function configureListFields(ListMapper $listMapper) { $listMapper ->addIdentifier('type') ->add('created_at', 'datetime') …
Jessica
  • 7,075
  • 28
  • 39
6
votes
2 answers

Display items on dashboard according to user role

I'm new to Symfony2, and for the needs of my company I'm using Sonata Admin and User bundles. I would like to know if it is possible to hide or show items on the dashboard according to the role of a logged user. For example, I have several entities…
6
votes
1 answer

Sonata Media Bundle - How to write a custom image resizer

I'm using the Sonata Media Bundle and I need to code a specific behavior for the image resizer, because the default SimpleResizer and SquareResizer classes don't fit my needs. I would like a simple image resizer that lets me resize the image exactly…
Francesco Casula
  • 26,184
  • 15
  • 132
  • 131
6
votes
2 answers

Annotations in extended Sonata user class not being read

I extended the user bundle from the Sonata project with Sonata EasyExtends bundle. It is placed under src/Application/Sonata/UserBundle by default Now I want to customize the extended class and add some fields. I notice though that annotations are…
user1926848
  • 81
  • 1
  • 3
6
votes
2 answers

Route "admin/login" does not exist Error Symfony2 + SonataAdminBundle

I followed a tutorial to set up SonataAdmin and FosUer FosUser seems okay for the connection and the disconnection However for Sonata I can't access to >my_host/web/app_dev.php/admin/dashboard When I try the firewall redirect to :…
Morgan
  • 61
  • 1
  • 3
6
votes
2 answers

SonataAdminBundle with sonata_type_collection and upload image

In Sonata Admin, I want to use upload and preview picture file in sonata_type_collection. In my Admin/ItemAdmin.php : class ItemAdmin extends Admin { protected function configureFormFields(FormMapper $formMapper) { $formMapper …
John_iw2
  • 61
  • 1
  • 3
6
votes
5 answers

SonataUser - Extending Admin

I'm trying to modify the default admin of the User entity. Just need to remove certain fields from the form actually. I imagine this doc will be usefull for me when it'll be available. For now I have created this admin and tried to override the…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
6
votes
2 answers

How can I create a custom DataGrid filter in SonataAdmin

I have an entity Transaction with numerous status codes. I want the user to be able to see these status codes as strings in SonataAdmin. The user should also be able to filter on the basis of these status codes. Entity Transaction { const…
Amit
  • 3,644
  • 9
  • 38
  • 49
1 2
3
39 40