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
4
votes
3 answers

Dropdown Ajax onchange SonataAdminBundle Symfony2 Issue

I am trying to implement onchange dropdown in SonataAdminBundle. My Entity is like class BuilderHomePage { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") …
Aman Varshney
  • 820
  • 1
  • 9
  • 26
4
votes
2 answers

Symfony2 Sonata Media Bundle -- Error while uploading Image

I updated the composer.json. Everything was working fine except the media section of sonata media bundle. When i upload any image i got a error I haven't changed any configuration. I am not able to figure the problem. I also give full permission to…
4
votes
2 answers

No thumbnails generated

I am using Sonata Media Bundle with Symfony2.3 in my project. When I override youtube provider sonata.media.provider.youtube. Everything working fine. No errors or anything but in /Web/uploads/media no thumbnails generated but in my admin…
4
votes
2 answers

Sonata Media Bundle Override

Can any one tell me How I can extends and Override all sonata Media Bundle functionality ? I am using Symfony2.3.3 and Sonata Master Bundle . I see this documentation http://sonata-project.org/bundles/media/master/doc/index.html and I know basic…
Kunwar Siddharth Singh
  • 1,676
  • 6
  • 33
  • 66
4
votes
2 answers

Sonata Batch Operations & Hooks Doctrine

i've created an admin panel with Sonata (Symfony2 Bundle http://sonata-project.org/about) and i've added an event in the preRemove hook (Doctrine). In few words when i delete a record, run a curl to an other service. Everythings works. But Sonata…
Nothing
  • 177
  • 3
  • 14
4
votes
1 answer

How to integrate sonata admin bundle with a twitter bootstrap layout

I have installed Symfony 2.2 with the SonataAdminBundle and I have a layout which supports twitter bootstrap. Now I'd like to integrate this layout into my sonata admin. I have found this code, but I couldn't find any documentation. So I'd like to…
user2156980
  • 365
  • 1
  • 4
  • 15
4
votes
1 answer

Symfony2.1 SonataUserBundle ResourceBundle error

I have this problem with Symfony. I now use SonataUserBundle and I have this error: The locale resource bundle could not be loaded for locale "en" (uncaught exception) at [...]/vendor/symfony/symfony/src/Symfony/Component/Locale/Locale.php …
julio
  • 2,762
  • 4
  • 22
  • 34
4
votes
1 answer

sonata admin bundle: strange with labels

I've installed the latest Sonata admin bundle on symfony 2.1 and got the following problem: config.yml: services: app.geo.admin.city: class: App\GeoBundle\Admin\CityAdmin tags: - { name: sonata.admin, manager_type: orm, group:…
nucleartux
  • 1,381
  • 1
  • 14
  • 36
4
votes
1 answer

Sonata Admin Bundle not working with Many-to-Many entity relationships

i'm currently using Sonata Admin Bundle using Symfony 2.1.0-DEV and Doctrine 2.2.x and i'm having problems with Many-To-Many entities associations: class MyProduct extends Product { /** * @ORM\ManyToMany(targetEntity="Price") */ …
Gianluca Bargelli
  • 1,780
  • 2
  • 17
  • 23
4
votes
2 answers

Sonata Admin Bundle: possible to add a child admin object that can have different parents?

I'm using doctrine inheritance mapping to enable various objects to be linked to a comment entity. This is achieved through various concrete "Threads", which have a one-to-many relationship with comments. So taking a 'Story' element as an example,…
RobMasters
  • 4,108
  • 2
  • 27
  • 34
3
votes
1 answer

Symfony2 - override template bundle

I want to override the default SonataAdmin Template. I create a standard_layout.html.twig in my Namespace/bundle/resources/views (same structur, same file name, same content) I copied all the content of the source template in my target template, i…
ibasaw
  • 493
  • 1
  • 7
  • 22
3
votes
1 answer

Symfony Sonata Admin - add field type url in listView not working

i'm trying to add a field type url in the list view of an entity, this is the link at the documentation -> https://symfony.com/doc/master/bundles/SonataAdminBundle/reference/field_types.html#url . This is my code, i've simply copied the…
Bellu
  • 2,575
  • 2
  • 22
  • 29
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
1 answer

Error trying to extend SonataMediaBundle "Impossible to invoke a method ("id") on a null variable"

I'm trying to extend the media class of SonataMediaBundle. I want to generate my own media to add more relations and properties. But now I am stuck with this error: Impossible to invoke a method ("id") on a null variable in …
3
votes
3 answers

How to add a button to nav-bar?

How can I add another button/dropdown to the navbar in sonata admin listing template for my MapAdmin class? I just want this button in one admin class.
Zuhayer Tahir
  • 1,798
  • 3
  • 13
  • 20