FAQ Database Discussion Community


Sonata - missing user security status labels

symfony2,sonata-admin,symfony-sonata,sonata-user-bundle,sonata
I don't know why but since today Status labels just gone... I can change Status but there is no labels so I don't what I'm doing ;-) app\config\config.yml imports: - { resource: @MyProductBundle/Resources/config/parameters.yml } - { resource: security.yml } - { resource: services.yml } - { resource: @MyProductBundle/Resources/config/admin.yml } -...

Gedmo translatable / default locale and sonata admin bundle

symfony2,doctrine,sonata-admin,symfony-sonata
I am currently using the sonata admin bundle with the sonata translation bundle and gedmo translatable to localize my entities, which generally works nice. I have a category table with a field "title" which I'm localizing to a "category_translation" table. Now I can see, that the title in my default...

Set a field like choose in sonata Admin bundle

symfony2,sonata-admin,symfony-sonata
Hello I'm working with sonata admin bundle So I've a form to create, in which I need to select a Facultad entity from a list of these, this is the method to create and edit a Proyecto record. protected function configureFormFields(FormMapper $formMapper) { $em = $this->getConfigurationPool()->getContainer()->get('doctrine.orm.entity_manager'); $facultades = $em->getRepository('UIFIIntegrantesBundle:Facultad')->findAll(); $formMapper...

ReflectionException with Symfony and Sonata, “Class does not exist”

php,symfony2,sonata-admin,symfony-sonata
I'm experiencing a problem trying to fit my Entities in the Sonata Admin Bundle. I have something like 5 entities, which are finely listed and viewed in the bundle, but I cannot edit or create a new entry. When I try to edit or create, I get a ReflectionException error:...

Symfony / Sonata Admin: List form on Edit form

php,symfony2,sonata-admin,symfony-sonata,sonata
I have a one (category) to many (product) relationship set up, and I'd like to have a list of products show up at the bottom of the edit category page. It seems like this would be a common thing to do, but I haven't found any way to do it...

Sonata Admin sonata_type_collection

symfony2,sonata-admin,symfony-sonata
I have an issue with Sonata admin form... I would like to insert music in a album with position... My issue is when I create an album... I can add many as I want AlbumHasMusic... But when I submit my form... Each AlbumHasMusic have a null album whereas music and...

Sonata admin enhanced view for security roles

symfony2,sonata-admin,symfony-sonata,sonata-user-bundle,sonata
In sonata admin the roles are based on admin services name with CRUD export and master permissions but the way it looks not so user friendly to create groups for others user or assign specific permissions to a user considering an example for sonata admin post module the service for...

Create new brand from company: embed admin in admin in SonatAdminBundle

php,symfony2,sonata-admin,symfony-sonata,symfony-2.6
I have this two tables (see pics below) mapped as follow: class Brand { ... /** * @var Company * * @ORM\ManyToOne(targetEntity="Company") * @ORM\JoinColumn(name="companies_id", referencedColumnName="id") */ protected $company; } class Company { ... } I have two admin classes: CompanyAdmin and BrandAdmin. I need to add support for add a...

Symfony2 - SonataUserBundle - user profile dashboard

php,symfony2,sonata-admin,symfony-sonata,sonata-user-bundle
How I can get user profile section to looks like this below? https://github.com/sonata-project/SonataUserBundle/blob/master/Resources/doc/reference/user_dashboard.rst My current profile pages looks ugly.. Do I need to rewrite all that *.html files or Sonata has implemented this layouts like in SonataAdminBundle and I need to change some configuration? I'm using: SonataUserBundle with FOSUserBundle, SonataAdminBundle...

Sonata Admin translation does not translate translation array

php,symfony2,sonata-admin,symfony-sonata,sonata
I am having a translation array in Sonata Admin that looks like this: messages.en.yml admin: form: label: identifier: identificationTitle: Some text here otherKey: blabla when I am trying to access it like this {{ 'admin.form.label.identifier.identificationTitle'|trans }} or like this {{ 'admin.form.label.identifier.identificationTitle'|trans({}, 'MyBundle') }} they don't work and I get as...

SonataPageBundle with mongodb

mongodb,symfony-sonata,sonata
somebody has installed succesfully sonata page bundle with mongodb? We have a lot of trouble and seems that sonata page is not supported except with orm. Tnx all...

Nested menu items at SonataAdminBundle sidebar

php,symfony2,sonata-admin,symfony-sonata,sonata
I would like to nested menu items like a tree. I have this configuration at the moment: dashboard: groups: company: icon: <i class="fa fa-lg fa-fw fa fa-cogs"></i> label: Company items: - sonata.admin.company - sonata.admin.brand - sonata.admin.media - sonata.admin.message territory: icon: <i class="fa fa-lg fa-fw fa fa-cogs"></i> label: Territory items: -...