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

Symfony2: How to add one to many property field in the configureListFields of sonatabundle?

I have a User Entity class that contains one-to-many property "transactions" that holds the transactions of that particular user. use Sonata\UserBundle\Entity\BaseUser as BaseUser; class User extends BaseUser { //...// /* *…
VishwaKumar
  • 3,433
  • 8
  • 44
  • 72
0
votes
1 answer

sonataadminbundle DateTime::__construct() expects parameter 1 to be a String, Object Given

When I change the datatime with Sonata, it returns the error: DateTime::__construct() expects parameter 1 to be string, object given This is my entity: public function setExpiry($dateAsString = null) { $this->expiry = new…
Popolitus
  • 452
  • 1
  • 6
  • 21
0
votes
1 answer

Symfony2 SonataAdmin error saving Entity with many to many relation with Media. Message: Entity Was not configured to cascade persist

When I try to save an Entity linked with a many to many relation with the Media Entity of Sonata i get the error: Entity Was not configured to cascade persist I have created the Entity class between the two tables, named EntityMedias. Now I have …
jdivins
  • 549
  • 4
  • 3
0
votes
1 answer

Fields not getting updated when using 'sonata_type_model' ManyToMany mapping

Here is my TagAdmin class protected function configureFormFields(FormMapper $formMapper) { $formMapper ->add('name') ->add('description') ->add('slug','text',array( 'read_only'…
Amit
  • 3,644
  • 9
  • 38
  • 49
0
votes
1 answer

Symfony2: How do i integrate pagination in sonataAdminBundle?

I need to have pagination integrated in my Backend. I am using sonataAdminBundle. There is this Sonata\AdminBundle\Admin\Admin class which has a property called $maxPerPage = 25; So how do i override this class so that all my other admin classes…
VishwaKumar
  • 3,433
  • 8
  • 44
  • 72
0
votes
1 answer

Symfony2: SonataBundle Fatal Error after doing bin/vendors install --reinstall

I tried to reinstall the vendors files by using the command line code: bin/vendors install --reinstall It successfully got installed. But when i tried to access my site i get this fatal error: Fatal error: Class…
VishwaKumar
  • 3,433
  • 8
  • 44
  • 72
-1
votes
1 answer

phpinfo() shows opcache.blacklist_filename file, but contents ignored

In my Symfony/Sonata application's php.ini file, I have opcache.blacklist_filename set to /usr/src/app/config/opcache-exclude.txt. In a phpinfo() call on my test server, that file shows up in the correct place. Here is the content of the…
-1
votes
1 answer

Sonata Admin Bundle list users of a group

I have Sonata Admin Bundle and Sonata User Bundle (FOSUserBundle with users and groups). In UserAdmin.php I need to modify the list query to show only the user of a specific group. I tried with public function createQuery($context = 'list') { …
-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
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

How to display soft deleted items in symfony2 sonata project list?

Now if the item is deleted it is removed from the list. Is there any possibility to display deleted items in sonata project list?
-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
-4
votes
1 answer

When to use a symfony Bundle and When to use my own code?

1) I just want to know how to use SonataBundle ? 2) And when to use any other Bundle , and when to create my own code ? Thanks
1 2 3
39
40