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
24
votes
2 answers

Symfony doctrine auto_mapping Unrecognized

I have added SonataUserBundle and it is giving error config.yml doctrine: orm: auto_generate_proxy_classes: "%kernel.debug%" naming_strategy: doctrine.orm.naming_strategy.underscore auto_mapping: true …
Basit
  • 16,316
  • 31
  • 93
  • 154
15
votes
2 answers

Sonata admin bundle order

How to change default entity order in SonataAdminBundle for list action? answer :) add this to your admin class protected $datagridValues = array( '_page' => 1, '_sort_order' => 'DESC', // sort direction '_sort_by' => 'id' // field…
rtyshyk
  • 942
  • 1
  • 15
  • 29
12
votes
3 answers

Symfony 2 Get original data of entity from entity manager

I am using Sonata admin bundle for my application all works well,In my application i have users and admin,admin can add/edit/delete the users when i am trying to update a user there is a problem the password data is overrided from user table. i have…
user3023209
9
votes
1 answer

SonataAdminBundle ACL usage in configureFormFields

I've installed SonataAdminBundle, SonataUserBundle and FOSUserBundle as well as CoopTilleulsAclSonataAdminExtensionBundle while using ACL in the SonataAdminBundle. The listings are filtered by owners and all is fine. Customer A can see just his…
Michael
  • 178
  • 1
  • 11
9
votes
1 answer

Adding a custom form inside the show template of a Sonata Admin Entity

I want to generate a small form inside a Sonata Admin show template. What I have done so far is creating the function in the custom CRUD for that specific entity (order) that extends from Sonata's default CRUD; public function approveOrderAction($id…
Jack Brummer
  • 583
  • 1
  • 6
  • 14
7
votes
1 answer

sonata_type_collection : set default field value from current entity instance

I need help with "sonata_type_collection" : Is there any way to define a default value (here : instance of existing entity) for a "sonata_type_collection" specific field? Or maybe a way to give him parameters? Let me clarify this : Here is a…
Sir McPotato
  • 899
  • 7
  • 21
7
votes
1 answer

sylius or sonata or custom for subscription based application

We are going to build something like cratejoy.com, but don't want spend lot's of time building which is already builded before for developers. I was going through sonata and sylius, but not sure if we can build subscription based model with one of…
Basit
  • 16,316
  • 31
  • 93
  • 154
7
votes
2 answers

Symfony Sonata Media Bundle add images/videos to a user

I am trying to integrate Sonata Media Bundle in my project. The problem is, that i don't understand how the bundle works. It has generated a Media, Gallery and GalleryHasMedia class within 'Application'. What are they for? How can I now add an…
nova.cp
  • 455
  • 1
  • 9
  • 22
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
1 answer

Handling multiple file uploads in Sonata Admin Bundle

So, after research a lot and get no results (maybe I'm a bad searcher) I coming from this topics: SonataAdmin Bundle File Upload Error and SonataMediaBundle - how to upload images? I can't find a solution for my problem. I have a Entity Company and…
Reynier
  • 2,420
  • 11
  • 51
  • 91
5
votes
0 answers

Sonata Admin - CollectionType and Dynamic add Abstract class

I work on a Symfony 3.4 project and I have a issue with a specific Sonata Admin case, here is my situation : I have a Lesson entity who have elements : /** * @ORM\OneToMany(targetEntity="App\Entity\Lessons\ElementLesson", mappedBy="lesson",…
ArnoSr
  • 51
  • 2
5
votes
1 answer

Sonata Date range

I have a small issue I am working on a small project using Sonata but I am trying to figure out how to customize the date range which a person can choose a date, example from 1 January 2000 to 31 December 2020. Could someone tell me where I can find…
Darksmile
  • 206
  • 1
  • 9
5
votes
4 answers

Sonata Media Bundle missing entity Category

I try to install the Sonata Media Bundle into the Symfony CMF following this guide: https://sonata-project.org/bundles/media/3-x/doc/reference/installation.html. This command php app/console sonata:easy-extends:generate --dest=src…
Frank B
  • 3,667
  • 1
  • 16
  • 22
5
votes
1 answer

SonataMediaBundle - S3 AWS: 'The configured bucket "my-bucket" does not exist

I'm trying to configure the AWS s3 filesystem on my Sonata-Project, but I always get the following error: The configured bucket "my-bucket" does not exist. My sonata_media.yml: cdn: server: path:…
Spomsoree
  • 123
  • 1
  • 8
5
votes
1 answer

PHPUnit test a function that write in file and check the content into created file

I am contributing to sonata/exporter, a library used for export data in many formats (CSV, JSON, XML, XLS, ...). I work on a Writer that converts boolean values into strings (e.g. yes/no) by encapsulating another Writer (like CsvWriter or…
chalasr
  • 12,971
  • 4
  • 40
  • 82
1
2 3
47 48